/* =============================================================================
   Sunda Cloak — marketing site stylesheet
   -----------------------------------------------------------------------------
   Visual language carries the extension popup forward (popup/popup.css):
     • Plus Jakarta Sans for everything, DM Serif Display *italic* for the one
       "mood word" per heading — so we never go full geometric "AI tool".
     • Amber #F59E0B / #FBBF24 on warm cream #FFF7ED. Ink #1A1D26. Pink blush.
     • Rounded everything, soft layered amber shadows, sun-ray atmosphere.
     • The smiling sunglasses sun is the mascot; its rays spin, its face bobs.
   Fonts are SELF-HOSTED (assets/fonts) — the site makes zero third-party
   requests, matching the product's "your data never leaves your machine" promise.
   ========================================================================== */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #b45309;
  --amber-tint: #fef3c7;
  --pink: #f472b6;
  --coral: #fca5a5;

  /* Surfaces */
  --bg: #fff7ed;
  --bg-alt: #fffbf5;
  --card: #ffffff;
  --soft: #fef6e7;
  --ink-bg: #1a1d26; /* dark sections */
  --ink-bg-2: #23262f;

  /* Ink */
  --ink: #1a1d26;
  --ink-2: #4b5160;
  --ink-3: #6b7280; /* darkened from #8a8f9c → ≈4.6:1 on cream (WCAG 1.4.3) */
  --on-dark: #fdf4e3;
  --on-dark-2: #c7b9a3;
  --on-dark-3: #9a8f7e;

  /* Lines */
  --line: rgba(26, 29, 38, 0.08);
  --line-strong: rgba(26, 29, 38, 0.14);
  --amber-line: rgba(245, 158, 11, 0.32);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 0 rgba(26, 29, 38, 0.03), 0 10px 30px rgba(180, 83, 9, 0.08);
  --shadow-lift: 0 18px 48px rgba(180, 83, 9, 0.16);
  --shadow-active: 0 8px 22px rgba(245, 158, 11, 0.34);
  --shadow-mascot: 0 24px 48px rgba(245, 158, 11, 0.28);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(245, 158, 11, 0.4);
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* clears the sticky nav on anchor jumps */
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--amber-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(245, 158, 11, 0.25);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}

:focus-visible {
  /* transparent outline so focus is never clipped by overflow:hidden ancestors
     (the box-shadow ring is for looks; the outline guarantees visibility) */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Grain overlay — barely-there texture so flat fills get a paper feel. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: clamp(64px, 9vw, 120px);
}

.section--alt {
  background: var(--bg-alt);
}


.section__head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

.section__sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section--dark .eyebrow {
  color: var(--amber-bright);
}
.section--dark .section__title {
  color: var(--on-dark);
}
.section--dark .section__sub {
  color: var(--on-dark-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease, filter 160ms ease, background 160ms ease, color 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--primary {
  /* dark ink on bright amber — matches the extension popup and clears WCAG AA
     (≈7:1), unlike white-on-amber which fails at the light end of the gradient */
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-bright) 0%, var(--amber) 100%);
  box-shadow: var(--shadow-active), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-lift), 0 0 0 5px rgba(251, 191, 36, 0.18);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--amber-line);
  color: var(--amber-deep);
  box-shadow: var(--shadow-card);
}

.btn--block {
  width: 100%;
}

/* "Coming soon" — rendered as a disabled <button>: looks like a CTA, but is
   correctly exposed as an unavailable control and removed from the tab order. */
.btn--soon,
.btn[disabled] {
  cursor: default;
}


