/* Next & When site styles. Shared by every page in site/. Organized by section. */

/* ===== Archivo (brand font) =====
   Self-hosted variable font (Latin characters, weights 400 to 900, widths 62% to 125%), so pages load no files from Google.
   Archivo is licensed under the SIL Open Font License. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Brand ampersand =====
   The brand "&" is Montserrat, not Archivo (Archivo's "&" reads as a backwards 3).
   These files hold only the "&" glyph (U+0026), self-hosted, in a semi-bold weight for body text and ExtraBold for headings and buttons, so every other character
   still comes from Archivo. Montserrat is licensed under the SIL Open Font License. */
@font-face {
  font-family: "Brand Ampersand";
  src: url("/assets/fonts/montserrat-ampersand-600.woff2") format("woff2");
  font-weight: 100 699;
  font-display: swap;
  unicode-range: U+0026;
}
@font-face {
  font-family: "Brand Ampersand";
  src: url("/assets/fonts/montserrat-ampersand-800.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0026;
}

/* ===== Brand tokens: change colors, fonts, and sizes here only ===== */
:root {
  --ink: #16233A;
  --ink-soft: #2B3A55;
  --paper: #FFFFFF;
  --mist: #EDF1F5;
  --line: #D5DCE4;
  --muted: #5A6778;
  --amber: #F5B324;
  --amber-deep: #C98A00;
  --go: #2F8F5B;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --header-h: 72px;
  --font: "Brand Ampersand", "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom of the screen on short pages, such as the thanks page. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-stretch: 112%; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 850; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 750; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }
.where { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 750;
  font-stretch: 105%;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid var(--amber);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #FFC43D; border-color: #FFC43D; }
.btn.small { padding: 10px 18px; font-size: 16px; }

/* ===== Header ===== */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark { display: block; line-height: 0; }
.wordmark-img { display: block; height: 28px; width: auto; aspect-ratio: 810 / 132; }
.wordmark-img .ink { fill: var(--ink); }
.wordmark-img .amp { fill: var(--amber-deep); }

/* ===== Hero ===== */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }

/* Hero example card ("ticket") */
.ticket {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: 0 30px 60px -30px rgba(22,35,58,.55);
  position: relative;
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--ink) 14px 28px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 18px; }
.ticket-head strong { font-stretch: 110%; font-size: 19px; }
.ticket-head span { font-size: 14px; color: #AEB9C8; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 100px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 16px; line-height: 1.45;
}
.steps .when { font-variant-numeric: tabular-nums; color: var(--amber); font-weight: 700; font-size: 15px; white-space: nowrap; }
.steps .what { color: #fff; }
.steps .what small { display: block; color: #AEB9C8; font-size: 14px; margin-top: 2px; }
.steps .done { color: #7FD6A5; font-weight: 700; }
.trade-picker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.trade-picker[hidden] { display: none; }
.trade-picker label { font-size: 14px; font-weight: 700; color: #AEB9C8; white-space: nowrap; }
.trade-picker select {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; font-weight: 700;
  color: var(--ink); background: var(--amber);
  border: 2px solid var(--amber); border-radius: var(--radius-sm);
  padding: 8px 12px; cursor: pointer;
}
.ticket-foot { font-size: 13px; color: #8F9CAE; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }

@media (prefers-reduced-motion: no-preference) {
  .steps li { opacity: 0; transform: translateY(6px); animation: arrive .45s ease-out forwards; }
  .steps li:nth-child(1) { animation-delay: .3s; }
  .steps li:nth-child(2) { animation-delay: .8s; }
  .steps li:nth-child(3) { animation-delay: 1.3s; }
  .steps li:nth-child(4) { animation-delay: 1.8s; }
  .steps li:nth-child(5) { animation-delay: 2.3s; }
  .steps li:nth-child(6) { animation-delay: 2.8s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* ===== Section layout ===== */
section.band { padding: 96px 0; }
section.mist { background: var(--mist); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

/* Problem */
.problem .lede { margin-bottom: 28px; }
.leaks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.leaks li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.leaks strong { font-size: 20px; font-stretch: 108%; }
.leaks span { color: var(--muted); }

/* Why now */
.then-now { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.then-now li { padding: 22px 24px 0 0; }
.then-now .year { font-weight: 850; font-stretch: 118%; font-size: 34px; line-height: 1; display: block; margin-bottom: 10px; }
.then-now li:last-child .year { color: var(--amber-deep); }
.then-now p { color: var(--ink-soft); font-size: 17px; }
.why-now .lede { margin-top: 40px; }

/* Services and how it works */
.services { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 40px; border-top: 2px solid var(--ink); }
.services div { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--line); }
.services div:nth-child(odd) { border-right: 1px solid var(--line); }
.services div:nth-child(even) { padding-left: 32px; }
.services h3 { margin-bottom: 6px; }
.services p { color: var(--muted); }

.how-title { margin-top: 88px; }
.how { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how li { counter-increment: step; }
.how li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  font-weight: 850; font-size: 20px; margin-bottom: 16px;
}
.how h3 { margin-bottom: 8px; }
.how p { color: var(--muted); }
.note { margin-top: 48px; padding: 24px 28px; border-left: 6px solid var(--amber); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 46em; }
.note p { font-size: 19px; }

/* Cost of missed leads */
.stake[hidden] { display: none; }
.stake .lede { margin: 16px 0 40px; }
.stake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stake-form .field { margin-bottom: 28px; }
.stake-form label { display: block; font-weight: 700; margin-bottom: 10px; }
.stake-form strong { color: var(--amber-deep); font-stretch: 110%; }
.stake-form select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 12px;
}
.stake-form input[type="range"] { width: 100%; accent-color: var(--amber-deep); }
.stake-typical { margin-top: 10px; font-size: 14px; color: var(--muted); }
.stake-result { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 32px; }
.stake-label { color: #AEB9C8; font-size: 15px; }
.stake-amount { font-size: clamp(40px, 6vw, 60px); font-weight: 850; font-stretch: 112%; line-height: 1.05; color: var(--amber); margin: 6px 0 4px; }
.stake-year { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.stake-line { color: #E3E9F1; font-size: 17px; margin-bottom: 16px; }
.stake-foot { color: #8F9CAE; font-size: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }

/* Promise */
.promise { background: var(--ink); color: #fff; }
.promise h2 { max-width: 16em; }
.promise .quotes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; max-width: 42em; }
.promise .quotes li {
  background: rgba(255,255,255,.07); border-radius: 18px 18px 18px 4px;
  padding: 16px 20px; font-size: 19px;
}
.promise .quotes li small { display: block; color: #AEB9C8; font-size: 14px; margin-top: 4px; }
.promise .after { margin-top: 32px; color: #C9D1DB; max-width: 38em; }

/* Founder */
.founder { max-width: 44em; }
.founder h2 { margin-bottom: 28px; }
.founder .sig { margin-top: 24px; font-weight: 750; }

/* Closing call to action */
.closing { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.closing h2 { max-width: 15em; margin-bottom: 28px; }
.closing .lede { margin-bottom: 32px; }

/* Contact form (in the closing section) */
.contact-form { max-width: 36em; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--muted); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--mist); border-radius: var(--radius-sm); padding: 16px 18px; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.consent label { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.consent a { color: var(--ink); }
.contact-form .btn { justify-self: start; font: inherit; font-weight: 750; cursor: pointer; }
.form-note { font-size: 15px; color: var(--muted); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Legal and thank-you pages ===== */
.legal { padding: 72px 0 96px; }
.legal .prose { max-width: 40em; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 20px; }
.legal .updated { margin-top: 20px; font-size: 15px; color: var(--muted); }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 16px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal ul { margin: 1em 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 0.5em; }
.legal ul + p { margin-top: 1em; }
.legal .btn { margin-top: 32px; }

/* ===== Footer ===== */
footer.site { background: var(--mist); padding: 32px 0; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .split, .stake-grid { grid-template-columns: 1fr; gap: 40px; }
  section.band { padding: 72px 0; }
  .then-now, .how { grid-template-columns: 1fr; }
  .then-now li { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; }
  .services div, .services div:nth-child(even) { padding: 24px 0; border-right: 0; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .steps li { grid-template-columns: 84px 1fr; gap: 10px; }
  .steps .when { font-size: 14px; }
  .ticket { padding: 24px 18px 16px; }
  .btn.small { display: none; }
}
