/* Evolving Seeds — one stylesheet, no build chain, no third-party requests.
   Aesthetic: deep-water layered premium. The canvas is a deep royal-blue
   gradient; content floats on it as white rounded sheets; one warm amber
   accent carries every action. Adapted from a Smart-Konzept-style reference,
   deliberately excluding anything fake-able (ratings, reviews, avatars).
   Every asset is self-hosted; the claim on the Gate page depends on that. */

/* Single face, wide weight range: Plus Jakarta Sans (variable), self-hosted. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the deep water */
  --sea-0: #050F33;
  --sea-1: #0A2361;
  --sea-2: #143FB4;
  --sea-3: #2563EB;
  --cyan:  #5CC8FF;

  /* on the sheets */
  --ink:       #0A1B3F;
  --ink-soft:  #43537A;
  --ink-faint: #7C8AA5;
  --line:      #E3ECFD;
  --sheet:     #FFFFFF;
  --tint:      #F6F9FF;
  --blue:      #2563EB;
  --blue-deep: #1E4FD6;
  --blue-soft: #E7F0FF;

  /* the one warm accent */
  --amber:      #FFC53D;
  --amber-hot:  #FFB020;
  --amber-soft: #FFD666;
  --on-amber:   #0A1E4F;

  --measure: 36rem;
  --page: 64rem;
  --r-sheet: 28px;
  --r-card: 20px;

  --sans: "Plus Jakarta Sans", ui-sans-serif, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sheet: 0 30px 60px -30px rgba(4, 16, 48, 0.5), 0 2px 6px rgba(4, 16, 48, 0.08);
  --shadow-card: 0 1px 2px rgba(10, 27, 63, 0.05), 0 10px 28px -14px rgba(10, 27, 63, 0.16);
  --shadow-amber: 0 12px 28px -10px rgba(255, 176, 32, 0.55);
}

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

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

body {
  margin: 0;
  color: #fff;
  background:
    radial-gradient(50rem 34rem at 92% -6%, rgba(92, 200, 255, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at -12% 30%, rgba(37, 99, 235, 0.45), transparent 62%),
    linear-gradient(168deg, var(--sea-0) 0%, var(--sea-1) 34%, var(--sea-2) 72%, var(--sea-3) 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

@media (min-width: 40rem) { body { font-size: 1.0625rem; } }

/* ---------- skeleton ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { display: block; }

/* content sections float as white sheets on the deep water */
main section {
  background: var(--sheet);
  color: var(--ink);
  width: min(100% - 2rem, var(--page));
  margin: 1.25rem auto;
  border-radius: var(--r-sheet);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  box-shadow: var(--shadow-sheet);
}

main section .wrap { padding: 0 clamp(1.5rem, 5vw, 3.5rem); max-width: none; }

/* the hero lives on the water itself, not on a sheet */
main section.hero {
  background: none;
  color: #fff;
  width: 100%;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  padding: 4.5rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}
main section.hero .wrap { max-width: var(--page); padding: 0 1.5rem; }
@media (min-width: 40rem) { main section.hero { padding: 6.25rem 0 5.25rem; } }

/* slow ambient light in the hero — decoration only */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 34rem; height: 34rem;
  right: -10rem; top: -14rem;
  background: radial-gradient(circle, rgba(92, 200, 255, 0.35), transparent 65%);
}
.hero::after {
  width: 26rem; height: 26rem;
  left: -9rem; bottom: -12rem;
  background: radial-gradient(circle, rgba(255, 197, 61, 0.18), transparent 65%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift 26s ease-in-out infinite alternate; }
  .hero::after { animation: drift 32s ease-in-out infinite alternate-reverse; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3rem, 2.5rem, 0) scale(1.12); }
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  padding: 0.75rem 1rem;
  z-index: 30;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------- masthead: sticky glass ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0;
  background: rgba(6, 18, 54, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
}

.wordmark span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  margin-top: 0.15rem;
}

.masthead nav {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  gap: 0.35rem;
}

.masthead nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.masthead nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}
.masthead nav a[aria-current="page"] {
  color: var(--on-amber);
  background: #fff;
  border-color: #fff;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.35rem, 6.8vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

main section p { color: var(--ink-soft); }
main section h2, main section h3 { color: var(--ink); }

.lede {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}
main section:not(.hero) .lede { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}
.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.quiet { color: rgba(255, 255, 255, 0.72); }
main section:not(.hero) .quiet { color: var(--ink-soft); }

.small {
  font-size: 0.875rem;
  line-height: 1.6;
}

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px;
    transition: color 0.18s ease, text-decoration-thickness 0.18s ease,
                text-underline-offset 0.18s ease; }