/* ── Mascot (the sunglasses sun) ────────────────────────────────────────── */
.mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mascot__rays {
  transform-origin: 100px 100px;
  animation: rays-spin 24s linear infinite;
}
.mascot__face {
  transform-origin: 100px 110px;
  animation: face-bob 5s ease-in-out infinite;
}
.mascot__sparkles path {
  animation: twinkle 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.mascot__sparkles path:nth-child(2) {
  animation-delay: 0.9s;
}
.mascot__sparkles path:nth-child(3) {
  animation-delay: 1.7s;
}

@keyframes rays-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes face-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.nav.is-scrolled {
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(180, 83, 9, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.nav__brand .mascot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 140ms ease, background 140ms ease;
}
.nav__link:hover {
  color: var(--ink);
  background: rgba(245, 158, 11, 0.1);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__cta {
  padding: 9px 16px;
  font-size: 0.9rem;
}
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 240ms ease, opacity 180ms ease;
}
.nav__burger span:nth-child(1) {
  top: 15px;
}
.nav__burger span:nth-child(2) {
  top: 20px;
}
.nav__burger span:nth-child(3) {
  top: 25px;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 22px;
  background: rgba(255, 247, 237, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(180, 83, 9, 0.1);
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
}
.nav__mobile a:hover {
  background: rgba(245, 158, 11, 0.1);
}
.nav__mobile .btn {
  margin-top: 8px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 50% at 50% -8%, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(40% 40% at 82% 12%, rgba(244, 114, 182, 0.18) 0%, rgba(244, 114, 182, 0) 60%),
    radial-gradient(45% 45% at 12% 30%, rgba(253, 186, 116, 0.28) 0%, rgba(253, 186, 116, 0) 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero__rays {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(245, 158, 11, 0.16) 0deg,
    rgba(245, 158, 11, 0) 14deg,
    rgba(245, 158, 11, 0.16) 30deg,
    rgba(245, 158, 11, 0) 44deg,
    rgba(245, 158, 11, 0.16) 60deg,
    rgba(245, 158, 11, 0) 74deg,
    rgba(245, 158, 11, 0.16) 90deg,
    rgba(245, 158, 11, 0) 104deg,
    rgba(245, 158, 11, 0.16) 120deg,
    rgba(245, 158, 11, 0) 134deg,
    rgba(245, 158, 11, 0.16) 150deg,
    rgba(245, 158, 11, 0) 164deg,
    rgba(245, 158, 11, 0.16) 180deg,
    rgba(245, 158, 11, 0) 194deg,
    rgba(245, 158, 11, 0.16) 210deg,
    rgba(245, 158, 11, 0) 224deg,
    rgba(245, 158, 11, 0.16) 240deg,
    rgba(245, 158, 11, 0) 254deg,
    rgba(245, 158, 11, 0.16) 270deg,
    rgba(245, 158, 11, 0) 284deg,
    rgba(245, 158, 11, 0.16) 300deg,
    rgba(245, 158, 11, 0) 314deg,
    rgba(245, 158, 11, 0.16) 330deg,
    rgba(245, 158, 11, 0) 344deg
  );
  mask: radial-gradient(closest-side, #000 0%, transparent 72%);
  -webkit-mask: radial-gradient(closest-side, #000 0%, transparent 72%);
  animation: rays-spin 60s linear infinite;
}
.hero__mascot {
  width: clamp(116px, 17vw, 168px);
  height: clamp(116px, 17vw, 168px);
  margin: 0 auto 26px;
  filter: drop-shadow(var(--shadow-mascot));
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation: status-pulse 2400ms ease-in-out infinite;
}
@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 22px;
}
.hero__sub {
  max-width: 660px;
  margin: 0 auto 22px;
  font-size: clamp(1.04rem, 1.9vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__typing {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 26px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__typing-prefix {
  color: var(--ink-3);
}
.hero__typing-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-deep);
}
.hero__typing-word::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  translate: 0 0.14em;
  background: var(--amber);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.hero__honesty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 14px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  background: rgba(254, 243, 199, 0.7);
  border: 1px solid var(--amber-line);
  color: var(--amber-deep);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero__honesty svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
/* (hero source/GitHub line removed — consumer build) */

/* ── Trust bar ──────────────────────────────────────────────────────────── */
.trust {
  position: relative;
  z-index: 2;
  background: var(--card);
  border-block: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
}
.trust__heading {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.trust__logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.trust__logo b {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.trust__proof {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Steps (How it works) ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber-line) 0 8px, transparent 8px 18px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-active);
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* ── Features (bento) ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.bento__card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-line);
  box-shadow: var(--shadow-lift);
}
/* Distinguished by its amber wash, not by spanning columns — so the 6-card
   grid always tiles cleanly (3×2 / 2×3 / 1-col) with no orphan cell. */
.bento__card--lg {
  background: linear-gradient(150deg, #fffdf8 0%, #fff3da 100%);
  border-color: var(--amber-line);
}
.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-tint);
  color: var(--amber-deep);
}
.bento__icon svg {
  width: 24px;
  height: 24px;
}
.bento__card h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.bento__card--lg h3 {
  font-size: 1.3rem;
}
.bento__card p {
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* ── Stats (dark) ───────────────────────────────────────────────────────── */
.section--dark {
  background: radial-gradient(120% 120% at 50% -20%, #2a2d38 0%, var(--ink-bg) 55%);
  color: var(--on-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--amber-bright);
  margin-bottom: 10px;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--on-dark-2);
  line-height: 1.45;
}

/* ── Example demo (see the difference) ──────────────────────────────────── */
.demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  max-width: 1000px;
  margin-inline: auto;
}
.demo__doc {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.demo__doc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.demo__doc--ai {
  background: linear-gradient(180deg, #fffdf9 0%, #fdf1f1 100%);
  border-color: rgba(220, 38, 38, 0.16);
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.demo__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.demo__dot:nth-child(1) { background: #fca5a5; }
.demo__dot:nth-child(2) { background: #fbbf24; }
.demo__dot:nth-child(3) { background: #86c995; }
.demo__file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.demo__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 24px 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo__label svg {
  width: 17px;
  height: 17px;
}
.demo__label--you {
  color: var(--amber-deep);
}
.demo__label--ai {
  color: #c2410c;
}
.demo__text {
  margin: 0;
  padding: 12px 24px 26px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
}
.demo__text--ai {
  color: var(--ink-2);
}
/* Real values: a soft marker highlight that flows inline (no blocky boxes). */
.demo__real {
  background: linear-gradient(transparent 58%, rgba(245, 158, 11, 0.32) 58%);
  font-weight: 600;
  padding: 0 1px;
}
/* Scrambled values: muted + struck, so the AI side reads as a jumble. */
.demo__scramble {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.5);
  text-decoration-thickness: 2px;
  white-space: nowrap; /* keep slash-separated decoy lineups from breaking mid-phrase */
}
.demo__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.demo__arrow-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--amber-line);
  box-shadow: var(--shadow-card);
  color: var(--amber-deep);
}
.demo__arrow-chip svg {
  width: 24px;
  height: 24px;
}
.demo__arrow-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.demo__caption {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .demo {
    grid-template-columns: 1fr;
  }
  .demo__arrow {
    flex-direction: row;
  }
  .demo__arrow-chip {
    transform: rotate(90deg);
  }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.plan--pro {
  background: linear-gradient(165deg, #fffdf8 0%, #fff1d6 100%);
  border: 1.5px solid var(--amber);
  box-shadow: var(--shadow-lift);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-active);
}
.plan__name {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.plan__price {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}
.plan__period {
  display: block;
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.plan__features li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.plan__features svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--amber);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq__list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.faq__item.is-open {
  border-color: var(--amber-line);
  box-shadow: var(--shadow-card);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
}
.faq__chevron {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--amber-deep);
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.5, 1);
}
.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__a-inner {
  overflow: hidden;
}
.faq__a p {
  padding: 0 24px 22px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.faq__a code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-deep);
  padding: 1px 5px;
  border-radius: 5px;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 110%, rgba(251, 191, 36, 0.42) 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(50% 50% at 50% -10%, rgba(244, 114, 182, 0.16) 0%, rgba(244, 114, 182, 0) 60%),
    var(--bg-alt);
}
.final__mascot {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  filter: drop-shadow(var(--shadow-mascot));
}
.final__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}
.final__sub {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.final__note {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink-bg);
  color: var(--on-dark-2);
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brandname {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--on-dark);
  margin-bottom: 14px;
}
.footer__brandname .mascot {
  width: 30px;
  height: 30px;
}
.footer__blurb {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--on-dark-3);
  max-width: 320px;
  text-wrap: pretty;
}
.footer__h {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a {
  font-size: 0.92rem;
  color: var(--on-dark-3);
  transition: color 140ms ease;
}
.footer__col a:hover {
  color: var(--amber-bright);
}
.footer__news p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--on-dark-3);
  margin-bottom: 14px;
}
.footer__form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.footer__form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.9rem;
}
.footer__form input::placeholder {
  color: var(--on-dark-3);
}
.footer__form input:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}
.footer__form button {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  transition: filter 140ms ease, transform 140ms ease;
}
.footer__form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.footer__news-micro {
  font-size: 0.78rem;
  color: var(--on-dark-3);
}
.footer__form-success {
  font-size: 0.9rem;
  color: var(--amber-bright);
  font-weight: 600;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--on-dark-3);
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.footer__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ── Legal pages (privacy / terms) ──────────────────────────────────────── */
.legal {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter) 80px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber-deep);
  margin-bottom: 28px;
}
.legal__back:hover {
  text-decoration: underline;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}
