/* ============================================================
   Clean Reader — Wero-style editorial system, blue-dominant
   Reference anatomy: flat teal paper, centered sticky logo pill,
   bottom dock pill nav, corner pills, top progress bar, hard
   offset shadows (0 6px 0 ink), 1.5px ink borders, giant 900-wt
   uppercase display type at 0.86 line-height.
   ============================================================ */

:root {
  --ink: #042f2e;
  --paper: #e6faf6;            /* flat light-blue section bg (their flat yellow) */
  --blue: #0f766e;             /* electric primary */
  --blue-deep: #115e59;
  --sky: #5eead4;
  --ice: #ccfbf1;
  --mint: #2dd4bf;             /* secondary accent, used sparingly */
  --hl: #99f6e4;               /* highlight box behind key phrases */
  --white: #ffffff;

  --grad-hero: #e6faf6;              /* flat — no gradient */
  --grad-card-a: #ffffff;
  --grad-card-b: #ccfbf1;
  --grad-card-c: #0f766e;

  --border: 1.5px solid var(--ink);
  --shadow-hard: 0 6px 0 0 var(--ink);
  --shadow-hard-sm: 0 4px 0 0 var(--ink);
  --radius-pill: 44px;
  --radius-card: 20px;

  --font-display: "Hanken Grotesk", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

/* ---------- type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 22px;
}

/* ---------- scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
  z-index: 300;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- topbar: centered sticky logo pill ---------- */
.topbar {
  position: fixed;
  top: 14px; left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
}
.logo-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.logo-pill svg { width: 26px; height: 26px; display: block; }
.topbar.is-stuck .logo-pill {
  background: var(--ice);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
}

/* ---------- bottom dock nav ---------- */
.dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard);
  padding: 8px 12px;
  white-space: nowrap;
}
.dock a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 30px;
  color: var(--ink);
}
.dock a.is-active { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.dock a:hover { background: var(--ice); }

/* ---------- corner pills ---------- */
.corner {
  position: fixed;
  bottom: 22px;
  z-index: 199;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ice);
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard-sm);
  padding: 10px 10px 10px 20px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.corner--left { left: 26px; }
.corner--right { right: 26px; padding: 10px; }

/* small circular arrow button used inside pills */
.circle-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.circle-btn svg { width: 14px; height: 14px; display: block; }

/* ============================================================
   HERO
   ============================================================ */
/* flat paper behind hero + statement */
.grad-canvas { background: var(--paper); }

.hero {
  position: relative;
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px 20px 120px;
}

.hero-title {
  position: relative;
  z-index: 5;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.028em;
  line-height: 0.86;
  font-size: clamp(60px, 13vw, 200px);
  color: var(--ink);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  will-change: transform;
}

/* rotated circular badge, top right */
.badge {
  position: absolute;
  z-index: 6;
  top: 12vh;
  right: 8vw;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--mint);
  border: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.02;
  text-align: center;
  transform: rotate(9deg);
}
.badge .circle-btn { width: 28px; height: 28px; }

/* decorative hands rising from bottom */
.hand {
  position: absolute;
  bottom: -4vh;
  z-index: 4;
  width: clamp(180px, 26vw, 420px);
  pointer-events: none;
}
.hand--l { left: 2vw; }
.hand--r { right: 2vw; }

/* scroll pill bottom center of hero */
.scroll-pill {
  position: absolute;
  z-index: 6;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard-sm);
  padding: 10px 10px 10px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.scroll-pill .circle-btn { background: var(--ice); }

/* ============================================================
   STATEMENT — scrubbed word-by-word reveal + paper plane
   ============================================================ */
.statement {
  position: relative;
  background: transparent;
  padding: 16vh 6vw 20vh;
  overflow: hidden;
}
.statement__text {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(38px, 6.4vw, 96px);
}
.statement__text .w {
  display: inline-block;
  opacity: 0.14;
  margin-right: 0.22em;
}
.statement__sticker {
  display: inline-flex;
  vertical-align: middle;
  width: 0.9em; height: 0.9em;
  border-radius: 22%;
  background: var(--mint);
  border: var(--border);
  align-items: center;
  justify-content: center;
  transform: rotate(-7deg);
  margin-right: 0.22em;
}
.statement__sticker svg { width: 58%; height: 58%; }
.statement__plane {
  position: absolute;
  width: clamp(90px, 10vw, 170px);
  left: 8vw;
  bottom: 12vh;
  z-index: 3;
  pointer-events: none;
}
.statement__tag {
  position: absolute;
  left: 6vw;
  bottom: 5vh;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

/* ============================================================
   STATEMENT BLOCK — flat panel (no concentric circles)
   ============================================================ */
.statement-block {
  position: relative;
  min-height: auto;
  background: var(--paper);
  border-top: var(--border);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14vh 6vw;
}
.statement-block__inner {
  max-width: 900px;
  text-align: center;
}
.mono-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 20px;
}
.statement-block__title {
  font-size: clamp(36px, 5.5vw, 72px);
  margin-bottom: 22px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.statement-block__copy {
  max-width: 520px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.5;
}

/* ============================================================
   CARDS — sticky left heading + tilted stacked cards
   ============================================================ */
.cards {
  position: relative;
  background: var(--paper);
  padding: 14vh 6vw 16vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.25fr);
  gap: 5vw;
}
.cards__head { position: relative; }
.cards__head-inner { position: sticky; top: 24vh; }
.cards__head h2 { font-size: clamp(40px, 5vw, 84px); }
.cards__stack { display: flex; flex-direction: column; gap: 7vh; }

