/* ============================================================
   NuruXplore public site (landing, pricing)
   A light, calm, product-led look. Dark theme is kept: [data-theme="dark"].
   Brand fonts come from nuru-fonts.css (Inter for text, Source Serif 4 for headings and the wordmark).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #f2f3fb;
  --ink: #14142b;
  --muted: #565b78;
  --faint: #666b88;
  --rule: #e3e6f1;
  --accent: #5b4cf0;
  --accent-strong: #4637d6;
  --accent-soft: #eeecfe;
  --blue: #2f8fe8;
  --green: #0e7f72;
  --green-soft: #dcf3ef;
  --amber: #8f5a00;
  --amber-soft: #fbefd5;
  --red: #b3261e;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.05);
  --shadow: 0 1px 2px rgba(20, 20, 43, 0.05), 0 14px 34px rgba(20, 20, 43, 0.09);
  --shadow-lg: 0 2px 4px rgba(20, 20, 43, 0.05), 0 28px 60px rgba(40, 30, 140, 0.16);
  --glow: radial-gradient(60% 55% at 78% 0%, rgba(91, 76, 240, 0.13), transparent 70%), radial-gradient(45% 40% at 8% 6%, rgba(47, 143, 232, 0.10), transparent 70%);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --nav-h: 64px;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b0c14;
  --bg-soft: #11131f;
  --surface: #161829;
  --surface-2: #1c1f33;
  --ink: #eceef8;
  --muted: #a3a9c6;
  --faint: #8c93b2;
  --rule: #272b44;
  --accent: #9c91fa;
  --accent-strong: #b3aafc;
  --accent-soft: #231f4f;
  --blue: #5db0ff;
  --green: #4fd1c0;
  --green-soft: #123b37;
  --amber: #f0ba58;
  --amber-soft: #3a2d10;
  --red: #f28b82;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 60px rgba(0, 0, 0, 0.55);
  --glow: radial-gradient(60% 55% at 78% 0%, rgba(124, 92, 255, 0.22), transparent 70%), radial-gradient(45% 40% at 8% 6%, rgba(58, 160, 255, 0.12), transparent 70%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nx-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.nx-skip:focus { left: 8px; }
.nx-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.nx-gradient-text, .text-gradient { background: linear-gradient(120deg, var(--accent) 10%, var(--blue) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- Announcement ---- */
.nx-announce { background: linear-gradient(90deg, var(--accent-soft), var(--surface-2)); border-bottom: 1px solid var(--rule); font-size: 14px; }
.nx-announce .nx-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; position: relative; }
.nx-announce a { color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
.nx-announce a:hover { text-decoration: underline; }
.nx-announce button { position: absolute; right: 16px; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 6px; }

/* ---- Navigation ---- */
.nx-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--rule); }
.nx-nav .nx-wrap { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.nx-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nx-links a { white-space: nowrap; padding: 8px 11px; border-radius: 8px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nx-links a:hover, .nx-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nx-nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nx-nav-end .nx-textlink { white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.nx-nav-end .nx-textlink:hover { color: var(--ink); background: var(--surface-2); }
.nx-icon-btn { background: transparent; border: 1px solid var(--rule); border-radius: 10px; width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--muted); }
.nx-icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.nx-menu-btn { display: none; }
.mobile-only { display: none; }
.nx-lang select { background: transparent; color: var(--muted); border: 1px solid var(--rule); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; }

/* ---- Buttons ---- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.nx-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(91, 76, 240, 0.28); }
[data-theme="dark"] .nx-btn-primary { color: #0b0c14; box-shadow: 0 6px 18px rgba(156, 145, 250, 0.25); }
.nx-btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.nx-btn-outline { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
.nx-btn-outline:hover { background: var(--accent-soft); }
.nx-btn-sm { padding: 8px 18px; font-size: 15px; white-space: nowrap; }
.nx-btn-block { width: 100%; }

/* ---- Hero ---- */
.nx-hero { background: var(--glow); }
.nx-hero .nx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: 72px 88px; }
.nx-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.nx-h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.018em; margin-top: 14px; text-wrap: balance; }
.nx-lead { font-size: 19px; color: var(--muted); max-width: 54ch; margin-top: 20px; line-height: 1.6; }
.nx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nx-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14.5px; color: var(--muted); }
.nx-facts li { display: inline-flex; align-items: center; gap: 8px; }
.nx-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* ---- Product pictures (drawn in HTML, so they stay sharp and translate) ---- */
.nx-stage { position: relative; }
.nx-window { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.nx-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.nx-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.nx-window-bar b { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nx-doc { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 340px; }
.nx-outline { border-right: 1px solid var(--rule); padding: 16px 12px; background: var(--bg-soft); font-size: 13px; }
.nx-outline p { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0 8px 8px; }
.nx-outline li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--muted); }
.nx-outline li.on { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nx-outline li .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.nx-outline li.todo .dot { background: var(--rule); }
.nx-page { padding: 24px 28px; }
.nx-page h4 { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.nx-page .by { font-size: 12px; color: var(--faint); margin-bottom: 16px; }
.nx-page h5 { font-size: 13px; margin: 0 0 6px; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .05em; }
.nx-page p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.nx-cite { background: var(--accent-soft); color: var(--accent-strong); border-radius: 5px; padding: 0 5px; font-weight: 600; white-space: nowrap; }
.nx-lines i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); margin: 8px 0; }
.nx-lines i:nth-child(2) { width: 92%; } .nx-lines i:nth-child(3) { width: 78%; }
.nx-callout { position: absolute; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 13.5px; line-height: 1.5; max-width: 300px; }
.nx-callout b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 5px; color: var(--accent-strong); }
.nx-callout span { color: var(--muted); }
.nx-hero .nx-callout { right: -14px; bottom: -26px; }