.legal__updated {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 38px;
  margin-bottom: 12px;
}
.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal strong {
  color: var(--ink);
}
.legal a {
  color: var(--amber-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--amber-line);
}
.legal code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-deep);
  padding: 1px 5px;
  border-radius: 5px;
}
.legal__callout {
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(254, 243, 199, 0.6);
  border: 1px solid var(--amber-line);
  margin-bottom: 24px;
}
.legal__callout p:last-child {
  margin-bottom: 0;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gutter);
}
.notfound__mascot {
  width: 110px;
  height: 110px;
  margin-bottom: 24px;
  filter: drop-shadow(var(--shadow-mascot));
}
.notfound h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 12px;
}
.notfound p {
  font-size: 1.06rem;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 440px;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Page-load fade so the hero arrives gracefully. */
body {
  animation: page-in 0.5s ease both;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--amber-deep);
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  transition: top 160ms ease;
}
.skip-link:focus {
  top: 12px;
}

/* "/mo" price unit — replaces a one-off inline style so style-src can drop
   'unsafe-inline' in a future CSP-hardening pass. */
.plan__price-unit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-3);
}

/* Static typing word (reduced-motion / no words): drop the blinking caret. */
.hero__typing-word.is-static::after {
  display: none;
}

/* If scripting is disabled, the JS-driven reveals never run — show everything
   so the page is never a field of blank regions. */
@media (scripting: none) {
  .reveal,
  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__news {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav__cta {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .stats__grid {
    grid-template-columns: 1fr;
  }
  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn,
  .final__actions .btn {
    width: 100%;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  [data-stagger] > * {
    opacity: 1;
    transform: none;
  }
  .mascot__rays,
  .hero__rays {
    animation: none;
  }
}
