/* =============================================================================
   ЛЕДЖЕР · «От поля до прибыли» / The Ledger
   Landing page fronting two grain-business systems:
     · Управление зерновыми культурами (green / field / GROW)
     · ГРАНУМ — финансовый учёт (gold / finance / SELL)
   Russian-first, English secondary · light + dark · hand-built, no framework.
   ========================================================================== */

/* ----------------------------- Design tokens ----------------------------- */
:root {
  /* surfaces */
  --bg: 40 33% 98%;
  --surface: 40 30% 100%;
  --surface-2: 40 38% 99%; /* the warmer gold "right page" */
  --ink: 28 20% 14%;
  --muted: 30 10% 36%; /* AA on cream, incl. small mono eyebrows */
  --hairline: 35 18% 86%;
  --btn-ink: 30 45% 9%; /* dark label for bright green/gold button fills */

  /* green system (agro / GROW) */
  --green: 142 71% 45%;
  --green-deep: 142 58% 29%; /* legible green text on cream (AA) */
  --green-tint: 142 40% 95%;

  /* gold system (finance / SELL) */
  --gold: 35 78% 42%;
  --gold-deep: 32 78% 30%; /* legible gold text on cream (AA) */
  --gold-bright: 38 85% 55%;
  --gold-tint: 40 60% 95%;

  /* signals */
  --fin-pos: 142 55% 34%;
  --status-green: 142 71% 45%;
  --status-yellow: 45 90% 50%;
  --status-red: 0 72% 51%;

  /* the single rationed signature gradient (green → ripening yellow → gold) */
  --grad: linear-gradient(
    100deg,
    hsl(142 71% 45%) 0%,
    hsl(45 80% 50%) 55%,
    hsl(35 78% 42%) 100%
  );

  --radius: 0.75rem;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  color-scheme: light;
}

.dark {
  --bg: 28 14% 8%;
  --surface: 28 13% 12%;
  --surface-2: 28 14% 13%;
  --ink: 40 25% 92%;
  --muted: 34 10% 62%;
  --hairline: 30 12% 22%;

  --green: 142 60% 52%;
  --green-deep: 142 50% 62%;
  --green-tint: 142 40% 16%;

  --gold: 38 80% 56%;
  --gold-deep: 38 78% 62%;
  --gold-bright: 40 88% 62%;
  --gold-tint: 35 40% 16%;

  --fin-pos: 142 50% 56%;
  --status-green: 142 60% 52%;
  --status-yellow: 45 85% 58%;
  --status-red: 2 70% 60%;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: hsl(var(--ink));
  background-color: hsl(var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* base paper + a faint grain tooth so the rigorous grid never feels cold */
  background-image:
    radial-gradient(
      120% 80% at 50% -10%,
      hsl(var(--gold-tint) / 0.5),
      transparent 60%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.dark body {
  background-image:
    radial-gradient(
      120% 80% at 50% -10%,
      hsl(var(--gold) / 0.06),
      transparent 60%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.fin-pos {
  color: hsl(var(--fin-pos));
}

/* longer Cyrillic eyebrows get slightly tighter tracking to match optical width */
[data-lang="ru"] .kicker,
[data-lang="ru"] .section-eyebrow,
[data-lang="ru"] .door__eyebrow {
  letter-spacing: 0.1em;
}

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

/* keyboard focus — visible in both themes */
a:focus-visible,
button:focus-visible {
  outline: 2px solid hsl(var(--ink));
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: hsl(var(--ink));
  color: hsl(var(--bg));
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------ Shared bits ------------------------------ */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.9rem);
}

.center {
  text-align: center;
}

.t-green {
  color: hsl(var(--green-deep));
}
.t-gold {
  color: hsl(var(--gold-deep));
}

/* gradient underline used on a single word ("до" / "to") */
.grad-underline {
  position: relative;
  white-space: nowrap;
}
.grad-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.11em;
  border-radius: 2px;
  background: var(--grad);
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 11rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    filter 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1.05rem;
}

.btn--green {
  background: hsl(var(--green));
  color: hsl(var(--btn-ink));
  box-shadow: 0 6px 18px hsl(var(--green) / 0.28);
}
.btn--green:hover {
  box-shadow: 0 10px 26px hsl(var(--green) / 0.36);
}

.btn--gold {
  background: hsl(var(--gold));
  color: hsl(var(--btn-ink));
  box-shadow: 0 6px 18px hsl(var(--gold) / 0.3);
}
.btn--gold:hover {
  box-shadow: 0 10px 26px hsl(var(--gold) / 0.4);
}

.btn--ghost {
  min-width: 0;
  background: transparent;
  color: hsl(var(--ink));
  border-color: hsl(var(--hairline));
  font-weight: 600;
  padding: 0.55rem 1.05rem;
}
.btn--ghost:hover {
  border-color: hsl(var(--ink) / 0.4);
  background: hsl(var(--ink) / 0.04);
}

.link-ghost {
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(var(--muted));
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.link-ghost:hover {
  color: hsl(var(--ink));
  border-bottom-color: currentColor;
}

/* The ГРАНУМ wordmark — letter-spaced uppercase, per brand (Manrope 800). */
.wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--gold-deep));
}
.wordmark--lg {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.9rem);
  letter-spacing: 0.22em;
}

