/* SwingPolls website - design tokens match the app (Ember light / Night Swing dark). */
:root {
  --bg: #FBF5EF;
  --surf: #FFFFFF;
  --ink: #1C1410;
  --mut: #7D6E64;
  --line: #EFE3D8;
  --a: #F04E23;
  --on-a: #FFFFFF;
  --b: #FFB23F;
  --on-b: #1C1410;
  --soft: #F8EDE4;
  --a-soft: #FAD3C4;
  --b-soft: #FFE2B0;
  --hero: #1C1410;
  --on-hero: #FFFFFF;
  --link: #C73A15;
  --shadow: 0 1px 2px rgba(28, 20, 16, .04), 0 12px 32px -12px rgba(28, 20, 16, .18);
  --radius-card: 24px;
  --radius-btn: 16px;
  --font-head: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115;
    --surf: #181B21;
    --ink: #F4F1EC;
    --mut: #8E95A2;
    --line: #262A32;
    --a: #FF5A3C;
    --on-a: #FFFFFF;
    --b: #4F7BFF;
    --on-b: #FFFFFF;
    --soft: #22262E;
    --a-soft: #4A2419;
    --b-soft: #1E2D5C;
    --hero: #181B21;
    --on-hero: #F4F1EC;
    --link: #FF7A60;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
  .logo-light { display: none !important; }
  .logo-dark { display: inline-block !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mut); }