/* ---- Section tabs ---- */
.nx-tabs { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nx-tabs .nx-wrap { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.nx-tabs .nx-wrap::-webkit-scrollbar { display: none; }
.nx-tabs a { position: relative; padding: 12px 18px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; border-radius: 8px; }
.nx-tabs a:hover { color: var(--ink); }
.nx-tabs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.nx-tabs a[aria-current="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--blue)); }

/* ---- Feature blocks ---- */
.nx-section { padding-block: 96px; }
.nx-section.soft { background: var(--bg-soft); }
.nx-feature { scroll-margin-top: calc(var(--nav-h) + 56px); }
.nx-feature .nx-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.nx-h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.012em; margin-top: 10px; text-wrap: balance; }
.nx-feature .nx-lead { font-size: 17px; margin-top: 16px; }
.nx-bullets { margin-top: 22px; display: grid; gap: 12px; }
.nx-bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; color: var(--ink); }
.nx-bullets li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.nx-panel { background: linear-gradient(145deg, var(--accent-soft), var(--surface-2)); border-radius: 24px; padding: 28px 28px 52px; position: relative; }
.nx-panel .nx-window { box-shadow: var(--shadow); }
.nx-panel .nx-callout { right: 18px; bottom: -34px; }

/* feature mock pieces */
.nx-steps-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.nx-steps-list li:last-child { border-bottom: 0; }
.nx-steps-list .ok { color: var(--green); font-weight: 700; }
.nx-steps-list .run { color: var(--accent); }
.nx-progress { height: 6px; border-radius: 4px; background: var(--surface-2); margin: 14px; overflow: hidden; }
.nx-progress i { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 4px; }
.nx-ref { padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.nx-ref:last-child { border-bottom: 0; }
.nx-ref strong { color: var(--ink); font-weight: 600; }
.nx-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-top: 6px; }
.nx-chip.ok { background: var(--green-soft); color: var(--green); }
.nx-chip.warn { background: var(--amber-soft); color: var(--amber); }
.nx-chat { padding: 18px; display: grid; gap: 12px; font-size: 14px; }
.nx-bubble { padding: 11px 15px; border-radius: 14px; max-width: 86%; line-height: 1.55; }
.nx-bubble.me { background: var(--accent); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
[data-theme="dark"] .nx-bubble.me { color: #0b0c14; }
.nx-bubble.ai { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.nx-bubble.ai ol { list-style: decimal; padding-left: 18px; margin-top: 6px; display: grid; gap: 3px; }
.nx-mode { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 600; width: max-content; }
.nx-mode span { padding: 5px 13px; color: var(--muted); }
.nx-mode span.on { background: var(--accent); color: #fff; }
[data-theme="dark"] .nx-mode span.on { color: #0b0c14; }
.nx-files { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.nx-file { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; background: var(--surface); text-align: center; font-size: 13px; color: var(--muted); }
.nx-file b { display: block; font-size: 22px; letter-spacing: -.01em; margin-bottom: 4px; font-family: var(--serif); }
.nx-file.pdf b { color: #d44949; } .nx-file.doc b { color: var(--blue); }
.nx-check { margin: 0 18px 18px; border-radius: 12px; background: var(--green-soft); color: var(--green); padding: 12px 16px; font-size: 13.5px; font-weight: 600; }
.nx-versions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.nx-versions li:last-child { border-bottom: 0; }
.nx-versions li.on { background: var(--accent-soft); color: var(--ink); }
.nx-versions .btn { font-size: 12px; font-weight: 600; color: var(--accent-strong); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 10px; background: var(--surface); }
.nx-diff { padding: 14px 18px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.nx-diff ins { background: var(--green-soft); color: var(--green); text-decoration: none; border-radius: 3px; padding: 0 2px; }
.nx-diff del { background: #fbe4e1; color: var(--red); border-radius: 3px; padding: 0 2px; }
[data-theme="dark"] .nx-diff del { background: #3c1b19; }
.nx-privacy { padding: 22px; display: grid; gap: 12px; }
.nx-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; font-size: 14px; background: var(--surface); }
.nx-toggle-row small { display: block; color: var(--muted); font-size: 12.5px; }
.nx-switch { width: 38px; height: 22px; border-radius: 999px; background: var(--rule); position: relative; flex: none; }
.nx-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.nx-switch.on { background: var(--green); } .nx-switch.on::after { left: 19px; }

/* ---- How it works ---- */
.nx-center { text-align: center; max-width: 720px; margin-inline: auto; }
.nx-center .nx-lead { margin-inline: auto; }
.nx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.nx-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.nx-card .num { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.nx-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.nx-card p { color: var(--muted); font-size: 15.5px; }

/* ---- Compare ---- */
.nx-table-wrap { margin-top: 44px; border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; background: var(--surface); box-shadow: var(--shadow-sm); }
.nx-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.nx-table th, .nx-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--rule); }
.nx-table tr:last-child td { border-bottom: 0; }
.nx-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; background: var(--bg-soft); }
.nx-table td.good, .nx-table th.good { color: var(--green); font-weight: 600; }
.nx-table td.no { color: var(--red); }
.nx-table .c { text-align: center; }

/* ---- CTA band ---- */
.nx-cta .nx-wrap { padding-block: 24px 96px; }
.nx-cta-box { border-radius: 28px; padding: 64px 32px; text-align: center; background: radial-gradient(70% 90% at 80% 0%, rgba(91, 76, 240, .16), transparent 70%), linear-gradient(145deg, var(--accent-soft), var(--surface-2)); border: 1px solid var(--rule); }
.nx-cta-box .nx-actions { justify-content: center; }

/* ---- Footer ---- */
.nx-footer { border-top: 1px solid var(--rule); background: var(--bg-soft); }
.nx-footer .nx-wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.nx-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nx-footer a:hover { color: var(--ink); }

/* ---- Pricing ---- */
.nx-pricing-head { background: var(--glow); text-align: center; padding-block: 72px 40px; }
.nx-pricing-head .nx-h1 { font-size: clamp(36px, 4.6vw, 54px); }
.nx-pricing-head .nx-lead { margin-inline: auto; }
.nx-cycle { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.nx-cycle .on { color: var(--ink); font-weight: 600; }
.nx-cycle .save { color: var(--green); font-size: 12.5px; font-weight: 700; background: var(--green-soft); padding: 2px 9px; border-radius: 999px; margin-left: 4px; }
.nx-toggle { width: 52px; height: 28px; border-radius: 999px; border: 0; background: var(--rule); position: relative; padding: 0; transition: background .2s; }
.nx-toggle::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.nx-toggle[aria-checked="true"] { background: var(--accent); }
.nx-toggle[aria-checked="true"]::after { transform: translateX(24px); }
.nx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px 56px; align-items: stretch; }
.nx-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); }
.nx-plan.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.nx-plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent), var(--blue)); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
[data-theme="dark"] .nx-plan .badge { color: #0b0c14; }
.nx-plan h2 { font-family: var(--serif); font-size: 24px; }
.nx-plan .for { color: var(--muted); font-size: 14.5px; margin-top: 4px; min-height: 44px; }
.nx-price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 6px; }
.nx-price .amount { font-family: var(--serif); font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.nx-price small { color: var(--muted); font-size: 14.5px; }
.nx-plan .nx-btn { margin-bottom: 26px; }
.nx-plan ul { display: grid; gap: 11px; font-size: 15px; color: var(--muted); }
.nx-plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.nx-plan li::before { content: '✓'; color: var(--green); font-weight: 700; }
.nx-plan li strong { color: var(--ink); }
.nx-plan li.off { color: var(--faint); }
.nx-plan li.off::before { content: '✕'; color: var(--faint); }
.nx-plan li.off span { text-decoration: line-through; }
.nx-topup { max-width: 560px; margin: 8px auto 0; text-align: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); }
.nx-topup h3 { font-family: var(--serif); font-size: 22px; }
.nx-topup .big { font-family: var(--serif); font-size: 38px; font-weight: 700; margin: 12px 0 2px; }
.nx-topup .big small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; }
.nx-faq { max-width: 780px; margin: 44px auto 0; display: grid; gap: 12px; }
.nx-faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 22px; }
.nx-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 16.5px; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: '+'; font-size: 22px; color: var(--accent-strong); font-weight: 400; line-height: 1; }
.nx-faq details[open] summary::after { content: '–'; }
.nx-faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15.5px; }

