/*
 * svggems.com — the same sea as the app.
 * Night by default, day when the visitor's device is set to light.
 * Fonts are served from this site: no third-party requests at all.
 */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-500.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-700.ttf') format('truetype'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-400.ttf') format('truetype'); }

:root {
  color-scheme: dark light;
  --top: #0E2A47;
  --bg: #0A2038;
  --deep: #061527;
  --ink: #EEF2F0;
  --mist: #93A8BD;
  --surface: rgba(16, 48, 79, 0.72);
  --line: #214A70;
  --land: #16385A;
  --land-line: #2F5A82;
  --lit: #2E9E69;
  --lit-line: #8FF0BC;
  --green: #3DD68C;
  --on-green: #06182B;
  --link: #7FD9A8;
  --gold: #F2C230;
  --contour: rgba(143, 188, 230, 0.09);
  --contour-strong: rgba(143, 188, 230, 0.22);
}
@media (prefers-color-scheme: light) {
  :root {
    --top: #F3F8F9;
    --bg: #E6F0F3;
    --deep: #D5E5EB;
    --ink: #0B2340;
    --mist: #4E6A82;
    --surface: rgba(255, 255, 255, 0.8);
    --line: #C3D6E0;
    --land: #F1F6F2;
    --land-line: #9DB8C8;
    --lit: #2E9E69;
    --lit-line: #11774A;
    --green: #148A55;
    --on-green: #FFFFFF;
    --link: #11774A;
    --gold: #D9A300;
    --contour: rgba(47, 106, 152, 0.13);
    --contour-strong: rgba(47, 106, 152, 0.28);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--top) 0%, var(--bg) 45%, var(--deep) 100%);
  color: var(--ink);
  font: 400 17px/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.contours path { fill: none; stroke: var(--contour); stroke-width: 1; vector-effect: non-scaling-stroke; }
header, main, footer { position: relative; z-index: 1; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.top, main, .foot { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.flag { width: 24px; height: 22px; }
.flag path { fill: #009E49; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { color: var(--ink); }

/* type */
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--mist); max-width: 34em; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 20%, transparent); }
.button {
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 26px;
  background: var(--green); color: var(--on-green); font-weight: 700; text-decoration: none;
}
.button:hover { color: var(--on-green); filter: brightness(1.06); }
.hero-chain { display: flex; justify-content: center; }
.chain { width: min(62vw, 280px); height: auto; overflow: visible; }
.chain .land { fill: var(--land); stroke: var(--land-line); stroke-width: .6; stroke-linejoin: round; }
.chain .lit { fill: var(--lit); stroke: var(--lit-line); stroke-width: .6; stroke-linejoin: round; }
.chain .labels text { font: 500 6.2px 'DM Sans', sans-serif; fill: var(--mist); }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 72px; padding-bottom: 72px; }
  .hero-chain { justify-content: flex-end; }
}

/* sections */
main > section { padding-top: 56px; padding-bottom: 8px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.steps li {
  counter-increment: step;
  padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.steps li::before {
  content: counter(step);
  display: block; font-family: 'Instrument Serif', Georgia, serif; font-size: 44px; line-height: 1; margin-bottom: 10px; color: var(--green);
}
.steps p, .cards p { color: var(--mist); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
.cards article { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.island-card > div {
  margin-top: 8px; padding: 32px 26px; border-radius: 28px;
  background: linear-gradient(135deg, #1F5A86 0%, #173F66 55%, #102E4E 100%);
  color: #F3F8F9; display: flex; flex-direction: column; gap: 12px;
}
.island-card p { color: #BFD4E8; max-width: 38em; }

.trust ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.trust li { padding-left: 18px; border-left: 3px solid var(--gold); color: var(--mist); }
.trust li strong { color: var(--ink); }

/* legal pages */
.doc main { max-width: 760px; }
.legal { padding-top: 32px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(40px, 7vw, 60px); margin-bottom: 10px; }
.legal h2 { font-size: 30px; margin: 44px 0 12px; }
.legal h3 { margin-top: 26px; }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal strong { font-weight: 700; }
.legal code { font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.legal .scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }

/* footer */
.foot { display: grid; gap: 18px; padding-top: 48px; padding-bottom: 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.foot p { color: var(--mist); margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.fine { font-size: 14px; }
@media (min-width: 820px) { .foot { grid-template-columns: 1fr auto; align-items: start; } .fine { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) {
  .chain .lit { transition: fill .3s; }
}
