/* Stropdeck website. Colours follow the app's theme (src/lib/theme.js). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f5f6f8;
  --fg: #0b0d12;
  --body: #475066;
  --muted: #6b7385;
  --line: #eceef2;
  --accent: #4f4fd8;
  --accent-fg: #ffffff;
  --accent-soft: #eeeefc;
  --accent-text: #3f3fc0;
  --teal: #3cc9b8;
  --green: #12b76a;
  --green-soft: #e7f8ef;
  --green-text: #067647;
  --amber-soft: #fff4e0;
  --amber-text: #8a4b00;
  --hero-1: #4b4cdd;
  --hero-2: #2f2fa8;
  --shadow: 0 1px 2px rgba(11, 13, 18, .06), 0 8px 24px rgba(11, 13, 18, .06);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --surface: #171a22;
    --surface2: #1f2330;
    --fg: #f2f3f6;
    --body: #c3c7d3;
    --muted: #9aa0b1;
    --line: #2a2f3d;
    --accent: #8c8cf7;
    --accent-fg: #0e1015;
    --accent-soft: #262a4a;
    --accent-text: #c9cbff;
    --green-soft: #12301f;
    --green-text: #5fe3a1;
    --amber-soft: #33260f;
    --amber-text: #f8c77a;
    --hero-1: #2b2c8f;
    --hero-2: #15165a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--fg); }
.nav .btn { color: var(--accent-fg); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 14px; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.sm { padding: 8px 14px; border-radius: 11px; font-size: .9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-play { background: #0b0d12; color: #fff; padding: 10px 20px 10px 16px; }
.btn-play small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; letter-spacing: .02em; text-transform: uppercase; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.05rem; }
.pill-soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .45); color: #fff; font-weight: 600; font-size: .95rem; }
.pill-soon svg { width: 18px; height: 18px; }
.pill-soon small { display: block; font-size: .7rem; opacity: .8; text-transform: uppercase; letter-spacing: .02em; }
.pill-soon span { display: flex; flex-direction: column; line-height: 1.2; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(60, 201, 184, .28), transparent 60%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 18px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #a9f0e6; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero .note { margin-top: 16px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; } .stack { margin: 8px auto 0; } }

/* Hero visual: a card stack like the app */
.stack { position: relative; width: min(100%, 380px); aspect-ratio: 4 / 4.4; margin-left: auto; }
.card-ui { position: absolute; inset: 8% 4% 12% 8%; background: #fff; color: #0b0d12; border-radius: 22px; padding: 26px 24px; box-shadow: 0 30px 60px rgba(8, 8, 40, .35); display: flex; flex-direction: column; gap: 10px; }
.card-ui.back1 { transform: rotate(-7deg) translate(-6%, -4%); background: #8b8cf0; box-shadow: none; opacity: .85; }
.card-ui.back2 { transform: rotate(5deg) translate(4%, -6%); background: #b3b4f7; box-shadow: none; opacity: .9; }
.card-ui .tag { color: #4f4fd8; font-weight: 800; font-size: .8rem; letter-spacing: .08em; }
.card-ui h3 { font-size: 1.7rem; }
.card-ui p { color: #475066; font-size: 1rem; }
.card-ui .bar { margin-top: auto; height: 14px; width: 45%; border-radius: 999px; background: var(--teal); }
.float { position: absolute; background: #fff; color: #0b0d12; border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 30px rgba(8, 8, 40, .3); font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: #6b7385; font-weight: 600; font-size: .72rem; }
.float .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eeeefc; color: #4f4fd8; flex: none; }
.float .dot svg { width: 18px; height: 18px; }
.float.f1 { left: -4%; bottom: 6%; }
.float.f2 { right: -2%; top: 2%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface2); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent-text); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--body); font-size: 1.08rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -44px; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.8rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--body); font-size: .97rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); margin-left: 6px; vertical-align: 2px; }
.badge.new { background: var(--accent-soft); color: var(--accent-text); }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spot + .spot { margin-top: 72px; }
.spot.flip .spot-art { order: -1; }
.spot h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.spot p { color: var(--body); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b76a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; gap: 28px; } .spot.flip .spot-art { order: 0; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.panel .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel .label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.ring { --p: 72; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-soft) 0); flex: none; }
.ring b { width: 86px; height: 86px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 1.6rem; }
.plan { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; align-items: center; gap: 12px; background: var(--surface2); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.plan li span { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .85rem; }
.plan i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.plan i.t { background: var(--teal); }
.plan i.g { background: var(--green); }

.scores { display: grid; gap: 14px; margin-top: 18px; }
.score .row span { font-weight: 700; }
.meter { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.bubble { background: var(--surface2); border-radius: 16px 16px 16px 4px; padding: 12px 14px; color: var(--fg); font-size: .95rem; margin-top: 12px; }
.bubble.me { background: var(--accent-soft); color: var(--accent-text); border-radius: 16px 16px 4px 16px; margin-left: 20%; }

.sky { position: relative; height: 260px; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #2a2c7a, #0b0c2a 70%); box-shadow: var(--shadow); }
.sky i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(169, 240, 230, .7); }
.sky i.dim { opacity: .35; box-shadow: none; }
.sky span { position: absolute; left: 18px; bottom: 14px; color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; }

.incident { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: #0b0d12; color: #d6d9e3; border-radius: 14px; padding: 14px 16px; margin-top: 14px; line-height: 1.7; overflow-x: auto; }
.incident .sev { color: #ff8a80; font-weight: 700; }
.incident .ok { color: #5fe3a1; }

/* Topics */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .93rem; }
.chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lv-b { background: var(--green); }
.lv-i { background: var(--accent); }
.lv-a { background: #f59e0b; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--body); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--body); padding: 0 0 16px; }

/* CTA band */
.band { border-radius: 28px; padding: 48px 40px; color: #fff; background: radial-gradient(800px 300px at 100% 0, rgba(60, 201, 184, .3), transparent 60%), linear-gradient(135deg, var(--hero-1), var(--hero-2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .85); margin-top: 8px; }
.band .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--fg); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* Document pages (privacy, terms and others) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--body); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 12px 0; }
.doc strong { color: var(--fg); }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface2); color: var(--fg); font-weight: 700; }
.doc td:first-child { color: var(--fg); font-weight: 600; min-width: 170px; }
.callout { background: var(--accent-soft); color: var(--accent-text); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.callout p, .callout li { color: var(--accent-text); }
.toc { background: var(--surface2); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px; }
.toc ol { margin: 8px 0 0; gap: 4px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
@media (max-width: 640px) { .cards2 { grid-template-columns: 1fr; } }
.cards2 .feature h3 { margin-bottom: 8px; }

.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-size: 3rem; margin-bottom: 12px; }
.notfound p { color: var(--body); margin-bottom: 24px; }
