/* RouteDrop — shared stylesheet
   Palette & type per brand-identity.md. ~80% paper/ink, ~15% blue, ~5% orange. */

:root {
  --ink: #101828;
  --blue: #2563EB;
  --blue-hover: #1D4FD8;
  /* orange fails AA at 3.25:1 on paper — decorative/large use only, never body text */
  --orange: #F4552B;
  --paper: #FAFAF7;
  --slip: #EEF1F4;
  --green: #12885A;
  --gray: #5D6B7E;
  --line: #E1E5EB;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--blue); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.wordmark .drop {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.14em;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:not(.btn):hover { color: var(--blue); }

/* Phone: logo + CTA only. Pricing/FAQ stay in the footer. */
@media (max-width: 640px) {
  .site-header .container {
    gap: 12px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-header nav { gap: 0; }
  .site-header nav a:not(.btn) { display: none; }
  .wordmark { font-size: 1.3rem; }
  /* Hero already has the solid CTA. Header stays tappable, not a second pill. */
  .site-header .btn,
  .site-header .btn-small {
    background: none;
    color: var(--blue);
    padding: 10px 4px;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
  }
  .site-header .btn:hover,
  .site-header .btn-small:hover {
    background: none;
    color: var(--blue-hover);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 6px;
}

.btn-ghost:hover { color: var(--ink); }

.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; }

.hero .container {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .hero { padding: 84px 0 96px; }
}

.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.55rem, 9vw, 4.05rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 11ch;
}

.subhead { font-size: 1.15rem; max-width: 34em; }

.subhead .explainer {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.subhead-body { color: var(--gray); }

.hero-cta { margin-top: 26px; }

.trust-line {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--gray);
}

/* Hero visual: the filled-in face slip is the product */

.hero-visual { position: relative; }

.slip-stack {
  position: relative;
  max-width: 420px;
}

.slip-sheet {
  position: absolute;
  inset: 10px 12px auto 12px;
  height: 92%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px 2px 4px 4px;
  box-shadow: 0 1px 0 rgba(16,24,40,0.04);
}
.slip-back { transform: rotate(-2.4deg); top: 18px; }
.slip-mid { transform: rotate(1.6deg); top: 10px; opacity: 0.95; }

.hero-slip {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(16,24,40,0.015) 0 1px,
      transparent 1px 4px
    ),
    #fffef8;
  border: 1.5px solid #1a2433;
  border-radius: 2px 2px 3px 3px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.slip-perf {
  height: 10px;
  margin: -8px -8px 14px;
  background-image: radial-gradient(circle at 8px 5px, var(--paper) 4px, transparent 4.5px);
  background-size: 16px 10px;
  background-repeat: repeat-x;
  border-bottom: 1px dashed #c5ccd6;
}

.slip-mark {
  font-family: var(--font-head);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  margin: 0 0 2px;
}

.slip-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 16px;
}

.hero-slip dl { margin: 0; }
.slip-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #e6e0d4;
  align-items: baseline;
}
.slip-row:last-child { border-bottom: none; }
.slip-row dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.slip-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 500;
  text-align: right;
}

.slip-foot {
  font-size: 0.72rem;
  color: #889;
  margin: 14px 0 0;
}

.hero-ready {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gray);
  margin: 14px 4px 0;
  line-height: 1.5;
}
.hero-ready .ok { color: var(--green); font-weight: 500; }

.hero-slip .fill { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slip .fill {
    opacity: 0;
    animation: slip-fill 0.35s ease-out forwards;
  }
  .hero-slip .d1 { animation-delay: 0.25s; }
  .hero-slip .d2 { animation-delay: 0.5s; }
  .hero-slip .d3 { animation-delay: 0.75s; }
  .hero-slip .d4 { animation-delay: 1s; }
  .hero-slip .d5 { animation-delay: 1.25s; }
  .hero-slip .d6 { animation-delay: 1.5s; }
}

@keyframes slip-fill {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
  .hero .container {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-copy .subhead-body { display: none; }
  .hero-cta { margin-top: 18px; }
  .slip-stack { max-width: none; }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

section h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.8em;
}

.route-divider {
  border: none;
  border-top: 2px dashed #C9D1DB;
  max-width: 1080px;
  margin: 0 auto;
  width: calc(100% - 40px);
}

/* Plain-words explainer */

.tldr-lede {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.4;
  max-width: 26em;
}

.tldr p:last-child { color: var(--gray); margin: 0; }

/* Problem / ritual list */

.ritual {
  list-style: none;
  counter-reset: ritual;
  margin: 28px 0;
  padding: 0;
}

.ritual li {
  counter-increment: ritual;
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  grid-template-areas: "num step tag";
  column-gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}

.ritual li::before {
  content: counter(ritual, decimal-leading-zero);
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--blue);
  padding-top: 2px;
}

.ritual .step { grid-area: step; }

.ritual .tag {
  grid-area: tag;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 5px;
}