a:hover { text-decoration-thickness: 2px; text-underline-offset: 0.22em; }

.hero a:not(.cta) { color: var(--amber-soft); }
.hero a:not(.cta):hover { color: #fff; }
main section:not(.hero) a:not(.cta) { color: var(--blue-deep); }
main section:not(.hero) a:not(.cta):hover { color: var(--ink); }

::selection { background: var(--amber); color: var(--on-amber); }

/* amber underline swash in headlines — white text stays white */
.hl {
  background: linear-gradient(transparent 74%, var(--amber) 74%, var(--amber) 96%, transparent 96%);
  border-radius: 3px;
  padding: 0 0.08em;
}
main section:not(.hero) .hl {
  background: linear-gradient(transparent 60%, #DBE9FF 60%, #DBE9FF 94%, transparent 94%);
}

.hero h1 { max-width: 16ch; margin-bottom: 1.5rem; }

/* ---------- truthful claim chips: glass on the water ---------- */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.7rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}
.chips li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4ADE80;
  flex: none;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}
.chips li:nth-child(2)::before { background: var(--cyan); box-shadow: 0 0 10px rgba(92, 200, 255, 0.8); }
.chips li:nth-child(3)::before { background: var(--amber); box-shadow: 0 0 10px rgba(255, 197, 61, 0.8); }

/* ---------- call to action: the amber moment ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-hot) 100%);
  color: var(--on-amber);
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border: 1px solid rgba(10, 30, 79, 0.12);
  border-radius: 999px;
  margin-top: 2.1rem;
  box-shadow: var(--shadow-amber);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.cta::after { content: "→"; font-weight: 700; transition: transform 0.18s ease; }
.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 176, 32, 0.65);
}
.cta:hover::after { transform: translateX(4px); }
.cta:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(255, 176, 32, 0.5); }

.cta-note {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 0.9rem;
}
main section:not(.hero) .cta-note { color: var(--ink-soft); }

/* ---------- numbered steps → pastel-tile cards ---------- */

.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem 1.4rem 1.5rem;
  max-width: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.steps li:hover {
  transform: translateY(-5px);
  border-color: #D3E2FF;
  box-shadow: 0 24px 44px -20px rgba(10, 27, 63, 0.28);
}

