/* The public front page (landing.ts): one idea at full size, the portal's colors, a lot of air. No script. */
@font-face { font-family: "Geist"; src: url("/portal/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --bg: #f5f6f8; --panel: #ffffff; --fg: #0e1b2c; --muted: #5a6575; --line: #e3e6eb; --accent: #2f45d6; --bright: #9fb0ff; --ink: #0b1524; --amber: #fab219; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
html, body { margin: 0; }
body { background: var(--panel); color: var(--fg); font: 17px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero a:focus-visible, .closing a:focus-visible, .truth a:focus-visible { outline-color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }

.top { background: var(--panel); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand svg circle { fill: var(--accent); }
.brand svg path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand .name { display: inline-flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.top nav a { color: #3d4757; font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang { font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: rgb(255 255 255 / 0.35); color: #fff; }

.hero { color: #fff; background: var(--ink); padding: 96px 0 72px; overflow: hidden; }
h1 { margin: 0; font-size: clamp(44px, 7.4vw, 108px); line-height: 0.96; font-weight: 800; letter-spacing: -0.05em; }
h1 span { display: block; }
h1 em { display: block; font-style: normal; color: var(--bright); }
.lead { margin: 36px 0 32px; max-width: 34em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: #cfd8e8; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.voyage { margin: 72px 0 0; padding: 0; position: relative; }
.voyage figcaption { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8d9bb3; }
.line { position: relative; height: 3px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.32) 0 8px, transparent 8px 16px); }
.dot { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgb(250 178 25 / 0.22); animation: voyage 7s cubic-bezier(.45,.05,.55,.95) both; }
@keyframes voyage { from { left: 0; } to { left: 100%; } }
.voyage ol { list-style: none; display: flex; justify-content: space-between; margin: 16px 0 0; padding: 0; font-size: 14px; color: #aab6ca; }
.alarm { display: inline-block; margin: 22px 0 0; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--amber); animation: arrive .5s ease 6.6s both; }
.voyage { text-align: left; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.truth { padding: 128px 0; }
.big { margin: 0 0 32px; font-size: clamp(36px, 6.4vw, 88px); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; color: var(--muted); }
.big strong { font-weight: 800; color: var(--fg); }
.truth .body { margin: 0; max-width: 36em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }

.story { padding: 112px 0; background: var(--bg); }
.sub { margin: 18px 0 48px; max-width: 34em; font-size: 19px; color: var(--muted); }
.ledger { border-top: 2px solid var(--fg); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid #d5d9e0; font-size: 18px; }
.row.head { padding: 14px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row .says { font-weight: 600; }
.row:not(.head) .says::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 12px 2px 0; border-radius: 50%; background: var(--accent); }

.gain { padding: 112px 0; }
.gain ol { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: gain; }
.gain li { counter-increment: gain; display: grid; grid-template-columns: 72px minmax(0, 6fr) minmax(0, 6fr); gap: 16px 24px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.gain li::before { content: "0" counter(gain); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.gain h3 { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.gain p { margin: 0; color: var(--muted); font-size: 18px; }

.one { padding: 112px 0; color: #fff; background: var(--accent); }
.one-head { max-width: 860px; }
.one-head p { margin: 24px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.three p { margin: 0; }
.one .three p { color: #e3e8ff; }
.fits { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.3); font-weight: 600; }
.one a { color: #fff; }
.one a:focus-visible { outline-color: #fff; }
.note { margin: 10px 0 0; font-size: 14px; color: #dbe1ff; }

.who { padding: 112px 0; }
.who .three p { color: var(--muted); }

.closing { padding: 128px 0; color: #fff; background: var(--ink); }
.closing h2 { font-size: clamp(42px, 8vw, 104px); letter-spacing: -0.05em; line-height: 0.98; }
.closing p { margin: 24px 0 36px; max-width: 32em; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; color: #cfd8e8; }
.foot { font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 0 auto; }

/* The legal pages (legal.ts): one column of text, easy to read. */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.legal .effective { margin: 12px 0 36px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 40px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.legal p { margin: 0 0 14px; }

@media (max-width: 860px) {
  .three { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 44px; }
  .gain li { grid-template-columns: 48px minmax(0, 1fr); }
  .gain li p { grid-column: 2; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row.head { display: none; }
  .row:not(.head) span:first-child { color: var(--muted); font-size: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top nav { order: 3; width: 100%; }
  .hero { padding: 56px 0 48px; }
  .voyage { margin-top: 48px; }
  .truth, .story, .gain, .one, .who { padding: 72px 0; }
  .closing { padding: 88px 0; }
  .foot p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .dot { animation: none; left: 100%; }
  .alarm { animation: none; }
}
