/* ==========================================================================
   Kinstow — landing pages (variants A & B share this layout only)
   Mobile-first; split sections go two-column at >=768px, other desktop
   layout is layered on at >=880px.
   Editorial rhythm: hero -> split -> steps -> split -> split -> pricing -> FAQ
   ========================================================================== */

/* --- Self-hosted fonts (latin subset, woff2) -----------------------------
   Served from /fonts/ so there is no cross-origin Google Fonts request (also
   closes the GDPR IP-leak note). font-display: swap keeps text visible during
   load. Lora normal is a variable file (wght 400-700) covering both the 400
   step numbers and the 600 headings from one download; Lora italic 500 and
   Source Serif 4 400 are static. Only these weights/styles are actually used
   by the pages — see the type scale below. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/lora-latin-wght-normal.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/lora-latin-500-italic.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/sourceserif4-latin-400-normal.woff2) format('woff2');
  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;
}

:root {
  /* Brand tokens v1 (see /brand/tokens.md) */
  --forest:    #1A2F29; /* primary — text, seal, buttons */
  --slate:     #3C4146; /* secondary text, kickers */
  --oxblood:   #6B211C; /* accent — used exactly once (hero emphasis) */
  --parchment: #F5F1E9; /* page background */
  --chalk:     #FDFCF9; /* input fields */

  /* Supporting shades */
  --hero-top:    #F7F3EC;
  --hero-bottom: #EFE9DD;
  --forest-hi:   #24443b; /* button hover */
  --forest-lit:  #23473d; /* steps radial highlight */
  --forest-join: #24483e; /* pricing radial highlight */
  --input-border:#D8CFBD;
  --muted:       #6b6459;
  --hairline:    rgba(60, 65, 70, 0.15); /* slate @ 15% — section rhythm */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--forest);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul, li { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--forest); text-decoration: none; }
