/* Shared by the landing page and /try. Design tokens match Easdger: one cobalt
   accent, cool neutrals. Light by default; dark only when the visitor picks it
   (html[data-theme="dark"], set by theme.js and remembered).
   Shape rule: cards 24px, inputs 16px, buttons and pills fully rounded. */
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2");
             font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono.woff2") format("woff2");
             font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3f4f7; --surface: #fcfcfd; --surface-2: #eceef2; --ink: #0e1014; --muted: #5d6470;
  --sep: rgb(14 16 20 / 0.08); --accent: #1d46c8; --accent-ink: #ffffff;
  --accent-soft: rgb(29 70 200 / 0.1); --danger: #c8321f; --success: #12804a;
  --glass: rgb(252 252 253 / 0.72); --glass-edge: rgb(255 255 255 / 0.7);
  --shadow: 0 12px 32px -12px rgb(29 47 110 / 0.25);
  --card-top: #2350e0; --card-mid: #13319b; --card-deep: #0b1d5c;
  --card-glow: rgb(120 160 255 / 0.45); --card-shade: rgb(8 20 70 / 0.9);
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --wave-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-width='0.8' stroke-opacity='0.2'%3E%3Cpath d='M-20 -37.5L-10 -33.8L0 -30.0L10 -26.2L20 -22.5L30 -18.8L40 -15.2L50 -11.8L60 -8.6L70 -5.6L80 -2.9L90 -0.4L100 1.9L110 3.8L120 5.5L130 6.8L140 7.9L150 8.8L160 9.4L170 9.8L180 10.0L190 10.0L200 9.9L210 9.8L220 9.6L230 9.4L240 9.2L250 9.2L260 9.2L270 9.4L280 9.8L290 10.4L300 11.3L310 12.4L320 13.7L330 15.4L340 17.3L350 19.6L360 22.1L370 24.8L380 27.8L390 31.1L400 34.5L410 38.0L420 41.7'/%3E%3Cpath d='M-20 -5.6L-10 -1.6L0 2.2L10 5.9L20 9.5L30 12.8L40 15.9L50 18.8L60 21.3L70 23.6L80 25.6L90 27.3L100 28.6L110 29.7L120 30.5L130 31.0L140 31.2L150 31.3L160 31.2L170 31.0L180 30.7L190 30.3L200 29.9L210 29.6L220 29.4L230 29.3L240 29.3L250 29.6L260 30.1L270 30.8L280 31.8L290 33.2L300 34.8L310 36.7L320 39.0L330 41.5L340 44.4L350 47.4L360 50.8L370 54.3L380 58.0L390 61.8L400 65.7L410 69.7L420 73.7'/%3E%3Cpath d='M-20 27.0L-10 30.7L0 34.2L10 37.4L20 40.4L30 43.1L40 45.4L50 47.4L60 49.1L70 50.4L80 51.4L90 52.1L100 52.6L110 52.7L120 52.7L130 52.5L140 52.1L150 51.6L160 51.1L170 50.5L180 50.0L190 49.6L200 49.4L210 49.3L220 49.4L230 49.7L240 50.4L250 51.3L260 52.6L270 54.2L280 56.1L290 58.4L300 61.0L310 63.9L320 67.0L330 70.5L340 74.1L350 78.0L360 81.9L370 86.0L380 90.2L390 94.3L400 98.4L410 102.4L420 106.3'/%3E%3Cpath d='M-20 59.0L-10 62.0L0 64.8L10 67.2L20 69.2L30 70.9L40 72.2L50 73.2L60 73.8L70 74.2L80 74.3L90 74.1L100 73.7L110 73.2L120 72.5L130 71.8L140 71.1L150 70.5L160 69.9L170 69.4L180 69.2L190 69.2L200 69.4L210 70.0L220 70.8L230 72.0L240 73.6L250 75.5L260 77.8L270 80.4L280 83.4L290 86.6L300 90.2L310 93.9L320 97.9L330 102.0L340 106.3L350 110.6L360 114.9L370 119.2L380 123.3L390 127.4L400 131.2L410 134.8L420 138.2'/%3E%3Cpath d='M-20 88.9L-10 91.0L0 92.7L10 94.0L20 95.0L30 95.5L40 95.8L50 95.8L60 95.5L70 95.0L80 94.3L90 93.5L100 92.6L110 91.7L120 90.9L130 90.2L140 89.6L150 89.2L160 89.0L170 89.1L180 89.6L190 90.3L200 91.5L210 93.0L220 94.9L230 97.2L240 99.9L250 102.9L260 106.2L270 109.8L280 113.7L290 117.8L300 122.1L310 126.5L320 131.0L330 135.5L340 139.9L350 144.3L360 148.5L370 152.5L380 156.2L390 159.7L400 162.8L410 165.7L420 168.1'/%3E%3Cpath d='M-20 115.8L-10 116.7L0 117.3L10 117.5L20 117.3L30 116.9L40 116.3L50 115.4L60 114.5L70 113.4L80 112.4L90 111.4L100 110.5L110 109.7L120 109.1L130 108.8L140 108.8L150 109.2L160 109.9L170 110.9L180 112.4L190 114.3L200 116.6L210 119.3L220 122.3L230 125.8L240 129.5L250 133.5L260 137.8L270 142.2L280 146.8L290 151.4L300 156.0L310 160.7L320 165.2L330 169.5L340 173.7L350 177.6L360 181.2L370 184.4L380 187.4L390 189.9L400 192.0L410 193.7L420 195.0'/%3E%3Cpath d='M-20 139.1L-10 138.9L0 138.3L10 137.6L20 136.6L30 135.5L40 134.3L50 133.0L60 131.9L70 130.8L80 129.8L90 129.1L100 128.7L110 128.6L120 128.8L130 129.4L140 130.4L150 131.8L160 133.7L170 136.0L180 138.7L190 141.8L200 145.3L210 149.1L220 153.3L230 157.7L240 162.2L250 167.0L260 171.8L270 176.6L280 181.4L290 186.1L300 190.6L310 194.9L320 198.9L330 202.7L340 206.0L350 209.0L360 211.6L370 213.8L380 215.5L390 216.8L400 217.7L410 218.2L420 218.3'/%3E%3Cpath d='M-20 158.9L-10 157.8L0 156.5L10 155.1L20 153.7L30 152.4L40 151.1L50 150.0L60 149.1L70 148.6L80 148.3L90 148.4L100 148.9L110 149.9L120 151.2L130 153.1L140 155.4L150 158.1L160 161.3L170 164.9L180 168.8L190 173.0L200 177.5L210 182.3L220 187.1L230 192.1L240 197.1L250 202.1L260 206.9L270 211.6L280 216.1L290 220.3L300 224.1L310 227.6L320 230.7L330 233.4L340 235.6L350 237.3L360 238.6L370 239.5L380 239.9L390 239.9L400 239.6L410 239.0L420 238.0'/%3E%3Cpath d='M-20 176.0L-10 174.4L0 172.9L10 171.5L20 170.2L30 169.2L40 168.4L50 168.0L60 168.0L70 168.5L80 169.3L90 170.7L100 172.5L110 174.8L120 177.5L130 180.7L140 184.4L150 188.4L160 192.8L170 197.4L180 202.3L190 207.3L200 212.4L210 217.6L220 222.7L230 227.8L240 232.6L250 237.2L260 241.6L270 245.6L280 249.2L290 252.4L300 255.1L310 257.3L320 259.1L330 260.4L340 261.3L350 261.6L360 261.6L370 261.2L380 260.4L390 259.4L400 258.1L410 256.7L420 255.1'/%3E%3Cpath d='M-20 191.8L-10 190.4L0 189.2L10 188.3L20 187.8L30 187.7L40 188.0L50 188.8L60 190.1L70 191.9L80 194.1L90 196.9L100 200.2L110 203.9L120 208.0L130 212.5L140 217.2L150 222.3L160 227.4L170 232.8L180 238.1L190 243.4L200 248.6L210 253.6L220 258.4L230 262.9L240 267.0L250 270.7L260 274.0L270 276.8L280 279.1L290 280.9L300 282.2L310 283.1L320 283.4L330 283.3L340 282.8L350 281.9L360 280.7L370 279.3L380 277.7L390 276.0L400 274.3L410 272.6L420 271.0'/%3E%3Cpath d='M-20 208.3L-10 207.6L0 207.3L10 207.6L20 208.3L30 209.5L40 211.2L50 213.5L60 216.3L70 219.6L80 223.4L90 227.6L100 232.2L110 237.1L120 242.2L130 247.6L140 253.0L150 258.6L160 264.0L170 269.4L180 274.6L190 279.5L200 284.2L210 288.4L220 292.3L230 295.7L240 298.5L250 300.9L260 302.8L270 304.1L280 304.9L290 305.2L300 305.0L310 304.4L320 303.4L330 302.1L340 300.5L350 298.8L360 296.9L370 295.0L380 293.1L390 291.4L400 289.8L410 288.4L420 287.4'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0a0b0d; --surface: #15171b; --surface-2: #1f2228; --ink: #f2f3f5; --muted: #949ba6;
    --sep: rgb(255 255 255 / 0.07); --accent: #6189ff; --accent-ink: #0a0b0d;
    --accent-soft: rgb(97 137 255 / 0.14); --danger: #ff6b5e; --success: #3dd68c;
    --glass: rgb(28 30 36 / 0.7); --glass-edge: rgb(255 255 255 / 0.08);
    --shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6);
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* Pages fill the window; the footer sits at the bottom even on short pages. */
body > main { flex: 1 0 auto; width: 100%; }
body > nav, body > footer { width: 100%; }