/* -------------------------------- Top bar -------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--bg) / 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid hsl(var(--hairline));
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand__mark {
  color: hsl(var(--green-deep));
  display: inline-flex;
}
.brand__sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: hsl(var(--gold));
}
.brand__word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand__word > span {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.brand__word small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* segmented РУ/EN pill */
.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid hsl(var(--hairline));
  border-radius: 999px;
  background: hsl(var(--surface));
}
.seg__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: hsl(var(--muted));
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.seg__btn[aria-pressed="true"] {
  color: hsl(0 0% 100%);
}
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--grad);
  transition: transform 0.22s var(--ease);
}
[data-lang="en"] .seg__thumb {
  transform: translateX(100%);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid hsl(var(--hairline));
  border-radius: 999px;
  background: hsl(var(--surface));
  color: hsl(var(--ink));
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
  border-color: hsl(var(--ink) / 0.35);
}
.icon-btn .i-moon {
  display: none;
}
.dark .icon-btn .i-sun {
  display: none;
}
.dark .icon-btn .i-moon {
  display: inline;
}

.topnav__signin {
  margin-left: 0.15rem;
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2rem)
    clamp(2.5rem, 4vw, 4rem);
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% 0%,
    hsl(var(--green) / 0.06),
    transparent 70%
  );
}
/* faint ledger ruling behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    to bottom,
    hsl(var(--hairline) / 0.5) 0,
    hsl(var(--hairline) / 0.5) 1px,
    transparent 1px,
    transparent 28px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
/* the green→gold "spine" drawing down the centre */
.hero__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--grad);
  transform-origin: top;
  animation: spine-draw 0.8s var(--ease) both 0.15s;
  opacity: 0.55;
}
@keyframes spine-draw {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.hero__inner {
  position: relative;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.4rem);
  font-weight: 700;
  margin: 0.8rem 0 1.1rem;
}
.hero__dot {
  color: hsl(var(--gold-deep));
}
.hero__lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: hsl(var(--muted));
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(var(--ink));
}
.hero__cue svg {
  animation: nudge 1.8s var(--ease) infinite;
}
.hero__cue:hover {
  color: hsl(var(--green-deep));
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ---------------------------- The two doors ------------------------------ */
.doors {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem)
    clamp(3rem, 6vw, 5rem);
}
.doors__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid hsl(var(--hairline));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--surface));
}
/* the shared central spine between the two equal pages */
.doors__grid::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: var(--grad);
  opacity: 0.6;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: filter 0.25s var(--ease), background 0.25s var(--ease);
}
.door--green {
  background: hsl(var(--surface));
  border-top: 3px solid hsl(var(--green));
  border-radius: 16px 0 0 16px;
}
.door--gold {
  background: hsl(var(--surface-2));
  border-top: 3px solid hsl(var(--gold));
  border-radius: 0 10px 10px 0;
  /* faint embossed-coin texture — "weighty money" */
  background-image: radial-gradient(
    80% 120% at 100% 0%,
    hsl(var(--gold) / 0.07),
    transparent 55%
  );
}
/* hovering one door dims the other so a choice feels intentional */
.doors__grid:hover .door {
  filter: saturate(0.88) opacity(0.92);
}
.doors__grid .door:hover {
  filter: none;
}