img { max-width: 100%; }
input::placeholder { color: #9a938470; }

/* BODY TYPEFACE TOGGLE — swap which line is commented. Headings/wordmark
   always stay Lora SemiBold. */
:root {
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  /* --font-body: 'Lora', Georgia, 'Times New Roman', serif; */
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sealPress {
  from { opacity: 0; transform: scale(1.1) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Keep the hero form clear of the sticky header when scrolled to. */
#early-access { scroll-margin-top: 84px; }

/* Honeypot: kept out of view and out of the tab/AT order. Real users never
   fill it; the server drops submissions that do. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Small-caps wayfinding kicker above each section heading. */
.kicker {
  font: 500 13px/1.4 var(--font-body);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.kicker--light { color: rgba(245, 241, 233, 0.82); } /* on forest */

/* Shared hairline + generous padding for parchment sections after the steps
   band, so the whitespace reads intentional. */
.ruled > .wrap { border-top: 1px solid var(--hairline); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 233, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 47, 41, 0.10);
}
.site-header .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo { height: 36px; width: auto; }

.header-link {
  font: 500 15px var(--font-body);
  color: var(--forest);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.header-link:hover,
.header-link:focus-visible { text-decoration: underline; }

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

.hero {
  background: linear-gradient(150deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
}
.hero .wrap {
  padding-top: 56px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.hero__title {
  font: 600 40px/1.06 var(--font-head);
  letter-spacing: -0.6px;
  margin-bottom: 22px;
  animation: riseIn 0.9s ease-out both;
}
/* The single oxblood moment on the page. */
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--oxblood);
}
.hero__lede {
  font: 400 19px/1.55 var(--font-body);
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 28px;
  animation: riseIn 0.9s ease-out 0.1s both;
}

/* Price locked to the form: reads as one unit. */
.hero__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin-top: 14px;
  animation: riseIn 0.9s ease-out 0.28s both;
}
.hero__price-amount { font: 600 18px var(--font-head); color: var(--forest); }
.hero__price-meta {
  font: 500 13px var(--font-body);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__reassure {
  font: 400 14px/1.5 var(--font-body);
  color: var(--slate);
  margin-top: 10px;
  animation: riseIn 0.9s ease-out 0.32s both;
}

/* Email capture form (light contexts) */
.signup {
  display: flex;
  gap: 12px;
  max-width: 520px;
  flex-wrap: wrap;
  animation: riseIn 0.9s ease-out 0.2s both;
}
.signup__email {
  flex: 1 1 220px;
  height: 58px;
  background: var(--chalk);
  border: 1px solid var(--input-border);
  color: var(--forest);
  font: 400 18px var(--font-body);
  padding: 0 20px;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease;
}
.signup__email:focus { border-color: var(--forest); }
.signup__submit {
  height: 58px;
  background: var(--forest);
  color: var(--chalk);
  border: none;
  font: 600 17px var(--font-head);
  letter-spacing: 0.3px;
  padding: 0 26px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.signup__submit:hover {
  background: var(--forest-hi);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(26, 47, 41, 0.22);
}
/* When the hero form wraps, the CTA takes the full row rather than hugging
   its label (input sits full-width above it). */
@media (max-width: 520px) {
  .signup .signup__submit { width: 100%; }
}
.signup__note {
  flex-basis: 100%;
  font: 400 15px/1.5 var(--font-body);
  color: var(--muted);
  margin: 2px 0 0;
  min-height: 1.2em;
}
.signup__note[data-state="error"] { color: var(--oxblood); }
.signup__note[data-state="ok"] { color: var(--forest); }

/* Hero visual — sealed document illustration */
.hero__visual {
  display: flex;
  justify-content: center;
  animation: riseIn 1s ease-out 0.15s both;
}
.seal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--chalk);
  border: 1px solid rgba(26, 47, 41, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(26, 47, 41, 0.16);
  padding: 44px 34px 40px;
}
.seal-card__lines { display: flex; flex-direction: column; gap: 20px; opacity: 0.55; }
.seal-card__label {
  height: 10px;
  background: rgba(26, 47, 41, 0.5);
  border-radius: 5px;
  margin-bottom: 9px;
}
.seal-card__value {
  height: 10px;
  background: rgba(26, 47, 41, 0.13);
  border-radius: 5px;
}
.seal-card__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  text-align: center;
}
.seal-card__seal img,
.seal-card__seal svg {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 10px 20px rgba(26, 47, 41, 0.28));
  animation: sealPress 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
.seal-card__caption {
  text-align: center;
  font: italic 500 18px var(--font-head);
  color: var(--forest);
  margin-top: 30px;
}

/* --- Split sections (problem, security, continuity) ---------------------- */

.problem .wrap,
.security .wrap,
.continuity .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.split__heading { font: 600 30px/1.16 var(--font-head); color: var(--forest); }
.split__body p { font: 400 19px/1.66 var(--font-body); color: var(--slate); }
.split__body p + p { margin-top: 20px; }

/* --- How it works (dark step band) --------------------------------------- */

.steps {
  background: radial-gradient(130% 130% at 50% -10%, var(--forest-lit) 0%, var(--forest) 60%);
  color: var(--parchment);
}
.steps .wrap { padding-top: 64px; padding-bottom: 64px; }
.steps__head { text-align: center; margin-bottom: 44px; }
.steps__mark { width: 52px; height: 52px; margin-bottom: 18px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.steps__title { font: italic 500 34px var(--font-head); color: var(--parchment); }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "num title" ".  body";
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid rgba(245, 241, 233, 0.16);
}
.step:last-child { border-bottom: 1px solid rgba(245, 241, 233, 0.16); }
.step__num  { grid-area: num;  font: 400 44px/0.9 var(--font-head); color: rgba(245, 241, 233, 0.55); }
.step__title{ grid-area: title; font: 600 20px/1.3 var(--font-head); color: var(--parchment); padding-top: 4px; }
.step__body { grid-area: body; font: 400 17px/1.62 var(--font-body); color: rgba(245, 241, 233, 0.78); }

/* --- Pricing / join (keeps its forest block on purpose) ------------------ */

.join .wrap { padding-top: 64px; padding-bottom: 64px; }
.join__card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(130% 140% at 12% 0%, var(--forest-join) 0%, var(--forest) 60%);
  border-radius: 28px;
  padding: 52px 36px;
  color: var(--parchment);
  box-shadow: 0 34px 80px rgba(26, 47, 41, 0.24);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.join__price h2 { font: 600 48px/1 var(--font-head); color: var(--parchment); margin-bottom: 20px; }
.join__price p  { font: 400 19px/1.62 var(--font-body); color: rgba(245, 241, 233, 0.82); max-width: 460px; }

.join__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.join__form .signup__email {
  flex: 0 0 auto;
  width: 100%;
  height: 60px;
  border-color: var(--chalk);
  font-size: 19px;
}
.join__form .signup__submit {
  width: 100%;
  height: 60px;
  background: var(--parchment);
  color: var(--forest);
  font-size: 18px;
}
.join__form .signup__submit:hover {
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}
.join__form .signup__note {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 10px 0 0;
  min-height: 0;
  color: rgba(245, 241, 233, 0.85);
}
.join__form .signup__note[data-state="error"] { color: #f2c9c2; }
.join__form .signup__note[data-state="ok"] { color: rgba(245, 241, 233, 0.95); }

/* On a successful signup the fields are removed and the confirmation message
   takes their place (rather than sitting beneath the form). */
.signup.is-success .signup__email,
.signup.is-success .signup__submit,
.signup.is-success .hp,
.join__form.is-success .signup__email,
.join__form.is-success .signup__submit,
.join__form.is-success .hp { display: none; }

.signup.is-success .signup__note,
.join__form.is-success .signup__note {
  position: static;
  margin: 0;
  min-height: 0;
  font-size: 18px;
  line-height: 1.55;
}

/* --- FAQ (plain typographic Q&A, all open) ------------------------------- */

.faq .wrap { padding-top: 64px; padding-bottom: 72px; }
.faq__title { font: 600 30px var(--font-head); margin-bottom: 36px; }
.faq__item + .faq__item { margin-top: 40px; }
.faq__q { font: 600 21px/1.35 var(--font-head); color: var(--forest); margin-bottom: 10px; }
.faq__a { font: 400 18px/1.66 var(--font-body); color: var(--slate); max-width: 760px; }

/* --- Legal documents (privacy, terms) — centred single column, no boxes -- */

.doc .wrap { padding-top: 56px; padding-bottom: 80px; }
.doc__col { max-width: 680px; margin: 0 auto; }
.doc__title { font: 600 40px/1.08 var(--font-head); letter-spacing: -0.6px; margin-bottom: 12px; }
.doc__lead { font: 400 20px/1.6 var(--font-body); color: var(--slate); margin-bottom: 8px; }
.doc h2 { font: 600 24px/1.28 var(--font-head); color: var(--forest); margin: 44px 0 14px; }
.doc p { font: 400 18px/1.72 var(--font-body); color: var(--slate); margin-bottom: 16px; }
.doc ul { margin: 0 0 16px; }
.doc li {
  font: 400 18px/1.72 var(--font-body);
  color: var(--slate);
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.doc a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--oxblood); }
.doc__updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font: 400 15px/1.6 var(--font-body);
  color: var(--muted);
}

@media (min-width: 880px) {
  .doc .wrap { padding-top: 72px; padding-bottom: 104px; }
  .doc__title { font-size: 48px; }
  .doc h2 { font-size: 26px; }
}

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

.site-footer { background: var(--forest); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(245, 241, 233, 0.16);
}
.footer__logo { height: 34px; width: auto; }
.footer__links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links a {
  font: 500 15px var(--font-body);
  color: rgba(245, 241, 233, 0.85);
}
.footer__links a:hover { color: #ffffff; }
.footer__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
}
.footer__legal {
  font: 400 14px/1.6 var(--font-body);
  color: rgba(245, 241, 233, 0.6);
  max-width: 640px;
}
.footer__badge {
  font: 500 12px var(--font-body);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(245, 241, 233, 0.82);
  white-space: nowrap;
}

/* ==========================================================================
   Split sections go two-column at >=768px (stack below).
   ========================================================================== */

@media (min-width: 768px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .split__heading { font-size: 38px; }
  .split__body p { font-size: 20px; }
}

/* ==========================================================================
   Desktop (>=880px) — hero/steps/join multi-column, section padding to 96px.
   ========================================================================== */

@media (min-width: 880px) {
  .wrap { padding-left: 48px; padding-right: 48px; }

  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .site-header__logo { height: 40px; }

  .hero .wrap {
    padding-top: 84px;
    padding-bottom: 92px;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
  .hero__title { font-size: 60px; line-height: 1.02; letter-spacing: -1.2px; margin-bottom: 26px; }
  .hero__lede { font-size: 21px; margin-bottom: 32px; }

  /* One consistent 96px rhythm for every section from problem to FAQ. */
  .problem .wrap,
  .security .wrap,
  .continuity .wrap,
  .join .wrap,
  .faq .wrap {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .steps .wrap { padding-top: 92px; padding-bottom: 92px; }
  .steps__head { margin-bottom: 56px; }
  .steps__title { font-size: 44px; }
  .step {
    grid-template-columns: 76px 1.05fr 1.95fr;
    grid-template-areas: "num title body";
    column-gap: 36px;
    padding: 30px 0;
  }
  .step__num { font-size: 56px; }
  .step__title { font-size: 21px; padding-top: 6px; }
  .step__body { padding-top: 6px; }

  .join__card {
    padding: 76px 64px;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .join__price h2 { font-size: 62px; }
  .join__price p { font-size: 20px; }
  .join__form .signup__email { height: 62px; }
  .join__form .signup__submit { height: 62px; }

  .faq__title { font-size: 32px; }

  .site-footer .wrap { padding-top: 44px; padding-bottom: 44px; }
  .footer__logo { height: 38px; }
  .footer__links { gap: 28px; }
}
