/* Lantern marketing site: shared styles for / and /pilot/ */

:root {
  --paper: #F4E9D5;
  --paper-light: #FBF4E7;
  --parchment: #E7D5B8;
  --ink: #332B26;
  --ink-soft: #67584B;
  --ink-deep: #4F4339;
  --line: #BBA689;
  --lamp: #E0A04D;
  --lamp-pale: #F4D497;
  --berry: #9D4D55;
  --night: #1E2424;
  --night-ink: #F2E8D5;
  --note: #F1E5C9;
  --pencil: #6E6B64;

  --font-body: 'Baloo 2', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-wrap: break-word;
}

a { color: var(--berry); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper-light);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--paper-light); }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band-light {
  background: var(--paper-light);
  border-top: 2px solid var(--parchment);
  border-bottom: 2px solid var(--parchment);
}
.band-night { background: var(--night); color: var(--night-ink); }
.band-parchment { background: var(--parchment); }

.section { padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(56px, 9vw, 96px); }
.section-lg { padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(64px, 10vw, 112px); }
.section-md { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.section-sm { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px); }

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-20 { gap: 20px; }
.gap-22 { gap: 22px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 64px);
}
.row-48 { gap: 48px; }
.row-56 { gap: clamp(32px, 5vw, 56px); }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }

/* Flex children: basis from the design, always allowed to shrink to the phone width */
.col { min-width: 0; }
.basis-340 { flex: 1 1 340px; }
.basis-380 { flex: 1 1 380px; }
.basis-400 { flex: 1 1 400px; }
.basis-420 { flex: 1 1 420px; }
.basis-460 { flex: 1 1 460px; }
.basis-480 { flex: 1 1 480px; }
.basis-520 { flex: 2 1 520px; }

.measure { max-width: 760px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.grid-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.grid-steps-narrow { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* ---------- Type ---------- */

h1, h2, h3, p { margin: 0; }

.eyebrow {
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 700;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow-sm { font-size: clamp(15px, 2.2vw, 17px); }
.band-night .eyebrow { color: var(--lamp-pale); }

.h1 {
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h1-pilot { font-size: clamp(36px, 7.5vw, 60px); line-height: 1.03; max-width: 16em; }

.h2 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.h2-xl { font-size: clamp(34px, 6.5vw, 52px); line-height: 1.04; letter-spacing: normal; }
.h2-md { font-size: clamp(31px, 5.8vw, 46px); letter-spacing: normal; }
.h2-card { font-size: clamp(26px, 4vw, 32px); line-height: 1.15; letter-spacing: normal; }

.h3 { font-size: clamp(22px, 3.4vw, 26px); font-weight: 700; line-height: 1.2; }
.h3-sm { font-size: clamp(21px, 3.2vw, 24px); }
.h3-lg { font-size: clamp(25px, 4vw, 30px); }

.lede {
  font-size: clamp(19px, 2.8vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34em;
}
.lede-wide { line-height: 1.5; max-width: 36em; }

.body-lg { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.body-lg.loose { line-height: 1.55; }
.body-md { font-size: clamp(18px, 2.5vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.body { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.body-card { font-size: clamp(17px, 2.4vw, 19px); line-height: 1.5; color: var(--ink-soft); }
.small { font-size: 16px; color: var(--ink-soft); }
.on-parchment { color: var(--ink-deep); }

.prose-night {
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.55;
}
.highlight { color: var(--lamp-pale); font-weight: 600; }
.big-answer { font-size: clamp(28px, 5vw, 34px); font-weight: 800; color: var(--lamp-pale); }

.step-num { font-size: 16px; font-weight: 800; color: var(--berry); }

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

.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(16px, 3vw, 28px);
  font-size: 17px;
  font-weight: 600;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.pill {
  background: var(--ink);
  color: var(--paper-light) !important;
  padding: 10px 20px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a.pill:hover { text-decoration: none; background: var(--berry); }

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

.hero {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(56px, 9vw, 96px);
}
.hero-pilot { padding-bottom: clamp(48px, 8vw, 80px); }

.book-wrap { display: flex; justify-content: center; }

.book {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  background: var(--paper-light);
  border: 2px solid var(--line);
  border-radius: 6px 22px 22px 6px;
  box-shadow: 0 2px 0 var(--parchment), 0 24px 48px -24px rgba(51, 43, 38, 0.35);
  padding: clamp(36px, 7vw, 48px) clamp(22px, 6vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.book-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.book-line { font-size: clamp(26px, 5.5vw, 34px); line-height: 1.2; font-weight: 600; }
.book-ask { font-size: clamp(18px, 3vw, 20px); color: var(--ink-soft); }
.book-answer {
  align-self: flex-start;
  padding: 8px 18px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
}
.margin-note {
  transform: rotate(-4deg);
  align-self: flex-end;
  padding: 10px 14px;
  background: var(--note);
  border-radius: 4px;
}
.margin-note p {
  font-family: var(--font-hand);
  font-size: clamp(26px, 5vw, 32px);
  color: var(--pencil);
  text-decoration: line-through;
  text-decoration-color: rgba(110, 107, 100, 0.6);
  text-decoration-thickness: 3px;
}
.book-badge {
  position: absolute;
  top: -26px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lamp-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Cards ---------- */

.card-step {
  background: var(--paper);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-outline {
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-fill {
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-ruled {
  border-top: 3px solid var(--lamp);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Confidence path ---------- */

.path-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 200px;
}
.path-bars div { border-radius: 10px 10px 4px 4px; background: var(--parchment); }
.path-bars .pale { background: var(--lamp-pale); }
.path-bars .lit { background: var(--lamp); }
.path-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Never list ---------- */

.never-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px 40px;
}
.never-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: clamp(18px, 2.6vw, 20px);
  line-height: 1.45;
  padding: 16px 0;
  border-bottom: 2px solid var(--parchment);
}
.never-list svg { flex: none; margin-top: 2px; }

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

.btn {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  padding: 12px 26px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: var(--lamp-pale); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper-light); }
.btn-ink:hover { background: var(--berry); color: var(--paper-light); }
.btn-wide { padding: 14px 28px; }
.btn-cta { align-self: flex-start; padding: 14px 28px; }

/* ---------- Forms ---------- */

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.form-inline .field { flex: 1 1 260px; }
.form-hero { margin-top: 8px; }
.form-hero .field { flex-basis: 280px; }
.form-inline .btn { flex: 0 1 auto; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 700; }
.optional { font-weight: 500; color: var(--ink-soft); }

.input {
  font-family: inherit;
  font-size: 18px;
  padding: 12px 16px;
  min-height: 52px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper-light);
  color: var(--ink);
}
.input:focus-visible { outline: 3px solid var(--berry); outline-offset: 1px; border-color: var(--ink); }
textarea.input { resize: vertical; min-height: 0; }
select.input { appearance: auto; }

.form-error {
  flex-basis: 100%;
  font-size: 16px;
  color: var(--berry);
  font-weight: 600;
}
.form-error:empty { display: none; }

.form-thanks {
  font-size: clamp(18px, 2.6vw, 20px);
  line-height: 1.5;
  font-weight: 600;
}
.form-thanks:empty { display: none; }
.form-thanks strong { display: block; font-size: clamp(22px, 3.4vw, 26px); font-weight: 800; }
.form-thanks-card {
  background: var(--paper-light);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-footer-rule { border-top: 2px solid var(--parchment); }
.site-footer {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  font-size: 16px;
  color: var(--ink-soft);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

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