:root {
  --bg: #ebedf0;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --ink: #171a1d;
  --ink-soft: #33383e;
  --muted: #5d6772;
  --line: #e0e3e8;
  --line-soft: #eceef1;
  --accent: #e8650e;
  --accent-dark: #c2540a;
  --accent-soft: #fcecdd;
  --graphite: #1b1f24;
  --graphite-2: #23282e;
  --danger: #b42318;
  --ok: #1e7e34;
  --ok-soft: #e6f4ea;
  --warn-bg: #fff4e5;
  --warn-line: #f0b429;
  --warn-ink: #8a6d00;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(19, 24, 32, .04), 0 10px 30px rgba(19, 24, 32, .08);
  --shadow-sm: 0 1px 2px rgba(19, 24, 32, .05), 0 2px 8px rgba(19, 24, 32, .05);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header --- */
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px;
  background: var(--graphite);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
}
.brand b { font-weight: 800; color: var(--accent); }
.nav-link { margin-left: auto; color: #cdd3da; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-link:hover { color: #fff; }
.nav .tag { margin-left: 16px; font-size: 12px; color: #c5ccd4; border: 1px solid #3a4047; padding: 3px 11px; border-radius: 20px; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; }

/* --- Hjelp/bruksanvisning --- */
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.help-toc a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 20px; }
.help-toc a:hover { background: #f8dcc4; }
.help-steps { padding-left: 20px; margin: 8px 0; }
.help-steps li { margin: 8px 0; }
.help-list { padding-left: 20px; margin: 8px 0; }
.help-list li { margin: 8px 0; }
.help-legend { border-collapse: collapse; width: 100%; margin: 10px 0; }
.help-legend td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.help-legend td:first-child { white-space: nowrap; font-weight: 600; }
.help-legend tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); vertical-align: -3px; margin-right: 6px; }
.help-faq p { margin: 14px 0; }

/* Flyt-illustrasjon */
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 22px 0 8px; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 14px; min-width: 96px; }
.flow-node small { font-weight: 500; color: var(--muted); font-size: 12px; }
.flow-ic { width: 52px; height: 52px; }
.flow-arrow { width: 36px; height: 22px; flex: none; }

