/* SEB Command public pages: landing, sign-in, consent, terms and privacy.
   Colours, fonts and radii come from static/tokens.css (loaded first), shared with the signed-in app. Forest appears
   only as an accent panel (the dossier, a featured plan, the closing panel, safety notes), never as the page tint. */

:root { --gutter: clamp(16px, 4vw, 40px); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  background: radial-gradient(1000px 520px at 50% -12%, rgba(212, 189, 138, .07), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "lnum" 1;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.005em; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--gold-ink); text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
a:hover { color: var(--text); text-decoration-color: currentColor; }
:focus-visible { outline: 1.5px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(212, 189, 138, .32); color: var(--text); }
img, svg { max-width: 100%; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; max-width: 58ch; }
.muted { color: var(--muted); }

/* Wordmark: monogram + spaced caps */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--forest-deep); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 3.6px rgba(212, 189, 138, .22); flex: none; }
.brand-mark::after { content: "S"; position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 1px; font-family: var(--font-display); font-size: 17px; letter-spacing: 0; color: var(--gold-ink); }

/* Buttons: one champagne primary, quiet secondary */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.button:hover { border-color: var(--gold); background: var(--gold-wash); color: var(--text); }
.button.primary { border-color: var(--gold-strong); background: linear-gradient(180deg, var(--gold-strong), var(--gold)); color: var(--on-gold); }
.button.primary:hover { background: linear-gradient(180deg, #ecdcb6, var(--gold-strong)); color: var(--on-gold); }
.button.block { width: 100%; }

/* ---------- Landing ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks > a:not(.button) { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.navlinks > a:not(.button):hover { color: var(--text); }
.navlinks .button { min-height: 40px; padding: 0 16px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); line-height: 1.02; margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--gold-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trustline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.trustline li::before { content: "\2713"; color: var(--gold); margin-right: 8px; }

/* The dossier: a forest panel describing the daily workflow */
.dossier { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--forest-line); border-radius: 18px; background: linear-gradient(160deg, var(--forest), var(--forest-deep) 62%, #142319); box-shadow: inset 0 1px 0 rgba(230, 212, 168, .07), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.dossier::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -230px; top: -250px; background: url("/static/guilloche.svg") center / contain no-repeat; opacity: .38; -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent); pointer-events: none; }
.dossier-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--forest-line); color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.dossier-head span:last-child { color: rgba(241, 237, 228, .55); }
.dossier ol { list-style: none; margin: 0; padding: 4px 24px 10px; }
.dossier li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid rgba(54, 89, 74, .6); }
.dossier li:last-child { border-bottom: 0; }
.dossier .step-no { grid-row: span 2; font-family: var(--font-display); font-variation-settings: "opsz" 11; font-size: 22px; line-height: 1.2; letter-spacing: .04em; color: var(--gold-ink); }
.dossier h3 { font-size: 21px; }
.dossier p { color: rgba(241, 237, 228, .72); font-size: 14.5px; line-height: 1.55; }

.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 18px; max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid var(--line); }
.pillar { padding: 30px 28px 6px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 24px; margin-bottom: 12px; }
.pillar p { color: var(--text-2); font-size: 15px; }
.pillar .rule { display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 22px; }

