/* InsideOut marketing site. Same palette and type as the app: ink, paper, indigo; Fraunces + Inter. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #14161f;
  --ink-2: #1d2030;
  --ink-3: #2a2e42;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --card: #ffffff;
  --line: #e4ded4;
  --text: #14161f;
  --muted: #646a7c;
  --indigo: #4b45d6;
  --indigo-soft: #8c8af5;
  --indigo-tint: #ebeafd;
  --good: #1a7f5a;
  --good-tint: #dff3ea;
  --warn: #c2410c;
  --warn-tint: #fbe4d8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --shadow: 0 30px 60px -20px rgba(20, 22, 31, .35), 0 12px 24px -12px rgba(20, 22, 31, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--indigo-soft); outline-offset: 3px; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px rgba(75, 69, 214, .8); }
.btn-primary:hover { background: #3f39c4; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn-large { padding: 18px 30px; font-size: 1.08rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(20, 22, 31, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.mark { width: 26px; height: 26px; border-radius: 50%; border: 3px solid currentColor; display: grid; place-items: center; flex: none; }
.mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--indigo-soft); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0 96px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: .86rem; color: rgba(255, 255, 255, .8); margin-bottom: 28px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-soft); box-shadow: 0 0 0 4px rgba(140, 138, 245, .25); }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.1rem); line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--indigo-soft); }
.lede { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .74); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fine { margin-top: 16px; font-size: .86rem; color: var(--muted); }
.hero .fine { color: rgba(255, 255, 255, .5); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 138, 245, .45), rgba(75, 69, 214, 0) 65%); filter: blur(10px); }

.phone { margin: 0; position: relative; width: 290px; aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2b2f42, #0c0d13); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 999px; background: #0c0d13; z-index: 1; }
.phone-hero { width: 310px; transform: rotate(-3deg); }

.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .92rem; animation: bob 6s ease-in-out infinite; }
.float strong { display: block; font-weight: 700; }
.float span { color: var(--muted); font-size: .82rem; }
.float-score { top: 300px; left: -70px; }
.float-warn { bottom: 104px; right: -6px; background: var(--warn-tint); color: var(--warn); font-weight: 600; border-radius: 999px; animation-delay: -3s; }
.float-warn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ring { --p: 80; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--paper-2) 0); }
.ring span { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .98rem; color: var(--ink); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Ticker of questions */
.questions { background: var(--ink-2); color: rgba(255, 255, 255, .86); border-top: 1px solid rgba(255, 255, 255, .06); }
.ticker { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.ticker li { display: flex; align-items: center; gap: 34px; }
.ticker li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-soft); }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-head p:not(.kicker) { color: rgba(255, 255, 255, .7); }
.section-dark .kicker { color: var(--indigo-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2, .split-copy h2, .privacy-card h2, .download h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p:not(.kicker) { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }

/* Dimensions */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dim { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.dim:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(20, 22, 31, .35); }
.dim-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-tint); color: var(--indigo); font-size: 1.15rem; margin-bottom: 18px; }
.dim h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.dim p { color: var(--muted); font-size: .95rem; }
.dim-accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.dim-accent h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.dim-accent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; color: rgba(255, 255, 255, .8); }
.dim-accent li { display: flex; gap: 10px; }
.dim-accent li::before { content: "→"; color: var(--indigo-soft); }

/* Splits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-visual { display: grid; place-items: center; }
.split-copy p:not(.kicker) { margin-top: 20px; font-size: 1.08rem; color: var(--muted); }
.split-copy strong { color: var(--text); font-weight: 600; }
.split-copy .muted { font-size: .98rem; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--good-tint); color: var(--good); font-size: .8rem; font-weight: 700; margin-top: 1px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--indigo); }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 28px; }
.step-n { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--indigo-soft); margin-bottom: 22px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 10px; }
.steps p { font-size: .95rem; color: rgba(255, 255, 255, .66); }

/* Privacy */
.privacy { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.privacy-card { position: sticky; top: 110px; }
.privacy-card p:not(.kicker) { margin-top: 20px; font-size: 1.08rem; color: var(--muted); }
.shield { width: 60px; height: 60px; border-radius: 18px; background: var(--ink); display: grid; place-items: center; margin-bottom: 26px; }
.shield svg { width: 30px; height: 30px; fill: none; stroke: var(--indigo-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.privacy-list h3 { font-size: 1.12rem; margin-bottom: 8px; }
.privacy-list p { color: var(--muted); }

/* Quotes */
.quote-stack { position: relative; display: grid; gap: 18px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 24px 40px -28px rgba(20, 22, 31, .45); }
.quote-offset { margin-left: 56px; }
.quote-top { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.pill { padding: 4px 10px; border-radius: 999px; font-family: var(--serif); font-weight: 700; font-size: .92rem; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.4; }
.quote-note { font-size: .78rem; color: var(--muted); text-align: right; }

/* Download */
.download { background: radial-gradient(ellipse at top, #2a2b5c 0%, var(--ink) 60%); color: #fff; padding: 120px 0; text-align: center; }
.download-inner { display: grid; justify-items: center; }
.download-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); margin-bottom: 30px; }
.download p { color: rgba(255, 255, 255, .72); margin: 16px 0 34px; font-size: 1.1rem; max-width: 34em; }
.download .fine { margin: 18px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .5); }
.install { margin-top: 36px; width: min(520px, 100%); text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 4px 22px; }
.install summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
.install ol { margin: 0 0 16px; padding-left: 20px; color: rgba(255, 255, 255, .78); display: grid; gap: 6px; }
.download .checksum { margin: 0 0 18px; font-size: .78rem; color: rgba(255, 255, 255, .5); word-break: break-all; }
.download .web-link { margin: 22px 0 0; font-size: .98rem; color: rgba(255, 255, 255, .7); }
.web-link a { color: var(--indigo-soft); font-weight: 600; text-decoration: none; }
.web-link a:hover { text-decoration: underline; }
.nav-web { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav-web:hover { color: #fff; }
.checksum code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: .92rem; }
.footer-inner .muted { margin-left: auto; color: rgba(255, 255, 255, .45); }

/* Reveal on scroll (enabled by site.js, so content shows without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1020px) {
  .dims { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-web { margin-left: auto; }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .split, .privacy { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 0; padding: 20px 0; }
  .split-rev .split-visual { order: -1; }
  .split-visual { order: -1; }
  .privacy-card { position: static; }
  .section { padding: 80px 0; }
  .quote-offset { margin-left: 24px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .dims, .steps, .stat-row { grid-template-columns: 1fr; }
  .phone-hero { width: 250px; }
  .phone { width: 250px; }
  .float-score { left: 0; top: 30px; }
  .float-warn { right: 0; bottom: 40px; }
  .ticker { font-size: .96rem; gap: 6px 26px; }
  .footer-inner .muted { margin-left: 0; }
  .nav-web { display: none; }
  .nav-inner .btn { margin-left: auto; }
}
