/* ============================================================================
   AI Visibility Checker — Design System
   Clean SaaS (Stripe / Linear) · white & blue · light + dark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg: #f7f9fc;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #eef3f9;
  --border: #e6ebf2;
  --border-strong: #d7deea;

  --text: #0b1530;
  --text-2: #475472;
  --text-3: #8893a8;

  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-weak: #eef4ff;
  --primary-weak-2: #f6f9ff;
  --primary-border: #d6e2ff;
  --accent: #38bdf8;
  --ring: rgba(37, 99, 235, 0.30);

  --success: #16a34a;  --success-weak: #e7f8ee;  --success-border: #c5ebd2;
  --warn: #d97706;     --warn-weak: #fdf4e7;      --warn-border: #f5e0bd;
  --danger: #dc2626;   --danger-weak: #fdecec;    --danger-border: #f6cfcf;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08), 0 16px 40px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, 0.14);

  --nav-bg: rgba(255, 255, 255, 0.82);
  --cta-text: #ffffff;
  --hero-glow: rgba(37, 99, 235, 0.10);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-xl: 20px;  --r-2xl: 24px;
  --maxw: 1120px;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #0e1626;
  --surface-2: #121c30;
  --surface-3: #16213a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eaf0fb;
  --text-2: #9fb0cc;
  --text-3: #67789a;

  --primary: #3b82f6;
  --primary-600: #60a5fa;
  --primary-700: #93c5fd;
  --primary-weak: rgba(59, 130, 246, 0.13);
  --primary-weak-2: rgba(59, 130, 246, 0.07);
  --primary-border: rgba(59, 130, 246, 0.30);
  --accent: #38bdf8;
  --ring: rgba(96, 165, 250, 0.40);

  --success: #34d399;  --success-weak: rgba(52, 211, 153, 0.12);  --success-border: rgba(52, 211, 153, 0.25);
  --warn: #fbbf24;     --warn-weak: rgba(251, 191, 36, 0.12);      --warn-border: rgba(251, 191, 36, 0.25);
  --danger: #f87171;   --danger-weak: rgba(248, 113, 113, 0.12);   --danger-border: rgba(248, 113, 113, 0.25);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);

  --nav-bg: rgba(7, 11, 20, 0.82);
  --cta-text: #06122b;
  --hero-glow: rgba(59, 130, 246, 0.16);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { max-width: 880px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.center { text-align: center; }
.accent { color: var(--primary); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary);
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: #fff; box-shadow: var(--shadow-sm);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--cta-text); box-shadow: 0 1px 2px rgba(37,99,235,0.25), 0 8px 22px rgba(37,99,235,0.22); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(37,99,235,0.3), 0 12px 30px rgba(37,99,235,0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border: 1px solid var(--primary-border); color: var(--primary); background: var(--primary-weak-2); }
.btn-outline:hover { background: var(--primary-weak); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: var(--r-sm); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover { transform: scale(1.06); border-color: var(--primary-border); color: var(--primary); }
/* Light mode removed — the theme toggle is hidden everywhere. */
[data-theme-toggle] { display: none !important; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.card-pad { padding: 28px; }
.card-accent { position: relative; overflow: hidden; }
.card-accent::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-border); }