/* the tile: layered gradient, ring, and a lift of its own */
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #FFF0E6 0%, #FFDCC4 100%);
  color: #C2410C;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(10, 27, 63, 0.06),
    0 6px 14px -6px rgba(194, 65, 12, 0.35);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.05rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.steps li:nth-child(2)::before {
  background: linear-gradient(145deg, #E9FBF2 0%, #C9F0DE 100%);
  color: #0F766E;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(10, 27, 63, 0.06),
    0 6px 14px -6px rgba(15, 118, 110, 0.35);
}
.steps li:nth-child(3)::before {
  background: linear-gradient(145deg, #FFF8DC 0%, #FFE9A8 100%);
  color: #A16207;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(10, 27, 63, 0.06),
    0 6px 14px -6px rgba(161, 98, 7, 0.35);
}
.steps li:hover::before { transform: rotate(-7deg) scale(1.12) translateY(-2px); }

.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin-bottom: 0; font-size: 0.9375rem; }

/* ---------- clauses (the standard) → cards with pastel rule pills ---------- */

.clause {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.8rem 1.6rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.clause:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -20px rgba(10, 27, 63, 0.25); }

.clause .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 0.95rem;
  background: #FFE9DC;
  color: #C2410C;
}
.clause:nth-of-type(4n+2) .num { background: #DFF7EC; color: #0F766E; }
.clause:nth-of-type(4n+3) .num { background: #E7F0FF; color: #1E4FD6; }
.clause:nth-of-type(4n) .num { background: #FFF3C9; color: #A16207; }

.clause h2 { font-size: clamp(1.3rem, 2.8vw, 1.55rem); }
.clause h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.clause p:last-child { margin-bottom: 0; }

/* ---------- pull panel: the inverted premium moment ---------- */

.panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(92, 200, 255, 0.25), transparent 60%),
    linear-gradient(150deg, var(--sea-1), var(--sea-2));
  color: #fff;
  border: 0;
  border-radius: var(--r-card);
  padding: 1.9rem 1.9rem;
  margin: 2.5rem 0 0;
  box-shadow: 0 24px 48px -24px rgba(4, 16, 48, 0.55);
}
.panel p { max-width: 34rem; color: rgba(255, 255, 255, 0.92); }
.panel strong { color: #fff; }
.panel :last-child { margin-bottom: 0; }

/* pull principle — one bold line that deserves a card of its own */
.pull {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.6rem 0;
  max-width: var(--measure);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
main section .pull p, .pull { color: var(--ink); }

.footnote {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.2rem 1.35rem;
  margin: 2rem 0 0;
  font-size: 0.8438rem;
  line-height: 1.65;
  max-width: 36rem;
}

/* ---------- definition-style lists ---------- */

.plain { padding-left: 1.15rem; max-width: var(--measure); }
.plain li { margin-bottom: 0.5rem; }

/* ---------- colophon: quiet, on the water ---------- */

.colophon {
  margin-top: 2.5rem;
  padding: 2.25rem 0 4.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}
.colophon .wrap { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 2rem; }
.colophon a { color: rgba(255, 255, 255, 0.85); }
.colophon a:hover { color: #fff; }
.colophon p { max-width: 44rem; }

/* ---------- focus ---------- */

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
main section:not(.hero) a:focus-visible { outline-color: var(--blue); }

/* ---------- cross-page transitions (CSS only, no script involved) ---------- */

@view-transition { navigation: auto; }

/* The masthead holds still while page content cross-fades beneath it. */
.masthead { view-transition-name: masthead; }

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

  ::view-transition-old(root) { animation: 180ms ease both vt-out; }
  ::view-transition-new(root) { animation: 320ms 60ms ease both vt-in; }
}

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- print (the Gate page will be printed and forwarded) ---------- */

@media print {
  body { background: #fff; color: #000; }
  .masthead { position: static; background: none; border-bottom: 1px solid #000; }
  .masthead nav, .cta, .skip, .chips, .hero::before, .hero::after { display: none; }
  .wordmark, .wordmark span { color: #000; }
  body { font-size: 11pt; }
  main section {
    background: none; box-shadow: none; border-radius: 0;
    width: 100%; margin: 0; padding: 1.25rem 0; color: #000;
    break-inside: avoid;
  }
  main section.hero { color: #000; padding: 1.25rem 0; }
  main section p, .lede, .quiet, .eyebrow { color: #000 !important; background: none !important; }
  .steps li, .clause, .footnote, .panel { box-shadow: none; background: none; border: 1px solid #999; color: #000; }
  .panel p, .panel strong { color: #000; }
  .hl { background: none; }
  .colophon { color: #000; }
  .colophon a { color: #000; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  /* The reveal script sets opacity/transform inline before elements scroll into
     view. Print must never inherit a hidden state — force everything visible. */
  main * { opacity: 1 !important; transform: none !important; }
}
