/* getnuxa.com — shared styles. Default look: Espresso & Amber. Light look: Paper & Terracotta. Purple = AI only. */
:root {
  --bg: #1C140E;
  --bg-2: #261B13;
  --surface: #2E2219;
  --line: #45352A;
  --text: #F4EADF;
  --muted: #C4B4A4;
  --accent: #F2A541;
  --accent-ink: #1C140E;
  --ai: #B983FF;
  --ai-soft: rgba(185, 131, 255, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --max: 72rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FFFDF8;
  --bg-2: #F7F0E6;
  --surface: #FFFFFF;
  --line: #E6DACB;
  --text: #2B2118;
  --muted: #6B5B4D;
  --accent: #C8553D;
  --accent-ink: #FFFDF8;
  --ai: #8A4FD9;
  --ai-soft: rgba(138, 79, 217, 0.10);
  --shadow: 0 20px 50px rgba(43, 33, 24, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: 0.9em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.ai { color: var(--ai); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Pre-launch banner (top of every page) */
.launch-banner { background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 0.45rem 1.25rem; }
.launch-banner a { color: var(--accent); text-decoration: none; }
.launch-banner a:hover { text-decoration: underline; }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; align-items: center; gap: 0.75rem 1.25rem; flex-wrap: wrap; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-right: auto; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; padding: 0; order: 3; width: 100%; font-size: 0.95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.soon-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.3rem; vertical-align: 0.1em; color: var(--muted); }
.nav-soon { color: var(--muted); opacity: 0.75; cursor: default; }
[hidden] { display: none !important; }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
/* Phone widths: links collapse behind the menu button (only when site.js is running; otherwise they stay visible). */
.js-nav .nav-links { display: none; flex-direction: column; gap: 0; }
.js-nav.open .nav-links { display: flex; }
.js-nav .nav-links a { display: block; padding: 0.6rem 0; }
@media (min-width: 52rem) {
  .nav-links { order: 0; width: auto; }
  .js-nav .nav-links { display: flex; flex-direction: row; gap: 0.25rem 1rem; }
  .js-nav .nav-links a { padding: 0; }
  .menu-toggle { display: none !important; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 0.8rem 1.4rem; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.center .actions { justify-content: center; }

/* Sections */
section { padding-block: 3.5rem; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.hero { padding-block: 3rem 3.5rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.1rem; }
.page-head { padding-block: 3rem 1rem; }
.page-head .lead { margin-top: 0.9rem; }
.section-head { margin-bottom: 2rem; max-width: 44rem; }
.section-head p { margin-top: 0.75rem; color: var(--muted); }
.fineprint { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card .icon { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); margin-bottom: 0.9rem; font-weight: 800; }
.card .icon.ai-icon { color: var(--ai); background: var(--ai-soft); }
.card ul { padding-left: 1.1rem; color: var(--muted); }
.card li + li { margin-top: 0.3rem; }

.feature { display: grid; gap: 1.75rem; align-items: center; grid-template-columns: 1fr; }
.feature + .feature { margin-top: 3.5rem; }
.feature h2 { margin-bottom: 0.8rem; }
.feature p { color: var(--muted); }
.feature ul { margin-top: 0.9rem; padding-left: 1.2rem; color: var(--muted); }
.feature li + li { margin-top: 0.3rem; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
  .feature.flip > :first-child { order: 2; }
}

/* App mockup (fictional sample content) */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 0.9rem; }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar span { margin-left: 0.6rem; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 1fr; }
.pane { padding: 1rem 1.1rem; min-width: 0; }
.pane + .pane { border-top: 1px solid var(--line); }
@media (min-width: 40rem) {
  .mock-body.split { grid-template-columns: 1fr 1fr; }
  .mock-body.split .pane + .pane { border-top: 0; border-left: 1px solid var(--line); }
}
.pane-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.pane-label.ai { color: var(--ai); }
.raw { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.55; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.polished h4 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.polished .meta { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.6rem; }
.polished h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0.7rem 0 0.25rem; }
.polished ul { padding-left: 1.1rem; }
.polished li { margin-top: 0.15rem; }
.check { list-style: none; padding: 0; }
.check li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.check li:last-child { border-bottom: 0; }
.check b { width: 1.1rem; flex: none; text-align: center; }
.check .ok b { color: var(--accent); }
.check .gap b { color: var(--ai); }
.check .gap { color: var(--text); }
.check small { color: var(--muted); display: block; }
.ai-note { background: var(--ai-soft); border: 1px solid color-mix(in srgb, var(--ai) 35%, transparent); border-radius: 10px; padding: 0.6rem 0.75rem; margin-top: 0.75rem; font-size: 0.85rem; }
.ai-note strong { color: var(--ai); }
.tree { list-style: none; padding: 0; font-size: 0.85rem; }
.tree ul { list-style: none; padding-left: 1rem; border-left: 1px solid var(--line); margin-left: 0.3rem; }
.tree li { padding: 0.12rem 0; }
.tree .here { color: var(--accent); font-weight: 600; }
.search-box { border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.7rem; color: var(--text); background: var(--bg); margin-bottom: 0.6rem; }
mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 0.1em; }

/* Transform arrow on home hero */
.flow-arrow { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--ai); font-weight: 700; font-size: 0.8rem; padding: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .plans.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 48rem; margin-inline: auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h2 { font-size: 1.35rem; }
.plan .badge { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.15rem 0.6rem; margin-bottom: 0.75rem; }
.price { margin-top: 0.9rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.was { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.was s { opacity: 0.85; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; color: var(--muted); }
.plan li { padding-left: 1.4rem; position: relative; margin-top: 0.4rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }
.plan .btn-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { margin-top: 0.7rem; color: var(--muted); }
.faq ul { padding-left: 1.2rem; margin-top: 0.5rem; }

/* Waitlist form (not live yet) */
.waitlist { max-width: 34rem; }
.waitlist fieldset { border: 0; padding: 0; min-width: 0; }
.waitlist legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.field { margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input[type="email"] { width: 100%; font: inherit; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.options label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; }
fieldset[disabled] input, fieldset[disabled] label { opacity: 0.6; cursor: not-allowed; }
.notice { border: 1px solid var(--accent); color: var(--text); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.notice strong { color: var(--accent); }
.platforms { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-top: 1.5rem; }
.platform { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; background: var(--surface); }
.platform strong { display: block; }
.platform span { font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 0.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.copyright { margin-top: 2rem; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