/* ── Badges / pills ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-2);
}
.badge-primary { background: var(--primary-weak); color: var(--primary); border-color: var(--primary-border); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-weak); color: var(--success); border-color: var(--success-border); }
.badge-warn { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-border); }
.badge-danger { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-border); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}

/* ── Form fields ─────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 7px;
}
.label .opt { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--text-3); }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; font-size: 15px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring);
}
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238893a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.toggle-group { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-pill {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  transition: all 0.18s ease;
}
.toggle-pill.active { border-color: var(--primary); color: var(--primary); background: var(--primary-weak); }

/* ── Score ring & semantics ──────────────────────────────────────────── */
.ring-wrap { position: relative; width: 160px; height: 160px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-track { stroke: var(--surface-3); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-score { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--text); }
.ring-out { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.bar-track { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 1.2s ease; }

/* ── Table (head-to-head) ────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 18px; text-align: center; }
.table thead th { font-family: var(--font-display); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.table tbody tr { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child { border-bottom: none; }
.table .row-label { text-align: left; font-size: 12px; color: var(--text-3); }
.table-scroll { overflow-x: auto; }

/* ── Lock / blur (freemium gating) ───────────────────────────────────── */
.locked { filter: blur(6px); pointer-events: none; user-select: none; }
.locked-soft { filter: blur(5px); pointer-events: none; user-select: none; }
.lock-zone { position: relative; }
.lock-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.lock-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: var(--r); background: var(--primary); color: var(--cta-text);
  box-shadow: var(--shadow-md);
}

/* ── Sticky bottom bar ───────────────────────────────────────────────── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 12px 20px; background: var(--nav-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-bar.show { transform: translateY(0); }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-root { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-root.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 36, 0.55); backdrop-filter: blur(4px); }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 32px;
  animation: pop 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-close { position: absolute; top: 16px; right: 18px; font-size: 22px; color: var(--text-3); line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ── Terminal loader (light · theme-aware · shooting stars) ──────────── */
.terminal {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.5s ease both;
}
.terminal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 4;
  background: linear-gradient(to right, transparent, var(--primary), var(--accent), transparent);
  background-size: 200% 100%; animation: gradientShift 4s ease infinite;
}
.terminal-bar {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-left: 6px; }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--primary); }
.term-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--ring); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Shooting-star sky behind the log lines */
.term-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.term-sky .shoot {
  position: absolute; left: 0; height: 2px; width: 150px; border-radius: 999px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--primary));
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.35));
  animation: shoot var(--dur, 3.6s) ease-in var(--delay, 0s) infinite;
}
.term-sky .shoot::after {
  content: ""; position: absolute; right: -1px; top: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 9px 2px rgba(37, 99, 235, 0.5);
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(-170px, -50px) rotate(20deg); }
  10%  { opacity: 0.85; }
  65%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(640px, 230px) rotate(20deg); }
}

.terminal-body {
  position: relative; z-index: 2; padding: 18px;
  font-family: var(--font-mono); font-size: 13.5px;
  min-height: 270px; max-height: 420px; overflow-y: auto;
}
.term-line { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; animation: lineIn 0.35s ease both; }
.term-done { color: var(--success); }
.term-cur { color: var(--primary); }
.term-text-done { color: var(--text-3); }
.term-text-cur { color: var(--text); font-weight: 500; }
.cursor { width: 8px; height: 16px; background: var(--primary); display: inline-block; border-radius: 1px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5); animation: blink 1s step-end infinite; }

.term-progress { position: relative; z-index: 3; }
.term-fill { background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)) !important;
  background-size: 200% 100% !important; animation: barShimmer 1.8s linear infinite; }
@keyframes barShimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }

/* ── Spinner ─────────────────────────────────────────────────────────── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--surface-3); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-1 { animation-delay: 0.08s; } .fade-2 { animation-delay: 0.16s; } .fade-3 { animation-delay: 0.24s; } .fade-4 { animation-delay: 0.32s; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.78); } }
.dot-pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Motion & polish ─────────────────────────────────────────────────── */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float { animation: floatY 6s ease-in-out infinite; }

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.text-gradient {
  background: linear-gradient(100deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: gradientShift 7s ease infinite;
}

@keyframes glowPulse { 0%, 100% { box-shadow: 0 8px 24px rgba(37,99,235,0.22); } 50% { box-shadow: 0 12px 38px rgba(37,99,235,0.42); } }
.glow { animation: glowPulse 3.2s ease-in-out infinite; }

/* Button sheen on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after { animation: sheen 0.85s ease; }
@keyframes sheen { from { left: -130%; } to { left: 150%; } }

/* Staggered reveal for grids/lists (observer adds .in) */
.stagger > * { opacity: 0; transform: translateY(18px); }
.stagger.in > * { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.stagger.in > *:nth-child(1) { animation-delay: 0.04s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.10s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.16s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.22s; }
.stagger.in > *:nth-child(5) { animation-delay: 0.28s; }
.stagger.in > *:nth-child(6) { animation-delay: 0.34s; }
.stagger.in > *:nth-child(7) { animation-delay: 0.40s; }
.stagger.in > *:nth-child(8) { animation-delay: 0.46s; }

/* Soft dotted backdrop for hero/feature areas (no hard edges) */
.dotgrid {
  background-image: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* Icon chips / feature icon tiles */
.ico-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-weak); border: 1px solid var(--primary-border); color: var(--primary);
  transition: transform 0.25s ease, background 0.25s ease;
}
.card-hover:hover .ico-tile { transform: translateY(-2px) scale(1.05); }
.ico-tile.danger { background: var(--danger-weak); border-color: var(--danger-border); color: var(--danger); }
.ico-inline { display: inline-flex; align-items: center; }
.ico-inline svg { width: 1em; height: 1em; }

/* Section heading with an icon */
.sec-head { display: flex; align-items: center; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Ambient page sky: starfield + shooting stars (app dashboards) ───── */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky .star {
  position: absolute; border-radius: 50%; background: var(--primary);
  animation: twinkle var(--tw, 3s) ease-in-out infinite both;
}
@keyframes twinkle { 0%, 100% { opacity: 0.12; transform: scale(0.7); } 50% { opacity: 0.5; transform: scale(1); } }
.sky .shooting {
  position: absolute; left: 0; height: 2px; width: 170px; border-radius: 999px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--primary));
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.3));
  animation: skyShoot var(--dur, 7s) ease-in var(--delay, 0s) infinite;
}
.sky .shooting::after {
  content: ""; position: absolute; right: -1px; top: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 9px 2px rgba(37, 99, 235, 0.45);
}
@keyframes skyShoot {
  0%   { opacity: 0; transform: translate(-190px, -60px) rotate(20deg); }
  4%   { opacity: 0.85; }
  26%  { opacity: 0.85; }
  40%  { opacity: 0; transform: translate(78vw, 42vh) rotate(20deg); }
  100% { opacity: 0; transform: translate(78vw, 42vh) rotate(20deg); }
}
[data-theme="dark"] .sky .star { background: #93c5fd; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between;
  padding: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px;
}
@media (min-width: 640px) { .footer { flex-direction: row; } }

/* ── Result page components ──────────────────────────────────────────── */
.score-hero {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.score-hero .ring-wrap { margin-inline: auto; }
.score-hero-text { text-align: center; }
@media (min-width: 640px) {
  .score-hero { grid-template-columns: 160px 1fr; gap: 48px; }
  .score-hero .ring-wrap { margin-inline: 0; }
  .score-hero-text { text-align: left; }
  .score-hero-text .flow { justify-content: flex-start; }
}
.score-hero-text .flow { justify-content: center; }

.plat-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--surface-2); border: 1px solid var(--border); }
.plat-card { position: relative; }

.callout { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--r); background: var(--primary-weak); border: 1px solid var(--primary-border); }
.callout p { font-size: 14px; font-weight: 500; color: var(--primary); }

.card-accent-red { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, transparent, var(--danger), transparent); }

.ins-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }
.num-badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-weak); border: 1px solid var(--primary-border); color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.num-badge-lg { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }

.win-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.win-row:last-child { border-bottom: none; }
.win-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; background: var(--primary-weak); border: 1px solid var(--primary-border); }

.day-row { display: flex; gap: 16px; }
.day-row + .day-row { margin-top: 0; }
.day-body { flex: 1; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.day-row:last-child .day-body { border-bottom: none; padding-bottom: 0; }
.stack .day-row { margin-bottom: 24px; }

/* ── Helpers / grid ──────────────────────────────────────────────────── */
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.flow { display: flex; flex-wrap: wrap; gap: 12px; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }
.divider { height: 1px; background: var(--border); border: none; }
