/* ============================================================
   Maple — Home (editorial "town" style)
   Light slab-serif display, warm paper, ink buttons, hairlines.
   ============================================================ */
:root {
  --frame: #151613;
  --paper: #FDFDFC;
  --paper-2: #F6F5F1;
  --ink: #1C1B1B;
  --ink-2: #3A3835;
  --muted: #6F6B65;
  --line: #E7E4DE;
  --line-strong: #D6D2CA;
  --mark-bg: #F4D58A;
  --mark-ink: #9A3412;
  --forest: #2F4A3A;
  --sky: #DCEBF7;
  --radius: 6px;
  --radius-lg: 14px;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Announcement ---------- */
.announce {
  color: #FAFAF9;
  font-size: 14px;
  padding: 11px var(--gutter);
  text-align: center;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; opacity: .8; margin-left: 6px; }
.announce a:hover { opacity: 1; }

/* ---------- Paper sheet ---------- */
.sheet {
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: clip;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500;
  font-size: 15px; line-height: 1;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: rgba(255,255,255,.96); }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { background: var(--paper-2); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost-dark { border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 18px; }

/* ---------- Type ---------- */
.display, .h2, .h3, .slab-p {
  font-family: var(--slab);
  font-weight: 200;
  color: var(--ink);
}
.display {
  font-size: clamp(52px, 9.2vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h2 {
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; margin: 0; font-weight: 300; }
.slab-p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 300; color: var(--ink-2); margin: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  background: var(--paper);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mark-ink); }
mark, .mark {
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0 .18em;
  border-radius: 3px;
}
/* Hero highlight: fills like a highlighter pen as the visitor scrolls (progress set by JS in --mark-p) */
.hero-sub mark {
  --mark-p: 0;
  background: linear-gradient(var(--mark-bg), var(--mark-bg)) no-repeat 0 0;
  background-size: calc(var(--mark-p) * 100%) 100%;
  color: inherit;
  transition: color .3s ease;
}
.hero-sub mark.is-full { color: var(--mark-ink); }
@media (prefers-reduced-motion: reduce) {
  .hero-sub mark { --mark-p: 1 !important; color: var(--mark-ink); }
}
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero .display .line { display: flex; align-items: center; flex-wrap: wrap; column-gap: .22em; }
.hero .display .line.right { justify-content: flex-end; }
.tile {
  display: inline-block;
  width: 1.55em; height: 1.08em;
  border-radius: 10px;
  overflow: hidden;
  vertical-align: middle;
  flex: none;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  rotate: -2deg;
}
.tile.tall { width: 1.05em; height: 1.25em; rotate: 2.5deg; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.art svg { width: 100%; height: 100%; display: block; letter-spacing: 0; font-weight: 400; line-height: normal; }
.word { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.hero-sub { font-family: var(--slab); font-weight: 300; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; max-width: 560px; margin: 0; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-note { width: 100%; font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✳ "; color: var(--mark-ink); }

/* ---------- Product demo stage ---------- */
.demo-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(24px, 6vw, 80px) clamp(12px, 6vw, 80px) 0;
  display: block;
  background:
    radial-gradient(60% 80% at 15% 10%, rgba(244,213,138,.55), transparent 60%),
    radial-gradient(70% 90% at 90% 20%, rgba(220,235,247,.95), transparent 65%),
    radial-gradient(80% 70% at 50% 110%, rgba(207,227,212,.9), transparent 60%),
    #EFEBE2;
}
.demo-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(28,27,27,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.mx {
  position: relative; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 250px 1fr;
  background: #FAFAF8; color: #1F1F1F;
  border-radius: 16px 16px 0 0; overflow: hidden;
  border: 1px solid rgba(28,27,27,.12); border-bottom: 0;
  box-shadow: 0 40px 90px -30px rgba(40,35,20,.4);
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; line-height: 1.5;
  height: 640px;
}
.mx svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mx-side { background: #F7F6F3; border-right: 1px solid #ECEAE5; padding: 18px 14px 14px; display: flex; flex-direction: column; min-height: 0; }
.mx-lights { display: flex; gap: 8px; padding-left: 4px; }
.mx-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mx-lights i:nth-child(2) { background: #FEBC2E; } .mx-lights i:nth-child(3) { background: #28C840; }
.mx-brand { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; padding: 18px 10px 14px; }
.mx-nav { display: grid; gap: 2px; margin-bottom: 18px; }
.mx-nav span { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #2B2B2B; }
.mx-beta { margin-left: auto; font-weight: 500; font-size: 11.5px; background: #D9E7F7; color: #2C4A6B; padding: 2px 7px; border-radius: 6px; }
.mx-label { font-size: 12.5px; color: #8A8780; padding: 6px 10px 4px; }
.mx-list { display: grid; gap: 1px; margin-bottom: 12px; }
.mx-list span { padding: 5px 10px; border-radius: 8px; color: #2B2B2B; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-coll span { position: relative; padding-left: 16px; }
.mx-coll span::before { content: ""; position: absolute; left: 9px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: #DAD7D0; }
.mx-list .on { background: #ECEAE5; }
.mx-ctx { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border: 1px solid #E4E1DB; background: #FAFAF8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.mx-ctx i { width: 8px; height: 8px; border-radius: 50%; background: #9C9890; }
.mx-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; font-size: 13.5px; }
.mx-user small { display: block; color: #8A8780; font-size: 12px; line-height: 1.2; }
.mx-av { width: 32px; height: 32px; border-radius: 50%; background: #ECEAE5; display: grid; place-items: center; font-weight: 500; }
.mx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mx-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 10px; font-weight: 500; }
.mx-icons { display: flex; gap: 14px; color: #555; }
.mx-icons svg { width: 17px; height: 17px; }
.mx-thread { flex: 1; overflow: hidden; padding: 10px clamp(18px, 4vw, 56px) 0; display: flex; flex-direction: column; gap: 22px;
  mask-image: linear-gradient(to bottom, #000 88%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.mx-q { align-self: flex-end; background: #EFEEEA; border-radius: 12px; padding: 9px 14px; max-width: 80%; }
.mx-a { display: grid; gap: 12px; max-width: 640px; color: #262626; }
.mx-a p { margin: 0; }
.mx-steps { display: inline-flex; align-items: center; gap: 4px; color: #77746D; font-size: 13.5px; }
.mx-steps svg { width: 13px; height: 13px; }
.mx-fb { display: flex; gap: 14px; color: #A6A39C; padding-top: 2px; }
.mx-fb svg { width: 14px; height: 14px; }
.mx-input { margin: 8px clamp(18px, 4vw, 56px) 18px; border: 1px solid #E4E1DB; background: #FCFCFB; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.mx-ph { color: #9C9890; display: block; margin-bottom: 18px; }
.mx-tools { display: flex; justify-content: space-between; align-items: center; }
.mx-tools > div { display: flex; gap: 8px; align-items: center; }
.mx-tb { width: 32px; height: 32px; border: 1px solid #E4E1DB; border-radius: 8px; display: grid; place-items: center; color: #444; background: #fff; }
.mx-right { color: #9C9890; gap: 14px !important; }
.mx-go { width: 32px; height: 32px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
/* answer plays out when the section scrolls into view */
.demo-stage .s1, .demo-stage .s2, .demo-stage .s3, .demo-stage .s4, .demo-stage .s5, .demo-stage .s6, .demo-stage .s7, .demo-stage .s8, .demo-stage .s9 { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.demo-stage.visible .s1, .demo-stage.visible .s2, .demo-stage.visible .s3, .demo-stage.visible .s4, .demo-stage.visible .s5, .demo-stage.visible .s6, .demo-stage.visible .s7, .demo-stage.visible .s8, .demo-stage.visible .s9 { opacity: 1; transform: none; }
.demo-stage.visible .s1 { transition-delay: .4s; } .demo-stage.visible .s2 { transition-delay: 1s; }
.demo-stage.visible .s3 { transition-delay: 1.4s; } .demo-stage.visible .s4 { transition-delay: 2s; }
.demo-stage.visible .s5 { transition-delay: 2.5s; } .demo-stage.visible .s6 { transition-delay: 3s; }
.demo-stage.visible .s7 { transition-delay: 3.5s; } .demo-stage.visible .s8 { transition-delay: 4s; }
.demo-stage.visible .s9 { transition-delay: 4.5s; }
@media (prefers-reduced-motion: reduce) { .demo-stage .s1, .demo-stage .s2, .demo-stage .s3, .demo-stage .s4, .demo-stage .s5, .demo-stage .s6, .demo-stage .s7, .demo-stage .s8, .demo-stage .s9 { opacity: 1; transform: none; transition: none; } }
@media (max-width: 820px) {
  .mx { grid-template-columns: 1fr; height: 600px; font-size: 13.5px; }
  .mx-side { display: none; }
  .mx-tb:nth-child(n+3) { display: none; }
}

.spread { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.trust-line {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 11px;
  background: var(--paper);
}

/* ---------- Tabs (workflows) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: all .15s ease;
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.flow {
  display: grid; grid-template-columns: 380px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.flow-copy { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.flow-copy .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.flow-copy ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.flow-copy li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; color: var(--ink-2); }
.flow-copy li::before { content: "→"; color: var(--mark-ink); }
.flow-copy .chip { align-self: flex-start; margin-top: auto; }
.flow-visual { background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 44px); min-height: 420px; }
.flow-visual img { border-radius: 10px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.25), 0 0 0 1px var(--line); max-height: 560px; width: auto; }
.panel { display: none; }
.panel.is-active { display: grid; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.quote-card {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.quote-card blockquote { margin: 0; font-family: var(--slab); font-weight: 200; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.01em; }
.quote-card .who { font-size: 14px; color: var(--muted); text-align: right; }
.quote-card .who strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Integrations ---------- */
.int-bg { background: var(--paper-2); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.int-card {
  background: var(--paper);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 230px;
  transition: background .2s ease;
}
.int-card:hover { background: #fff; }
.int-card[hidden] { display: none; }
.int-top { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.int-top img { width: 28px; height: 28px; object-fit: contain; }
.int-card p { margin: 0; font-family: var(--slab); font-weight: 300; font-size: 16px; line-height: 1.45; color: var(--ink-2); flex: 1; }
.int-card .tag { align-self: flex-start; font-size: 12px; border: 1px solid var(--line-strong); padding: 4px 9px; border-radius: 4px; color: var(--ink-2); }
.center-row { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Routines ---------- */
.routine-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 40px; }
.prompt-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 18px;
  display: grid; gap: 14px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(0,0,0,.25);
}
.prompt-box label { font-size: 13px; font-weight: 500; color: var(--muted); }
.prompt-box textarea {
  width: 100%; min-height: 84px; resize: vertical;
  border: 0; outline: 0; background: transparent;
  font-family: var(--slab); font-weight: 300; font-size: 19px; line-height: 1.45; color: var(--ink);
}
.prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prompt-row .muted { font-size: 13px; }
.routine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.routine {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: grid; gap: 10px; align-content: start;
  background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}
.routine:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.routine .when { font-size: 12px; color: var(--mark-ink); font-weight: 500; letter-spacing: .02em; }
.routine h3 { margin: 0; font-family: var(--slab); font-weight: 400; font-size: 20px; letter-spacing: -0.005em; }
.routine p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 28px 28px 0 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--slab); font-weight: 200; font-size: 64px; line-height: 1; color: var(--line-strong); }
.step p { margin: 0; color: var(--muted); }
.kbd { display: inline-flex; gap: 6px; font-size: 13px; }
.kbd span { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 8px; background: var(--paper); font-weight: 500; }

/* ---------- Security (dark) ---------- */
.dark { background: var(--ink); color: #F4F3F0; }
.dark .h2, .dark .slab-p { color: #F4F3F0; }
.dark .slab-p { color: rgba(244,243,240,.72); }
.dark + .section { border-top: 0; }
.sec-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.sec-card { background: var(--ink); padding: 30px; display: grid; gap: 12px; align-content: start; min-height: 220px; }
.sec-card .ico { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.sec-card .ico svg { width: 18px; height: 18px; stroke: #F4D58A; fill: none; stroke-width: 1.6; }
.sec-card h3 { margin: 6px 0 0; font-family: var(--slab); font-weight: 300; font-size: 22px; color: #fff; }
.sec-card p { margin: 0; color: rgba(244,243,240,.62); font-size: 14.5px; }
.badges { display: flex; gap: 18px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.badges img { height: 52px; width: auto; opacity: .9; filter: grayscale(1) brightness(1.6); }
.badges span { font-size: 13px; color: rgba(244,243,240,.55); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #FAF5EA; }
.graph-panel svg { width: 100%; height: auto; display: block; }
.founder blockquote { margin: 0 0 24px; }
.founder blockquote p { margin: 0 0 18px; }
.sig { display: flex; align-items: center; gap: 12px; }
.sig .av { width: 44px; height: 44px; border-radius: 50%; background: var(--mark-bg); color: var(--mark-ink); display: grid; place-items: center; font-family: var(--slab); font-size: 20px; }
.sig strong { display: block; font-weight: 500; }
.sig span { font-size: 14px; color: var(--muted); }

/* ---------- Pricing (rendered by main.js) ---------- */
.billing { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px; font-size: 14px; }
.billing-toggle-label { color: var(--muted); cursor: default; }
.billing-toggle-label.active { color: var(--ink); font-weight: 500; }
.discount-badge { background: var(--mark-bg); color: var(--mark-ink); border-radius: 4px; padding: 2px 6px; font-size: 12px; margin-left: 4px; font-weight: 500; }
.billing-toggle-switch { width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-2); position: relative; padding: 0; }
.billing-toggle-slider { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s ease; }
.billing-toggle-switch.annual .billing-toggle-slider { transform: translateX(20px); }
.pricing-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pricing-tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 22px;
}
.pricing-tier.featured { border-color: var(--ink); box-shadow: 0 24px 60px -32px rgba(0,0,0,.35); }
.pricing-tier-badge-floating { position: absolute; top: -11px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.pricing-tier-name { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.pricing-tier-price-container { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pricing-tier-price { font-family: var(--slab); font-weight: 200; font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.pricing-tier-suffix { font-size: 13px; color: var(--muted); }
.pricing-tier-note { font-size: 12px; color: var(--mark-ink); margin-top: 8px; }
.pricing-tier-desc { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pricing-tier-features { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; align-content: start; }
.pricing-tier-features li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pricing-check { color: var(--forest); font-weight: 600; }
.pricing-tier-footer .btn { width: 100%; }
.pricing-tier .btn-filled, .pricing-tier .btn-primary { background: var(--ink); color: #fff; }
.pricing-tier .btn-ghost, .pricing-tier .btn-outline, .pricing-tier .btn-secondary { border-color: var(--line-strong); color: var(--ink); }
.pricing-tier .btn-ghost:hover { background: var(--paper-2); }
.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0;
  font-family: var(--slab); font-weight: 300; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink);
}
.faq-toggle-icon { font-family: var(--sans); font-weight: 300; font-size: 24px; transition: transform .25s ease; flex: none; }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > p { overflow: hidden; margin: 0; color: var(--muted); font-size: 15.5px; max-width: 640px; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-item.active .faq-answer > p { padding-bottom: 22px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: clamp(100px, 14vw, 200px) 0; }
.final .display { font-size: clamp(48px, 8vw, 116px); }
.final .display .tile { margin: 0 .1em; }
.final .btn { margin-top: 44px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(21,22,19,.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--radius-lg); padding: 32px; transform: translateY(10px); transition: transform .25s ease; }
.modal-overlay.active .modal-content { transform: none; }
.modal-content h3 { font-family: var(--slab); font-weight: 300; font-size: 32px; margin: 0 0 6px; letter-spacing: -0.01em; }
.modal-content > p { margin: 0 0 22px; color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.waitlist-form { display: grid; gap: 10px; }
.form-input { width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.form-input:focus { outline: none; border-color: var(--ink); }
.waitlist-form .btn { width: 100%; padding: 14px; }

/* ---------- Reveal ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .word, .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .spread, .routine-head, .sec-head, .founder, .faq-grid, .quote-card { grid-template-columns: 1fr; }
  .sec-actions { justify-content: flex-start; }
  .quote-card .who { text-align: left; }
  .routine-grid, .sec-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero .display .line.right { justify-content: flex-start; }
  .tile { border-radius: 7px; }
  .int-grid, .routine-grid, .sec-grid { grid-template-columns: 1fr; }
  .int-card { min-height: 0; }
  .flow-visual { min-height: 0; }
  .hero-foot { align-items: flex-start; }
  .btn-lg { padding: 14px 18px; font-size: 16px; }
}


/* Keep the dark frame behind the announcement bar (site.css sets a paper body background) */
html:has(body.home-page), html body.home-page { background-color: var(--frame); }
.announce { background: var(--frame); }
