/* Shared styles for every Exavora page. */
:root {
  --bg: #f7f7f5; --bg-alt: #efefeb; --surface: #ffffff; --surface-2: #f1f1ee;
  --ink: #18181a; --muted: #5b5b58; --border: #deded9;
  --accent: #2f6f5e; --accent-ink: #ffffff; --accent-soft: rgba(47, 111, 94, 0.10);
  --header: rgba(247, 247, 245, 0.85); --shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  --danger: #b3261e; --warn: #c98a14;
  --app-bg: #242424; --app-panel: #2d2d2d; --app-button: #454545; --app-border: #676767; --app-ink: #f1f1f1; --app-muted: #bdbdbd;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121313; --bg-alt: #171818; --surface: #1c1d1d; --surface-2: #242525;
    --ink: #ececea; --muted: #a3a3a0; --border: #303131;
    --accent: #6fc2a8; --accent-ink: #0c1b16; --accent-soft: rgba(111, 194, 168, 0.12);
    --header: rgba(18, 19, 19, 0.85); --shadow: 0 18px 40px rgba(0, 0, 0, 0.35); --danger: #f2b8b5;
  }
}
:root[data-theme="dark"] {
  --bg: #121313; --bg-alt: #171818; --surface: #1c1d1d; --surface-2: #242525;
  --ink: #ececea; --muted: #a3a3a0; --border: #303131;
  --accent: #6fc2a8; --accent-ink: #0c1b16; --accent-soft: rgba(111, 194, 168, 0.12);
  --header: rgba(18, 19, 19, 0.85); --shadow: 0 18px 40px rgba(0, 0, 0, 0.35); --danger: #f2b8b5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- Top bar ---------- */
header.top { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
nav.main { display: flex; gap: 4px; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--ink); background: var(--surface-2); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.primary:disabled { opacity: 0.6; cursor: default; filter: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.text { background: transparent; color: var(--ink); }
.btn.text:hover { background: var(--surface-2); }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--ink); border-radius: 9px; width: 40px; height: 40px; cursor: pointer; place-items: center; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 10px 16px 16px; background: var(--surface); }
.mobile-menu > a { display: block; padding: 11px 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); font-size: 16px; }
.mobile-menu > a.active { color: var(--accent); font-weight: 600; }
.mobile-menu .mm-actions { display: flex; gap: 8px; margin-top: 12px; }
.mobile-menu .mm-actions .btn { flex: 1; }
header.top.open .mobile-menu { display: block; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.head p { margin: 0; color: var(--muted); font-size: 17px; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero.page { padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 520px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; margin: 20px auto 18px; letter-spacing: -0.03em; max-width: 880px; }
.hero.page h1 { font-size: clamp(32px, 5vw, 52px); }
.hero p.lead { max-width: 660px; margin: 0 auto 32px; color: var(--muted); font-size: 19px; }
.hero.page p.lead { margin-bottom: 0; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Video ---------- */
.video { max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); color: var(--muted); }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--shadow); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }

/* ---------- Slideshow ---------- */
.slides { max-width: 960px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.slide-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.slide-visual { background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: #fff; display: grid; place-items: center; padding: 32px; position: relative; }
.slide-visual .num { position: absolute; top: 20px; left: 24px; font-size: 14px; font-weight: 700; opacity: 0.8; letter-spacing: 0.05em; }
.slide-visual .big-icon { width: 120px; height: 120px; border-radius: 30px; background: rgba(255,255,255,0.14); display: grid; place-items: center; }
.slide-visual .big-icon svg { width: 60px; height: 60px; }
.slide-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.slide-body h3 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.slide-body p { color: var(--muted); margin: 0 0 18px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { color: var(--accent); margin-top: 3px; }
.slide-controls { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--border); gap: 12px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--accent); width: 26px; border-radius: 6px; }
.arrow { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.arrow:hover { background: var(--surface-2); }
.arrow:disabled { opacity: 0.4; cursor: default; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon-box { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon-box svg { width: 20px; height: 20px; }
.card .btn { margin-top: 16px; }

/* ---------- App window (demo) ---------- */
.window { max-width: 780px; margin: 0 auto; background: var(--app-bg); color: var(--app-ink); border: 1px solid var(--app-border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.titlebar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: #1b1b1b; border-bottom: 1px solid var(--app-border); gap: 8px; }
.titlebar strong { font-size: 13px; }
.wdots { display: flex; gap: 6px; } .wdots span { width: 10px; height: 10px; border-radius: 50%; background: #4d4d4d; }
.app-body { padding: 14px; display: grid; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--app-border); border-radius: 8px; overflow: hidden; }
.seg button, .seg span { background: var(--app-button); color: var(--app-ink); border: 0; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.seg > * + * { border-left: 1px solid var(--app-border); }
.seg [aria-pressed="true"] { background: #bcbcbc; color: #1b1b1b; }
.app-select { background: var(--app-panel); color: var(--app-ink); border: 1px solid var(--app-border); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.app-label { color: var(--app-muted); font-size: 12px; }
.question { background: var(--app-panel); border: 1px solid var(--app-border); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; min-height: 74px; }
.ask { background: #bcbcbc; color: #1b1b1b; border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.ask:disabled { opacity: 0.55; cursor: default; }
.ghost-app { background: var(--app-button); color: var(--app-ink); border: 1px solid var(--app-border); border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.answer { background: #1f1f1f; border: 1px solid var(--app-border); border-radius: 8px; padding: 12px 14px; min-height: 200px; white-space: pre-wrap; font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.answer .placeholder { color: var(--app-muted); font-family: "Segoe UI", system-ui, sans-serif; }
.status { color: var(--app-muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--app-ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.small-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.quote-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.who strong { display: block; font-size: 15px; } .who span { color: var(--muted); font-size: 13px; }
.tag-sample { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--border); color: var(--muted); }
.stars { color: #e0a526; letter-spacing: 2px; font-size: 15px; }

/* ---------- Platforms ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platforms span { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 15px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 15px; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.compare thead th.us { color: var(--accent); }
table.compare td.us { background: var(--accent-soft); }
.yes { color: var(--accent); } .no { color: var(--muted); opacity: 0.6; } .partial { color: var(--warn); font-size: 13px; font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; position: relative; padding: 26px 22px; }
.plan.highlight { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin: 0; }
.plan .duration { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 8px; } .plan li svg { color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.faq-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.faq-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
details.qa summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
details.qa p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Community banner ---------- */
.community { text-align: center; background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); color: #fff; border-radius: 24px; padding: 56px 24px; }
.community h2 { color: #fff; font-size: clamp(28px, 4vw, 36px); margin: 0 0 10px; }
.community p { margin: 0 auto 26px; max-width: 560px; opacity: 0.9; font-size: 17px; }
.community .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.community .btn { background: #fff; color: #18181a; }
.community .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- Demo page: platform walkthrough ---------- */
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.ptabs button { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: 15px; }
.ptabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.scene { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.browser { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser .bbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser .addr { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .page { padding: 20px 22px; position: relative; min-height: 330px; }
.browser .ptitle { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.browser .chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.browser .stmt { white-space: pre-wrap; color: var(--ink); font-size: 15px; margin: 0; }
.sel { position: absolute; border: 2px dashed var(--accent); background: var(--accent-soft); border-radius: 6px; opacity: 0; transition: all .9s ease; left: 14px; top: 14px; width: 0; height: 0; pointer-events: none; }
.sel.on { opacity: 1; width: calc(100% - 28px); height: calc(100% - 28px); }
.sel .tag { position: absolute; right: 6px; bottom: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.scene .window { margin: 0; max-width: none; }
.thumbs { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.thumb { width: 64px; height: 40px; border-radius: 6px; border: 1px solid var(--app-border); background: repeating-linear-gradient(0deg, #3a3a3a 0 3px, #2d2d2d 3px 7px); transform: scale(0.6); opacity: 0; transition: all .4s ease; }
.thumb.on { transform: scale(1); opacity: 1; }
.steps-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.steps-bar button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.steps-bar button .n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; }
.steps-bar button.done { color: var(--ink); }
.steps-bar button.done .n { background: var(--accent); color: var(--accent-ink); }
.steps-bar button.now { border-color: var(--accent); color: var(--accent); }
.scene-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.form-card { padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-size: 15px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-block; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.topics input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-size: 15px; min-height: 22px; }
.form-msg.ok { color: var(--accent); font-weight: 600; }
.form-msg.err { color: var(--danger); }
.sent { text-align: center; padding: 40px 16px; }
.sent .icon-box { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 50%; }
.resources { display: grid; gap: 14px; }
.resources .card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; text-decoration: none; color: inherit; }
.resources .card:hover { border-color: var(--accent); }
.resources .icon-box { margin: 0; flex: none; }
.resources h3 { font-size: 16px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid ul a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot-grid ul a:hover { color: var(--accent); }
.foot-about p { color: var(--muted); font-size: 15px; margin: 12px 0 16px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.socials button:hover { color: var(--accent); }
.subscribe p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.subscribe form { display: flex; gap: 8px; }
.subscribe input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 15px; }
.subscribe .msg { font-size: 14px; margin-top: 8px; color: var(--accent); min-height: 20px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; align-items: center; }
.legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
.legal nav a { color: var(--muted); text-decoration: none; }
.legal nav a:hover { color: var(--ink); }
.theme-toggle { background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 18px; max-width: 420px; width: 100%; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.modal h3 { margin: 0 0 8px; font-size: 22px; }
.modal p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  nav.main, .bar-right .btn.text, .bar-right .btn.ghost { display: none; }
  .menu-toggle { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about, .subscribe { grid-column: 1 / -1; }
  .scene { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .hero.page { padding: 52px 0 28px; }
  .slide-stage { grid-template-columns: 1fr; }
  .slide-visual { min-height: 180px; }
  .slide-visual .big-icon { width: 88px; height: 88px; }
  .slide-visual .big-icon svg { width: 44px; height: 44px; }
  .slide-body { padding: 28px 22px; }
  .bar-right .btn.primary { padding: 8px 12px; font-size: 14px; }
  .seg button, .seg span { padding: 7px 9px; }
  .plans { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sel, .thumb, .seg button, .seg span { transition: none; }
}

/* ---------- Signed-in header ---------- */
.auth-slot { display: flex; align-items: center; gap: 8px; }

/* ---------- Log in / Sign up ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px; position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: -20% -10% auto; height: 520px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.02em; text-align: center; }
.auth-card > p.sub { color: var(--muted); text-align: center; margin: 0 0 24px; }
.auth-card .alt-link { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 8px; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.btn.active-dash { background: var(--surface-2); }

/* ---------- Dashboard ---------- */
.preview-banner { background: var(--accent-soft); border: 1px dashed var(--accent); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 20px 0 0; }
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 24px 0 72px; align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 4px; }
.side .me { display: flex; gap: 10px; align-items: center; padding: 8px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.side .me strong { display: block; font-size: 15px; } .side .me span { font-size: 13px; color: var(--muted); }
.side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a.active { background: var(--accent-soft); color: var(--accent); }
.panel h1 { font-size: 28px; margin: 0 0 4px; letter-spacing: -0.02em; }
.panel > p.sub { color: var(--muted); margin: 0 0 24px; }
.panel h2 { font-size: 18px; margin: 0 0 4px; }
.panel .card + .card, .panel .card + .grid, .panel .grid + .card, .panel .grid + .grid, .panel .stack > * + * { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.stat .d { font-size: 13px; color: var(--muted); }
.rows { display: grid; }
.rows .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.rows .r:first-child { border-top: 0; }
.rows .r .meta { color: var(--muted); font-size: 13px; }
.tagx { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tagx.green { background: var(--accent-soft); color: var(--accent); }
.ov-grid { grid-template-columns: 1.4fr 1fr; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qa-grid a { display: flex; gap: 12px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.qa-grid a:hover { border-color: var(--accent); }
.qa-grid .icon-box { margin: 0; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.setting:first-of-type { border-top: 0; }
.setting .t strong { display: block; font-size: 15px; } .setting .t span { color: var(--muted); font-size: 13px; }
.setting select, .setting input[type=text], .setting input[type=color] { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-size: 14px; }
.setting input[type=range] { width: 160px; accent-color: var(--accent); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.subnav button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.prompt-box { width: 100%; min-height: 160px; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-family: Consolas, ui-monospace, monospace; font-size: 14px; resize: vertical; }
kbd { font-family: Consolas, ui-monospace, monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b span { width: 100%; max-width: 42px; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 4px; }
.bars .b small { color: var(--muted); font-size: 12px; }
.search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.danger h2 { color: var(--danger); }
.btn.danger-btn { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.btn.danger-btn:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .2s; z-index: 120; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Download page ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.dl-card { display: flex; flex-direction: column; gap: 14px; position: relative; padding: 28px; }
.dl-card.recommended { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.dl-card .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.dl-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.dl-steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.code-box { display: flex; gap: 8px; align-items: stretch; background: #161616; border: 1px solid #333; border-radius: 10px; padding: 10px 10px 10px 14px; }
.code-box code { flex: 1; min-width: 0; color: #e8e8e8; font-family: Consolas, ui-monospace, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; align-self: center; }
.code-box .btn { flex: none; padding: 7px 12px; font-size: 13px; }
.dl-meta { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .side .me { display: none; }
  .side a { white-space: nowrap; border: 1px solid var(--border); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .qa-grid, .ov-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  #hdr-avatar { display: none; }
  .bar-right #sign-out { display: none; }
}
@media (max-width: 520px) {
  .setting { flex-direction: column; align-items: flex-start; }
  .setting input[type=range] { width: 100%; }
}
