/* CogniPage — landing page. Builds on /static/brand.css (fonts + tokens). */

:root {
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(31, 35, 64, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Stronger body-text contrast (WCAG AA) than the shared token, so copy
     stays readable where it sits over the animated background orbs. */
  --muted: #565d85;
}

@media (prefers-color-scheme: dark) {
  :root { --muted: #a6aecd; }
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
section { position: relative; }

/* ── Animated background orbs ─────────────────────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.2; }
.orb-1 { width: 520px; height: 520px; background: var(--primary); top: -120px; left: -100px; animation: float1 18s var(--ease) infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--secondary); top: 30%; right: -120px; animation: float2 22s var(--ease) infinite; }
.orb-3 { width: 360px; height: 360px; background: #7d8bc4; bottom: -140px; left: 30%; animation: float1 26s var(--ease) infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,60px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-40px) scale(1.08); } }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
  transition: padding 0.3s var(--ease);
}
.nav.scrolled {
  padding: 0.6rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
}
.nav-brand { display: flex; align-items: center; position: relative; }
.beta-badge {
  position: absolute;
  top: 8px;
  left: 100%;
  transform: translateX(-2px);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--primary); transition: width 0.25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 0.5rem 1.1rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.02rem; border-radius: 12px; }
.btn-primary { box-shadow: 0 12px 24px -12px var(--primary); transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; padding: 0.85rem 1.75rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  font-weight: 600; text-decoration: none; transition: transform 0.2s var(--ease), border-color 0.2s;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; font-weight: 800; margin: 0 0 1.2rem; letter-spacing: -0.02em; }
.grad { background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ── Media placeholders ───────────────────────────────────────────────────── */
.media-frame {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--primary) 5%, transparent) 0 12px, transparent 12px 24px),
    var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.media-chrome { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, var(--fg)); }
.media-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.media-chrome i:nth-child(1) { background: #ff5f57; } .media-chrome i:nth-child(2) { background: #febc2e; } .media-chrome i:nth-child(3) { background: #28c840; }
.media-body, .media-frame:not(:has(.media-body)) { display: grid; place-items: center; }
.media-body { min-height: 360px; }
.media-label { text-align: center; color: var(--muted); font-weight: 600; line-height: 1.5; }
.media-label small { font-weight: 500; opacity: 0.7; font-size: 0.78rem; }
.media-hero .media-body { min-height: 380px; }
.media-hero { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transition: transform 0.6s var(--ease); }
.media-hero:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.media-step { min-height: 130px; margin-top: 1.1rem; }
.media-step .media-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.media-shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-step .media-shot { height: auto; aspect-ratio: 16 / 10; }
.media-embed { height: auto; aspect-ratio: 16 / 9; border: 0; align-self: stretch; pointer-events: none; }
.media-showcase { flex: 1; }
.media-showcase .media-body { min-height: 350px; }
.media-showcase .media-body img { width: 100%; height: auto; }

.hero-media { position: relative; }
.floating-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.fc-1 { top: 12%; left: -28px; animation: bob 4s ease-in-out infinite; }
.fc-2 { bottom: 14%; right: -24px; animation: bob 5s ease-in-out infinite 0.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.strip { max-width: var(--maxw); margin: 1rem auto; padding: 1.5rem; text-align: center; }
.strip p { font-size: 1.3rem; color: var(--muted); }
.strip strong { color: var(--fg); }

/* ── Section heads ────────────────────────────────────────────────────────── */
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.6rem 0 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ── Journey ──────────────────────────────────────────────────────────────── */
.journey, .features, .how { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.3s var(--ease), box-shadow 0.3s; transition-delay: calc(var(--i) * 60ms); }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step-num { font-size: 0.85rem; font-weight: 800; color: var(--secondary); letter-spacing: 0.1em; }
.step h3 { font-size: 1.3rem; margin: 0.4rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--primary); }
.feat-ic { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, transparent); margin-bottom: 1rem; }
.feature h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

/* ── Permissions disclosure ───────────────────────────────────────────────────
   Sits directly above the download card. Styled as plain, calm information
   rather than marketing — it is a statement of fact people need before they
   install, and dressing it up would undercut it. */