/* ---- Sign-in, sign-up, password and confirmation pages ---- */
.nx-auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); background-image: var(--glow); }
.nx-auth-top .nx-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nx-auth-top .nx-nav-end { margin-left: 0; }
.nx-auth-main { flex: 1; display: grid; place-items: start center; padding: 28px 20px 72px; }
.nx-auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 38px; box-shadow: var(--shadow-lg); }
.nx-auth-head { text-align: center; margin-bottom: 26px; }
.nx-auth-head h1 { font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -.012em; }
.nx-auth-head p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.nx-auth-card .input-group { margin-bottom: 16px; }
.nx-auth-card .input-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.nx-auth-card .input-wrapper { position: relative; }
.nx-auth-card .input-field { width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.nx-auth-card .input-field::placeholder { color: var(--faint); }
.nx-auth-card .input-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nx-auth-card .toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; font-size: 16px; opacity: .7; }
.nx-auth-card .toggle-password:hover { opacity: 1; }
.nx-auth-card .btn-primary, .nx-auth-card .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 6px 18px rgba(91, 76, 240, .26); transition: background .15s, transform .15s; }
[data-theme="dark"] .nx-auth-card .btn-primary, [data-theme="dark"] .nx-auth-card .btn { color: #0b0c14; }
.nx-auth-card .btn-primary:hover, .nx-auth-card .btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.nx-auth-card .btn-primary:disabled { opacity: .65; cursor: wait; transform: none; }
.nx-auth-card a.btn { text-decoration: none; margin-top: 20px; }
.nx-auth-card .btn-ghost { text-decoration: none; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 999px; background: transparent; border: 1.5px solid var(--rule); color: var(--ink); font-weight: 600; font-size: 15.5px; }
.nx-auth-card .btn-ghost:hover { background: var(--surface-2); }
.nx-auth-card .msg-box { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; line-height: 1.5; }
.nx-auth-card .msg-error, .nx-auth-card .error { background: #fbe4e1; color: var(--red); border: 1px solid #f3c6c1; }
.nx-auth-card .msg-success, .nx-auth-card .notice { background: var(--green-soft); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
[data-theme="dark"] .nx-auth-card .msg-error, [data-theme="dark"] .nx-auth-card .error { background: #3c1b19; border-color: #5a2a27; }
.nx-auth-card .error, .nx-auth-card .notice { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; }
.nx-auth-card .error ul { margin: 0; padding-left: 18px; list-style: disc; }
.nx-auth-card .divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.nx-auth-card .divider::before, .nx-auth-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.nx-auth-card .link, .nx-auth-card a.nx-textlink2 { color: var(--accent-strong); font-weight: 600; }
.nx-auth-card .link:hover { text-decoration: underline; }
.nx-auth-card .remember-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.nx-auth-card .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.nx-auth-card .checkbox-label input, .nx-auth-card .terms input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.nx-auth-card .terms { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin: 4px 0 20px; cursor: pointer; line-height: 1.5; }
.nx-auth-card .terms input { margin-top: 2px; flex: none; }
.nx-auth-card .credit-badge { display: block; background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600; margin-bottom: 20px; text-align: center; line-height: 1.45; }
.nx-auth-card .phone-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.nx-auth-card .password-strength { height: 5px; border-radius: 3px; margin-top: 9px; background: var(--rule); transition: width .25s, background .25s; }
.nx-auth-card .strength-weak { background: #e5484d; width: 25%; }
.nx-auth-card .strength-fair { background: #f0a020; width: 50%; }
.nx-auth-card .strength-good { background: #5ab552; width: 75%; }
.nx-auth-card .strength-strong { background: var(--green); width: 100%; }
.nx-auth-card .match-indicator { font-size: 13px; margin-top: 5px; display: none; }
.nx-auth-card .match-indicator.success { color: var(--green); }
.nx-auth-card .match-indicator.error { color: var(--red); }
.nx-auth-card .spinner { animation: nx-spin .8s linear infinite; display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-auth-foot { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 24px; }
.nx-auth-legal { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.nx-auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.nx-auth-card .muted { color: var(--muted); line-height: 1.6; }
.nx-auth-card .ok { color: var(--green); } .nx-auth-card .bad { color: var(--red); }
.nx-auth-card .field { display: grid; gap: 6px; margin: 16px 0; font-size: 14px; }
.nx-auth-card .field > span { font-weight: 600; }
.nx-auth-card .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.nx-auth-card .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nx-auth-back { display: inline-block; font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.nx-auth-back:hover { color: var(--ink); }

/* ---- Legal pages (privacy, terms, cookies, support) ---- */
.nx-legal { max-width: 860px; margin-inline: auto; padding: 56px 24px 96px; }
.nx-legal .eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.nx-legal h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 44px); line-height: 1.12; margin: 8px 0 14px; letter-spacing: -.015em; }
.nx-legal h2 { font-family: var(--serif); font-size: 24px; margin: 40px 0 10px; letter-spacing: -.01em; }
.nx-legal h3 { font-size: 17px; margin: 24px 0 6px; }
.nx-legal p, .nx-legal li { color: var(--muted); line-height: 1.75; }
.nx-legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.nx-legal .lead { font-size: 18.5px; color: var(--ink); opacity: .85; }
.nx-legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.nx-legal .box { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.nx-legal .box p { margin: 0 0 8px; } .nx-legal .box p:last-child { margin: 0; }
.nx-legal .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 22px 0; }
.nx-legal .toc a { text-decoration: none; font-weight: 500; }
.nx-legal strong { color: var(--ink); }

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .nx-hero .nx-wrap { grid-template-columns: 1fr; gap: 44px; padding-block: 48px 72px; }
  .nx-feature .nx-wrap { grid-template-columns: 1fr; gap: 36px; }
  .nx-section { padding-block: 64px; }
  .nx-cards, .nx-plans { grid-template-columns: 1fr; }
  .nx-doc { grid-template-columns: 1fr; }
  .nx-outline { display: none; }
  .nx-hero .nx-callout { right: 8px; bottom: -22px; }
  .nx-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 10px 16px 16px; margin: 0; gap: 2px; box-shadow: var(--shadow); }
  .nx-links.open { display: flex; }
  .nx-menu-btn { display: inline-grid; }
  .nx-nav .nx-wrap { gap: 12px; }
  .nx-nav-end .nx-textlink, .nx-nav-end .nx-lang { display: none !important; }
  .nx-auth-top .nx-nav-end .nx-lang { display: inline-flex !important; }
  .mobile-only { display: block; }
}
@media (max-width: 520px) {
  .nx-wrap { padding-inline: 18px; }
  .nx-announce .nx-wrap { flex-wrap: wrap; justify-content: flex-start; padding-right: 44px; gap: 2px 12px; }
  .nx-nav .nx-wrap { gap: 8px; }
  .nx-nav-end { gap: 6px; }
  .nx-nav-end .nx-btn-sm { padding: 7px 14px; font-size: 14px; }
  .nx-icon-btn { width: 36px; height: 36px; }
  .nx-actions .nx-btn { width: 100%; }
  .nx-facts { flex-direction: column; gap: 8px; }
  .nx-page { padding: 18px; }
  .nx-files { grid-template-columns: 1fr; }
  .nx-cta-box { padding: 44px 20px; }
  .nx-auth-card { padding: 28px 20px; }
  .nx-auth-card .phone-row { grid-template-columns: 1fr; }
  .nx-legal .toc { grid-template-columns: 1fr; }
  .nx-callout { position: relative; right: auto !important; bottom: auto !important; margin-top: 14px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