.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: end; }
.proof-note { color: var(--text-2); border-left: 1px solid var(--gold-line); padding-left: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 52px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, upper-roman) "."; display: block; font-family: var(--font-display); font-variation-settings: "opsz" 11; font-size: 20px; color: var(--gold); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--text-2); font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 52px; align-items: stretch; }
.pricecard { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pricecard.featured { border-color: var(--forest-line); background: linear-gradient(170deg, var(--forest), var(--forest-deep) 75%); }
.pricecard .tier { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pricecard h3 { font-size: 26px; }
.price { font-family: var(--font-display); font-size: 46px; line-height: 1; margin: 22px 0 6px; font-variant-numeric: lining-nums; }
.price small { font-family: var(--font); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.pricecard ul { list-style: none; margin: 18px 0 0; padding: 0; }
.pricecard li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--text-2); font-size: 14.5px; }
.pricing-closed { margin-top: 30px; color: var(--text-2); max-width: 60ch; }

.final { padding-block: clamp(64px, 9vw, 112px); }
.finalbox { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 20px; text-align: center; padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 64px); border: 1px solid var(--forest-line); border-radius: 20px; background: linear-gradient(160deg, var(--forest), var(--forest-deep) 62%, #142319); }
.finalbox::before { content: ""; position: absolute; z-index: -1; inset: 50% auto auto 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: url("/static/guilloche.svg") center / contain no-repeat; opacity: .16; pointer-events: none; }
.finalbox h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 18ch; }
.finalbox .lead { margin: 0 auto; }
.finalbox .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 30px 44px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Sign-in and consent: a single centred panel ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.panel { position: relative; overflow: hidden; isolation: isolate; width: min(480px, 100%); padding: clamp(26px, 5vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: rgba(20, 20, 22, .94); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85); }
.panel.wide { width: min(600px, 100%); }
.panel::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -200px; top: -210px; background: url("/static/guilloche.svg") center / contain no-repeat; opacity: .22; pointer-events: none; }
.panel .brand { margin-bottom: 30px; }
.panel h1 { font-size: clamp(32px, 6vw, 40px); margin: 16px 0 14px; }
.panel .lead { font-size: 15.5px; }
.back { display: inline-block; margin-bottom: 26px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.back:hover { color: var(--text); }
.field { width: 100%; min-height: 52px; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-deep); color: var(--text); font: 16px var(--font); outline: none; transition: border-color .2s ease; }
.field::placeholder { color: var(--muted); opacity: .75; }
.field:focus { border-color: var(--gold); }
.panel .button.block { margin-top: 12px; }
.status { margin-top: 16px; font-size: 13.5px; color: var(--text-2); }
.status:empty { display: none; }
.status.error { color: var(--loss); }
.status.error::before { content: "!\00a0"; font-weight: 700; }
.status .button { margin-top: 14px; width: 100%; }
.fine { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.promise { margin: 24px 0 8px; padding: 18px 20px; border: 1px solid var(--forest-line); border-radius: var(--radius-sm); background: var(--forest-deep); }
.promise strong { display: block; margin-bottom: 6px; color: var(--gold-ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.promise span { color: rgba(241, 237, 228, .78); font-size: 14.5px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-2); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }

/* ---------- Terms and privacy: a quiet reading page ---------- */
.doc { width: min(780px, 100%); margin-inline: auto; padding: 0 var(--gutter) 96px; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 84px; border-bottom: 1px solid var(--line-soft); margin-bottom: 52px; }
.doc-top a:not(.brand) { color: var(--text-2); text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.doc h1 { font-size: clamp(40px, 6vw, 58px); margin-bottom: 14px; }
.doc .version { color: var(--muted); font-size: 14px; }
.doc .notice { margin: 30px 0 10px; padding: 16px 20px; border: 1px solid var(--forest-line); border-radius: var(--radius-sm); background: var(--forest-deep); color: rgba(241, 237, 228, .82); font-size: 15px; }
.doc section { padding: 30px 0 26px; border-bottom: 1px solid var(--line-soft); }
.doc h2 { font-size: 26px; margin-bottom: 12px; }
.doc section p, .doc section li { color: var(--text-2); line-height: 1.75; max-width: 66ch; }
.doc section p + p { margin-top: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .pillars, .steps, .pricing, .proof { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0 18px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .navlinks > a:not(.button) { display: none; }
}
@media (max-width: 480px) {
  .nav, .doc-top { height: 72px; }
  .brand { letter-spacing: .26em; font-size: 10.5px; gap: 10px; }
  .actions .button { width: 100%; }
  .dossier-head span:last-child { display: none; }
  .dossier ol, .dossier-head { padding-inline: 18px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Hero: SEB = Solana · Ethereum · Base ---------- */
.seb-unfold { display: flex; flex-wrap: wrap; gap: 0 .45em; margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .02em; color: var(--text-2); }
.seb-unfold span { display: inline-flex; align-items: baseline; }
.seb-unfold b { font-weight: 500; color: var(--gold-ink); }
.seb-unfold i { display: inline-block; overflow: hidden; white-space: nowrap; font-style: normal; max-width: 0; opacity: 0;
  animation: seb-open .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.seb-unfold span:nth-child(1) i { animation-delay: .5s; }
.seb-unfold span:nth-child(2) i { animation-delay: 1.1s; }
.seb-unfold span:nth-child(3) i { animation-delay: 1.7s; }
@keyframes seb-open { to { max-width: 8ch; opacity: 1; } }
.hero h1:has(.hero-across) { font-size: clamp(38px, 4.8vw, 66px); }
.hero h1 .hero-across em { font-style: normal; color: var(--text); animation: network-glow 6s ease-in-out infinite; }
.hero h1 .hero-across em:nth-child(2) { animation-delay: 2s; }
.hero h1 .hero-across em:nth-child(3) { animation-delay: 4s; }
@keyframes network-glow { 0%, 30%, 100% { color: var(--text); } 10%, 20% { color: var(--gold-ink); } }
.hero-sign { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 0; font-family: var(--font-display); font-size: 20px; color: var(--gold-ink); }
.hero-sign span { font-family: var(--font); font-size: 11px; letter-spacing: .28em; color: var(--muted); }
.orbit-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(165deg, var(--surface-2), var(--surface) 70%); }
.orbit-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.orbit-sample { color: var(--gold); }
.orbit { width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.orbit-path { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.planet circle { fill: var(--forest); stroke: var(--gold); stroke-width: 1.5; }
.planet text { fill: var(--text); font: 600 11px var(--font); text-anchor: middle; }
.planet { opacity: 0; transform-box: fill-box; transform-origin: center; animation: planet-in .9s cubic-bezier(.2, .9, .3, 1.2) forwards, planet-float 6s ease-in-out 2.6s infinite; }
.planet.p1 { --from: translate(0, -60px); animation-delay: .4s, 2.6s; }
.planet.p2 { --from: translate(70px, 0); animation-delay: .7s, 3.4s; }
.planet.p3 { --from: translate(0, 60px); animation-delay: 1s, 4.2s; }
.planet.p4 { --from: translate(-70px, 0); animation-delay: 1.3s, 5s; }
@keyframes planet-in { from { opacity: 0; transform: var(--from) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes planet-float { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.orbit-total text { fill: var(--text); font: 500 30px var(--font-display); text-anchor: middle; opacity: 0; animation: total-in .8s ease-out 1.9s forwards; }
.orbit-total .orbit-caption { fill: var(--muted); font: 11px var(--font); }
@keyframes total-in { to { opacity: 1; } }
.orbit-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.orbit-steps b { display: inline-block; width: 26px; color: var(--gold); font-family: var(--font-display); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .seb-unfold i { max-width: none; opacity: 1; animation: none; }
  .hero h1 .hero-across em, .planet, .orbit-total text { animation: none; opacity: 1; }
}