.permissions { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 1rem; }
.perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.perm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.perm-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.perm-card h3 em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.perm-ic { font-size: 1.15rem; }
.perm-os { color: var(--primary); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.6rem; }
.perm-card p:last-child { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.6; }

.perm-never {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: var(--radius); padding: 1.75rem;
}
.perm-never h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.perm-never-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.5rem; }
.perm-never-list li { position: relative; padding-left: 1.75rem; color: var(--muted); font-size: 0.95rem; }
.perm-never-list li::before {
  content: "✕"; position: absolute; left: 0; top: 0.05rem;
  width: 1.2rem; height: 1.2rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg);
}
.perm-consent { color: var(--muted); margin: 0 0 0.75rem; line-height: 1.7; font-size: 0.95rem; }
.perm-consent strong { color: var(--fg); }
.perm-more { margin: 0; }
.perm-more a { color: var(--primary); font-weight: 600; text-decoration: none; }
.perm-more a:hover { text-decoration: underline; }

/* Pre-install disclosure inside the download card. Sits on the card's dark
   gradient, so colours are set against white rather than the page tokens. */
.dl-disclosure {
  position: relative; margin: 1.75rem auto 0; padding-top: 1.5rem;
  max-width: 46rem; border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72); font-size: 0.84rem; line-height: 1.65;
}
.dl-disclosure p { margin: 0 0 0.5rem; }
.dl-disclosure p:last-child { margin-bottom: 0; }
.dl-disclosure strong { color: #fff; font-weight: 600; }
.dl-disclosure a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dl-checksum { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-top: 0.9rem !important; }
.dl-checksum[hidden] { display: none; }
.dl-checksum-label { font-weight: 600; color: rgba(255,255,255,0.85); }
.dl-checksum code { font-size: 0.72rem; word-break: break-all; max-width: 100%; color: rgba(255,255,255,0.9); }
.dl-checksum-help { font-size: 0.8rem; }

/* ── Showcase ─────────────────────────────────────────────────────────────── */
.showcase { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.showcase h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.6rem 0 1rem; }
.showcase p { color: var(--muted); font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.check-list li { padding-left: 2rem; position: relative; font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.8rem; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.how-step { text-align: center; padding: 1.5rem; }
.how-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800; font-size: 1.4rem; }
.how-step h3 { margin: 0 0 0.4rem; }
.how-step p { color: var(--muted); margin: 0; }

/* ── Download ─────────────────────────────────────────────────────────────── */
.download { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.download-card {
  background: linear-gradient(135deg, var(--primary), #2b3252);
  border-radius: 28px; padding: 4rem 2rem; text-align: center; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.download-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(208,169,170,0.4), transparent 40%); }
.download-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.5rem; font-weight: 800; position: relative; }
.download-card > p { color: rgba(255,255,255,0.8); margin: 0 0 2rem; position: relative; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; position: relative; }
.dl-primary-slot { display: flex; justify-content: center; }

/* Icon glyph, shared by the primary button and the alternate links. */
.dl-ic { width: 22px; height: 22px; flex: none; mask-repeat: no-repeat; mask-position: center; mask-size: contain; }
.dl-ic[data-os="mac"] { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 0 184.8 0 273.5 0 299.7 4.8 326.7 14.4 354.6c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-57.7-92.5zM255.4 96.4c30.4-36.1 27.7-69 26.8-80.4-26.9 1.6-58 18.4-75.7 39.1-19.5 22.2-31 49.7-28.5 79.3 29.1 2.3 55.7-12.7 77.4-38z'/%3E%3C/svg%3E"); }
.dl-ic[data-os="win"] { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z'/%3E%3C/svg%3E"); }

/* Primary: one confident, focused call to action. */
.dl-link.is-primary {
  display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none;
  background: #fff; color: var(--fg); padding: 0.9rem 1.75rem; border-radius: 14px;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.dl-link.is-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0,0,0,0.55); }
.dl-link.is-primary .dl-ic { width: 26px; height: 26px; background: var(--fg); }
.dl-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-text small { font-size: 0.72rem; color: var(--muted); }
.dl-text strong { font-size: 1.12rem; font-weight: 700; }
.dl-text .dl-arch { font-weight: 500; opacity: 0.85; }

/* Alternates: quiet, understated links — present but never competing. */
.dl-alts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.5rem; }
.dl-link.is-alt {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.dl-link.is-alt:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.dl-link.is-alt .dl-ic { width: 16px; height: 16px; background: currentColor; }
.dl-link.is-alt .dl-text { flex-direction: row; gap: 0.35rem; }
.dl-link.is-alt .dl-text small { display: none; }
.dl-link.is-alt .dl-text strong { font-size: 0.92rem; font-weight: 500; }
.dl-link.is-alt .dl-arch { opacity: 0.75; }

/* Download status message (missing build / unreachable proxy). Empty until
   landing.js fills it, so it takes no space on the happy path. */
.dl-msg { font-size: 0.86rem; line-height: 1.4; margin: 0.35rem auto 0; max-width: 100%; text-align: center; min-height: 0; }
.dl-msg:empty { margin: 0; }
.dl-msg.pending { color: rgba(255,255,255,0.72); }
.dl-msg.ok { color: #4ade80; }
.dl-msg.err { color: #f87171; }

/* A download link mid-probe: dim and inert so it can't be double-clicked. */
.dl-link.is-loading { opacity: 0.6; pointer-events: none; }

.dl-note { color: rgba(255,255,255,0.62); font-size: 0.82rem; margin: 0.5rem 0 0; position: relative; }

/* ── AI Automation ────────────────────────────────────────────────────────── */
.automation { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.auto-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.auto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.auto-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.auto-ic {
  font-size: 1.6rem; width: 58px; height: 58px; flex: none; display: grid; place-items: center;
  border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--secondary) 22%, transparent));
}
.auto-head h3 { margin: 0; font-size: 1.3rem; }
.auto-sub { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.auto-card > p { color: var(--muted); margin: 0 0 0.5rem; }
.media-auto { min-height: 200px; margin-top: 1.5rem; }

/* ── Analytics ────────────────────────────────────────────────────────────── */
.analytics { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ana-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transition-delay: calc(var(--i) * 60ms);
}
.ana-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ana-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.ana-ic { font-size: 1.4rem; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--secondary) 18%, transparent); }
.ana-head h3 { margin: 0; font-size: 1.2rem; }
.ana-sub { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.82rem; }
.ana-card > p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.ana-card em { font-style: normal; color: var(--primary); font-weight: 600; }
.media-ana { min-height: 170px; margin-top: 1.25rem; }
.media-ana .media-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); margin-top: 2rem; background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.8fr 1.5fr; gap: 2rem;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .brand-logo { margin-bottom: 0.5rem; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.footer-mail { color: var(--primary); font-weight: 600; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { margin: 0 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s, padding-left 0.2s var(--ease); }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-copy { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.5rem 2.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
/* Publisher attribution: present on every page and readable, but quiet — it is
   a statement of record, not a claim competing for attention. */
.footer-entity { display: block; margin-top: 0.4rem; font-size: 0.78rem; opacity: 0.85; }
.footer-entity a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-entity a:hover { color: var(--primary); }

/* Company page: registered details as a definition list. */
.co-details { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
.co-details > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: baseline; }
.co-details dt { color: var(--fg); font-weight: 600; font-size: 0.92rem; }
.co-details dd { margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { .co-details > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Footer newsletter signup */
.footer-newsletter p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.6rem; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 150px; min-width: 0; padding: 0.6rem 0.8rem; font-family: inherit; font-size: 0.92rem;
  color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.newsletter-form .btn-primary { padding: 0.6rem 1.1rem; }
.newsletter-msg { font-size: 0.82rem; margin: 0.5rem 0 0; min-height: 1em; }
.newsletter-msg.ok { color: #1f9d57; }
.newsletter-msg.err { color: #d14343; }

/* ── Reveal-on-scroll ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* Directional variants — pair with .reveal */
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left.in, .reveal-right.in, .reveal-scale.in { transform: none; }

/* Children of [data-stagger] cascade in on the parent's reveal */
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.13s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.21s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.29s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.37s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.45s; }

/* Animated gradient sweep on the headline accent */
.grad {
  background-size: 200% auto;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Hero parallax driven by JS (--px / --py set per pointer) */
.hero-media { transition: transform 0.4s var(--ease); }
.floating-card { transition: transform 0.3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; } .floating-card { animation: none; } .grad { animation: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-media { order: -1; }
  .journey-track, .feature-grid, .how-grid, .auto-grid, .analytics-grid { grid-template-columns: 1fr 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .journey-track, .feature-grid, .how-grid, .auto-grid, .analytics-grid { grid-template-columns: 1fr; }
  .perm-never-list { grid-template-columns: 1fr; }
  .hero-meta { gap: 0.75rem; }
  .floating-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Legal & FAQ pages ────────────────────────────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal-head { margin-bottom: 2.5rem; }
.legal-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.8rem 0 0.6rem; }
.legal-head .updated { color: var(--muted); font-size: 0.9rem; }
.legal-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
.legal-body h3 { font-size: 1.08rem; font-weight: 700; margin: 1.4rem 0 0.4rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.7; }
.legal-body ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal-body a { color: var(--primary); font-weight: 600; }
.legal-body strong { color: var(--fg); }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em;
  background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 0.1em 0.4em; border-radius: 5px;
}
/* Verification commands. Long one-liners, so this scrolls itself rather than
   letting the page scroll sideways on a phone. */
.legal-body pre {
  background: color-mix(in srgb, var(--fg) 6%, transparent); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1rem; margin: 0.9rem 0; overflow-x: auto;
}
.legal-body pre code { background: none; padding: 0; font-size: 0.84rem; white-space: pre; }
.legal-toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.legal-toc h4 { margin: 0 0 0.6rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal-toc a { color: var(--fg); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); }

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--fg); font-size: 1.02rem;
  padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--primary); transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
/* Generous enough for the longest answer (the per-platform uninstall steps) at
   mobile widths — an open item that clips its own content is worse than a
   slightly loose transition. */
.faq-item.open .faq-a { max-height: 1600px; }
.faq-a p { color: var(--muted); line-height: 1.7; margin: 0 1.3rem 1.2rem; }
.faq-a p a { color: var(--primary); font-weight: 600; }
.faq-a ul, .faq-a ol { color: var(--muted); line-height: 1.7; margin: 0 1.3rem 1.2rem; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.faq-a li a { color: var(--primary); font-weight: 600; }
.faq-a strong { color: var(--fg); }
.faq-a code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em;
  background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 0.1em 0.4em;
  border-radius: 5px; word-break: break-all;
}
.faq-a kbd {
  font-family: inherit; font-size: 0.82em; padding: 0.1em 0.4em; border-radius: 5px;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; } .faq-q::after { transition: none; }
}

/* ── Forget Score CTA ─────────────────────────────────────────────────────── */
.btn-fscore {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, var(--primary), #55639b 45%, #b8878a);
  background-size: 180% 180%; animation: fsGradShift 5s ease infinite;
  box-shadow: 0 14px 28px -12px rgba(63, 73, 111, 0.55);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
}
.btn-fscore:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
@keyframes fsGradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.fscore { max-width: var(--maxw, 1080px); margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.fscore-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem;
  padding: 1.6rem 1.8rem; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--primary), #55639b 55%, #7c88b5);
  background-size: 200% 200%; animation: fsGradShift 8s ease infinite;
  box-shadow: 0 28px 56px -22px rgba(63, 73, 111, 0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fscore-card:hover { transform: translateY(-4px) scale(1.01); }
.fscore-emoji { font-size: 2.6rem; animation: fsFloat 4s ease-in-out infinite; }
@keyframes fsFloat { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
.fscore-copy { display: grid; gap: 0.25rem; }
.fscore-copy strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.fscore-copy span { opacity: 0.9; font-size: 0.95rem; }
.fscore-btn {
  white-space: nowrap; padding: 0.8rem 1.3rem; border-radius: 999px;
  background: #fff; color: var(--primary); font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.5);
}
@media (max-width: 760px) {
  .fscore-card { grid-template-columns: 1fr; text-align: center; gap: 0.9rem; }
  .fscore-btn { justify-self: center; }
}
