@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,680;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600&family=Cookie&display=swap');

/* Landing page always renders this one warm-paper palette, matching the
   brand across the promo video and marketing assets -- it does NOT follow
   system/browser dark mode. The .statement section further down is the
   page's single deliberately-inverted (dark) block; it and the nav's
   "over a dark section" state both assume --ink is always the dark color
   and --paper always the light one. Letting :root swap those meanings
   under `prefers-color-scheme: dark` un-inverts .statement (it goes light
   while the rest of the page goes dark) and muddies the nav -- so this
   page pins color-scheme to light instead of remapping the tokens. */
:root {
  color-scheme: light;
  --paper: #F7F4EC;
  --canvas: #EDEAE0;
  --canvas-dot: #DCD7C8;
  --ink: #221F1B;
  --ink-soft: #6B6459;
  /* Darkened from #9C9585 to clear 4.5:1 against --paper/--card-bg (was
     ~2.7:1) -- see impeccable critique 2026-09-27. Still reads as the
     same muted secondary tone, just no longer failing AA as body text. */
  --ink-faint: #6D685D;
  --rule: #DCD6C6;
  --accent: #C98A2E;
  /* --accent itself is under 3:1 against --paper/--card-bg, fine for the
     borders, dots and SVG strokes it's used for elsewhere but not for
     text. --accent-text is the same hue darkened to clear 4.5:1 (AA body
     text) against both, used wherever --accent was standing in as a text
     color (see impeccable critique 2026-09-27) -- --accent itself is left
     alone everywhere else so those non-text uses don't get muddier. */
  --accent-text: #78521B;
  --accent-2: #3C6E68;
  --card-bg: #FFFDF7;
  --card-shadow: rgba(40, 32, 16, 0.14);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.5 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
}

p { color: var(--ink-soft); line-height: 1.6; margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}
/* On the dark .statement section --accent itself already clears 5.6:1
   against --ink, so the inverse variant keeps the brighter, more on-brand
   value rather than switching to --accent-text (tuned for light
   backgrounds, not needed here). */
.eyebrow-inverse { color: var(--accent); }

/* ---------- scroll progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 28px;
  max-width: 1400px;
  margin: 0 auto;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--rule);
}
/* When a dark, full-bleed section (.statement) is directly under the nav,
   the paper-colored glass above reads as a washed-out pale strip sitting
   on top of it -- an ordinary translucent material doesn't know what's
   behind it. Toggled by landing.js via IntersectionObserver on .statement;
   inverts the nav's own material to match, the way Apple's site flips its
   header between light and dark sections rather than using one fixed
   treatment everywhere. */
.nav.is-on-dark {
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  border-bottom-color: color-mix(in srgb, var(--paper) 14%, transparent);
}
.nav.is-on-dark .wordmark,
.nav.is-on-dark .nav-cta { color: var(--paper); }
.nav.is-on-dark .nav-cta { border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.nav.is-on-dark .nav-cta:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); border-color: var(--accent); }

.wordmark {
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark em { color: var(--accent-text); font-style: italic; }
/* Nav's dark state (see .nav.is-on-dark above) sits over --ink, where the
   brighter --accent already clears contrast -- restore it there instead
   of the light-background --accent-text. */
.nav.is-on-dark .wordmark em { color: var(--accent); }

.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.nav-cta:hover { border-color: var(--accent); background: var(--card-bg); }
.nav-cta:active { transform: scale(0.96); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) 28px 96px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100dvh - 64px);
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
  font-optical-sizing: auto;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 46ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px var(--card-shadow); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease-out);
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost .chev { transition: transform 0.2s var(--ease-out); }
.btn-ghost:hover .chev { transform: translateY(3px); }

.hero-art { perspective: 1400px; }
.hero-art-frame {
  will-change: transform;
  transform: translateY(0);
}
.hero-art-frame img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: 0 40px 90px -32px var(--card-shadow);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; min-height: 0; }
  .hero-copy h1 { max-width: none; }
  .hero-art { order: -1; }
  .hero-art-frame { transform: none !important; }
}

/* ---------- sections (shared) ---------- */

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 130px) 28px;
}

.section-head h2, .closing h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 22ch;
}

/* ---------- how it works: pinned scrollytelling ---------- */

.feature-scroll { padding-top: clamp(56px, 8vw, 110px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.feature-scroll-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}

.feature-sticky {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--canvas);
  overflow: hidden;
  box-shadow: 0 30px 70px -34px var(--card-shadow);
}
.feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  opacity: 0;
  transform: scale(0.97) translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.feature-img.is-active { opacity: 1; transform: scale(1) translateY(0); }

