/* site/start/start.css: the card's landing page. The same cool neutrals and
   single accent as the start flow (/wizard/), light and dark both designed.
   System fonts only; nothing here fetches anything but the committed photo. */

.st-page {
  --st-bg: #f4f6f9;
  --st-surface: #ffffff;
  --st-ink: #0b121a;
  --st-ink-2: #33414e;
  --st-muted: #5f6c79;
  --st-line: rgba(12, 22, 34, 0.09);
  --st-accent: #0a66d8;
  --st-accent-soft: rgba(10, 102, 216, 0.1);
  --st-land: #a7b5c4;
  --st-night: #07090d;
  --st-night-2: #10151c;
  --st-glow: #4fb2ff;
  --st-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", system-ui, sans-serif;
  --st-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--st-bg);
  color: var(--st-ink);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  .st-page {
    --st-bg: #07090d;
    --st-surface: #10151c;
    --st-ink: #f1f4f8;
    --st-ink-2: #c3ccd6;
    --st-muted: #8d99a6;
    --st-line: rgba(255, 255, 255, 0.08);
    --st-accent: #4fb2ff;
    --st-accent-soft: rgba(79, 178, 255, 0.13);
    --st-land: #3d4e62;
    color-scheme: dark;
  }
}

.st-page main { font-family: var(--st-display); -webkit-font-smoothing: antialiased; }
.st-page main section { padding: 0; }
.st-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ---------- hero ---------- */