.card {
  position: relative;
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 34px 34px 38px;
  color: var(--ink);
  will-change: transform;
}
.card--a { background: var(--grad-card-a); }
.card--b { background: var(--grad-card-b); }
.card--c { background: var(--grad-card-c); color: var(--white); }
.card--c .card__num { color: var(--ink); }
.card--d { background: var(--white); }

.card__num {
  position: absolute;
  top: -22px; left: -22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
}
.card__icon { display: block; width: 60px; height: 60px; margin-bottom: 20px; }
.card__icon svg { width: 100%; height: 100%; display: block; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.card p { font-size: 16.5px; }

/* ============================================================
   HOW — numbered steps (horizontal cards, clean layout)
   ============================================================ */
.how {
  background: var(--paper);
  padding: 12vh 6vw 14vh;
}
.how h2 {
  text-align: center;
  font-size: clamp(36px, 5vw, 72px);
  max-width: 1000px;
  margin: 0 auto 7vh;
}
.how__steps {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 28px 26px 30px;
  min-height: 200px;
}
.step__num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* keep title on few clean lines — no mid-word crush */
  hyphens: none;
  word-break: normal;
}
.step p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.78;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.kbd {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--ice);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.88em;
}

/* ============================================================
   FAQ — giant highlighted question + details
   ============================================================ */
.faq { background: var(--paper); padding: 16vh 6vw; position: relative; }
.faq__bigq {
  text-align: center;
  font-size: clamp(38px, 6vw, 92px);
  max-width: 1150px;
  margin: 0 auto 10vh;
}
.faq__bigq .hl {
  position: relative;
  display: inline-block;
  padding: 0 0.12em;
  z-index: 1;
}
.faq__bigq .hl::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.06em;
  background: var(--hl);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__bigq .hl.is-on::before { transform: scaleX(1); }
.faq h2 { text-align: center; font-size: clamp(30px, 3.6vw, 54px); margin-bottom: 6vh; }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__list details {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 18px;
  padding: 6px 26px;
}
.faq__list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .circle-btn { transition: transform 0.25s; }
.faq__list details[open] summary .circle-btn { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 22px; color: #3c3c46; }

/* ============================================================
   INSTALL
   ============================================================ */
.install { background: var(--paper); padding: 16vh 6vw 20vh; text-align: center; }
.install h2 { font-size: clamp(40px, 6vw, 96px); margin-bottom: 30px; }
.install > p { max-width: 520px; margin: 0 auto 36px; }
.btn-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--blue);
  color: var(--white);
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard);
  padding: 20px 20px 20px 34px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-big:hover { transform: translateY(3px); box-shadow: 0 3px 0 0 var(--ink); }
.btn-big .circle-btn { width: 44px; height: 44px; }
.btn-big.is-pending {
  background: var(--ice);
  color: var(--ink);
  opacity: 0.75;
  cursor: not-allowed;
}
.btn-big.is-pending:hover { transform: none; box-shadow: var(--shadow-hard); }
.btn-big.is-pending .circle-btn { background: var(--white); }

.install__note { font-size: 14px; color: #4a4a55; margin-top: 22px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 18px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.status-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5a623;
  flex: 0 0 auto;
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(245, 166, 35, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-pill__dot { animation: none; }
}

/* ============================================================
   FOOTER — bento cards + massive wordmark
   ============================================================ */
.site-footer { background: var(--paper); padding: 8vh 3vw 130px; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8vh;
}
.bento a {
  text-decoration: none;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(17px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  background: var(--white);
  transition: transform 0.18s;
}
.bento a:hover { transform: translateY(-4px); }
.bento a.tile--grad-a { background: var(--grad-card-a); }
.bento a.tile--grad-b { background: var(--grad-card-b); }
.bento a.tile--grad-c { background: var(--grad-card-c); color: var(--white); }
.bento .circle-btn { align-self: flex-end; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.045em;
  line-height: 0.8;
  font-size: clamp(64px, 12vw, 225px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.footer-legal {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  margin-top: 26px;
  color: #4a4a55;
}
.footer-legal a { color: inherit; }

/* ============================================================
   INNER PAGES (about / guides / privacy / terms)
   ============================================================ */
.page-hero {
  background: var(--paper);
  padding: 22vh 6vw 12vh;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1.display, .page-hero .display { font-size: clamp(44px, 8vw, 130px); }
.page-hero .lede { max-width: 640px; margin: 22px auto 0; font-size: 19px; }

.prose { padding: 10vh 6vw 14vh; background: var(--paper); }
.prose .wrap--narrow, .wrap--narrow { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(26px, 3.2vw, 44px);
  margin: 52px 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose code {
  font-family: ui-monospace, Menlo, monospace;
  background: var(--ice);
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.88em;
}
.prose .btn-big { margin-top: 8px; }

/* legacy helper names still used by inner pages */
.reveal { opacity: 1; }
.hero-line, .hero-fade { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .cards__head-inner { position: static; margin-bottom: 6vh; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .hand { width: 34vw; bottom: -2vh; }
  .badge { width: 104px; height: 104px; font-size: 13px; top: 10vh; right: 5vw; }
}
@media (max-width: 640px) {
  .corner { display: none; }
  .dock { max-width: 94vw; overflow-x: auto; }
  .dock a { padding: 8px 10px; font-size: 14px; }
  .scroll-pill { bottom: 84px; font-size: 13px; }
  .how__steps { grid-template-columns: 1fr; max-width: 480px; }
  .step { min-height: 0; }
  .statement__plane { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .statement-block__inner { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
  .faq__bigq .hl::before { transform: scaleX(1); }
}
