/* =======================================================================
   Redline — landing page (v3, taste-skill pass)
   -----------------------------------------------------------------------
   Refined minimalism. One focal point per view. Whitespace is structural.
   Every color earns its place. If removing it doesn't break anything,
   it's not here.

   One distinctive choice: mixed-size metric system + a quiet warm
   atmospheric bloom behind the hero. That's the personality. Everything
   else is restrained.
   ======================================================================= */

body.landing {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-feature-settings: "ss02", "cv11", "onum";
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

/* Atmospheric bloom: a single soft radial behind the hero. Low opacity,
   muted analogous tones (warm amber to soft coral). Placed behind, never
   on interactive elements. */
body.landing::before {
  content: "";
  position: absolute;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(193, 74, 58, 0.08), transparent 60%),
    radial-gradient(closest-side at 70% 60%, rgba(192, 138, 58, 0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.landing > * { position: relative; z-index: 1; }

/* ---------- Top bar (quiet, no ornament) ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  position: sticky;
  top: 0;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  z-index: 10;
}

.top__mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.top__mark:hover { text-decoration: none; }

.mark__logo { width: 30px; height: 30px; border-radius: 7px; display: block; }
.mark__name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.top__nav { display: flex; align-items: center; gap: 32px; }
/* Space the filled Login pill from the last text link so it doesn't crowd. */
.top__nav .btn--primary { margin-left: 10px; }
.top__nav a {
  color: var(--ink-70);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease);
}
.top__nav a:hover { color: var(--ink); text-decoration: none; }
/* The Login button is a filled primary; keep its label white against the
   oxford fill (the generic .top__nav a colour would otherwise win). */
.top__nav a.btn--primary,
.top__nav a.btn--primary:hover { color: #fff; }

/* ---------- HERO — one focal point: the headline ----------
   Tuned so the whole hero fits in a 100vh viewport on a 1280x720 laptop
   without scroll (verified 2026-05-26). On taller viewports the
   `align-items: center` floats the content; on shorter ones the
   trimmed padding + heading clamp keep it above the fold. */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 56px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 74px);  /* viewport minus sticky header */
}

.hero__left { display: grid; gap: 22px; max-width: 620px; }

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}

/* Split-color headline: each verb in ink, each noun dimmed to ash. The
   contrast carries the emphasis without bold or italic or color tricks. */
.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.hero__title .dim {
  color: var(--ink-30);
}

.hero__lede {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 0;
  font-feature-settings: "onum";
}
.hero__lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn--lg {
  padding: 13px 24px;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  min-height: 44px;
}

/* Mixed-size metrics: number large, unit small. The number is the thing
   users scan. Inline grouping. */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.proof > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proof__num {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum", "lnum";
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.proof__num .unit {
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-50);
  letter-spacing: 0.01em;
}
.proof__label {
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ---------- HERO ART — clause excerpt, freed from a card ----------
   Per taste-skill: cards should be earned. The previous version wrapped
   the clause in a card with a hairline border AND a shadow. Borders feel
   dated; layered shadows feel modern. So: drop the border, keep one
   layered shadow, let it lift quietly. */
.hero__right {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate {
  background: var(--ivory-raised);
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow:
    0 1px 2px rgba(15, 23, 41, 0.04),
    0 8px 24px -8px rgba(15, 23, 41, 0.10),
    0 28px 60px -20px rgba(15, 23, 41, 0.14);
  font-size: 13.5px;
  color: var(--ink-70);
  max-width: 420px;
  width: 100%;
}

.plate__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.plate__eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-50);
}

/* Mixed-size score: number large, "/100" small. */
.plate__score {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--vermilion);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum", "lnum";
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.plate__score small {
  font-size: 13px;
  color: var(--ink-30);
  font-weight: 400;
}

.plate__heading {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

.plate__body {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-70);
  margin: 0 0 18px;
}
.plate__body mark {
  background: rgba(193, 74, 58, 0.14);
  color: var(--ink);
  padding: 1px 3px;
  border-radius: 2px;
}

.plate__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.plate__rule {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--vermilion);
  max-width: 60%;
  line-height: 1.45;
}
.plate__cite {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Section scaffolding (one column, calm) ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 56px;
}

