/* OnStandby website — shared styles.
   Tokens are the established brand tokens (dark navy, gold, teal). No build step. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080c12;
  --bg-2:        #0c1018;
  --bg-3:        #111826;
  --text:        #e3e8ef;
  --text-dim:    #9aa4b5;
  --text-faint:  #7b8699;
  --gold:        #c9a84c;
  --gold-glow:   rgba(201,168,76,0.10);
  --accent:      #00c9a7;
  --red:         #e53935;
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(201,168,76,0.30);
  --radius:      14px;
  --head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #2fe3c2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #0b0e14; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { left: 8px; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,12,18,0.90); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }
.menu-btn svg { display: block; }

@media (max-width: 820px) {
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 1px solid transparent; font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--gold); color: #0b0e14; }
.btn-primary:hover { background: #d8b95c; color: #0b0e14; }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.22); }
.btn-outline:hover { border-color: var(--gold); color: var(--text); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* ── TYPE ── */
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 36em; margin-top: 18px; }
.eyebrow { display: inline-block; font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.small { font-size: 14px; color: var(--text-dim); }
.muted { color: var(--text-dim); }

/* ── HERO ── */
.hero { padding: 72px 0 64px; background:
  radial-gradient(800px 380px at 85% -5%, rgba(0,201,167,.10), transparent 60%),
  radial-gradient(700px 340px at 5% 0%, rgba(201,168,76,.08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-solo h1 { max-width: 15em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-foot { margin-top: 16px; font-size: 14px; color: var(--text-dim); }
.hero-fig { position: relative; aspect-ratio: 1 / 1; max-height: 440px; width: 100%; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.hero-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .hero { padding: 44px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-fig { aspect-ratio: 16 / 10; }
}

/* ── SECTIONS ── */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { color: var(--text-dim); margin-top: 12px; }
@media (max-width: 640px) { .section { padding: 48px 0; } }

/* ── CARDS ── */
.cards { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cards-2, .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section-alt .card { background: var(--bg-3); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 16px; }
.card p + p { margin-top: 10px; }

.audience { display: flex; flex-direction: column; padding: 32px; }
.audience-users { border-top: 3px solid var(--accent); }
.audience-vendors { border-top: 3px solid var(--gold); }
.tag { align-self: flex-start; font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.audience-users .tag { color: var(--accent); background: rgba(0,201,167,.10); }
.audience-vendors .tag { color: var(--gold); background: var(--gold-glow); }
.audience h3 { font-size: 24px; }
.ticks { list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.audience-vendors .ticks li::before { border-color: var(--gold); }
.audience .go { margin-top: auto; font-family: var(--head); font-weight: 600; text-decoration: none; }
.audience-vendors .go { color: var(--gold); }
.go:hover { text-decoration: underline; }

/* ── STEPS ── */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 4px 64px; min-height: 44px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 2px; }
.steps p { color: var(--text-dim); font-size: 16px; }

/* ── CHIPS / NOTES / FAQ ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); font-size: 15px; }
.note { border: 1px solid var(--border-gold); background: var(--gold-glow); padding: 16px 20px; border-radius: 12px; font-size: 16px; }
.note-emergency { border-color: rgba(229,57,53,.40); background: rgba(229,57,53,.07); }
.note strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--head); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--text-dim); max-width: 46em; }
.points h3 { font-size: 19px; }

/* problem / solution blocks (home) */
.sub-label { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.sub-label-problem { color: #ff8a80; }
.sub-label-solution { color: var(--accent); }
.card-problem { border-top: 3px solid var(--red); }
.card-solution { border-top: 3px solid var(--accent); }
.stat { display: block; font-family: var(--head); font-size: 38px; font-weight: 700; line-height: 1.1; color: var(--gold); margin-bottom: 8px; }
.card blockquote { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--gold); color: var(--text); font-size: 16px; }
.bridge { margin: 26px 0 44px; max-width: 46em; font-size: 18px; color: var(--text); }
.sources { margin-top: 26px; font-size: 13px; color: var(--text-dim); }
.sources a { color: var(--text-dim); text-underline-offset: 3px; }
.sources a:hover { color: var(--text); }
.forward { border: 1px solid var(--border-gold); background: var(--gold-glow); padding: 22px 26px; border-radius: var(--radius); }
.forward h3 { font-size: 22px; margin-bottom: 6px; }
.forward p { color: var(--text); }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band p { color: var(--text-dim); margin-top: 10px; }

/* ── APP BADGES ── */
.badges { display: flex; flex-wrap: wrap; gap: 22px 18px; align-items: flex-start; }
.badge-col { position: relative; display: flex; flex-direction: column; gap: 10px; width: 250px; }
.badge { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: var(--bg-2); color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.section-alt .badge { background: var(--bg-3); }
.badge svg { flex-shrink: 0; width: 28px; height: 28px; fill: currentColor; }
.badge img { flex-shrink: 0; width: 30px; height: 30px; object-fit: contain; }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-text small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.badge-text strong { font-family: var(--head); font-size: 17px; font-weight: 600; }
.badge-live { border-color: rgba(0,201,167,.45); }
.badge-live:hover { background: rgba(0,201,167,.08); color: var(--text); }
.badge-test { border-color: var(--border-gold); }
.badge-test:hover { background: var(--gold-glow); }
.badge-soon { opacity: .6; cursor: default; }
.badge-cap { font-size: 14px; color: var(--text-dim); padding-left: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--text-dim); background: none; color: var(--text-dim); font: 700 13px var(--head); cursor: pointer; line-height: 1; padding: 0; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #d8b95c; }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(330px, calc(100vw - 32px)); background: var(--bg-3); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 16px 18px; font-size: 15px; color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.pop[hidden] { display: none; }
.pop strong { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 16px; }
.pop p + p { margin-top: 8px; }
@media (max-width: 640px) { .badge-col { width: 100%; } }

/* ── INSTALL STEPS ── */
.install h3 { margin-bottom: 12px; }
.install ol { padding-left: 22px; display: grid; gap: 8px; color: var(--text-dim); font-size: 16px; }
.install ol strong { color: var(--text); }

/* ── FOOTER ── */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; font-weight: 600; }
.footer-grid a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: var(--text-dim); margin-top: 10px; font-size: 14px; }
.footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(3,5,9,.80); }
.modal-overlay.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px 26px; }
.modal h2 { font-size: 26px; margin: 4px 0 12px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; background: none; border: none; color: var(--text-dim); font-size: 28px; cursor: pointer; border-radius: 10px; }
.modal-close:hover { color: var(--text); }
.modal .steps { margin-top: 20px; gap: 22px; }
.modal form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.modal input[type="email"] { flex: 1; min-width: 190px; min-height: 48px; padding: 10px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: var(--text); font-size: 16px; }
.form-error { color: #ff8a80; font-size: 14px; margin-top: 8px; }
.form-ok { color: var(--accent); font-weight: 600; }

/* ── ABOUT ── */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 16px; }
.facts dt { color: var(--text-dim); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 12px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
