/* Shared styles for every page. Colours, font and shapes are tokens below (JLL's values by default);
   each brand overrides them in brands/<brand>/brand.css, which the build appends to this file. */
:root {
  --brand: #e30613;        /* the brand's main colour */
  --brand-rgb: 227, 6, 19; /* the same colour as r, g, b, for see-through tints */
  --brand-ink: #b8050f;    /* links and text in the brand colour */
  --brand-soft: #fff1f1;   /* pale brand tint behind icons */
  --ink: #0e0e10;
  --ink-2: #2b2b30;
  --muted: #62626b;
  --line: #e7e4e0;
  --line-2: #d9d5d0;
  --bg: #f6f5f2;
  --card: #ffffff;
  --field: #fbfaf8;
  --ok: #16784a;
  --ok-soft: #e8f5ee;
  --warn: #9a6400;
  --warn-soft: #fff4e0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 8px 28px rgba(16, 16, 20, .06);
  --shadow-lg: 0 2px 4px rgba(16, 16, 20, .04), 0 24px 60px rgba(16, 16, 20, .10);
  --ring: 0 0 0 4px rgba(var(--brand-rgb), .12);
  --font: "Inter";
  --brand-line-2: #f3d3d5;
  --brand-line: #f4d6d8;
  --brand-line-hover: #f0c4c7;
  --brand-line-3: #f3c9cc;
  --err-line: #f6d0d2;
  --err-bg: #fff3f3;
  --invalid-bg: #fff8f8;
  --brand-tint-1: #fffafa;
  --brand-tint-2: #fff5f5;
  --brand-tint-3: #fff6f6;
  --soft: #f1efeb;
  --soft-2: #f6f4f1;
  --soft-3: #f7f6f3;
  --soft-4: #faf9f7;
  --row: #fbfaf8;
  --switch-off: #d7d3ce;
  --box-line: #cfc9c3;
  --line-hover: #c5c0ba;
  --placeholder: #a3a09b;
  --placeholder-2: #8d8983;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.brand-sub { color: var(--muted); font-size: 14px; }
.top-pill {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--soft); white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 16px 120px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(var(--brand-rgb), .14), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(var(--brand-rgb), .06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero::before { /* faint ring motif echoing the Muuvo mark */
  content: ""; position: absolute; right: -140px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 46px solid rgba(var(--brand-rgb), .06); box-shadow: 0 0 0 46px rgba(var(--brand-rgb), .035);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: #fff; border: 1px solid var(--brand-line-2); padding: 6px 12px 6px 8px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.08; letter-spacing: -.025em;
  margin: 18px 0 14px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- Main column ---------- */
main { max-width: 760px; margin: -84px auto 0; padding: 0 16px 56px; position: relative; }
main.wide { max-width: 1180px; margin-top: 28px; }

/* Stepper */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0 0 16px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.steps .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); transition: all .25s ease;
}
.steps .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.on { color: var(--ink); }
.steps li.on .num { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .14); }
.steps li.done { color: var(--ok); }
.steps li.done .num { background: var(--ok); color: #fff; font-size: 0; }
.steps li.done .num::after { content: "✓"; font-size: 14px; }
@media (max-width: 520px) {
  .steps { padding: 12px; }
  .steps li { flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
  .steps .label { white-space: normal; }
}

/* Cards & sections */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 16px; box-shadow: var(--shadow);
}
@media (max-width: 520px) { .card { padding: 20px 18px; } }
.section + .section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.section-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.section-icon svg { width: 20px; height: 20px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -.01em; font-weight: 700; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
p.lead { color: var(--muted); margin: 0 0 20px; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], select, textarea {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; background: var(--field); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362626b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input::placeholder { color: var(--placeholder); }
input:hover, select:hover { border-color: var(--line-hover); }
input:focus, select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
input[aria-invalid=true] { border-color: var(--brand); background: var(--invalid-bg); }

/* Development picker (searchable dropdown) */
.combo { position: relative; }
.combo-btn {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field);
  font: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.combo-btn:hover { border-color: var(--line-hover); }
.combo-btn:focus-visible, .combo.open .combo-btn { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.combo-btn[aria-invalid=true] { border-color: var(--brand); background: var(--invalid-bg); }
.combo-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.combo-icon svg { width: 20px; height: 20px; }
.combo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.combo-text b { font-weight: 600; font-size: 16px; }
.combo-text small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.combo-placeholder { color: var(--placeholder-2); }
.combo-chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s ease; }
.combo.open .combo-chev { transform: rotate(180deg); }
.combo-panel {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: fade .18s ease both;
}
.combo-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.combo-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.combo-search input { height: 40px; border: 0; background: transparent; padding: 0; box-shadow: none !important; }
.combo-search input:focus { background: transparent; }
.combo-list { list-style: none; margin: 0; padding: 6px; max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.combo-list li[data-i] {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; cursor: pointer;
}
.combo-list li.active { background: var(--soft-2); }
.combo-list li[aria-selected=true] { background: var(--brand-soft); }
.opt-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); }
.opt-icon svg { width: 17px; height: 17px; }
.combo-list li[aria-selected=true] .opt-icon { background: #fff; color: var(--brand); }
.opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.opt-text b { font-weight: 600; font-size: 15px; }
.opt-text small { color: var(--muted); font-size: 13px; }
.opt-check { flex: none; width: 18px; height: 18px; color: var(--brand); }
.combo-list li.other { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.combo-list li.other .opt-icon { background: transparent; border: 1px dashed var(--line-2); }
.combo-list li.empty { padding: 14px 10px 6px; color: var(--muted); font-size: 14px; }

/* Switch (checkbox styled as a toggle) */
.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; margin: 0; user-select: none; }
.switch input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 44px; height: 26px; border-radius: 999px; background: var(--switch-off); position: relative; cursor: pointer;
  transition: background .2s ease;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { box-shadow: var(--ring); outline: none; }
.reveal { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--soft-4); border: 1px dashed var(--line-2); }

/* Consent */
.consent {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px;
  border-radius: 14px; background: linear-gradient(180deg, var(--brand-tint-1), var(--brand-tint-2)); border: 1px solid var(--brand-line); cursor: pointer;
  font-weight: 400; font-size: 14px; color: var(--ink-2); line-height: 1.55;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--box-line); background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: all .15s ease;
}
.consent input:checked { background: var(--brand); border-color: var(--brand); }
.consent input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.consent input:focus-visible { box-shadow: var(--ring); outline: none; }
/* Plain checkbox row (used on the dashboard and elsewhere) */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--radius-sm); padding: 0 22px; height: 52px; font: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .25);
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-ink); box-shadow: 0 8px 22px rgba(var(--brand-rgb), .32); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.secondary:hover { background: var(--soft-3); border-color: var(--line-hover); }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: none; padding: 0 12px; }
.btn.ghost:hover { background: var(--soft); }
.btn.small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.err { color: var(--brand-ink); font-size: 14px; font-weight: 500; margin-top: 12px; min-height: 0; }
.err:not(:empty) { padding: 10px 14px; background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 10px; }
.note { font-size: 14px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.fine svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Step 2: Servus form */
.servus-head { display: flex; gap: 16px; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ok); background: var(--ok-soft); padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge svg { width: 13px; height: 13px; }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.howto li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; margin-top: -1px;
}
.callout {
  display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg); font-size: 14px; color: var(--ink-2);
}
.callout svg { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 2px; }
.frame-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 16px;
}
.frame-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); background: var(--row);
}
.frame-bar svg { width: 15px; height: 15px; color: var(--ok); }
.frame-bar b { color: var(--ink-2); font-weight: 600; }
.frame-wrap iframe { width: 100%; height: 1600px; border: 0; display: block; background: #fff; }
.fallback { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.fallback p { margin: 0; }

/* Done */
.done-card { text-align: center; padding: 44px 28px; }
.tick {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
/* The path is inline (not <use>) so iOS Safari draws it; the dash animation sits on the path itself. */
.tick svg { width: 42px; height: 42px; }
/* Drawn by default; the animation only plays on top, so it can never be left blank. */
.tick path { stroke-dasharray: 24; stroke-dashoffset: 0; animation: draw .45s .25s ease both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.done-card h2 { font-size: 26px; }
.done-card p { color: var(--muted); max-width: 460px; margin: 10px auto 0; }
.next-list { text-align: left; max-width: 420px; margin: 24px auto 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.next-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.next-list svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }

/* Footer */
footer {
  max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 13px;
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
}
footer img { height: 18px; opacity: .9; }

/* Motion */
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tick path { stroke-dashoffset: 0; } /* show the tick fully drawn when animations are off */
}

/* ---------- Dashboard ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: var(--row); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--row); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.started { background: var(--warn-soft); color: var(--warn); }
.chip.servus_submitted { background: var(--warn-soft); color: var(--warn); }
.chip.warranty_sent { background: var(--ok-soft); color: var(--ok); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 200px; height: 42px; }
.tablewrap { overflow-x: auto; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.accent { border-color: var(--brand-line-3); background: linear-gradient(180deg, #fff, var(--brand-tint-3)); }
.stat.accent b { color: var(--brand); }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.login-wrap { max-width: 420px; margin: 72px auto; }

/* ---------- Dashboard: supplier menu ---------- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; box-shadow: var(--shadow); }
.side-h { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.side-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.side-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-name b { font-size: 15px; }
.side-name small { font-size: 12px; color: var(--muted); }
.side-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.side-sub button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.side-sub button:hover { background: var(--bg); }
.side-sub button.on { color: var(--brand-ink); font-weight: 600; background: var(--bg); }
.side-sub button:focus-visible { box-shadow: var(--ring); }
.side-note { font-size: 12px; color: var(--muted); margin: 14px 8px 0; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.content { min-width: 0; }
.card-h { margin: 0 0 16px; font-size: 18px; letter-spacing: -.01em; }
.dev-preview { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--field); }
.dev-preview .opt-text small:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#devForm { margin-bottom: 18px; }
tr.off td { opacity: .55; }
tr.off td:last-child { opacity: 1; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 18px; }
  .side { position: static; }
  .side-sub { flex-direction: row; flex-wrap: wrap; margin: 8px 0 0; padding: 0; border: 0; }
  .side-sub button { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 560px) {
  header.top #who { display: none; }
  header.top .top-pill { white-space: normal; line-height: 1.25; }
}

/* ---------- Dashboard: use the full screen width ---------- */
header.top.full { padding-left: 24px; padding-right: 24px; }
main.wide { max-width: none; margin: 24px 0 0; padding: 0 24px 56px; }
@media (max-width: 560px) {
  header.top.full { padding-left: 16px; padding-right: 16px; }
  main.wide { padding: 0 16px 56px; }
}
.chip.invited { background: var(--warn-soft); color: var(--warn); }
.stat.amber { background: #fff8ea; border-color: #f4e0b5; }
.stat.amber b { color: var(--warn); }
.stat.green { background: #eef8f2; border-color: #c6e6d4; }
.stat.green b { color: var(--ok); }
#inviteForm { margin-bottom: 18px; }
/* Page title runs from the left edge, above the menu (250px menu + 28px gap) */
@media (min-width: 861px) { .content .page-title { margin-left: -278px; } }
button.stat { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
button.stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
button.stat:focus-visible { outline: none; box-shadow: var(--ring); }
button.stat[aria-pressed="true"].amber { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn), var(--shadow); }
button.stat[aria-pressed="true"].green { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--shadow); }
.side-h2 { margin-top: 18px; padding-top: 14px; }
.side-settings { margin-left: 8px; padding-left: 0; border-left: 0; }
.linkish { all: unset; color: var(--brand-ink); text-decoration: underline; cursor: pointer; }
.linkish:focus-visible { box-shadow: var(--ring); border-radius: 4px; }

/* Dashboard: buttons beside the page title, and the import preview */
.title-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-bad { color: var(--brand-ink); font-weight: 500; }
#impFile { font: inherit; font-size: 14px; max-width: 100%; }

/* Dashboard: Emails and reminders */
.tpl-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; }
.tpl-when input[type=number] { width: 72px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-grid textarea { width: 100%; min-height: 280px; padding: 12px 14px; line-height: 1.5; resize: vertical; font: inherit; font-size: 14px; }
.tpl-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 16px 18px; font-family: Arial, sans-serif; font-size: 14px; color: #222; line-height: 1.5; }
.tpl-preview .tpl-subj { font-weight: 700; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tpl-preview img { display: block; margin-bottom: 8px; }
.tpl-preview p { margin: 0 0 12px; }
.tpl-test { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.tpl-test-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-test-row input { flex: 1 1 240px; }
.side-item.off { background: transparent; }
.side-item.off .side-logo { background: var(--soft); color: var(--ink-2); }

/* ---------- Homepage (index.html) ---------- */
.top-link { margin-left: auto; }
.home-hero { padding-bottom: 132px; }
.home-hero .hero-inner { max-width: 880px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
@media (max-width: 640px) { .choose { grid-template-columns: 1fr; } }
.choice {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.choice:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--brand-line-hover); }
.choice:focus-visible { outline: none; box-shadow: var(--ring); }
.choice-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.choice-icon.dark { background: var(--ink); }
.choice-icon svg { width: 22px; height: 22px; }
.choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.choice-text b { font-size: 17px; }
.choice-text small { color: var(--muted); font-size: 14px; margin-top: 3px; }
.choice-arrow { flex: none; width: 20px; height: 20px; color: var(--brand); transition: transform .15s ease; }
.choice:hover .choice-arrow { transform: translateX(3px); }

main.home-main { max-width: 880px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.explain { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .explain { grid-template-columns: 1fr; } }
.explain h2 { font-size: 22px; margin: 6px 0 10px; }
.explain p { color: var(--ink-2); margin: 0 0 12px; font-size: 15px; }
.util-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.util-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--line); }
.util-list li span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.util-list b { font-size: 15px; }
.util-list small { font-size: 13px; color: var(--muted); }
.u-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); }
.u-icon svg { width: 17px; height: 17px; }
.util-list li.feature { background: var(--brand-soft); border-color: var(--brand-line); }
.util-list li.feature .u-icon { background: var(--brand); color: #fff; }

.combo-search.find { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field); padding: 4px 14px; }
.combo-search.find:focus-within { border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.results li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--line); }
.results li .btn { flex: none; }
.results li.more, .results li.empty { border: 0; color: var(--muted); font-size: 14px; padding: 6px 4px; }
.results li.empty svg { width: 18px; height: 18px; flex: none; }
.supplier-chip { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
@media (max-width: 520px) { .supplier-chip { display: none; } }

.how3 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .how3 { grid-template-columns: 1fr; } }
.how3 li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.how3 li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; background: var(--brand); color: #fff;
}
.how3 b { color: var(--ink); font-size: 15px; }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } }
.who p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.who-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.who-tag.dark { background: var(--ink); }
.who-tag.soft { background: var(--soft); color: var(--ink-2); }
body.home footer { max-width: 880px; }