.door__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 30px;
}
.door__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: hsl(var(--green-tint));
  color: hsl(var(--green-deep));
}
.door--gold .door__head .wordmark {
  font-size: 1.5rem;
}
.door__eyebrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}
.door__title {
  font-size: 1.45rem;
  min-height: 2.4em; /* fixed 2-line slot so RU/EN keep equal height */
  display: flex;
  align-items: flex-start;
}
.door--green .door__title {
  color: hsl(var(--green-deep));
}
.door__subtitle {
  min-height: 2.4em;
  color: hsl(var(--muted));
  font-size: 1.05rem;
}
.door__ledger {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid hsl(var(--hairline));
  border-bottom: 1px solid hsl(var(--hairline));
  padding: 0.9rem 0;
  font-size: 0.98rem;
}
.door__ledger li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.door__status {
  gap: 0.3rem;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot--g {
  background: hsl(var(--status-green));
}
.dot--y {
  background: hsl(var(--status-yellow));
}
.dot--r {
  background: hsl(var(--status-red));
}
.door__status span:last-child {
  margin-left: 0.3rem;
}
.door__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* ---------------------------- Value-trail row ---------------------------- */
.trail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.trail__row {
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.trail__track {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-width: 100%;
  border: 1px solid hsl(var(--hairline));
  border-radius: 10px;
  background: hsl(var(--surface));
}
.trail__cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.85rem 1.05rem;
  border-right: 1px solid hsl(var(--hairline));
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}
.trail__cell small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: hsl(var(--muted));
}
.trail__cell b {
  font-size: 1rem;
}
.trail__cell.c-green b {
  color: hsl(var(--green-deep));
}
.trail__cell.c-gold b {
  color: hsl(var(--gold-deep));
}
.trail__arrow {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  border-right: 1px solid hsl(var(--hairline));
}
.trail__arrow svg {
  stroke: hsl(40 80% 44%);
}
.trail__track > .trail__cell:last-of-type {
  border-right: 0;
}
/* the gradient dot that rides field → finance */
.trail__dot {
  position: absolute;
  top: -4px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px hsl(var(--bg)), 0 0 14px hsl(var(--gold) / 0.6);
  animation: trail-ride 5.5s var(--ease) infinite;
}
@keyframes trail-ride {
  0% {
    left: 2%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 98%;
    opacity: 0;
  }
}
/* each cell brightens as the dot passes (staggered by --ci) */
.trail__cell {
  animation: cell-pass 5.5s linear infinite;
  animation-delay: calc(var(--ci) * 0.55s - 5.5s);
}
@keyframes cell-pass {
  0%,
  6%,
  100% {
    background: transparent;
  }
  2% {
    background: hsl(var(--gold) / 0.12);
  }
}

/* --------------------------- Facing-pages lead --------------------------- */
.facing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem)
    clamp(2.5rem, 5vw, 4rem);
}
.facing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.6rem;
}
.facing__lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  position: relative;
  padding-left: 1.1rem;
}
.facing__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  border-radius: 2px;
}
.lead--green::before {
  background: hsl(var(--green));
}
.lead--gold::before {
  background: hsl(var(--gold));
}