.jump-diagram-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  background-image: radial-gradient(var(--canvas-dot) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

.feature-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.feature-dot.is-active { background: var(--accent); transform: scale(1.3); }

.feature-steps {
  display: flex;
  flex-direction: column;
}
.feature-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.4s var(--ease-out);
}
.feature-step:last-child { min-height: 50vh; }
.feature-step.is-active { opacity: 1; }

.step-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  display: block;
  margin-bottom: 12px;
}
.feature-step h3, .row-text h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  max-width: 18ch;
}
.feature-step p, .row-text p { max-width: 40ch; font-size: 16px; }

.feature-fallback { display: none; }

@media (max-width: 900px) {
  .feature-scroll-inner { display: none; }
  .feature-fallback { display: block; }

  .feature-fallback .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: clamp(48px, 8vw, 72px);
  }
  .feature-fallback .row:first-child { margin-top: 0; }
  .feature-fallback .row-image img,
  .feature-fallback .row-image .jump-diagram {
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    box-shadow: 0 20px 50px -26px var(--card-shadow);
  }
  .feature-fallback .jump-diagram { padding: 48px 24px; box-shadow: none; }
}

/* ---------- jump-to-page illustration ---------- */

.jump-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  width: 100%;
}

.jump-card, .jump-page {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 16px;
  white-space: nowrap;
}

.jump-track {
  position: relative;
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--rule);
}
.jump-track::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent);
}
.jump-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  animation: jump-travel 2.6s var(--ease-inout) infinite;
}
@keyframes jump-travel {
  0%, 8% { left: 0; opacity: 1; }
  45%, 55% { left: calc(100% - 7px); opacity: 1; }
  60%, 100% { left: calc(100% - 7px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jump-dot { animation: none; left: calc(100% - 7px); }
}

/* ---------- statement (privacy) — inverted, full-bleed ---------- */

.statement {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(90px, 13vw, 160px) 28px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.statement-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(48% 55% at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  animation: statement-drift 44s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}
@keyframes statement-drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .statement-glow { animation: none; } }

.statement-inner { max-width: 640px; margin: 0 auto; }
.statement h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.statement p {
  margin: 20px auto 0;
  max-width: 52ch;
  font-size: 17px;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

/* ---------- ai-ready export ---------- */

.ai-ready { text-align: center; }
.ai-inner { max-width: 760px; margin: 0 auto; }
.ai-ready h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.ai-sub { margin: 18px auto 0; max-width: 58ch; font-size: 17px; }
.ai-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  font: 500 15px/1 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ai-file {
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
}
.ai-file-md { border-color: var(--accent); color: var(--accent-text); }
.ai-op { color: var(--ink-faint); font-size: 20px; }
/* keeps the arrow with its target when the row wraps on narrow screens */
.ai-end { display: inline-flex; align-items: center; gap: inherit; }
@media (max-width: 480px) {
  .ai-flow { gap: 6px; font-size: 12px; }
  .ai-file { padding: 9px 9px; }
  .ai-op { font-size: 15px; }
}
.ai-prompts {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 520px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.ai-prompts li {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--card-bg);
  box-shadow: 0 6px 18px -12px var(--card-shadow);
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink);
}

/* ---------- closing cta ---------- */

.closing { text-align: center; }
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing h2 { max-width: none; margin: 0 auto; }
.closing .btn-primary { margin-top: 28px; }
.closing-note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }
/* Same look as Buy Me a Coffee's official button (yellow, black outline,
   "Cookie" script type) without loading their third-party script. */
.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px 22px 7px 18px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #FFDD00;
  color: #000;
  font: 400 28px/1.2 'Cookie', 'Brush Script MT', cursive;
  text-decoration: none;
  box-shadow: 0 8px 20px -12px rgba(40, 32, 16, 0.5);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-coffee span { font-size: 22px; }
.btn-coffee:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(40, 32, 16, 0.55); }
.btn-coffee:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.coffee-note { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }
.closing-note a { color: var(--ink-soft); }

/* ---------- footer ---------- */

.footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.footer a:hover { color: var(--accent-text); }

/* ---------- scroll reveal ---------- */

/* Visible by default -- the hidden/offset starting state only applies once
   `js-reveal` is on <html>, which landing.js adds itself the moment it
   confirms it's actually running (see the top of that file). This makes
   the reveal an enhancement JS opts INTO rather than a state JS has to
   opt OUT of: no script, a slow/blocked script, or a script racing a
   capture tool all fall back to fully visible content instead of a
   permanently hidden one. The privacy statement and closing CTA don't
   carry this class in index.html at all -- see the comment there. */
.reveal-up {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal .reveal-up:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal-up:not(.is-visible) { opacity: 1; transform: none; transition: none; }
}