.section + .section { padding-top: 0; }

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
}
.section-head h2 .dim { color: var(--ink-30); }
.section-head .lede {
  margin-top: 18px;
  font-family: var(--ff-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 60ch;
}

/* ---------- Features — quiet two-column grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
}

.feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 20px;
  align-items: start;
}

.feature__num {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--vermilion);
  font-feature-settings: "tnum", "lnum";
  letter-spacing: -0.01em;
}

.feature__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}

.feature__body {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 0;
  font-feature-settings: "onum";
}

/* ---------- SA Law — selection-via-inversion (the dark moment) ----------
   The inkwell section IS the inverted element. One inverted moment per
   view. Strategic pop of color (the deep dark + vermilion category
   labels) stands against the calm ivory of everything else. */
.law {
  background: var(--inkwell);
  color: #d8dbe5;
  padding: 112px 56px;
  margin-top: 0;
}

.law__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.law__head {
  margin-bottom: 64px;
  max-width: 720px;
}
.law__head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d96b1;
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}
.law__head h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  color: #f4f5f7;
}
.law__head h2 .dim { color: #6a7494; }

.law__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 56px;
}
.law__col h4 {
  font-family: var(--ff-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c97c6e;
  margin: 0 0 16px;
}
.statute-list { list-style: none; padding: 0; margin: 0; }
.statute-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  font-size: 13.5px;
}
.statute-list li + li { border-top: 1px solid #1f2842; }
.statute-list .mono { color: #f4f5f7; font-size: 11.5px; }
.statute-list li > span:last-child {
  color: #8d96b1;
  font-size: 13px;
  line-height: 1.55;
}

.law__note {
  margin: 64px 0 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.7;
  color: #8d96b1;
}

/* ---------- Security ---------- */
.security {
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 56px;
}

.security__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 18ch;
}
.security__title .dim { color: var(--ink-30); }

.guarantees {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 64px;
  max-width: 1080px;
}
.guarantees li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}
.guarantees .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vermilion-soft);
  color: var(--vermilion);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}
.guarantees strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  color: var(--ink);
}
.guarantees li > div {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* ---------- Contact ---------- */
.contact {
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 56px 128px;
  text-align: center;
}
.contact h2 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--ink);
}
.contact h2 .dim { color: var(--ink-30); }
.contact .lede {
  margin: 0 auto 32px;
  max-width: 56ch;
  font-family: var(--ff-ui);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-70);
  line-height: 1.6;
}
.contact__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer (taste-skill: personality, minimal with pops) ----
   The footer is its own moment. A big quiet wordmark with a vermilion
   underline, an editorial line of voice, a tight utility row, and a
   colophon. One atmospheric bloom in the bottom-right corner gives it
   warmth that doesn't transplant to any other app.
-------------------------------------------------------------------- */
.foot--landing {
  position: relative;
  background: var(--ivory-raised);
  border-top: 1px solid var(--hairline);
  margin-top: 0;
  padding: 96px 56px 48px;
  overflow: hidden;
  color: var(--ink-70);
}
.foot--landing::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 60%;
  height: 120%;
  background:
    radial-gradient(closest-side at 60% 50%, rgba(193, 74, 58, 0.10), transparent 65%),
    radial-gradient(closest-side at 30% 30%, rgba(192, 138, 58, 0.07), transparent 60%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.foot__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(0, 2fr);
  gap: 56px 80px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
}

.foot__display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.foot__display:hover { text-decoration: none; }
/* Footer wordmark matches the header lockup: same logo + text size, no
   underline. A quiet sign-off, not a logo flex. */
.foot__display__name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.foot__voice {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0;
  max-width: 40ch;
  font-feature-settings: "onum";
}

.foot__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.foot__col h4 {
  font-family: var(--ff-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 600;
  margin: 0 0 16px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; }
.foot__col li { padding: 5px 0; font-size: 14.5px; line-height: 1.45; }
.foot__col a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease);
}
.foot__col a:hover { color: var(--vermilion); text-decoration: none; }

.foot__base {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
}
.foot__legal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
}
.foot__legal .mono {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  body.landing::before { width: 100%; left: 0; transform: none; }
  .top { padding: 18px 24px; }
  .top__nav { gap: 22px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 56px 24px 72px;
  }
  .hero__right { justify-content: flex-start; }
  .plate { max-width: 100%; }
  .section, .security, .contact, .law { padding-left: 24px; padding-right: 24px; padding-top: 80px; padding-bottom: 80px; }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .law__grid { grid-template-columns: 1fr; gap: 36px; }
  .guarantees { grid-template-columns: 1fr; gap: 28px; }
  .foot--landing { padding: 56px 24px 32px; }
  .foot__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .foot__brand { max-width: none; }
  .foot__legal { flex-direction: column; gap: 6px; }
  .proof { gap: 28px 36px; }
  .proof__num { font-size: 36px; }
}

@media (max-width: 600px) {
  /* Keep both login actions reachable on phones; hide only the section links. */
  .top__nav { display: flex; gap: 8px; }
  .top__nav a:not(.btn) { display: none; }
  .hero__title { font-size: clamp(36px, 9vw, 48px); }
  .foot__links { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
}

/* ---- Audit-driven additions: clause-card advice, SA-law verify caveat,
   footer advice line. -------------- */

.plate__advice {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}

.law__caveat {
  margin: -36px 0 56px;
  max-width: 64ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c97c6e;
  font-weight: 500;
}

.foot__advice {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-50);
  max-width: 84ch;
}

/* ============================================================
   Use-case / SEO content pages (content_base.html). Reuse the
   landing tokens. No 3D, no motion. Readable, crawlable prose.
   ============================================================ */
.section-head h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
}
.section-head h1 .dim { color: var(--ink-30); }

.prose { max-width: 70ch; }
.prose p {
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-70);
  margin: 0 0 18px;
}
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li {
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 10px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.crosslinks { margin-top: 26px; font-size: 15px; color: var(--ink-50); }
.crosslinks a { color: var(--oxford); }
.crosslinks a:hover { color: var(--vermilion); }

.content-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
