/* ==========================================================================
   QuillTide — styles.css
   A warm, whimsical, literary marketing site.
   Plain modern CSS. No frameworks. No external requests.
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Fonts
   2.  Design tokens (CSS variables)
   3.  Reset & base
   4.  Layout helpers & decorative bits
   5.  Buttons & links
   6.  Announcement bar
   7.  Navigation
   8.  Hero
   9.  Value strip
   10. What is QuillTide
   11. Choose your path
   12. Feature panels (authors)
   13. Reader features
   14. Interactive preview (tabs)
   15. Gallery + lightbox
   16. Offline-first
   17. Pricing
   18. Timeline
   19. Waitlist
   20. Founder
   21. FAQ (accordion)
   22. Final CTA
   23. Footer
   24. Placeholders (graceful missing-image art)
   25. Utility pages (privacy / terms / 404)
   26. Motion, reveals & reduced-motion
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------- */
/* LOCAL FONT PLACEHOLDER
   The site uses system fonts by default (fast, no licensing needed).
   To use your own font, drop it in assets/fonts/ and uncomment below.

@font-face {
  font-family: "QuillTide Display";
  src: url("assets/fonts/MyFont.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
*/

/* 2. DESIGN TOKENS -------------------------------------------------------- */
:root {
  /* Core palette — deep ink + tide teal + muted gold, coral as a spark */
  --ink:        #16222e;   /* deep midnight ink */
  --ink-soft:   #24384c;
  --parchment:  #f8f1e4;   /* warm cream page */
  --parchment-2:#f2e7d3;   /* deeper parchment */
  --gold:       #d8a44a;   /* muted gold */
  --gold-deep:  #b9863a;
  --teal:       #2f9d93;   /* tide teal */
  --teal-deep:  #1f7c73;   /* primary action */
  --teal-deeper:#155e57;   /* primary hover */
  --lavender:   #b0a3d1;   /* dusty lavender */
  --coral:      #ef7059;   /* playful accent / spark */
  --coral-deep: #d9553d;

  /* Semantic */
  --bg:         var(--parchment);
  --surface:    #fffaf1;
  --surface-2:  #fbf3e3;
  --text:       #1c2338;
  --text-muted: #55597a;
  --text-onink: #f3ecdd;
  --line:       #e4d8c1;
  --line-strong:#d8c7a6;

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --step--1: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.25vw, 1.15rem);   /* body >=17px */
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3.2vw, 4.4rem);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(22,32,58,.08);
  --shadow:    0 14px 34px -14px rgba(22,32,58,.28);
  --shadow-lg: 0 34px 70px -26px rgba(22,32,58,.42);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;
}

/* 3. RESET & BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--parchment);
  /* Layered, soft paper-like background — pure CSS, no image requests */
  background-image:
    radial-gradient(1100px 620px at 82% -6%, rgba(176,163,209,.20), transparent 60%),
    radial-gradient(900px 560px at 6% 4%, rgba(63,158,151,.16), transparent 58%),
    radial-gradient(760px 620px at 50% 118%, rgba(216,164,74,.14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--teal-deep); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--text-onink);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* 4. LAYOUT & DECOR ------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5ch;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(63,158,151,.12);
  padding: .35rem .85rem;
  border-radius: 999px;
}

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); margin-top: .8rem; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); margin-top: .9rem; }

/* Hand-drawn style divider */
.divider {
  display: block;
  width: min(220px, 60%);
  height: 20px;
  margin: 1.4rem auto 0;
  color: var(--gold);
  opacity: .8;
}
.center .divider { margin-inline: auto; }

/* Decorative floating objects (behind content) */
.decor {
  position: absolute;
  pointer-events: none;
  opacity: .5;
  z-index: 0;
}
.decor svg { width: 100%; height: 100%; }
.decor--interactive { pointer-events: auto; cursor: default; }

/* 5. BUTTONS & LINKS ------------------------------------------------------ */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6ch;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary { --btn-bg: var(--teal-deep); }
.btn--primary:hover { background: var(--teal-deeper); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--text-onink); }
.btn--ink:hover { background: var(--ink-soft); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(22,32,58,.05); border-color: var(--ink); }