.ritual li.gone .tag { color: var(--green); }
.ritual li.yours .tag { color: var(--gray); }

@media (max-width: 560px) {
  .ritual li {
    grid-template-columns: 3.2rem 1fr;
    grid-template-areas:
      "num tag"
      "num step";
    row-gap: 4px;
  }
  .ritual .tag { padding-top: 4px; justify-self: start; }
}

.problem-closer {
  margin-top: 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}

/* How it works cards */

.cards {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 820px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
}

.card .card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}

.card h3 { font-size: 1.25rem; }

.card p { margin: 0; color: var(--gray); font-size: 0.98rem; }

.card p strong { color: var(--ink); }

/* Proof section */

.proof { background: var(--slip); }

.proof-blocks { display: grid; gap: 26px; }

@media (min-width: 820px) {
  .proof-blocks { grid-template-columns: repeat(3, 1fr); }
}

.proof-block {
  border-left: 3px solid var(--blue);
  padding-left: 18px;
}

.proof-block p { margin: 0; font-size: 0.98rem; }

.proof-block .stat {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Who it's for */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 500;
  font-size: 0.95rem;
}

.who-line { color: var(--gray); margin: 0; }

/* ---------- Waitlist ---------- */

.waitlist { background: var(--slip); padding-bottom: 88px; }

.waitlist h2 { max-width: 22em; }

.pricing-anchor {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.form-microcopy {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.form-card {
  background: #fffef8;
  border: 1.5px solid #1a2433;
  border-radius: 4px;
  padding: 30px 26px;
  max-width: 640px;
  box-shadow: 0 12px 32px rgba(16,24,40,0.08);
}

.form-card label,
.form-card legend {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 8px;
  padding: 0;
}

.form-card .field { margin-bottom: 22px; }

.form-card input[type="email"],
.form-card input[type="text"],
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #C9D1DB;
  border-radius: 8px;
  padding: 13px 14px;
}

.form-card textarea { min-height: 92px; resize: vertical; }

.form-card input.mono-input { font-family: var(--font-mono); }

.field-error {
  color: #B42318;
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.form-card fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.option-list { display: flex; flex-direction: column; gap: 8px; }

.option-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.98rem;
  margin: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.option-list label:has(input:checked) {
  border-color: var(--blue);
  background: #F2F6FE;
}

.option-list input { margin-top: 4px; accent-color: var(--blue); }

.step2-head { font-size: 1.35rem; margin-bottom: 4px; }

.step2-sub { color: var(--gray); font-size: 0.95rem; margin-bottom: 24px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Success / error states */

.form-result h3 { font-size: 1.4rem; }

.form-result.success h3::before {
  content: "✓ ";
  color: var(--green);
}

.form-result p { margin: 0; color: var(--gray); }

[hidden] { display: none !important; }

/* Honeypot fields — off-screen, unfocusable, invisible to humans. Not
   display:none (some bots skip those) but fully removed from the layout and
   the a11y tree. A real user can never fill these; a bot that does is dropped. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Pricing page ---------- */

.page-head { padding: 60px 0 20px; }

.page-head .kicker { margin-bottom: 10px; }

.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  letter-spacing: -0.02em;
}

.page-head .subhead { color: var(--gray); font-size: 1.08rem; max-width: 44em; }

.tiers {
  display: grid;
  gap: 20px;
  padding: 28px 0 40px;
}

@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.tier {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier.recommended { border-color: var(--blue); }

.tier .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier h2 { font-size: 1.3rem; margin-bottom: 4px; }

.tier .price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 6px 0 2px;
}

.tier .price small { font-size: 1rem; color: var(--gray); }

.tier .tag,
.tier .tier-line {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.tier ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.tier ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.97rem;
}

.tier ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}

.tier .btn { text-align: center; }

.tier-microcopy {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

.pricing-footnote {
  max-width: 720px;
  color: var(--gray);
  font-size: 0.95rem;
  padding-bottom: 64px;
}

/* ---------- Privacy page ---------- */

.privacy-body { padding: 0 0 72px; max-width: 720px; }

.privacy-body h2 { font-size: 1.3rem; margin-top: 2em; }

.dateline {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--gray);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C4CBD6;
  padding: 44px 0 36px;
  font-size: 0.93rem;
  position: relative;
}

/* barcode motif — a quiet nod to the mailing statement */
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 3px,
    transparent 3px 7px,
    var(--blue) 7px 12px,
    transparent 12px 15px
  );
  opacity: 0.55;
}

.site-footer .footer-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.site-footer a { color: #fff; }

.site-footer .footer-legal { max-width: 46em; }

.site-footer .footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 18px 0 0;
  color: #9AA4B2;
}

/* --- FAQ page --- */
.faq-list { padding: 20px 0 70px; }

.faq-item { margin: 0 0 36px; }

.faq-item h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.faq-item p { color: var(--gray); max-width: 44em; margin: 0 0 12px; }

.faq-item p strong { color: var(--ink); }

.faq-cta { margin: 44px 0 0; }