.st-hero {
  position: relative; overflow: hidden; color: #f1f4f8;
  background: var(--st-night);
  min-height: min(760px, calc(100vh - 70px));
  display: flex; align-items: center;
}
.st-backdrop { position: absolute; inset: 0; }
.st-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.st-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.45) 55%, rgba(7, 9, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.2) 60%, rgba(7, 9, 13, 0.9));
}
.st-hero .st-wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; width: 100%; }
.st-hero-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 56px; align-items: center;
}
.st-preview {
  margin: 0; padding: 26px 26px 20px; border-radius: 28px;
  background: rgba(16, 21, 28, 0.72); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #f1f4f8; font-family: var(--st-display);
}
.st-preview p { margin: 0; }
.st-preview-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #aab6c2; }
.st-preview-top span { width: 8px; height: 8px; border-radius: 50%; background: #3ad48a; box-shadow: 0 0 0 4px rgba(58, 212, 138, 0.18); }
.st-preview-figure {
  margin-top: 12px !important; font-size: clamp(48px, 5.4vw, 68px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
.st-preview-label { margin-top: 10px !important; font-size: 15px; color: #c3ccd6; }
.st-preview-label b { color: #f1f4f8; font-weight: 620; }
.st-preview-chip {
  display: inline-block; margin-top: 14px !important; padding: 6px 12px; border-radius: 999px;
  background: rgba(79, 178, 255, 0.14); font-size: 13px; font-weight: 600; color: #e6edf3;
}
.st-preview-curve { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.st-preview-base { stroke: rgba(255, 255, 255, 0.14); }
.st-preview-wash { fill: rgba(79, 178, 255, 0.14); }
.st-preview-line { fill: none; stroke: #4fb2ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.st-preview-dot { fill: #4fb2ff; stroke: #10151c; stroke-width: 2.5; }
.st-preview-guide { stroke: rgba(255, 255, 255, 0.22); stroke-dasharray: 2 4; }
.st-preview-note { fill: #aab6c2; font: 12.5px var(--ui-font-text); }
.st-preview-value { fill: #f1f4f8; font: 650 15px var(--ui-font-text); font-variant-numeric: tabular-nums; }
.st-preview-axis { fill: #8d99a6; font: 11px var(--ui-font-text); }
.st-preview-id { margin-top: 12px; font: 11.5px var(--ui-font-mono); color: #8d99a6; overflow-wrap: anywhere; }
.st-kicker {
  margin: 0 0 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9fb3c4;
}
.st-hero h1 {
  margin: 0; font-family: var(--st-display);
  font-size: clamp(48px, 5.8vw, 84px); line-height: 1; font-weight: 700;
  letter-spacing: -0.04em; color: #ffffff;
}
.st-lede { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: #c3ccd6; }
.st-lede-ink { color: var(--st-ink-2); max-width: 46ch; }
.st-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 34px 0 0; }
.st-ctas-center { justify-content: center; }
.st-go {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--st-accent); color: #ffffff; text-decoration: none;
  font: 620 17px/1 var(--st-display); letter-spacing: -0.005em;
  box-shadow: 0 8px 26px rgba(10, 102, 216, 0.28);
  transition: transform 0.15s var(--st-ease), box-shadow 0.2s var(--st-ease);
}
.st-hero .st-go, .st-band-dark .st-go { background: #4fb2ff; color: #03101d; box-shadow: 0 8px 30px rgba(79, 178, 255, 0.3); }
@media (prefers-color-scheme: dark) {
  .st-go { color: #03101d; }
}
.st-go:hover { transform: translateY(-1px); }
.st-go:focus-visible, .st-quiet:focus-visible, .st-page main a:focus-visible {
  outline: 2px solid var(--st-glow); outline-offset: 3px; border-radius: 12px;
}
.st-quiet { color: #dfe7ee; font-size: 16px; font-weight: 560; text-decoration: underline; text-underline-offset: 4px; }
.st-chip {
  margin: 22px 0 0; min-height: 1.3em;
  font: 13.5px var(--ui-font-mono); color: var(--st-glow);
}
.st-fine { margin: 26px 0 0; max-width: 60ch; font-size: 12.5px; line-height: 1.5; color: #8d99a6; }

/* ---------- bands ---------- */

.st-page .st-band { padding: 104px 0; background: var(--st-bg); color: var(--st-ink); }
.st-page .st-band-dark { background: var(--st-night); color: #f1f4f8; }
.st-band-dark .st-kicker { color: #8d99a6; }
.st-band-dark .st-lede { color: #c3ccd6; }
.st-h2 {
  margin: 0; font-family: var(--st-display);
  font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 700;
  letter-spacing: -0.035em;
}

.st-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.st-steps li {
  padding: 28px 26px 26px; border-radius: var(--ui-radius-lg); background: var(--st-surface);
  border: 1px solid var(--st-line);
  box-shadow: 0 1px 2px rgba(12, 22, 34, 0.04), 0 10px 30px rgba(12, 22, 34, 0.06);
}
.st-steps h3 { margin: 22px 0 4px; font-size: 22px; font-weight: 660; letter-spacing: -0.015em; }
.st-steps p { margin: 0; font-size: 16.5px; color: var(--st-muted); }
.st-art { width: 100%; height: auto; max-width: 240px; display: block; }
.st-land circle { fill: var(--st-land); }
.st-halo { fill: var(--st-accent-soft); }
.st-ring { fill: var(--st-surface); }
.st-pin { fill: var(--st-accent); }
.st-glyph path { fill: none; stroke: var(--st-accent); stroke-width: 2.4; stroke-linecap: round; }
.st-wash { fill: var(--st-accent-soft); }
.st-line { fill: none; stroke: var(--st-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }

.st-curve { display: block; width: 100%; max-width: 760px; height: auto; margin: 40px 0 0; overflow: visible; }
.st-grid { stroke: rgba(255, 255, 255, 0.08); }
.st-base { stroke: rgba(255, 255, 255, 0.22); }
.st-axis { fill: #8d99a6; font: 11px var(--ui-font-mono); }
.replay-curve { stroke: #4fb2ff; stroke-linejoin: round; stroke-linecap: round; }
.st-caption { margin: 18px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.55; color: #aab6c2; }
.st-mono { font-family: var(--ui-font-mono); font-size: 0.9em; overflow-wrap: anywhere; }

.st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 40px 0 0; }
.st-card {
  padding: 28px 26px; border-radius: var(--ui-radius-lg); background: var(--st-surface);
  border: 1px solid var(--st-line); min-width: 0;
}
.st-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 660; letter-spacing: -0.015em; }
.st-card p { margin: 0; color: var(--st-ink-2); font-size: 16px; line-height: 1.5; }
.st-card a { color: var(--st-accent); font-weight: 560; text-underline-offset: 3px; }
.st-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px !important; }
.st-card-dark { background: var(--st-night-2); color: #f1f4f8; border-color: rgba(255, 255, 255, 0.08); }
.st-card-dark p { color: #aab6c2; }
.st-card-dark a { color: var(--st-glow); }
.st-code {
  margin: 4px 0 16px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); overflow-x: auto;
}
.st-code pre { margin: 0; color: #e6edf3; font-size: 13px; line-height: 1.6; white-space: pre; }
.st-roles { margin: 30px 0 0; color: var(--st-muted); font-size: 15.5px; }
.st-roles a { color: var(--st-ink-2); }

.st-terms { margin-top: 26px; }
.st-terms summary { cursor: pointer; color: #8d99a6; font-size: 15px; font-weight: 560; }
.st-terms p { color: #8d99a6; max-width: 70ch; font-size: 14px; line-height: 1.6; }
.st-terms a { color: var(--st-glow); }

/* ---------- the prize-draw form ---------- */
.wz-draw-form {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 30px;
}
.wz-draw-field { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.wz-draw-field span { font-size: 13px; color: #8d99a6; }
.wz-draw-field em { font-style: normal; opacity: .7; }
.wz-draw-field input {
  font: 16px var(--st-display); color: #f1f4f8;
  background: var(--st-night-2); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 14px 16px; min-width: 240px;
}
.wz-draw-field input::placeholder { color: #8d99a6; opacity: .8; }
.wz-draw-field input:focus { outline: 2px solid #4fb2ff; outline-offset: 1px; }
.wz-draw-said { margin-top: 18px; color: var(--st-glow); max-width: 60ch; }
.wz-draw-said[data-level="warn"] { color: #ff6470; }

@media (max-width: 980px) {
  .st-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .st-preview { max-width: 460px; }
}
@media (max-width: 860px) {
  .st-steps, .st-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .st-wrap { padding: 0 16px; }
  .st-hero h1 { font-size: clamp(44px, 12.5vw, 56px); }
  .st-hero { min-height: 0; }
  .st-hero .st-wrap { padding-top: 48px; padding-bottom: 48px; }
  .st-preview { padding: 22px 20px 16px; border-radius: var(--ui-radius-lg); }
  .st-steps { gap: 10px; margin-top: 32px; }
  .st-steps li {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px;
    align-items: center; padding: 16px 18px;
  }
  .st-steps .st-art { grid-row: span 2; max-width: 92px; }
  .st-steps h3 { margin: 0; font-size: 19px; align-self: end; }
  .st-steps p { font-size: 15px; align-self: start; }
  .st-page .st-band { padding: 72px 0; }
  .st-go { width: 100%; justify-content: center; }
  /* The replay curve's text is in user units and shrinks with the drawing
     (560 wide in a 358 px column); scale it back up to about 11 px. */
  .st-curve .st-axis { font-size: 17px; }
  .wz-draw-form { flex-direction: column; align-items: stretch; }
  .wz-draw-field, .wz-draw-field input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .st-go { transition: none; }
}
