/* Voximus Audio site. [[BRAND COLOURS]]: brand colours are placeholders; change the tokens below. */
:root {
  --bg: #0d0d12;
  --bg-2: #15151d;
  --card: #1b1b25;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #a3a3b5;
  --accent: #7c6cff;      /* [[BRAND COLOURS]] primary */
  --accent-2: #2fd3c4;    /* [[BRAND COLOURS]] secondary */
  --btn: #6a58f2;         /* button fill: white text on it passes WCAG AA (4.9:1) */
  --btn-hover: #5f4de4;
  --warn: #ffcc4d;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #a89dff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
section { padding: 72px 0; }
section.tight { padding: 40px 0; }
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13, 13, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.brand img { width: auto; height: 36px; }
.site-footer .brand img { height: 90px; }
.brand small { font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 0.95rem; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .brand small { display: none; }
  .site-header .brand img { height: 30px; }
}
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 0.9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h2 { color: var(--text); margin: 0 0 8px; font-size: 0.9rem; letter-spacing: 0; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* buttons + forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 22px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.big { padding: 16px 28px; font-size: 1.08rem; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn.danger { background: transparent; border: 1px solid #5a2a2a; color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
input[type="email"], input[type="text"] {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; font: 1rem var(--font);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
label.check input { margin-top: 4px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.notice { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 0.95rem; }
.notice.ok { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); }
.notice.err { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4); }
.notice.info { background: rgba(124, 108, 255, 0.1); border: 1px solid rgba(124, 108, 255, 0.35); }

/* hero */
.hero { padding: 88px 0 64px; background: radial-gradient(900px 420px at 70% -10%, rgba(124, 108, 255, 0.28), transparent 70%), radial-gradient(700px 360px at 0% 10%, rgba(47, 211, 196, 0.12), transparent 70%); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 640px; }
.hero .price-line { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.hero .price-line strong { color: var(--text); }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }

/* cards + grids */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(124, 108, 255, 0.18); color: var(--accent); font-weight: 800; margin-bottom: 12px; }

/* demo audio slots */
.demo { display: flex; flex-direction: column; gap: 10px; }
.demo .prompt { font-family: var(--mono); font-size: 0.88rem; color: var(--text); background: var(--bg-2); border-radius: 8px; padding: 8px 10px; }
.demo audio { width: 100%; height: 40px; }
.demo .placeholder-note { display: none; font-size: 0.8rem; color: var(--warn); border: 1px dashed var(--warn); border-radius: 8px; padding: 8px 10px; }
.demo.missing audio { display: none; }
.demo.missing .placeholder-note { display: block; }

/* comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--bg-2); font-size: 0.9rem; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare .us { background: rgba(124, 108, 255, 0.08); font-weight: 600; }

/* pricing */
.plan { max-width: 460px; margin: 0 auto; text-align: left; border-color: rgba(124, 108, 255, 0.55); box-shadow: 0 20px 60px -30px rgba(124, 108, 255, 0.6); }
.plan .amount { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .amount span { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0; list-style: none; margin: 18px 0 22px; }
.plan li { padding: 7px 0 7px 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* specs */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding-top: 10px; color: var(--muted); }

/* licence key */
.license-key { font-family: var(--mono); font-size: clamp(1.05rem, 4.2vw, 1.6rem); font-weight: 700; letter-spacing: 0.04em; background: var(--bg-2); border: 1px dashed var(--accent); border-radius: 12px; padding: 16px 18px; word-break: break-all; }
.machine { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.status.trialing, .status.active { background: rgba(74, 222, 128, 0.15); color: var(--ok); }
.status.past_due { background: rgba(255, 204, 77, 0.15); color: var(--warn); }
.status.canceled, .status.unpaid, .status.incomplete_expired, .status.paused, .status.incomplete { background: rgba(255, 107, 107, 0.15); color: var(--danger); }

/* legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal li { margin-bottom: 0.4em; }
.draft-banner { background: rgba(255, 204, 77, 0.12); border: 1px solid rgba(255, 204, 77, 0.5); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin-bottom: 24px; }
.ph { background: rgba(255, 204, 77, 0.18); color: var(--warn); border-radius: 4px; padding: 0 4px; font-family: var(--mono); font-size: 0.9em; }

/* desktop/mobile switches (set by app.js on <html>) */
.only-mobile { display: none; }
html.is-mobile .only-mobile { display: block; }
html.is-mobile .only-desktop { display: none; }

/* free + premium plans, product screenshot, stack comparison */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 940px; margin: 28px auto 0; text-align: left; align-items: stretch; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plans .plan { max-width: none; margin: 0; display: flex; flex-direction: column; }
.plans .plan ul { flex: 1; }
.plan.free { border-color: var(--line); box-shadow: none; }
.plan .tier { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--accent-2); }
.plan.free .tier { color: var(--muted); }
.plan .lead-in { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }
.shot { margin: 48px auto 0; max-width: 1100px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(124, 108, 255, 0.7); }
.shot img { display: block; width: 100%; height: auto; }
table.compare td.total, table.compare th.total { font-weight: 800; color: var(--text); }
@media (max-width: 600px) {
  table.compare.stack { min-width: 0; }
  table.compare.stack thead { display: none; }
  table.compare.stack, table.compare.stack tbody, table.compare.stack tr, table.compare.stack td { display: block; width: 100%; box-sizing: border-box; }
  table.compare.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.compare.stack td { border: 0; padding: 4px 14px; }
  table.compare.stack td:first-child { font-weight: 700; color: var(--text); padding-top: 8px; }
  table.compare.stack td:nth-child(2)::before { content: "The usual way: "; color: var(--muted); font-weight: 400; }
  table.compare.stack td.us { background: none; color: var(--accent-2); }
  table.compare.stack td.us::before { content: "Voximus: "; color: var(--muted); font-weight: 400; }
}
.card h2.h3 { font-size: 1.15rem; margin-bottom: 6px; }