/* Full-width decoration behind the top of a page. It spans the whole window and
   fades out on every side, so it never ends in a hard edge on wide screens. */
.page-decor { position: absolute; top: 0; left: 0; right: 0; height: 620px; z-index: -1;
              pointer-events: none; overflow: hidden;
              -webkit-mask-image: linear-gradient(#000 40%, transparent);
                      mask-image: linear-gradient(#000 40%, transparent); }
.page-decor .wave-glow, .page-decor .wave-backdrop { inset: 0; }

/* Top bar */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px;
       max-width: 1180px; margin: 0 auto; padding: 20px 20px 0; }
/* Wordmark: the name, big, with a full stop in the accent colour */
.brand { font-size: 28px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; text-decoration: none; color: var(--ink); }
.brand .stop { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }

/* Theme toggle: a round icon button in the nav */
.theme-toggle { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--sep); cursor: pointer;
                display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
  padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--ink); color: var(--bg); transition: transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }

.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 12px;
        font: 500 12.5px/1.4 var(--mono); background: var(--surface); border: 1px solid var(--sep); color: var(--muted); }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* The wave lines, tinted with the accent and fading toward the edges. Put on an
   absolutely positioned layer behind content. */
.wave-backdrop {
  position: absolute; pointer-events: none; z-index: -1;
  background: var(--accent); opacity: 0.55;
  -webkit-mask-image: var(--wave-lines), radial-gradient(ellipse 50% 60% at 50% 45%, #000 25%, transparent 75%);
          mask-image: var(--wave-lines), radial-gradient(ellipse 50% 60% at 50% 45%, #000 25%, transparent 75%);
  -webkit-mask-size: 100% 100%, 100% 100%; mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.wave-glow {
  position: absolute; pointer-events: none; z-index: -1;
  background:
    radial-gradient(50% 45% at 50% 35%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(35% 30% at 85% 10%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
}

/* Easdger's balance card: deep cobalt with wave lines and grain, white ink. */
.cobalt {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, var(--card-glow) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, var(--card-shade) 0%, transparent 60%),
    linear-gradient(145deg, var(--card-top) 0%, var(--card-mid) 55%, var(--card-deep) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 20px 40px -18px color-mix(in srgb, var(--card-mid) 60%, transparent);
}
.cobalt::before, .cobalt::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cobalt::before {
  background: var(--wave-lines) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, rgb(0 0 0 / 0.35) 100%);
          mask-image: linear-gradient(200deg, #000 20%, rgb(0 0 0 / 0.35) 100%);
}
.cobalt::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; opacity: 0.16; mix-blend-mode: overlay;
}
.cobalt .kicker { color: rgb(255 255 255 / 0.7); }
.chip { display: inline-flex; border-radius: 999px; padding: 4px 10px; font: 500 12.5px/1.4 var(--mono);
        background: rgb(255 255 255 / 0.12); }

/* Match card (used by /try results and the landing page product shot) */
.card { background: var(--surface); border: 1px solid var(--sep); border-radius: 24px; padding: 20px 22px; }
.card-top { display: flex; gap: 14px; align-items: center; }
.score {
  flex: none; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  font: 600 17px/1 var(--mono); font-variant-numeric: tabular-nums;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
}
.score.mid { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.card h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.3; }
.meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card h3 { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em;
           color: var(--muted); margin: 18px 0 8px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { margin: 0 0 10px; font-size: 15px; }
.quote { display: inline-block; margin-top: 4px; border-radius: 6px; padding: 1px 6px; font-size: 13.5px;
         background: var(--accent-soft); color: var(--accent); }
.gaps li { color: var(--muted); padding-left: 16px; position: relative; }
.gaps li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px;
                   border-radius: 999px; background: var(--danger); opacity: .75; }

.skeleton { height: 148px; margin-top: 14px; border-radius: 24px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.footer { max-width: 1180px; margin: 0 auto; padding: 40px 20px 32px; color: var(--muted);
          font-size: 12.5px; line-height: 1.6; }
.footer a { color: inherit; }
.footer .credit { color: var(--ink); font-size: 13.5px; margin-bottom: 6px; }
.footer .credit b { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .btn { transition: none; }
}