/* ------------------------------ Deep dives ------------------------------- */
.deep {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}
.deep__head {
  max-width: 40ch;
  margin-bottom: 2rem;
}
.deep--green .section-title {
  color: hsl(var(--green-deep));
}
.deep__sub {
  margin-top: 0.6rem;
  color: hsl(var(--muted));
  font-size: 1.1rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: hsl(var(--hairline));
  border: 1px solid hsl(var(--hairline));
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: hsl(var(--surface));
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.feature h3 {
  font-size: 1.12rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
/* wheat-head bullet glyph before each green feature title */
.deep--green .feature h3::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: hsl(var(--green));
  -webkit-mask: var(--wheat-bullet) center / contain no-repeat;
  mask: var(--wheat-bullet) center / contain no-repeat;
}
.deep--gold .feature h3 {
  color: hsl(var(--gold-deep));
}
.feature p {
  color: hsl(var(--muted));
  font-size: 0.97rem;
}
.feature p .mono {
  color: hsl(var(--ink));
  font-size: 0.86rem;
}
.deep__cta {
  margin-top: 2rem;
}
:root {
  --wheat-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 22 16 8'/%3E%3Cpath d='M3.5 12.5 5 11l1.5 1.5a3.5 3.5 0 0 1 0 5L5 19l-1.5-1.5a3.5 3.5 0 0 1 0-5Z'/%3E%3Cpath d='M11.5 4.5 13 3l1.5 1.5a3.5 3.5 0 0 1 0 5L13 11l-1.5-1.5a3.5 3.5 0 0 1 0-5Z'/%3E%3Cpath d='M15.5 13.5 17 15l-1.5 1.5a3.5 3.5 0 0 1-5 0L9 15l1.5-1.5a3.5 3.5 0 0 1 5 0Z'/%3E%3C/svg%3E");
}

/* ----------------------------- Lifecycle band ---------------------------- */
.lifecycle {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: var(--grad);
  color: hsl(28 45% 9%);
  text-align: center;
  overflow: hidden;
}
.lifecycle .section-title {
  color: hsl(28 48% 8%);
}
.lifecycle__cap {
  max-width: 46ch;
  margin: 0.8rem auto 0;
  color: hsl(28 44% 11%);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.lifecycle__band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 2.2rem;
}
.life-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 16rem;
}
.life-step b {
  font-size: 1.05rem;
}
.life-step span {
  color: hsl(28 42% 12%);
  font-size: 0.95rem;
}
.life-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid hsl(0 0% 100% / 0.85);
  box-shadow: 0 2px 8px hsl(28 30% 10% / 0.25);
}
.life-dot--g {
  background: hsl(var(--status-green));
}
.life-dot--y {
  background: hsl(var(--status-yellow));
}
.life-dot--r {
  background: hsl(var(--status-red));
}

/* ------------------------------ Trust strip ------------------------------ */
.trust {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: hsl(var(--hairline));
  border: 1px solid hsl(var(--hairline));
  border-radius: var(--radius);
  overflow: hidden;
}
.trust__cell {
  background: hsl(var(--surface));
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trust__fig {
  font-size: 1.8rem;
  font-weight: 700;
  color: hsl(var(--gold-deep));
}
.trust__cell h3 {
  font-size: 1.15rem;
}
.trust__cell p {
  color: hsl(var(--muted));
  font-size: 0.97rem;
}

/* ------------------------------ Final CTA -------------------------------- */
.final {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem)
    clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.final__cta {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* -------------------------------- Footer --------------------------------- */
.footer {
  border-top: 1px solid hsl(var(--hairline));
  background: hsl(var(--surface));
}
.footer__stalk {
  display: flex;
  justify-content: center;
  color: hsl(var(--gold));
  margin-top: -14px;
}
.footer__stalk svg {
  background: hsl(var(--surface));
  padding: 0 10px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.footer__brand .wordmark {
  font-size: 0.95rem;
}
.footer__sep {
  color: hsl(var(--muted));
}
.footer__links {
  display: inline-flex;
  gap: 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer__links a {
  color: hsl(var(--ink) / 0.82);
  border-bottom: 1px solid transparent;
}
.footer__links a:hover {
  color: hsl(var(--ink));
  border-bottom-color: currentColor;
}
.footer__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: hsl(var(--muted));
  line-height: 1.7;
}
.footer__copy {
  opacity: 0.85;
}

/* ------------------------------ Scroll reveal ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
/* staggered hero reveal */
.hero .reveal:nth-child(1).in {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2).in {
  transition-delay: 0.14s;
}
.hero .reveal:nth-child(3).in {
  transition-delay: 0.23s;
}
.hero .reveal:nth-child(4).in {
  transition-delay: 0.32s;
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  .brand__word small {
    display: none;
  }
  .hero__spine {
    display: none;
  }
  /* doors stack — green first ("it grows first") */
  .doors__grid {
    grid-template-columns: 1fr;
  }
  .doors__grid::before {
    display: none;
  }
  .door--green {
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid hsl(var(--hairline));
  }
  .door--gold {
    border-radius: 0 0 10px 10px;
  }
  .door__title,
  .door__subtitle {
    min-height: 0;
  }
  .facing__grid {
    grid-template-columns: 1fr;
  }
  .topnav__signin {
    display: none;
  }
}

@media (max-width: 420px) {
  .btn {
    width: 100%;
  }
  .door__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .door__cta .link-ghost {
    text-align: center;
  }
}

/* --------------------------- Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .trail__dot {
    display: none;
  }
}