.logo-dark { display: none !important; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: var(--soft); }
.nav .btn { margin-left: 6px; }
.nav a.btn-primary { color: var(--on-a); }
.nav a.btn-primary:hover { background: color-mix(in srgb, var(--a) 88%, #000); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--font-body); padding: 14px 20px; border-radius: var(--radius-btn); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--a); color: var(--on-a); }
.btn-primary:hover { background: color-mix(in srgb, var(--a) 88%, #000); }
.btn-ghost { background: var(--surf); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 10px 14px; min-height: 40px; font-size: 15px; border-radius: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; min-height: 56px; border: 1px solid var(--ink); }
.store:hover { background: color-mix(in srgb, var(--ink) 86%, var(--a)); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store strong { font: 700 18px/1.1 var(--font-head); letter-spacing: -.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- chips / tags ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.a { background: var(--a-soft); }
.chip.b { background: var(--b-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 18px; height: 6px; border-radius: 3px; background: var(--a); box-shadow: 0 9px 0 -1px var(--b); transform: translateY(-4px); }

/* ---- hero ---- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .swing { color: var(--a); display: inline-block; }
.hero .lead { font-size: 20px; color: var(--mut); max-width: 34ch; margin-bottom: 28px; }
.hero .stores { margin-bottom: 18px; }
.hero .note { font-size: 14px; color: var(--mut); }
@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { font-size: 18px; }
}

/* ---- phone mock ---- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ''; position: absolute; inset: 8% 4% 4%; border-radius: 48px; background: radial-gradient(60% 60% at 30% 30%, var(--a-soft), transparent 70%), radial-gradient(50% 50% at 75% 70%, var(--b-soft), transparent 70%); filter: blur(10px); z-index: 0; }
.phone { position: relative; z-index: 1; width: 300px; max-width: 86vw; aspect-ratio: 9 / 19; border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: var(--shadow), 0 40px 80px -30px rgba(28, 20, 16, .45); }
.phone-screen { height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 14px; background: var(--ink); z-index: 2; }
.phone-top { padding: 42px 16px 10px; display: flex; justify-content: space-between; align-items: center; }
.phone-top b { font: 800 22px/1 var(--font-head); letter-spacing: -.02em; }
.phone-top .dot { width: 30px; height: 30px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); }
.phone-chips { display: flex; gap: 6px; padding: 0 16px 12px; overflow: hidden; }
.phone-chips .chip { font-size: 11px; padding: 5px 10px; }
.phone-chips .chip.on { background: var(--ink); color: var(--bg); }
.mini-card { margin: 0 12px 10px; background: var(--surf); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--b); color: var(--on-b); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.avatar.a { background: var(--a); color: var(--on-a); }
.mini-head b { display: block; font-size: 12px; }
.mini-head span { color: var(--mut); font-size: 11px; }
.mini-q { font: 700 16px/1.25 var(--font-head); margin: 0 0 10px; letter-spacing: -.01em; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tags .chip { font-size: 10px; padding: 3px 8px; }
.bar { position: relative; height: 38px; border-radius: 12px; background: var(--soft); overflow: hidden; margin-bottom: 7px; display: flex; align-items: center; padding: 0 10px; gap: 8px; font-size: 13px; font-weight: 600; }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--a-soft); width: 0; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.bar.b .fill { background: var(--b-soft); }
.bar > :not(.fill) { position: relative; }
.bar .key { width: 20px; height: 20px; border-radius: 7px; background: var(--surf); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.bar .key.sel { background: var(--a); color: var(--on-a); }
.bar .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .pct { font-weight: 800; }
.mini-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-top: 4px; }
.phone-tab { margin: auto 12px 12px; background: var(--surf); border: 1px solid var(--line); border-radius: 20px; height: 52px; display: flex; justify-content: space-around; align-items: center; }
.phone-tab i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.phone-tab i.on { background: var(--a); width: 28px; }
.float-card { position: absolute; z-index: 2; background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.float-card.one { left: -2%; top: 5%; }
.float-card.two { right: -2%; bottom: 7%; }
.float-card .ok { width: 22px; height: 22px; border-radius: 8px; background: var(--a); color: var(--on-a); display: grid; place-items: center; font-size: 12px; }
@media (max-width: 520px) { .float-card { display: none; } }

/* ---- sections ---- */
section { scroll-margin-top: 80px; }
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--mut); font-size: 19px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; position: relative; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 20px/1 var(--font-head); background: var(--a); color: var(--on-a); margin-bottom: 20px; }
.step:nth-child(2) .num { background: var(--b); color: var(--on-b); }
.step:nth-child(3) .num { background: var(--ink); color: var(--bg); }
.step p { color: var(--mut); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature { grid-column: span 2; background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; }
.feature.wide { grid-column: span 3; }
.feature .ico { width: 48px; height: 48px; border-radius: 16px; background: var(--a-soft); color: var(--a); display: grid; place-items: center; margin-bottom: 18px; }
.feature:nth-child(even) .ico { background: var(--b-soft); color: var(--ink); }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--mut); margin: 0; }
.feature .demo { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature.dark { background: var(--hero); color: var(--on-hero); border-color: var(--hero); }
.feature.dark p { color: color-mix(in srgb, var(--on-hero) 72%, transparent); }
.feature.dark .ico { background: var(--a); color: var(--on-a); }
@media (max-width: 980px) { .feature, .feature.wide { grid-column: span 3; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature, .feature.wide { grid-column: auto; } }

.breakdown { margin-top: 18px; display: grid; gap: 8px; }
.breakdown .row { display: grid; grid-template-columns: 70px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.breakdown .track { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; display: flex; }
.breakdown .track i { display: block; height: 100%; background: var(--a); }
.breakdown .track i + i { background: var(--b); }
.feature.dark .breakdown .track { background: rgba(255, 255, 255, .12); }

.privacy-band { background: var(--hero); color: var(--on-hero); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.privacy-band h2 { margin-bottom: 12px; }
.privacy-band p { color: color-mix(in srgb, var(--on-hero) 74%, transparent); margin: 0; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; }
.privacy-band li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--b); }
.privacy-band a { color: var(--on-hero); }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; } }

.cta { text-align: center; padding: 88px 0; }
.cta .stores { justify-content: center; }
.cta p { color: var(--mut); font-size: 19px; margin-bottom: 28px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand img { height: 28px; }
.site-footer .legal { grid-column: 1 / -1; color: var(--mut); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---- documents (privacy / terms / support) ---- */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 2em; }
.doc h3 { font-size: 19px; margin-top: 1.5em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--mut); }
.notice { background: var(--b-soft); color: var(--ink); border-radius: 18px; padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.notice strong { display: block; margin-bottom: 4px; }
.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
details { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font: 700 22px/1 var(--font-head); color: var(--a); }
details[open] summary::after { content: '–'; }
details > :not(summary) { color: var(--mut); }
details p:last-child { padding-bottom: 18px; margin: 0; }

/* ---- shared poll page ---- */
.poll-page { min-height: calc(100vh - 68px); padding: 32px 0 64px; }
.poll-page .wrap { max-width: 560px; }
.poll-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }
.poll-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.poll-author img, .poll-author .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; font-size: 16px; }
.poll-author b { display: block; }
.poll-author span { color: var(--mut); font-size: 14px; }
.poll-q { font: 800 clamp(24px, 5vw, 30px)/1.15 var(--font-head); letter-spacing: -.02em; margin: 0 0 14px; }
.poll-card .tags { margin-bottom: 16px; }
.poll-card .tags .chip { font-size: 12px; padding: 4px 10px; }
.poll-card .bar { height: 52px; border-radius: 14px; font-size: 16px; padding: 0 14px; gap: 12px; margin-bottom: 10px; }
.poll-card .bar .key { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.poll-card .bar .thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.poll-card .bar.mine { box-shadow: inset 0 0 0 2px var(--a); }
.poll-media { margin: 0 0 16px; border-radius: 18px; overflow: hidden; background: #000; }
.poll-media video { width: 100%; max-height: 70vh; }
.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.image-grid figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.image-grid img { width: 100%; height: 100%; object-fit: cover; }
.image-grid figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--surf); color: var(--ink); border-radius: 10px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.poll-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--mut); font-size: 14px; margin-top: 6px; }
.hidden-note { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--mut); margin: 4px 0 8px; }
.open-app { margin-top: 20px; display: grid; gap: 12px; }
.open-app .btn { width: 100%; font-size: 17px; min-height: 56px; }
.open-app .stores { justify-content: center; }
.open-app .hint { text-align: center; color: var(--mut); font-size: 14px; margin: 0; }
.state { text-align: center; padding: 40px 12px; }
.state .big { width: 72px; height: 72px; border-radius: 24px; background: var(--soft); display: grid; place-items: center; margin: 0 auto 18px; }
.state .big svg { width: 34px; height: 34px; color: var(--a); }
.skeleton { background: linear-gradient(90deg, var(--soft), color-mix(in srgb, var(--soft) 50%, var(--surf)), var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 18px; margin-bottom: 10px; }
.sk-bar { height: 52px; margin-bottom: 10px; border-radius: 14px; }

/* ---- 404 ---- */
.notfound { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .code { font: 800 clamp(96px, 20vw, 180px)/1 var(--font-head); letter-spacing: -.04em; display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.notfound .code i { display: inline-block; width: .34em; border-radius: .1em; background: var(--a); height: .72em; }
.notfound .code i + i { background: var(--b); height: .42em; }

/* ---- small helpers ---- */
.footer-tag { margin-top: 14px; }
.ico-inline { width: 48px; height: 48px; border-radius: 16px; background: var(--a-soft); color: var(--a); display: grid; place-items: center; margin-bottom: 16px; }
.ico-inline svg { width: 24px; height: 24px; }
.card h3 { margin-top: 0; }
.doc .lead { font-size: 20px; }
.w-120 { width: 120px; }
.w-70 { width: 70%; }
.nf-title { font-size: clamp(28px, 5vw, 44px); }
.state .big img { width: 48px; height: 48px; }