/* Visuelle kort (steg + merkelapper) */
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.help-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); }
.help-card h3 { font-size: 15px; margin: 10px 0 6px; }
.help-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.hc-num { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Interaktiv Excel-demo */
.xl-legend { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; margin: 12px 0; }
.xl-leg-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xl-leg-title { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.xl-leg { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; cursor: pointer; transition: border-color .15s, background .15s; }
.xl-leg:hover { background: #fff; border-color: var(--accent); }
.xl-leg.active { border-color: var(--accent); background: var(--accent-soft); }
.xl-reset { color: var(--muted); }
.xl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.xl-demo { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 520px; }
.xl-demo th { background: var(--graphite); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; font-size: 12.5px; }
.xl-demo td { padding: 8px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-soft); transition: opacity .15s, transform .1s, box-shadow .15s; }
.xl-krav td { background: #f7f8fa; color: var(--ink-soft); font-weight: 500; }
.xl-krav td:first-child, .xl-tilbud td:first-child { font-weight: 700; white-space: nowrap; color: var(--ink-soft); }
.xl-tilbud td:first-child { color: var(--muted); font-weight: 600; }
.xl-match { background: #D5E8D4; }
.xl-mismatch { background: #F8CBAD; }
.xl-review { background: #FFE699; }
.xl-verify { background: #C9A0DC; }
.xl-scope { background: #EEEEEE; }
/* Inline farge-prøve i punktlister (bruksanvisning) */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; margin-right: 4px; }
td.xl-hl { box-shadow: inset 0 0 0 2px var(--graphite); transform: scale(1.02); position: relative; z-index: 1; font-weight: 700; }
td.xl-dim { opacity: .28; }

/* FAQ-trekkspill */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 12px 0; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; }
.acc-q:hover { background: var(--bg-soft); }
.acc-x { flex: none; font-size: 20px; font-weight: 700; color: var(--accent); width: 22px; text-align: center; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-item.open .acc-a { max-height: 320px; }
.acc-a p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); font-size: 14px; }

@media (max-width: 640px) { .help-cards { grid-template-columns: 1fr; } }

/* --- Banners --- */
.banner { padding: 11px 20px; font-size: 14px; font-weight: 500; text-align: center; }
.banner-demo { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: var(--warn-ink); }
.banner-review { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: var(--radius-sm); margin-bottom: 18px; padding: 12px 16px; text-align: left; font-weight: 500; }
.banner-error { background: #fdecea; border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius-sm); margin-bottom: 18px; padding: 12px 16px; text-align: left; font-weight: 500; }

main { flex: 1; width: 100%; }
.container { max-width: 760px; margin: 32px auto; padding: 0 18px; }

/* --- Workspace (tool-first landing) --- */
.workspace { max-width: 640px; margin: 40px auto 48px; padding: 0 18px; }
.ws-head { margin-bottom: 20px; }
.ws-head h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 8px; }
.ws-sub { color: #454e58; font-size: 14.5px; margin: 0; max-width: 560px; }
.ws-steps {
  list-style: none; counter-reset: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.ws-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.ws-n {
  flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--line);
  color: var(--ink-soft); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.fl-hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .ws-steps { flex-direction: column; gap: 8px; } }

/* --- Hero (marketing, industriell) --- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%);
  color: #fff; text-align: center;
  padding: 70px 18px 78px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(900px 380px at 50% 30%, #000 0%, transparent 75%);
}
.hero > * { position: relative; }
.hero .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 13px; border-radius: 20px; }
.hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; margin: 20px auto 14px; max-width: 760px; font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 17.5px; color: #cdd3da; max-width: 600px; margin: 0 auto 26px; }
.hero .cta { display: inline-flex; gap: 10px; align-items: center; }
.btn-cta {
  display: inline-block; padding: 14px 26px; font-size: 16px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 101, 14, .4); transition: background .15s, transform .05s;
}
.btn-cta:hover { background: var(--accent-dark); }
.btn-cta:active { transform: translateY(1px); }
.hero .micro { margin-top: 16px; font-size: 13px; color: #9aa2ab; }

/* --- Value props --- */
.values { max-width: 960px; margin: -38px auto 0; padding: 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 2; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.value .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.value h3 { font-size: 16px; margin: 14px 0 6px; letter-spacing: -.01em; }
.value p { font-size: 14px; color: var(--muted); margin: 0; }

/* --- Section heading --- */
.sec-head { max-width: 960px; margin: 56px auto 0; padding: 0 18px; text-align: center; }
.sec-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-size: 27px; letter-spacing: -.02em; margin: 8px 0 0; }

/* --- How it works strip --- */
.steps { max-width: 960px; margin: 22px auto 0; padding: 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.step .n { width: 28px; height: 28px; border-radius: 8px; background: var(--graphite); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step h3 { font-size: 15px; margin: 12px 0 4px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* --- Output preview (leveranse) --- */
.preview { max-width: 760px; margin: 26px auto 0; padding: 0 18px; }
.preview-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--graphite); }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3c434b; display: inline-block; }
.preview-bar span { margin-left: 8px; font-size: 12.5px; color: #aeb6bf; font-weight: 600; }
table.cmp { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.cmp th { text-align: left; background: var(--bg-soft); color: var(--muted); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--line); }
table.cmp td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
table.cmp tr:last-child td { border-bottom: 0; }
.cell-ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; border-radius: 5px; padding: 2px 7px; }
.cell-bad { background: #fdecea; color: var(--danger); font-weight: 600; border-radius: 5px; padding: 2px 7px; }

/* --- Cards --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card.narrow { max-width: 380px; margin: 64px auto; }
.card + .card { margin-top: 18px; }
h1 { margin-top: 0; font-size: 23px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 26px 0 10px; letter-spacing: -.01em; }
h2:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: 14px; }
.lead { color: var(--ink-soft); font-size: 15px; margin: -6px 0 22px; }
a { color: var(--accent); }

/* --- Forms --- */
label { display: block; margin: 18px 0; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
input[type=text], input[type=password], select {
  display: block; width: 100%; margin-top: 7px; padding: 11px 13px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input[type=text]:focus, input[type=password]:focus, select:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Skjulte fil-input i dra-soner skal forbli skjult (hidden-attributtet vinner). */
input[type=file][hidden] { display: none !important; }
input[type=file] {
  display: block; width: 100%; margin-top: 7px; padding: 18px; font: inherit; font-size: 13.5px;
  border: 1.5px dashed #c4ccd8; border-radius: var(--radius-sm); background: var(--bg-soft); cursor: pointer;
  transition: border-color .15s, background .15s;
}
input[type=file]:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type=file]::file-selector-button {
  margin-right: 14px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13px;
  border: 0; border-radius: 7px; background: var(--graphite); color: #fff; cursor: pointer;
}

/* --- Dra-og-slipp-soner + fil-liste --- */
.field-label { display: block; margin: 18px 0 7px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 18px; cursor: pointer;
  border: 1.5px dashed #c4ccd8; border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.dragover { border-style: solid; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.dropzone.has-file .dz-ic { color: var(--ok); }
.dz-ic { font-size: 26px; line-height: 1; }
.dz-text { font-size: 14px; color: var(--muted); }
.dz-text strong { color: var(--ink); }
.filelist { list-style: none; padding: 0; margin: 10px 0 0; }
.filelist li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 7px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.filelist li.flash { animation: flashAdded 1s ease; }
@keyframes flashAdded {
  0% { background: #c9ecca; transform: scale(1.015); box-shadow: 0 0 0 3px rgba(30,126,52,.25); }
  100% { background: #fff; transform: scale(1); }
}
.filelist .fl-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok);
  color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.filelist .fl-name { flex: 1; font-weight: 600; font-size: 13.5px; word-break: break-all; }
.filelist .fl-size { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.filelist .fl-x {
  flex: none; width: 26px; height: 26px; padding: 0; line-height: 1; font-size: 18px;
  border-radius: 6px; background: transparent; color: var(--muted); box-shadow: none;
}
.filelist .fl-x:hover { background: #fde8e6; color: var(--danger); }

button {
  padding: 11px 20px; font: inherit; font-weight: 600; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; cursor: pointer; transition: background .15s, transform .05s;
  box-shadow: none;
}
button:hover { background: var(--accent-dark); }
button:active { transform: translateY(1px); }
button.danger { background: var(--danger); box-shadow: 0 1px 2px rgba(180, 35, 24, .25); }
button.danger:hover { background: #8f1c13; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; margin-left: 8px; }
button.ghost:hover { background: var(--bg-soft); color: var(--ink); }
button.danger-ghost { color: var(--danger); border-color: #f3b7af; }
button.danger-ghost:hover { background: #fde8e6; color: var(--danger); }
button.block { width: 100%; padding: 13px; font-size: 15px; }
button:disabled { opacity: .55; cursor: default; }
button:disabled:hover { background: var(--accent); }

.hidden { display: none; }
.error { color: var(--danger); font-weight: 600; }
.error.hidden { display: none; }

/* --- Estimate / status --- */
.estimate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.runbar { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-line { font-weight: 600; color: var(--ink); margin: 0; }

/* Framdriftsindikator (ubestemt) + hang-varsel */
.progress { position: relative; height: 10px; border-radius: 6px; background: var(--accent-soft); overflow: hidden; margin: 0 0 10px; }
.progress-bar { height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width .7s ease; }
.progress-bar.stalled { background: var(--warn-line); }
.progress-pct { text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 14px; }
.spinner.stalled { border-top-color: var(--warn-line); }
.stall { margin-top: 14px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); }
.stall.hidden { display: none; }

/* --- Key/value + files --- */
table.kv { border-collapse: collapse; width: 100%; margin: 6px 0; }
table.kv th { text-align: left; padding: 9px 16px 9px 0; color: var(--muted); font-weight: 600; white-space: nowrap; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.kv td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
ul.files { list-style: none; padding: 0; margin: 6px 0 0; }
ul.files li { padding: 0; }
ul.files li a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
ul.files li a:hover { border-color: var(--accent); background: var(--accent-soft); }
ul.files li a .ic { font-size: 18px; }
ul.files li.primary a { background: var(--accent-soft); border-color: #f0c79f; }

/* --- Confidence chips --- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.chip.high { background: var(--ok-soft); color: var(--ok); }
.chip.medium { background: var(--warn-bg); color: var(--warn-ink); }
.chip.low { background: #ede0f6; color: #7d4ca8; }
.statgrid { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.statbox { flex: 1; min-width: 120px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.statbox .v { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.statbox .l { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* --- Funn-panel (resultat) --- */
.findings-intro { margin: 2px 0 14px; color: var(--ink); }
.finding-group { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 10px; }
.finding-lev { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.finding-list { list-style: none; margin: 0; padding: 0; }
.finding-list li { display: flex; gap: 9px; align-items: baseline; padding: 5px 0; font-size: 14px; line-height: 1.45; }
.finding-list li + li { border-top: 1px solid var(--line); }
.fic { flex: none; width: 18px; text-align: center; }
.findings-note { color: var(--muted); font-size: 13px; font-style: italic; margin: 4px 0 0; }
.analysis-note { margin-top: 18px; font-size: 12.5px; line-height: 1.5; }

/* --- Trust footer --- */
.trust { border-top: 1px solid var(--line); background: var(--graphite); margin-top: 56px; }
.trust .inner { max-width: 760px; margin: 0 auto; padding: 18px; }
.trust a { color: #9aa2ab; font-size: 13px; text-decoration: none; }
.trust a:hover { color: #c5ccd4; text-decoration: underline; }

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .values, .steps { grid-template-columns: 1fr; }
  .values { margin-top: 24px; }
  .card { padding: 22px; }
}

/* --- Admin-dashboard --- */
.admin { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; }
.tab { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; font-weight: 600; box-shadow: none; }
.tab:hover { background: transparent; color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; min-width: 130px; }
.stat.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.stat-val { font-size: 22px; font-weight: 700; }
.stat-lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
table.grid { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0; }
table.grid th { text-align: left; padding: 8px 12px; background: #fafbfc; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.grid tr:last-child td { border-bottom: 0; }
.flag { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: #eceff2; color: #5a6470; }
.flag.ok { background: #e6f4ea; color: #1e7e34; }
.flag.warn { background: var(--warn-bg); color: #8a6d00; border: 1px solid var(--warn-line); }
.flag.danger { background: #fde8e6; color: var(--danger); }
.errcell { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--danger); }