/* ---------- Self-service registration (register/index.html) ---------- */
.sup-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .sup-choice { grid-template-columns: 1fr; } }
.sup-choice label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field); font-weight: 400; }
.sup-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.sup-choice label:has(input:focus-visible) { box-shadow: var(--ring); }
.sup-choice input { margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.sup-choice span { display: flex; flex-direction: column; line-height: 1.3; }
.sup-choice b { font-size: 15px; color: var(--ink); }
.sup-choice small { font-size: 13px; color: var(--muted); }
.sup-choice.locked label { cursor: default; }
.sup-choice.locked label:not(:has(input:checked)) { opacity: .45; }
.code-input { max-width: 220px; font-size: 26px !important; letter-spacing: .4em; text-align: center; font-weight: 700; }
.turnstile { margin-top: 18px; }
.turnstile:empty { display: none; }
.btn.secondary.danger { color: var(--brand-ink); }
.req-detail { font-size: 13px; color: var(--muted); }
.chip.pending_review { background: var(--warn-soft); color: var(--warn); }
.chip.approved { background: var(--ok-soft); color: var(--ok); }
.chip.rejected { background: var(--soft); color: var(--ink-2); }
.not-listed { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 12px; text-decoration: none; color: var(--ink);
  border: 1px dashed var(--line-2); border-radius: 12px; background: var(--field); }
.not-listed:hover { border-color: var(--brand-line-hover); background: #fff; }
.not-listed:hover .choice-arrow { transform: translateX(3px); }
.not-listed:focus-visible { outline: none; box-shadow: var(--ring); }
.contact-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px;
  border: 1px dashed var(--line-2); border-radius: 12px; background: var(--field); }
.contact-row .opt-text { min-width: 220px; }
.contact-row .btn { flex: none; }
/* Homepage: heat network panel beside the explanation */
.explain { align-items: stretch; }
.explain-text p:last-child { margin-bottom: 0; }
.hn-panel { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px;
  border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--brand-tint-3), var(--brand-soft)); border: 1px solid var(--brand-line); }