.btn--lg { padding: 1.1rem 1.9rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4ch;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(47,123,118,.4);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .arrow { transition: transform .2s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* 6. ANNOUNCEMENT BAR ----------------------------------------------------- */
.announce {
  background: var(--ink);
  color: var(--text-onink);
  font-size: var(--step--1);
  text-align: center;
  position: relative;
  z-index: 60;
}
.announce__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  align-items: center;
  justify-content: center;
  padding: .55rem var(--gutter);
}
.announce__inner .spark { color: var(--gold); }
.announce a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce a:hover { color: #fff; }

/* 7. NAVIGATION ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), padding .25s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding-block: .4rem;
  transition: min-height .25s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--parchment) 96%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav.is-scrolled .nav__inner { min-height: 56px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6ch;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
/* Footer sits on a dark background: invert the black mark to a warm cream */
.brand__mark--invert { filter: invert(1) sepia(6%) saturate(120%) brightness(1.02); }
.brand em { font-style: normal; color: var(--teal-deep); }

.nav__links {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav__links a:hover { background: rgba(22,32,58,.06); }

.nav__cta { margin-left: .4rem; }
/* The in-menu CTA is for the mobile drawer only; hidden on desktop. */
.nav__cta--mobile { display: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: var(--ink);
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__cta.nav__cta--desktop { display: none; }
  .nav__links {
    /* Anchored to the nav bar so it always drops directly beneath it,
       regardless of the (non-sticky) announcement bar above. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.6rem;
    max-height: calc(100dvh - var(--nav-h) - 1rem);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: .85rem .6rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta--mobile { display: block; margin-top: .8rem; }
  .nav__links .nav__cta--mobile a { text-align: center; }
}

/* 8. HERO ----------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55ch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step--1);
  padding: .4rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(63,158,151,.2);
}
.hero h1 {
  font-size: var(--step-4);
  margin-top: 1.1rem;
}
.hero h1 .ink-accent {
  color: var(--coral-deep);
  /* Wrap-safe highlighter: sits behind the text and follows line breaks. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(transparent 62%, rgba(216,164,74,.5) 62%);
  padding-inline: .04em;
}
.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  margin-top: 1.1rem;
  max-width: 34ch;
}
@media (max-width: 940px) { .hero__lead { margin-inline: auto; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
  align-items: center;
}
@media (max-width: 940px) { .hero__actions { justify-content: center; } }
.hero__beta { margin-top: 1rem; font-size: var(--step--1); color: var(--text-muted); }

/* Hero stage: app window mockup + floating cards */
.hero__stage { position: relative; }

.app-window {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: .55rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero__stage:hover .app-window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.app-window__bar {
  display: flex;
  align-items: center;
  gap: .5ch;
  padding: .35rem .6rem .55rem;
}
.app-window__bar .tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff6058; } .tl.y { background: #ffbd2e; } .tl.g { background: #27c93f; }
.app-window__title {
  margin-left: auto; margin-right: auto;
  font-size: .78rem; color: rgba(243,236,221,.6);
  font-family: var(--font-sans);
}
.app-window__screen {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

/* Fallback CSS "screenshot" that lives inside the window */
.mock-ui { display: grid; grid-template-columns: 82px 1fr; height: 100%; font-family: var(--font-sans); }
.mock-ui__side {
  background: var(--parchment-2);
  border-right: 1px solid var(--line);
  padding: .7rem .55rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.mock-ui__side i {
  height: 10px; border-radius: 4px; background: var(--line-strong); display: block;
}
.mock-ui__side i.on { background: var(--teal); width: 90%; }
.mock-ui__side i:nth-child(2){width:70%} .mock-ui__side i:nth-child(3){width:80%}
.mock-ui__side i:nth-child(4){width:60%} .mock-ui__side i:nth-child(5){width:75%}
.mock-ui__main { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; overflow: hidden; }
.mock-ui__h { font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: 1rem; }
.mock-ui__line { height: 9px; border-radius: 4px; background: var(--line); }
.mock-ui__line.w1{width:96%}.mock-ui__line.w2{width:88%}.mock-ui__line.w3{width:92%}
.mock-ui__line.w4{width:70%}.mock-ui__line.short{width:40%}
.mock-ui__caret {
  display: inline-block; width: 2px; height: 1em; background: var(--coral);
  vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite;
}
.mock-ui__status {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5ch;
  font-size: .72rem; color: var(--text-muted);
}
.mock-ui__status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(63,158,151,.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,158,151,.5); }
  100% { box-shadow: 0 0 0 9px rgba(63,158,151,0); }
}

/* Floating feature cards around the mockup */
.float-card {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .55ch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem .5rem .55rem;
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: floaty 6s var(--ease) infinite;
}
.float-card .fc-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: #fff;
}
.float-card .fc-icon svg { width: 15px; height: 15px; }
.float-card--1 { top: 4%;  left: -6%;  --i: 0s;   } .float-card--1 .fc-icon{ background: var(--teal); }
.float-card--2 { top: 30%; right: -8%; --i: -1.5s;} .float-card--2 .fc-icon{ background: var(--coral); }
.float-card--3 { bottom: 20%; left: -9%; --i: -3s;} .float-card--3 .fc-icon{ background: var(--gold); color: var(--ink);}
.float-card--4 { bottom: -3%; right: 4%; --i: -4.5s;} .float-card--4 .fc-icon{ background: var(--lavender); color: var(--ink);}
.float-card--5 { top: -4%; right: 20%; --i: -2.2s;} .float-card--5 .fc-icon{ background: var(--ink); }
.float-card { animation-delay: var(--i); }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 560px) {
  .float-card--1, .float-card--5 { display: none; }
  .float-card { font-size: .72rem; }
}

/* 9. VALUE STRIP ---------------------------------------------------------- */
.value {
  background: var(--ink);
  color: var(--text-onink);
}
.value__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}
.value__item {
  display: flex;
  align-items: flex-start;
  gap: .7ch;
  padding: 1.4rem .6rem;
}
.value__item + .value__item { border-left: 1px solid rgba(243,236,221,.12); }
.value__icon {
  flex: none; width: 34px; height: 34px; color: var(--gold);
}
.value__item h3 { color: #fff; font-size: 1.02rem; font-family: var(--font-sans); }
.value__item p { color: rgba(243,236,221,.7); font-size: var(--step--1); margin-top: .15rem; }

@media (max-width: 860px) {
  .value__row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .4rem;
  }
  .value__item {
    scroll-snap-align: start;
    border-left: 0 !important;
    border: 1px solid rgba(243,236,221,.14);
    border-radius: var(--radius);
    padding: 1.1rem;
  }
}

/* 10. WHAT IS QUILLTIDE --------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }
.about p { font-size: var(--step-1); color: var(--text-muted); }
.about p strong { color: var(--ink); }

/* Collage of little interface panels */
.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.collage .chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.collage .chip:nth-child(1){ transform: rotate(-1.5deg); }
.collage .chip:nth-child(2){ transform: rotate(1deg); margin-top: 1.4rem; }
.collage .chip:nth-child(3){ transform: rotate(1.5deg); }
.collage .chip:nth-child(4){ transform: rotate(-1deg); margin-top: -.6rem; }
.collage .chip:hover { transform: rotate(0) translateY(-3px); }
.collage .chip .ci {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; margin-bottom: .6rem;
}
.collage .chip h4 { font-family: var(--font-sans); font-size: 1rem; }
.collage .chip p { font-size: var(--step--1); color: var(--text-muted); margin-top: .15rem; }

/* 11. CHOOSE YOUR PATH ---------------------------------------------------- */
.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
@media (max-width: 780px) { .paths { grid-template-columns: 1fr; } }
.path-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card--authors { background: linear-gradient(160deg, #fffaf1, #f3e7cf); }
.path-card--readers { background: linear-gradient(160deg, #eef4f3, #e3ecf7); }
.path-card__tag {
  display: inline-flex; align-items: center; gap: .5ch;
  font-weight: 800; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.path-card--authors .path-card__tag { background: rgba(216,164,74,.22); color: var(--gold-deep); }
.path-card--readers .path-card__tag { background: rgba(63,158,151,.18); color: var(--teal-deep); }
.path-card h3 { font-size: var(--step-2); margin: .9rem 0 1rem; }
.path-card ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.path-card li {
  display: flex; gap: .6ch; align-items: flex-start;
  font-size: var(--step-0);
}
.path-card li::before {
  content: "";
  flex: none; margin-top: .45em;
  width: 8px; height: 8px; border-radius: 3px;
  transform: rotate(45deg);
}
.path-card--authors li::before { background: var(--gold); }
.path-card--readers li::before { background: var(--teal); }
.path-card .btn { margin-top: 1.6rem; }
.path-card__flourish { position: absolute; top: -10px; right: -10px; width: 120px; height: 120px; opacity: .25; }

/* 12. FEATURE CARDS (AUTHORS) — centered, no screenshots ----------------- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.feature {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
  background: var(--ink); margin: 0 auto 1rem;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--text-muted); font-size: var(--step-0); margin-top: .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; justify-content: center; }
.tag {
  font-size: var(--step--1); font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-muted);
  padding: .3rem .7rem; border-radius: 999px;
}
.tag--planned { background: rgba(176,163,209,.2); border-color: transparent; color: #6a5b93; }

/* 13. READER FEATURES ----------------------------------------------------- */
.readers-section {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(63,158,151,.12), transparent 60%),
    linear-gradient(180deg, #eef4f3, var(--parchment));
}
.reader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.reader-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.reader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reader-card__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--ink); margin-bottom: .9rem;
  background: radial-gradient(circle at 30% 25%, #fff, var(--parchment-2));
  border: 1px solid var(--line);
}
.reader-card__icon svg { width: 24px; height: 24px; }
.reader-card h3 { font-family: var(--font-sans); font-size: 1.12rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5ch; }
.reader-card p { color: var(--text-muted); font-size: var(--step-0); margin-top: .5rem; }
.badge-planned {
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #6a5b93; background: rgba(176,163,209,.25);
  padding: .2rem .55rem; border-radius: 999px;
}

/* 14. INTERACTIVE PREVIEW (TABS) ----------------------------------------- */
.preview__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.preview__tab {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step-0);
  padding: .6rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.preview__tab:hover { border-color: var(--ink); }
.preview__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--text-onink);
  border-color: var(--ink);
}
.preview__stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
}
@media (max-width: 780px) { .preview__stage { grid-template-columns: 1fr; } }
.preview__panel[hidden] { display: none; }
.preview__panel { animation: fadeUp .45s var(--ease); }
.preview__shot {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.preview__info h3 { font-size: var(--step-2); }
.preview__info p { color: var(--text-muted); font-size: var(--step-1); margin-top: .7rem; }
.preview__info .tags { margin-top: 1.1rem; }

/* 15. GALLERY + LIGHTBOX -------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 12rem;
  gap: 1rem;
}
@media (max-width: 780px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; } }
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  padding: 0;
  background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__item.span-2 { grid-column: span 2; }
@media (max-width: 780px) { .gallery__item.span-2 { grid-column: span 2; } }
.gallery__item > * { width: 100%; height: 100%; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(22,32,58,.82));
  color: #fff; font-size: var(--step--1); font-weight: 600;
  padding: 1.6rem .9rem .7rem; text-align: left;
}

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(14,18,32,.82);
  backdrop-filter: blur(4px);
  padding: var(--gutter);
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  position: relative;
  max-width: min(960px, 100%);
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .3s var(--ease);
}
.lightbox__media { aspect-ratio: 16 / 10; }
.lightbox__caption { padding: .9rem 1.2rem; font-weight: 600; color: var(--text-muted); }
.lightbox__close {
  position: absolute; top: .7rem; right: .7rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(22,32,58,.9); color: #fff;
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--coral); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__nav:hover { background: var(--gold); }
.lightbox__nav.prev { left: .7rem; } .lightbox__nav.next { right: .7rem; }

/* 16. OFFLINE-FIRST ------------------------------------------------------- */
.offline {
  background: var(--ink);
  color: var(--text-onink);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.offline__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .offline__grid { grid-template-columns: 1fr; } }
.offline h2 { color: #fff; font-size: var(--step-3); }
.offline p { color: rgba(243,236,221,.82); font-size: var(--step-1); margin-top: 1rem; }
.offline .eyebrow { background: rgba(216,164,74,.18); color: var(--gold); }
.offline__note {
  margin-top: 1.2rem; font-size: var(--step--1); color: rgba(243,236,221,.6);
  border-left: 3px solid var(--gold); padding-left: .9rem;
}
.offline__art {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(63,158,151,.25), transparent 65%);
  border-radius: 50%;
}
.offline__art svg { width: 70%; height: auto; color: var(--gold); }

/* 17. PRICING ------------------------------------------------------------- */
.pricing__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .pricing__grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.price-card ul { list-style: none; padding: 0; display: grid; gap: .8rem; margin-top: 1rem; }
.price-card li { display: flex; gap: .7ch; align-items: flex-start; font-size: var(--step-0); }
.price-card li svg { flex: none; width: 22px; height: 22px; color: var(--teal-deep); margin-top: .1em; }
.price-card__hint { margin-top: 1.2rem; font-size: var(--step--1); color: var(--text-muted); text-align: center; }

/* 18. TIMELINE ------------------------------------------------------------ */
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: .6rem;
  counter-reset: stage;
}
.timeline__step {
  flex: 1 0 auto;
  min-width: 150px;
  text-align: center;
  position: relative;
  padding: 2.4rem .6rem 0;
}
.timeline__step::before {
  content: "";
  position: absolute; top: 15px; left: 0; right: 0;
  height: 3px; background: var(--line-strong);
}
.timeline__step:first-child::before { left: 50%; }
.timeline__step:last-child::before { right: 50%; }
.timeline__dot {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--line-strong);
  z-index: 1;
}
.timeline__step h3 { font-family: var(--font-sans); font-size: 1rem; }
.timeline__step p { font-size: var(--step--1); color: var(--text-muted); }
.timeline__step.is-current .timeline__dot {
  background: var(--coral); border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(239,112,89,.22);
}
.timeline__step.is-current h3 { color: var(--coral-deep); }
.timeline__now {
  display: inline-block; margin-top: .3rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--coral); padding: .15rem .5rem; border-radius: 999px;
}

/* 19. WAITLIST ------------------------------------------------------------ */
.waitlist {
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(216,164,74,.16), transparent 60%),
    radial-gradient(600px 340px at 100% 100%, rgba(63,158,151,.16), transparent 60%),
    var(--parchment-2);
}
.waitlist__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.waitlist__card h2 { font-size: var(--step-3); }
.waitlist__card > p { color: var(--text-muted); font-size: var(--step-1); margin-top: .8rem; max-width: 48ch; margin-inline: auto; }
.waitlist__embed { margin-top: 1.8rem; text-align: left; }
.waitlist__embed iframe { width: 100%; border: 0; border-radius: var(--radius); min-height: 520px; }
.waitlist__fallback {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
  background: var(--surface-2);
}
.waitlist__fallback h3 { font-family: var(--font-sans); font-size: var(--step-1); }
.waitlist__fallback ul {
  list-style: none; padding: 0; margin: 1rem auto 1.4rem; max-width: 30rem;
  display: grid; gap: .4rem; text-align: left;
}
.waitlist__fallback li { display: flex; gap: .6ch; color: var(--text-muted); font-size: var(--step-0); }
.waitlist__fallback li::before { content: "✦"; color: var(--gold); }
.waitlist__privacy { margin-top: 1rem; font-size: var(--step--1); color: var(--text-muted); }

/* 20. FOUNDER ------------------------------------------------------------- */
.founder {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.founder__flourish {
  width: 44px; height: 44px; color: var(--gold);
  margin: 0 auto .4rem;
}
.founder h2 { font-size: var(--step-3); margin-top: .6rem; }
.founder p { font-size: var(--step-1); color: var(--text); margin-top: 1rem; }
.founder p:nth-of-type(2) { color: var(--text-muted); }
.founder__sign {
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-1); color: var(--teal-deep); margin-top: 1.2rem;
}

/* 21. FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1.15rem .3rem;
  font-family: var(--font-serif); font-weight: 700;
  font-size: var(--step-1); color: var(--ink);
}
.faq__q .plus { flex: none; margin-left: auto; width: 24px; height: 24px; position: relative; transition: transform .3s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after {
  content: ""; position: absolute; inset: 50% 0; height: 2.5px; background: var(--coral); border-radius: 2px;
  transform: translateY(-50%);
}
.faq__q .plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] .plus::after { transform: translateY(-50%) rotate(0); }
.faq__a {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { min-height: 0; }
.faq__a p { color: var(--text-muted); font-size: var(--step-0); padding: 0 .3rem 1.2rem; }

/* 22. FINAL CTA ----------------------------------------------------------- */
.final-cta {
  background: var(--ink);
  color: var(--text-onink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.final-cta__note { margin-top: 1.2rem; color: rgba(243,236,221,.6); font-size: var(--step--1); }
.final-cta .decor { opacity: .3; color: var(--gold); }

/* 23. FOOTER -------------------------------------------------------------- */
.footer {
  background: #10182b;
  color: rgba(243,236,221,.78);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 780px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__top { grid-template-columns: 1fr; text-align: left; } }
.footer__brand .brand { color: #fff; }
.footer__brand p { margin-top: .8rem; font-size: var(--step--1); color: rgba(243,236,221,.6); max-width: 30ch; }
.footer h4 {
  color: #fff; font-family: var(--font-sans); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer a { color: rgba(243,236,221,.78); text-decoration: none; font-size: var(--step--1); }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(243,236,221,.12);
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
  font-size: var(--step--1); color: rgba(243,236,221,.55);
}
.footer__egg { cursor: pointer; user-select: none; }
.footer__egg .egg-msg {
  display: inline-block; color: var(--gold); font-style: italic;
  max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  opacity: 0; transition: max-width .5s var(--ease), opacity .4s var(--ease);
}
.footer__egg.is-open .egg-msg { max-width: 340px; opacity: 1; margin-left: .4ch; }

/* 24. PLACEHOLDERS (graceful missing-image art) -------------------------- */
/* Shown wherever a real screenshot/photo has not been added yet. */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  color: var(--teal-deep);
  background:
    linear-gradient(135deg, rgba(63,158,151,.10), rgba(176,163,209,.12)),
    var(--surface-2);
  position: relative;
  overflow: hidden;
  padding: 1rem;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(22,32,58,.035) 0 2px, transparent 2px 12px);
}
.ph__inner { position: relative; display: grid; gap: .5rem; justify-items: center; }
.ph__icon { width: 46px; height: 46px; color: var(--teal); opacity: .8; }
.ph__label { font-weight: 700; font-size: var(--step--1); color: var(--ink); }
.ph__sub { font-size: .74rem; color: var(--text-muted); }
.ph--tall { min-height: 100%; }

/* When a real <img> is present it stacks over the placeholder;
   if it fails to load, JS reveals the placeholder underneath. */
.media { position: relative; width: 100%; height: 100%; }
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.media > .ph { position: absolute; inset: 0; z-index: 0; }
.media.img-failed > img { display: none; }

/* 25. UTILITY PAGES (privacy / beta-terms / 404) ------------------------- */
.doc {
  max-width: 760px;
  margin: clamp(2rem, 6vw, 4rem) auto;
  padding-inline: var(--gutter);
}
.doc h1 { font-size: var(--step-3); }
.doc .updated { color: var(--text-muted); font-size: var(--step--1); margin-top: .4rem; }
.doc h2 { font-size: var(--step-2); margin-top: 2rem; }
.doc p, .doc li { color: var(--text); font-size: var(--step-0); margin-top: .8rem; line-height: 1.7; }
.doc ul { padding-left: 1.3rem; }
.doc .note {
  background: var(--surface-2); border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem; border-radius: 8px; margin-top: 1.4rem;
  font-size: var(--step--1); color: var(--text-muted);
}
.doc a.back { display: inline-block; margin-top: 2.5rem; font-weight: 700; }

.error-page {
  min-height: 78vh;
  display: grid; place-items: center; text-align: center;
  padding: var(--gutter);
}
.error-page__art { width: min(300px, 70vw); margin-inline: auto; color: var(--teal-deep); }
.error-page h1 { font-size: var(--step-4); margin-top: 1rem; }
.error-page p { color: var(--text-muted); font-size: var(--step-1); margin-top: .8rem; max-width: 40ch; margin-inline: auto; }
.error-page .btn { margin-top: 1.6rem; }
.error-page__code { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 700; letter-spacing: .1em; }

/* 26. MOTION, REVEALS & REDUCED-MOTION ----------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll-reveal: elements start hidden, JS adds .in-view */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* Selection colour */
::selection { background: rgba(216,164,74,.35); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .float-card, .mock-ui__caret, .mock-ui__status .pulse { animation: none !important; }
  .app-window { transform: none !important; }
}
