/* Novarion Support Portal
   Navy ground for chrome (header, hero, footer), light working surfaces, gold as the accent.
   Gold is never used as text on white (fails contrast); on light surfaces the darker "bronze" is used instead. */

:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --navy-line: #1c3550;
  --gold: #dfbb70;
  --gold-soft: #f6ead0;
  --bronze: #7a5a1c;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b1f33;
  --ink-2: #44546a;
  --ink-3: #66748a;
  --line: #dfe3e9;
  --line-2: #c4ccd6;
  --on-navy: #d5dde6;
  --on-navy-2: #9fb0c3;
  --ok: #1f6b43;
  --ok-bg: #e1f1e7;
  --wait: #6a4a0c;
  --wait-bg: #fbf1dc;
  --info-bg: #e4ebf3;
  --danger: #a1301d;
  --danger-bg: #fbe9e5;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(11, 31, 51, .08);
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { color: var(--on-navy-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-left: 1px solid #2b4866; padding-left: 14px; }
.nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.nav a, .nav .linklike { color: var(--on-navy); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav .linklike:hover { color: #fff; text-decoration: underline; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: var(--navy); text-decoration: none; }
.flash { margin-top: 20px; }
.nav .who { color: var(--on-navy-2); font-size: 14px; overflow-wrap: anywhere; }
.nav form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.site-footer { background: var(--navy); color: var(--on-navy-2); font-size: 14px; margin-top: 64px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 32px; }
.site-footer img { height: 22px; width: auto; display: block; }
.site-footer a { color: var(--on-navy); }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e8c983; color: var(--navy); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-row .select { width: auto; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-block: 64px 96px; display: flex; flex-direction: column; gap: 20px; }
.hero-mark { position: absolute; right: -80px; top: -60px; width: 460px; height: 460px; opacity: .07; pointer-events: none; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--bronze); }
.hero .eyebrow, .panel-dark .eyebrow { color: var(--gold); }
.hero h1 { margin: 0; font: 400 clamp(36px, 5vw, 56px)/1.08 var(--f-display); max-width: 760px; }
.searchbar { display: flex; gap: 8px; max-width: 720px; flex-wrap: wrap; }
.searchbar input { flex: 1 1 320px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 8px; border: 1px solid #2b4866; background: #fff; color: var(--ink); font: inherit; }
.searchbar .btn { height: 52px; }
.hero-links { margin: 0; color: var(--on-navy-2); font-size: 14px; }
.hero-links a { color: var(--on-navy); }

.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { margin: 0; font: 400 clamp(32px, 4vw, 44px)/1.1 var(--f-display); }
.page-head p { margin: 0; color: var(--on-navy); max-width: 65ch; }
.page-head .back { color: var(--on-navy-2); font-size: 14px; text-decoration: none; }
.page-head .back:hover { color: #fff; }

/* ---------- Layout ---------- */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack > p { margin: 0; }
.section { margin-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2, .title { margin: 0; font: 400 30px/1.2 var(--f-display); }
h1.title { font-size: clamp(30px, 3.5vw, 38px); line-height: 1.15; }
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.split > .main { flex: 999 1 600px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel-dark { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.panel-dark p { margin: 0; }
.panel-dark .big { font: 400 26px/1.2 var(--f-display); }
.panel-dark .phone { font-size: 22px; font-weight: 600; letter-spacing: .02em; color: #fff; text-decoration: none; }
.panel-dark .muted { color: var(--on-navy-2); font-size: 14px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: -48px; position: relative; }
.product { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.product:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 31, 51, .12); color: var(--ink); }
.product .ico { width: 44px; height: 44px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.product .ico svg { width: 22px; height: 22px; }
.product .kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }
.product .name { font: 400 26px/1.1 var(--f-display); margin-top: -6px; }
.product .sum { font-size: 14px; color: var(--ink-2); }
.product .go { font-size: 14px; font-weight: 600; margin-top: auto; }

/* ---------- Article lists ---------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; }
.list a:hover .t { text-decoration: underline; }
.list .meta { font-size: 13px; color: var(--bronze); white-space: nowrap; }
.list .sub { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; }
.cols-2 .list { border-top: 0; }
.cols-2 .list li:first-child { border-top: 1px solid var(--line); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-size: 14px; }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Article body */
.prose { max-width: 70ch; }
.prose h2 { font: 400 26px/1.25 var(--f-display); margin: 32px 0 8px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 0 0 20px; padding: 12px 16px; background: var(--gold-soft); border-radius: var(--radius-sm); color: var(--wait); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.prose code { background: var(--info-bg); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-2); margin: 0; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--surface); }
.select { padding: 0 12px; }
.textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(223, 187, 112, .45); }
.input[readonly] { background: var(--bg); color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend.legend { padding: 0; margin-bottom: 10px; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 14px; margin: 0; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--info-bg); color: var(--ink); }
.phi { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--danger); margin: 0; }
.phi svg { flex: none; margin-top: 2px; }

/* Choice tiles (radio buttons styled as cards) */
.choices { display: grid; gap: 10px; }
.choices.products-pick { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choices.sev-pick { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span.tile { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); min-height: 44px; }
.choice .k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.choice .n { display: block; font: 400 22px/1.15 var(--f-display); }
.choice .l { display: block; font-weight: 600; font-size: 15px; }
.choice .d { display: block; font-size: 13px; opacity: .8; }
.choice input:checked + span.tile { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.choice input:focus-visible + span.tile { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice:hover span.tile { border-color: var(--ink-3); }

.field label.dropzone, .dropzone { font-weight: 400; }
.dropzone { display: block; border: 1px dashed #b3bdc9; border-radius: 8px; padding: 22px; text-align: center; color: var(--ink-2); font-size: 14px; background: #fafbfc; cursor: pointer; }
.dropzone.is-over { border-color: var(--navy); background: var(--gold-soft); }
.dropzone strong { color: var(--ink); text-decoration: underline; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }

.targets { display: flex; flex-direction: column; }
.targets div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--navy-line); padding: 8px 0; font-size: 15px; }
.targets span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- Requests ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 12px 14px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--ink-2); min-height: 44px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); font-weight: 600; }
.tabs .n { font-variant-numeric: tabular-nums; opacity: .7; }
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.requests { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
table.requests th { text-align: left; color: var(--ink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 16px 12px; border-bottom: 1px solid var(--line); }
table.requests td { padding: 16px 12px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
table.requests th:first-child, table.requests td:first-child { padding-left: 20px; }
table.requests tr:last-child td { border-bottom: 0; }
table.requests .num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
table.requests a { font-weight: 600; text-decoration: none; }
table.requests a:hover { text-decoration: underline; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill-waiting { background: var(--wait-bg); color: var(--wait); }
.pill-active { background: var(--info-bg); color: var(--ink); }
.pill-done { background: var(--ok-bg); color: var(--ok); }
.empty { text-align: center; padding: 48px 24px; }
.empty h2 { font: 400 26px/1.2 var(--f-display); margin: 0 0 8px; }

.message { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.message.agent { box-shadow: inset 4px 0 0 var(--gold); }
.message header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--info-bg); color: var(--ink); flex: none; }
.message.agent .avatar { background: var(--navy); }
.message.agent .avatar img { width: 20px; height: 20px; }
.message .author { font-weight: 600; }
.message time { font-size: 14px; color: var(--ink-3); }
.message .body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.attachments { display: flex; gap: 8px; flex-wrap: wrap; }
.attachments a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 14px; text-decoration: none; background: var(--bg); }
.attachments a:hover { border-color: var(--line-2); }
.details { display: flex; flex-direction: column; }
.details div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #eef1f4; }
.details dt { color: var(--ink-2); }
.details dd { margin: 0; text-align: right; }

/* ---------- Auth ---------- */
.narrow { max-width: 520px; margin: 48px auto 0; }
.demo-note { background: var(--gold-soft); border: 1px dashed var(--bronze); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--wait); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .hero .wrap { padding-block: 44px 80px; }
  .card { padding: 22px; }
  .site-header .wrap { padding-block: 12px; }
  .nav { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
