/* Anypoll - site styles */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

  :root, :root[data-ap-theme="dark"] {
    color-scheme: dark;
    --bg: #060d28;
    --bg-elev: rgba(255,255,255,0.04);
    --bg-card: rgba(255,255,255,0.05);
    --bg-card-solid: #0d1845;
    --bg-header: rgba(6,13,40,0.72);
    --ink: #ffffff;
    --ink-soft: rgba(255,255,255,0.82);
    --ink-mute: rgba(255,255,255,0.56);
    --line: rgba(255,255,255,0.10);
    --line-strong: rgba(255,255,255,0.20);
    --accent: #2BC7BF;
    --accent-2: #6fb8ff;
    --mint: #aef0c8;
    --accent-soft: rgba(43,199,191,0.16);
    --chip-bg: rgba(255,255,255,0.06);
    --bar-track: rgba(255,255,255,0.07);
    --bar-fill: rgba(255,255,255,0.14);
    --card-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 12px 32px -12px rgba(0,0,0,0.6);
    --card-shadow-hover: inset 0 0 0 1px rgba(43,199,191,0.35), 0 24px 60px -20px rgba(43,199,191,0.28);
    --modal-bg: #0b1640;
    --logo-wm: #ffffff;
    --danger: #ff7a80;
  }
  :root[data-ap-theme="light"] {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --bg-header: rgba(255,255,255,0.85);
    --ink: #0c1740;
    --ink-soft: rgba(12,23,64,0.74);
    --ink-mute: rgba(12,23,64,0.52);
    --line: rgba(12,23,64,0.09);
    --line-strong: rgba(12,23,64,0.16);
    --accent: #1fb0a8;
    --accent-2: #3045d6;
    --mint: #18b87a;
    --accent-soft: rgba(43,199,191,0.12);
    --chip-bg: rgba(12,23,64,0.05);
    --bar-track: rgba(12,23,64,0.05);
    --bar-fill: rgba(12,23,64,0.10);
    --card-shadow: 0 1px 2px rgba(12,23,64,0.04), 0 4px 12px rgba(12,23,64,0.04);
    --card-shadow-hover: 0 2px 6px rgba(12,23,64,0.08), 0 12px 32px rgba(12,23,64,0.08);
    --modal-bg: #ffffff;
    --logo-wm: #0c1740;
    --danger: #e5484d;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
  html, body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  html[data-ap-theme="dark"] body {
    background:
      radial-gradient(60% 50% at 88% 6%, rgba(43,199,191,0.14) 0%, rgba(43,199,191,0) 60%),
      radial-gradient(70% 60% at 6% 94%, rgba(48,69,214,0.20) 0%, rgba(48,69,214,0) 60%),
      linear-gradient(180deg, #060d28 0%, #0c1740 55%, #101e5a 100%);
    background-attachment: fixed;
  }
  html[data-ap-theme="light"] body {
    background:
      radial-gradient(80% 50% at 90% 0%, rgba(48,69,214,0.06) 0%, rgba(48,69,214,0) 60%),
      radial-gradient(70% 50% at 10% 100%, rgba(43,199,191,0.07) 0%, rgba(43,199,191,0) 60%),
      var(--bg);
    background-attachment: fixed;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  svg { display: block; }
  .mono { font-family: 'Geist Mono', ui-monospace, monospace; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ---------- demo ribbon ---------- */
  .demo-ribbon {
    display: none;
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: #fff; text-align: center;
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    padding: 7px 16px;
  }
  body.demo .demo-ribbon { display: block; }

  /* ---------- header ---------- */
  .header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: var(--bg-header);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .logo { height: 28px; width: auto; }
  .logo .wm { fill: var(--logo-wm); }
  .beta {
    font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px;
    color: var(--accent); background: var(--accent-soft);
  }
  .nav { display: flex; gap: 4px; margin-left: 18px; }
  .nav a {
    padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-mute);
    transition: color .15s, background .15s;
  }
  .nav a:hover { color: var(--ink); background: var(--chip-bg); }
  .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .icon-btn {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-elev);
    display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
    transition: border-color .15s, color .15s;
  }
  .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
  html[data-ap-theme="light"] .i-sun, html[data-ap-theme="dark"] .i-moon { display: none; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  }
  .btn-primary {
    background: linear-gradient(135deg, #2BC7BF 0%, #3a8dde 100%); color: #fff;
    box-shadow: 0 6px 18px -6px rgba(43,199,191,0.6);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(43,199,191,0.7); }
  .btn-outline { border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink); }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

  .user-chip { position: relative; }
  .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #2BC7BF, #3045d6);
    color: #fff; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border: 2px solid var(--line-strong);
  }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .menu {
    position: absolute; right: 0; top: 48px; min-width: 240px;
    background: var(--modal-bg); border: 1px solid var(--line-strong); border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45);
    padding: 8px; display: none;
  }
  .menu.open { display: block; }
  .menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .menu-name { font-weight: 600; font-size: 14px; }
  .menu-sub { font-size: 12px; color: var(--ink-mute); margin-top: 3px; }
  .menu button, .menu a {
    display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
    font-size: 14px; color: var(--ink-soft);
  }
  .menu button:hover, .menu a:hover { background: var(--chip-bg); color: var(--ink); }

  /* ---------- hero ---------- */
  .hero { padding-top: 56px; padding-bottom: 28px; text-align: center; position: relative; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 12px; border-radius: 999px;
    border: 1px solid rgba(174,240,200,0.35); background: rgba(174,240,200,0.08);
    font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint);
  }
  html[data-ap-theme="light"] .eyebrow { border-color: rgba(24,184,122,0.35); background: rgba(24,184,122,0.06); }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
  .hero h1 {
    margin: 22px auto 16px; max-width: 900px;
    font-size: clamp(32px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  }
  .grad {
    background: linear-gradient(120deg, #aef0c8 0%, #2BC7BF 45%, #6fb8ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  html[data-ap-theme="light"] .grad { background-image: linear-gradient(120deg, #2BC7BF 0%, #3045d6 100%); }
  .hero p.lead { max-width: 640px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--ink-soft); }
  .hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
  .hero-stats {
    display: flex; justify-content: center; gap: 36px; margin-top: 32px; flex-wrap: wrap;
    font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  }
  .hero-stats strong { display: block; font-family: 'Geist', sans-serif; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); text-transform: none; margin-bottom: 2px; }

  /* ---------- section heads ---------- */
  .section { padding-top: 28px; padding-bottom: 28px; }
  .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
  .sec-kicker { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
  .sec-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

  /* ---------- poll cards ---------- */
  .card {
    position: relative; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .25s, border-color .25s, transform .25s;
  }
  .card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, #3045d6, #2BC7BF); opacity: .85;
  }
  .poll { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
  .card:hover { border-color: rgba(43,199,191,0.35); }
  .poll-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
  .tag { padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .tag.closed { background: var(--chip-bg); color: var(--ink-mute); }
  .poll-q { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
  .poll-desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
  .options { display: flex; flex-direction: column; gap: 8px; }
  .opt {
    position: relative; overflow: hidden; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 11px; text-align: left;
    border: 1px solid var(--line-strong); background: var(--bg-elev);
    font-size: 14.5px; font-weight: 500; color: var(--ink);
    transition: border-color .15s, background .15s, transform .12s;
  }
  button.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
  button.opt:active { transform: scale(0.99); }
  .opt .fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%);
    background: var(--bar-fill); border-radius: 10px 0 0 10px;
    transition: width .9s cubic-bezier(.2,.8,.2,1);
    z-index: 0;
  }
  .opt.anim .fill { width: 0; }
  .opt.mine { border-color: var(--accent); }
  .opt.mine .fill { background: linear-gradient(90deg, rgba(43,199,191,0.38), rgba(111,184,255,0.30)); }
  .opt.lead:not(.mine) .fill { background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10)); }
  html[data-ap-theme="light"] .opt.lead:not(.mine) .fill { background: rgba(12,23,64,0.12); }
  .opt .lbl, .opt .pct { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
  .opt .pct { font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 14px; }
  .check {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent); color: #06122e; display: inline-flex; align-items: center; justify-content: center;
  }
  .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
  button.opt:hover .radio { border-color: var(--accent); }
  .poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-mute); }
  .poll-foot .mono { letter-spacing: 0.04em; }
  .share-row { display: flex; gap: 6px; align-items: center; }
  .share-btn {
    height: 32px; min-width: 32px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    transition: border-color .15s, color .15s;
  }
  .share-btn:hover { border-color: var(--accent); color: var(--accent); }
  .share-btn svg { width: 15px; height: 15px; }
  .voted-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mint); font-weight: 600; }

  /* featured */
  .featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
  .featured .poll { padding: 30px; }
  .featured .poll-q { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
  .featured .poll-desc { font-size: 15.5px; }
  .featured .opt { padding: 15px 16px; font-size: 15.5px; }
  .feat-side {
    border-left: 1px solid var(--line); padding: 30px;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 26px;
    background:
      radial-gradient(80% 60% at 100% 0%, rgba(43,199,191,0.12), transparent 60%),
      radial-gradient(70% 60% at 0% 100%, rgba(48,69,214,0.16), transparent 60%);
  }
  .feat-side .feat-quote { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts dt { color: var(--ink-mute); }
  .facts dd { color: var(--ink-soft); }
  .facts dd a { color: var(--accent); }
  .related h3 { font-size: 11px; font-family: 'Geist Mono', monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 8px; }
  .related ul { list-style: none; }
  .related li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); }
  .related li:last-child a { border-bottom: none; }
  .related li a:hover { color: var(--accent); }
  .related li a span { color: var(--accent); }
  .feat-side h3 { font-size: 13px; font-family: 'Geist Mono', monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 14px; }
  .principles { display: flex; flex-direction: column; gap: 14px; }
  .principle { display: flex; gap: 12px; align-items: flex-start; }
  .principle .ic {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center;
  }
  .principle b { display: block; font-size: 14.5px; margin-bottom: 2px; }
  .principle span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
  .feat-quote { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
  .hero .back-link { display: flex; justify-content: center; margin-bottom: 14px; }
  .nav a.on { color: var(--ink); background: var(--chip-bg); }
  .back-link { font-size: 13px; color: var(--ink-mute); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; }
  .back-link:hover { color: var(--accent); }

  .sec-head.stacked { flex-direction: column; align-items: stretch; gap: 14px; }
  .sec-head.stacked .tabs { max-width: 100%; }
  .trend-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid rgba(174,240,200,0.3); background: rgba(174,240,200,0.07); }
  #featured .sec-head { align-items: center; }
  /* slider */
  .slider-ctrl { display: flex; align-items: center; gap: 8px; }
  .dots { display: flex; gap: 6px; margin-right: 6px; }
  .dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .25s, background .25s; }
  .dots button.on { width: 22px; background: var(--accent); }
  .track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; gap: 16px; border-radius: 18px;
  }
  .track::-webkit-scrollbar { display: none; }
  .track > .slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; display: flex; }
  .track > .slide > .card { flex: 1; }
  .kicker-chip {
    padding: 4px 10px; border-radius: 999px; font-weight: 700;
    background: linear-gradient(135deg, #2BC7BF 0%, #6fb8ff 100%); color: #06122e;
  }
  .slide-count { margin-left: auto; }
  .feat-quote em { font-style: normal; background: linear-gradient(120deg, #aef0c8 0%, #2BC7BF 45%, #6fb8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html[data-ap-theme="light"] .feat-quote em { background-image: linear-gradient(120deg, #2BC7BF 0%, #3045d6 100%); }
  .feat-kicker { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); font-weight: 600; margin-bottom: 8px; }
  @media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }

  /* tabs + grid */
  .tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--bg-elev); color: var(--ink-soft); font-size: 13px; font-weight: 500; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
  }
  .tab:hover { color: var(--ink); border-color: var(--line-strong); }
  .tab.active { background: linear-gradient(135deg, #2BC7BF 0%, #6fb8ff 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -2px rgba(43,199,191,0.35); }
  .tab .n { font-family: 'Geist Mono', monospace; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--chip-bg); }
  .tab.active .n { background: rgba(255,255,255,0.25); }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* how it works */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { padding: 24px; }
  .step .num { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.14em; font-weight: 600; }
  .step h4 { font-size: 18px; margin: 10px 0 6px; letter-spacing: -0.01em; }
  .step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

  /* mission band */
  .mission { padding: 40px; text-align: center; }
  .mission h2 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; margin: 12px auto; }
  .mission p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); line-height: 1.6; font-size: 16px; }

  /* anytrade band */
  .at-band {
    border-radius: 18px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(120deg, #0c1740 0%, #1e3a8a 55%, #2BC7BF 130%); color: #fff; position: relative; overflow: hidden;
  }
  .at-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 92% 40%, rgba(255,255,255,0.16), transparent 40%); pointer-events: none; }
  .at-band > * { position: relative; }
  .at-band .k { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
  .at-band h3 { font-size: 21px; letter-spacing: -0.015em; }
  .at-band p { font-size: 14px; opacity: .8; margin-top: 4px; max-width: 560px; line-height: 1.5; }
  .at-band .btn { background: #fff; color: #0c1740; }

  /* footer */
  footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 44px; color: var(--ink-mute); font-size: 13px; }
  .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
  .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
  .foot-links a:hover { color: var(--accent); }
  .socials { display: flex; gap: 8px; }
  .socials a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
  .socials a:hover { border-color: var(--accent); color: var(--accent); }
  .socials svg { width: 15px; height: 15px; }

  /* modal */
  .overlay {
    position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px;
    background: rgba(3,8,26,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .overlay.open { display: flex; animation: fade .2s ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .modal {
    width: 100%; max-width: 420px; background: var(--modal-bg); border: 1px solid var(--line-strong);
    border-radius: 20px; padding: 28px; position: relative;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    animation: pop .25s cubic-bezier(.2,1.2,.4,1);
    max-height: calc(100vh - 32px); overflow-y: auto;
  }
  @keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); }
  .modal-close:hover { background: var(--chip-bg); color: var(--ink); }
  .modal .mark { width: 34px; height: auto; margin-bottom: 16px; }
  .modal .mark .wm { fill: var(--logo-wm); }
  .modal h2 { font-size: 23px; letter-spacing: -0.02em; }
  .modal .sub { font-size: 14px; color: var(--ink-soft); margin: 6px 0 20px; line-height: 1.5; }
  .pending-pill { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); margin: -6px 0 18px; line-height: 1.4; }
  .pending-pill b { color: var(--accent); }
  .providers { display: flex; flex-direction: column; gap: 9px; }
  .prov {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    padding: 12px 16px; border-radius: 11px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
    transition: border-color .15s, transform .12s, background .15s;
  }
  .prov:hover { border-color: var(--accent); }
  .prov:active { transform: scale(.99); }
  .prov svg { width: 19px; height: 19px; }
  .prov.apple { background: #fff; color: #000; border-color: #fff; }
  html[data-ap-theme="light"] .prov.apple { background: #000; color: #fff; border-color: #000; }
  .divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--ink-mute); font-family: 'Geist Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; }
  .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .email-row { display: flex; gap: 8px; }
  .email-row input {
    flex: 1; min-width: 0; padding: 12px 14px; border-radius: 11px; font-size: 15px; font-family: inherit;
    border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink); outline: none;
  }
  .email-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
  .optin input { margin-top: 2px; accent-color: #2BC7BF; width: 16px; height: 16px; flex-shrink: 0; }
  .fine { font-size: 11.5px; color: var(--ink-mute); margin-top: 16px; line-height: 1.5; }
  .fine a { text-decoration: underline; }
  .msg { font-size: 13.5px; margin-top: 12px; line-height: 1.45; }
  .msg.err { color: var(--danger); }
  .msg.ok { color: var(--mint); }

  .phone-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
  .optin-bar {
    position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(680px, calc(100% - 32px));
    display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap;
    padding: 16px 18px; border-radius: 16px; background: var(--modal-bg); border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6);
  }
  .optin-text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
  .optin-text span { color: var(--ink-mute); font-size: 13px; }
  .optin-actions { display: flex; gap: 8px; }
  .toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
    background: var(--modal-bg); border: 1px solid var(--line-strong); color: var(--ink);
    padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 200;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5); transition: all .25s; pointer-events: none;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .skeleton { height: 280px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--line); }

  @media (max-width: 980px) {
    .featured { grid-template-columns: 1fr; }
    .feat-side { border-left: none; border-top: 1px solid var(--line); }
    .grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .nav { display: none; }
    .header-inner { height: 58px; }
    .logo { height: 24px; }
    .hero { padding-top: 36px; padding-bottom: 18px; }
    .facts { display: none; }
    .hero h1 br { display: none; } .hero h1 .grad { display: block; }
    .grid, .steps { grid-template-columns: 1fr; }
    .featured .poll, .feat-side { padding: 20px; }
    .poll { padding: 18px; }
    .mission { padding: 28px 20px; }
    .at-band { padding: 22px; }
    .hero-stats { gap: 22px; }
    #signinBtn .long { display: none; }
  }