.hn-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.hn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hn-list li { display: flex; gap: 14px; align-items: center; }
.hn-list li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.hn-list b { font-size: 16px; }
.hn-list small { font-size: 14px; color: var(--muted); }
.hn-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), .22); }
.hn-icon svg { width: 21px; height: 21px; }
.hn-note { display: flex; gap: 8px; align-items: center; margin: 0; padding-top: 14px; border-top: 1px solid var(--brand-line);
  font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hn-note svg { flex: none; width: 17px; height: 17px; color: var(--brand); }

/* ---------- Muuvo brand (appended to styles.css by the build) ----------
   Values come from the Muuvo design system (tokens.css): navy action colour, teal accents,
   pale grounds, Plus Jakarta Sans, soft teal-tinted shadows, rounded shapes.
   Rules: white text only on blue, never on teal; teal text only in large headlines; ink-900 on teal. */
:root {
  --brand: #31607d;          /* blue-700: buttons, links, active states */
  --brand-rgb: 49, 96, 125;
  --brand-ink: #31607d;
  --brand-soft: #e4eef1;     /* pale-100 */
  --teal: #7bb4c1;           /* teal-400: decoration and large headline phrases only */
  --ink: #1e3a4c;            /* ink-900 */
  --ink-2: #1e3a4c;
  --muted: #3d708f;          /* ink-muted (blue-600), 5:1 on white */
  --line: #d3e1e6;
  --line-2: #c3d6dd;
  --bg: #f4f7f9;             /* pale-50 page */
  --card: #ffffff;
  --field: #f8fafb;
  --ok: #036321;
  --ok-soft: #e6f9f0;
  --radius: 16px;            /* radius-xl: cards */
  --radius-sm: 12px;         /* radius-lg: buttons and fields */
  --shadow: 0 4px 20px -4px rgba(123, 180, 193, .25);
  --shadow-lg: 0 10px 40px -10px rgba(123, 180, 193, .35);
  --ring: 0 0 0 2px #fff, 0 0 0 4px #31607d; /* 2px focus ring with a 2px gap */
  --font: "Plus Jakarta Sans";
  --brand-line-2: #d3e1e6;
  --brand-line: #cfe1e7;
  --brand-line-hover: #b5d2db;
  --brand-line-3: #cfe1e7;
  --brand-tint-1: #f8fbfc;
  --brand-tint-2: #eef5f7;
  --brand-tint-3: #f3f8fa;
  --soft: #e9f1f4;
  --soft-2: #eef4f6;
  --soft-3: #f4f7f9;
  --soft-4: #f7fafb;
  --row: #f7fafb;
  --switch-off: #c3d6dd;
  --box-line: #b4cbd4;
  --line-hover: #a6c2cc;
  --placeholder: #7f9cad;
  --placeholder-2: #5f8295;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.01em; }

/* Hero: pale ground fading to pale-100 with a soft teal glow behind the right side; no ring motif. */
.hero {
  background:
    radial-gradient(640px 360px at 88% 10%, rgba(123, 180, 193, .30), transparent 65%),
    linear-gradient(180deg, #f4f7f9 0%, #e4eef1 100%);
}
.hero::before { display: none; }
/* Two-tone headline: mid blue, key phrase in teal (large text only, so never below 32px). */
.hero h1 { color: #3d708f; font-weight: 800; letter-spacing: -.02em; font-size: clamp(32px, 5.2vw, 52px); }
.hero h1 em { color: var(--teal); }
.dev-hero h1 { color: #3d708f; }
.hero p.lead { color: #3d708f; }

/* Eyebrow pill: uppercase label with the teal dot. */
.eyebrow { color: var(--ink); border-color: var(--line); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.eyebrow .dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(123, 180, 193, .25); }
.kicker, .hn-title { color: var(--muted); letter-spacing: .08em; }

/* Buttons: blue-700 fill, white label, teal-tinted shadow. */
.btn { box-shadow: 0 6px 18px -6px rgba(123, 180, 193, .55); }
.btn:hover { background: #3d708f; box-shadow: 0 10px 28px -8px rgba(123, 180, 193, .6); }
.btn.secondary:hover { background: var(--soft-3); }

/* Icon discs and tiles: teal accent with deep-ink icons (never white on teal). */
.section-icon, .combo-icon, .choice-icon, .hn-icon, .util-list li.feature .u-icon, .side-logo {
  background: var(--teal); color: var(--ink); box-shadow: none;
}
.choice-icon { border-radius: 9999px; }
.choice-icon.dark { background: var(--brand); color: #fff; }
.hn-panel { background: linear-gradient(180deg, #f8fbfc, #e4eef1); }
.side-count { background: var(--brand); }
.steps li.on .num { box-shadow: 0 0 0 5px rgba(123, 180, 193, .30); }
.stat.accent b { color: var(--brand); }

/* Error text stays deep ink beside a red edge, since red text alone is too faint. */
.err { color: var(--ink); }
.err:not(:empty) { border-left: 4px solid #ef4444; }
input[aria-invalid=true], .combo-btn[aria-invalid=true] { border-color: #ef4444; }
.imp-bad, .btn.secondary.danger { color: #b91c1c; }

/* Logo sizes: the wordmark is wide, so size it by height and keep it above the 96px minimum width. */
.brand-logo { height: 26px; }
footer img { height: 20px; opacity: 1; }
