/* Norivo — direction E. Dark finance console look, single committed dark theme. */
:root {
  --bg: #0a0f1d;
  --bg-2: #0d1324;
  --panel: #0f1528;
  --panel-2: #0b1121;
  --panel-accent: #121a35;
  --input: #080c18;
  --line: #1a2238;
  --border: #1f2840;
  --border-2: #242e4a;
  --border-3: #2c3653;
  --text: #e6eaf4;
  --text-2: #c8cfe2;
  --muted: #b3bccf;
  --faint: #8790a8;
  --dim: #77819c;
  --link: #a9b4ff;
  --accent: #4f5fd6;
  --accent-2: #6c7cf0;
  --gold: #c9a43a;
  --gold-text: #d8bb63;
  --green: #5ccf96;
  --red: #d06a55;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #cdd3ff; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border-3); color: var(--text); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(24px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-cta .btn-white { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5d6de0; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--border-3); }
.btn-ghost:hover { border-color: #46517a; color: #fff; }
.btn-white { background: #fff; color: var(--bg); padding: 10px 18px; }
.btn-white:hover { background: #e6e9f5; color: var(--bg); }
.btn[disabled] { background: var(--line); color: var(--dim); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--link); text-transform: uppercase; }
.h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.h1-sm { font-size: clamp(34px, 4.8vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
.h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--dim); }
.mono { font-family: var(--mono); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* Sections */
.section { padding-block: 88px; }
.section-tight { padding-block: 0 88px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.divider { border-bottom: 1px solid var(--line); }
.grid-bg {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(140,155,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(140,155,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero { padding-block: 88px 80px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head .stack { max-width: 640px; gap: 12px; }

.grid { display: grid; gap: 16px; }
.cols-auto-250 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.cols-auto-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cols-auto-230 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: start; }
.split > * { min-width: 0; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card-accent { background: var(--panel-accent); border-color: var(--accent); }
.card-accent p { color: var(--text-2); }
.card-dashed { background: transparent; border: 1px dashed var(--border-3); }
.code { font-family: var(--mono); font-size: 12px; color: var(--link); }
.code-gold { color: var(--gold-text); }
.ruled { border-top: 1px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ruled.gold { border-top-color: var(--gold); }
.ruled p { color: var(--muted); font-size: 15px; }

/* Home hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 64px; align-items: center; padding-block: 88px 96px; }
.hero > * { min-width: 0; }
.console { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile-label { font-size: 12px; color: var(--faint); }
.tile-value { font-family: var(--mono); font-size: 24px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.bars span { flex: 1; border-radius: 3px; }
.bars.thin { gap: 4px; height: 52px; }
.bars.thin span { border-radius: 2px; }
.bar-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.progress { height: 5px; background: var(--line); border-radius: 3px; }
.progress > span { display: block; height: 5px; border-radius: 3px; background: var(--gold); }
.log { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--faint); border-top: 1px solid var(--border); padding-top: 12px; }
.log div { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 480px) { .console-grid { grid-template-columns: minmax(0, 1fr); } .tile-value { font-size: 22px; } }

.facts { border-bottom: 1px solid var(--line); }
.facts .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; padding-block: 26px; font-size: 14px; color: var(--muted); }
.facts span:first-child { font-family: var(--mono); font-size: 12px; color: var(--dim); display: block; }

/* Plan finder */
.finder { background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.finder-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.finder-progress { height: 3px; background: var(--line); border-radius: 2px; }
.finder-progress > span { display: block; height: 3px; border-radius: 2px; background: var(--accent-2); transition: width .25s ease; }
.finder h3 { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.3; font-weight: 600; }
.finder h3:focus { outline: none; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 8px; background: var(--input); border: 1px solid var(--border-2); color: var(--text-2); min-height: 48px; }
.option:hover { border-color: #3a4568; }
.option .mark { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid #3a4568; border-radius: 50%; color: transparent; }
.option.multi .mark { border-radius: 4px; }
.option[aria-pressed="true"] { background: rgba(108,124,240,0.14); border-color: var(--accent-2); color: #fff; }
.option[aria-pressed="true"] .mark { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.finder-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.result { border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--border); }
.result.primary { background: var(--panel-accent); border-color: var(--accent); }
.result p { color: var(--muted); font-size: 15px; }
.note { font-size: 14px; color: var(--text-2); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-size: 14px; color: var(--text-2); }
.input, .select, .textarea { background: var(--input); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 16px; width: 100%; }
.textarea { resize: vertical; min-height: 130px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-2); }
.input[aria-invalid="true"] { border-color: var(--red); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; border: none; padding: 0; margin: 0; }
.check { display: flex; align-items: center; gap: 10px; background: var(--input); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--accent-2); width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.form-status { font-size: 14px; border-radius: 8px; padding: 12px 14px; }
.form-status.ok { background: rgba(92,207,150,0.1); border: 1px solid rgba(92,207,150,0.4); color: #bff0d6; }
.form-status.err { background: rgba(208,106,85,0.1); border: 1px solid rgba(208,106,85,0.45); color: #f6c9bf; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Process rows */
.process-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--border); }
.process-row:last-child { border-bottom: 1px solid var(--border); }
.process-row h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.process-row p { color: var(--muted); max-width: 42em; }
@media (max-width: 640px) { .process-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding-block: 20px; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style-position: outside; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Service detail */
.service { padding-block: 88px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; }
.chips a { color: var(--text-2); text-decoration: none; border: 1px solid var(--border-2); border-radius: 6px; padding: 8px 12px; }
.chips a:hover { border-color: #3a4568; color: #fff; }
.included { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.fit { font-size: 15px; color: var(--faint); }
.fit strong { color: var(--gold-text); font-weight: 500; }

/* CTA band */
.cta { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta .stack-sm { max-width: 620px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; padding-block: 80px 96px; display: flex; flex-direction: column; gap: 36px; line-height: 1.7; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal h2 { font-size: 22px; font-weight: 600; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; padding-block: 48px 24px; }
.footer-grid .label { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid .col { display: flex; flex-direction: column; gap: 8px; }
.footer-base { padding-block: 0 32px; font-size: 13px; color: #6a7390; }