/* ---------- additions for the multi-page site (same visual language) ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.tag:hover { filter: brightness(1.15); }
.poll-q a:hover { color: var(--accent); }
a.kicker-chip:hover { filter: brightness(1.08); }
a.tab { text-decoration: none; }
.hero.compact { padding-top: 40px; padding-bottom: 8px; }
.hero.compact h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 18px auto 12px; }
.page-poll .hero.compact { padding-bottom: 0; }
.prose { max-width: 720px; margin: 0 auto; padding: 40px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.prose h2 { font-size: 21px; letter-spacing: -0.015em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin-top: 8px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); }
@media (max-width: 720px) { .prose { padding: 26px 20px; } }
.more-opts { display: flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 11px; border: 1px dashed var(--line-strong); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.more-opts:hover { border-color: var(--accent); background: var(--accent-soft); }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps.four, .steps.two { grid-template-columns: 1fr; } }
.prose b { color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
  .foundation { max-width: 560px; margin: 0 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }
  .foundation b { color: var(--ink-soft); }
.mission-more { margin-top: 22px; }
  .text-block { max-width: 760px; margin: 0 auto; text-align: center; }
  .text-block h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
  .text-block p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
  .text-block p + p { margin-top: 14px; }
  .text-block b { color: var(--ink); }
  .text-block a:not(.btn) { color: var(--accent); }
