/* aiBridge - single stylesheet.
 *
 * The look is modelled on the piofin.ai landing page: one near-monochrome palette,
 * a single blue accent, sharp 4px corners instead of soft ones, very generous
 * vertical rhythm between sections, small uppercase eyebrow labels above each
 * heading, and big quiet numbers for the figures. The brand's violet survives only
 * in the footer gradient.
 *
 * Type is Geist where the visitor can fetch it, with the system stack as the
 * fallback so nothing depends on the network.
 */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300..700&display=swap");

:root {
  /* palette */
  --ink: #050505;
  --ink-2: #121212;
  --muted: #6c6c6c;
  --line: #d9d9d4;
  --line-soft: #ecece8;
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --card: #ffffff;
  --brand: #3d81ff;
  --brand-dark: #2f67d8;
  --brand-soft: #eef2ff;
  --violet: #240078;
  --green: #0f7a58;
  --amber: #8a5c10;
  --red: #9c2b21;
  /* geometry */
  --radius: 4px;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 8vw, 124px);
  --shadow: 0 24px 60px rgba(15, 30, 60, .07);
  --shadow-sm: 0 2px 10px rgba(15, 30, 60, .05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 .6rem; color: var(--ink); font-weight: 560; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.01em; margin-top: 0; }
h3 { font-size: 1.16rem; line-height: 1.25; }
p { margin: 0 0 1rem; }

/* ------------------------------------------------------------- section rhythm */
.section { padding: var(--section) 0; }
.section.tight { padding: calc(var(--section) * .68) 0; }

/* ------------------------------------------------------------- eyebrow labels */
.eyebrow,
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow { margin-bottom: 1.1rem; color: var(--brand-dark); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }

/* ------------------------------------------------------------- big quiet figures */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card);
}
.metric {
  min-height: 170px; padding: 1.7rem 1.6rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, transform .3s var(--ease);
}
.metric:hover { background: var(--bg-soft); transform: translateY(-3px); }
.metric b {
  display: block; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 540;
  line-height: 1; letter-spacing: -.02em;
}
.metric span { display: block; margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.metric small { display: block; margin-top: .7rem; color: #9c9c9c; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------- numbered cards */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap-card {
  min-height: 260px; padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.cap-card:hover { border-color: #b9cfff; box-shadow: var(--shadow); }
.cap-index { color: var(--brand-dark); font-size: .74rem; letter-spacing: .1em; }
.cap-card h3 { margin: 2.2rem 0 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.cap-card p { margin: .9rem 0 0; max-width: 46ch; color: var(--muted); }

/* ------------------------------------------------------------- numbered steps */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.step { padding: 1.7rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.step .num { color: var(--brand-dark); font-size: .74rem; letter-spacing: .1em; }
.step h3 { margin: 1.4rem 0 .5rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

.wrap { width: min(var(--max), 100% - (var(--gutter) * 2)); margin: 0 auto; }
.section { padding: 3.2rem 0; }
.section.tight { padding: 2rem 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt2 { margin-top: 1.6rem; }

/* ---------------------------------------------------------------- top chrome */
.demo-banner {
  background: #1b2233;
  color: #e8eefc;
  font-size: .86rem;
  padding: .45rem 1.25rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-banner strong {
  background: #f0b429;
  color: #23180a;
  border-radius: 4px;
  padding: 0 .4rem;
  letter-spacing: .08em;
  font-size: .74rem;
}

.site-head {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-weight: 600; display: grid; place-items: center; letter-spacing: -.03em; font-size: .92rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 600; }
.brand-text small { color: var(--muted); font-size: .74rem; }
.site-nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.site-nav a {
  position: relative; color: var(--muted); padding: .45rem .7rem; border-radius: var(--radius); font-size: .94rem;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); background: transparent; text-decoration: none; }
.site-nav a.on { color: var(--ink); font-weight: 600; background: transparent; }
.site-nav a.on::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .18rem; height: 1px; background: var(--brand);
}
.site-nav a.nav-admin { border: 1px solid var(--line); color: var(--ink); }
.site-nav a.nav-admin:hover { background: var(--bg-soft); }

/* ---------------------------------------------------------------- hero */
.hero {
  background: var(--ink);
  color: #eaf0ff;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* a faint technical grid, with the section fading into the page below it */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(90deg, transparent 0 calc(25% - .5px), rgba(255, 255, 255, .045) 25%, transparent calc(25% + .5px) calc(50% - .5px), rgba(255, 255, 255, .045) 50%, transparent calc(50% + .5px) calc(75% - .5px), rgba(255, 255, 255, .045) 75%, transparent calc(75% + .5px)),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 96px;
  mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0 72%, transparent 100%);
}
/* one soft blue glow, off to the right, as the only colour in the dark */
.hero::after {
  content: ""; position: absolute; right: -14%; top: -6%; z-index: -1;
  width: 60vw; height: 60vw; max-width: 780px; max-height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 129, 255, .22), rgba(36, 0, 120, .10) 40%, transparent 68%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 22ch; font-weight: 540; }
.hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #b6b6b6; max-width: 62ch; line-height: 1.5; }
.hero .eyebrow {
  color: #8ab3ff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-panel {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.hero-panel h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; color: #cfd6e4; font-size: .95rem; line-height: 1.7; }
.hero-panel li::marker { color: var(--brand); }
.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats div { font-size: .8rem; color: #8f8f8f; }
.hero-stats b { display: block; font-size: clamp(1.3rem, 2vw, 1.7rem); color: #fff; font-weight: 540; letter-spacing: -.02em; margin-bottom: .2rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 5px; padding: .72rem 1.2rem;
  font: inherit; font-weight: 560; cursor: pointer; line-height: 1;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #bdbdbd; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.btn-danger { background: #fdeceb; color: var(--red); border-color: #f6cdc8; }
.btn-sm { padding: .45rem .72rem; font-size: .86rem; border-radius: 4px; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.4rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card.pad-lg { padding: 2.1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .35rem; }
.card .price { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 540; letter-spacing: -.025em; }
.card .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.card-accent { border-top: 2px solid var(--brand); }
.pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: var(--radius); padding: .2rem .6rem;
}
.feature-list { list-style: none; margin: .9rem 0 0; padding: 0; }
.feature-list li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; font-size: .93rem; }
.feature-list li::before {
  content: ""; position: absolute; left: .25rem; top: .55rem;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--green);
}
.tick-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.tick-list li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.tick-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700;
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f9fe; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

/* Logs stay readable in the available panel instead of becoming a wide strip. */
.log-wrap { overflow-x: visible; }
.log-table { table-layout: fixed; }
.log-table th, .log-table td { overflow-wrap: anywhere; word-break: normal; }
.log-table .log-message { line-height: 1.5; }
.update-ready { display: flex; align-items: center; gap: 1rem; }
.update-sections > .stack:empty { display: none; }

@media (max-width: 1100px) {
  .log-wrap { border: 0; box-shadow: none; background: transparent; }
  .log-table, .log-table tbody, .log-table tr, .log-table td { display: block; width: 100%; }
  .log-table thead { display: none; }
  .log-table tr {
    margin-bottom: .75rem; padding: .35rem .8rem;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .log-table td {
    display: grid; grid-template-columns: minmax(7.25rem, 34%) minmax(0, 1fr);
    gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line);
    text-align: left !important;
  }
  .log-table td:last-child { border-bottom: 0; }
  .log-table td::before {
    content: attr(data-label); color: var(--muted); font-size: .72rem;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
}
tbody tr:hover { background: #fafcff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Stacked table cells: several related fields in one column, one per line, each
   with its own small label. Used by the administrator lists, where wide tables
   read better as a few tall columns than as many narrow ones. */
.cell { display: flex; flex-direction: column; gap: .3rem; min-width: 8.5rem; }
.cell.compact { min-width: 0; gap: .2rem; }
.cell-row { display: flex; gap: .5rem; align-items: baseline; }
.cell-row > .cell-label {
  flex: 0 0 auto; min-width: 4.6rem; color: var(--muted);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .12rem;
}
.cell-row > .cell-value { flex: 1 1 auto; min-width: 0; }
.cell.compact .cell-row > .cell-label { min-width: 4rem; }
.cell-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.cell-actions form { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
th .th-sub { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .74rem; }

/* ---------------------------------------------------------------- pager */
.pager {
  display: flex; gap: .7rem; flex-wrap: wrap; align-items: center;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
}
.pager .pager-info { color: var(--muted); font-size: .86rem; margin-right: auto; }
.pager .pager-info b { color: var(--ink); }
.pager .pages { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.pager .page {
  display: inline-block; min-width: 2.15rem; text-align: center; padding: .32rem .55rem;
  border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; color: var(--ink);
  background: #fff; font-variant-numeric: tabular-nums;
}
.pager a.page:hover { background: #eef3ff; text-decoration: none; }
.pager .page.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .page.gap { border-color: transparent; background: transparent; color: var(--muted); }
.pager .toolbar { gap: .35rem; }
.pager select { width: auto; }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-block; border-radius: 999px; padding: .16rem .6rem;
  font-size: .76rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.chip.ok { background: #e6f7f1; color: #0a6f53; border-color: #bfe8da; }
.chip.info { background: #e8f0ff; color: #1f4fc4; border-color: #c9daff; }
.chip.warn { background: #fdf5e3; color: #8a5c10; border-color: #f2e0b6; }
.chip.bad { background: #fdeceb; color: #9c2b21; border-color: #f6cdc8; }
.chip.muted { background: #eef1f6; color: #56637a; border-color: #dfe4ee; }

/* ---------------------------------------------------------------- forms */
label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #c9daff; border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.choice {
  display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .95rem; margin-bottom: .6rem; cursor: pointer; background: #fff;
}
.choice:hover { border-color: #c9daff; }
.choice input { margin-top: .28rem; }
.choice .choice-body { flex: 1; }
.choice .choice-title { font-weight: 600; }
.choice .choice-note { font-size: .84rem; color: var(--muted); }
.choice .choice-price { font-weight: 700; white-space: nowrap; }
.choice.on { border-color: var(--brand); background: #f6f9ff; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }

/* ---------------------------------------------------------------- summary */
.summary { position: sticky; top: 88px; }
.summary table { font-size: .92rem; }
.summary .total-row td { font-size: 1.05rem; font-weight: 700; border-bottom: 0; }
.summary .sub td { color: var(--muted); }

/* ---------------------------------------------------------------- misc */
.flash {
  border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; font-size: .94rem;
  border: 1px solid var(--line); background: #fff;
}
.flash.ok { background: #e9f8f2; border-color: #bfe8da; color: #0a6f53; }
.flash.err { background: #fdeceb; border-color: #f6cdc8; color: #9c2b21; }
.flash.info { background: #eef3ff; border-color: #c9daff; color: #1f4fc4; }

.callout { border-left: 4px solid var(--brand); background: #f4f8ff; border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; }
.callout.warn { border-left-color: #d9a13b; background: #fdf8ec; }
.callout.small { font-size: .92rem; }
.dealer-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.dealer-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; }
.dealer-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .35rem; }
.dealer-logo-placeholder { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 650; font-size: 1.15rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.logo-dropzone { min-height: 132px; border: 1.5px dashed #aeb9b2; border-radius: 10px; background: #f8faf8; padding: 1rem; display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.logo-dropzone:hover, .logo-dropzone:focus-visible, .logo-dropzone.is-dragging { border-color: var(--brand); background: #eef6f2; box-shadow: 0 0 0 3px rgba(38, 112, 78, .10); outline: none; }
.logo-dropzone span { display: flex; flex-direction: column; gap: .25rem; }
.logo-dropzone small { color: var(--muted); }
.logo-dropzone-preview { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: .3rem; }
.logo-dropzone-preview.is-empty { display: none; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: .45rem 1rem; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.ascii {
  background: #0d1526; color: #c9d8f5; border-radius: var(--radius); padding: 1.2rem;
  overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.45; margin: 0;
}
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li { position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: #e7efff; color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.flow li b { display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.stack { display: grid; gap: 1rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.searchbar input { max-width: 320px; }

/* admin */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: start; }.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; position: sticky; top: 88px; }
.admin-nav a { display: block; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-2); font-size: .94rem; }
.admin-nav a:hover { background: #eef3ff; text-decoration: none; }
.admin-nav a.on { background: #e7efff; color: var(--brand-dark); font-weight: 600; }
.admin-nav .sep { height: 1px; background: var(--line); margin: .55rem .3rem; }

/* product briefs: switcher strip */
.product-switch {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: .5rem .6rem; margin: 1.4rem 0 0;
}
.product-switch-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 0 .5rem 0 .3rem;
}
.product-tab {
  padding: .42rem .8rem; border-radius: 9px; font-size: .92rem; color: var(--ink-2);
  border: 1px solid transparent;
}
.product-tab:hover { background: #eef3ff; text-decoration: none; }
.product-tab.on {
  background: color-mix(in srgb, var(--tab-accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--tab-accent) 40%, #fff);
  color: var(--tab-accent); font-weight: 600;
}
.product-tab.all { margin-left: auto; border-color: var(--line); }

/* tabs (server-side, ?tab=...) */
.tabs {
  display: flex; gap: .25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin: 1.2rem 0 1.5rem;
}
.tabs a.tab {
  padding: .55rem .95rem; border: 1px solid transparent; border-bottom: 0;
  border-radius: 10px 10px 0 0; color: var(--ink-2); font-size: .94rem; margin-bottom: -1px;
}
.tabs a.tab:hover { background: #eef3ff; text-decoration: none; }
.tabs a.tab.on {
  background: #fff; border-color: var(--line); color: var(--brand-dark);
  font-weight: 600; border-bottom: 1px solid #fff;
}
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat b { display: block; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 540; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .84rem; }
.login-card { max-width: 430px; margin: clamp(2rem, 6vw, 4.5rem) auto; }

/* footer - the one place the brand's blue-to-violet gradient survives.
   Every line of text is plain white: the gradient behind it carries the contrast,
   so the shared .muted / .small greys and the amber .foot-demo are overridden
   here rather than removed, and the links keep a faint underline so they are
   still recognisable as links. */
.site-foot {
  background: linear-gradient(180deg, #3d81ff -20%, #240078 210%);
  color: #fff;
  margin-top: 0;
  padding: 3rem 0 1.4rem;
}
.site-foot a,
.site-foot a:hover,
.site-foot p,
.site-foot li,
.site-foot span,
.site-foot .muted,
.site-foot .foot-brand,
.site-foot .foot-head,
.site-foot .foot-bottom,
.site-foot .foot-demo { color: #fff; }
.site-foot a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .18em; }
.site-foot a:hover { text-decoration-color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 1.6rem; }
.foot-brand { font-weight: 600; color: #fff; margin-bottom: .4rem; }
.foot-head { color: #fff; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.foot-list li { margin-bottom: .35rem; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .19); margin-top: 2rem; padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #fff;
}
.foot-demo { color: #fff; }

/* print */
@media print {
  .site-head, .site-foot, .demo-banner, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .grid.three, .grid.four, .grid.two { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
  .summary { position: static; }
  /* the piofin-style blocks: keep the hairline grid, drop to one column */
  .metrics, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-grid { grid-template-columns: 1fr; }
  .metric, .step { min-height: 0; }
}

@media (max-width: 620px) {
  .metrics, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats div { flex: 1 1 40%; }
  .cap-card { min-height: 0; }
}

/* 1.22 diagram system ------------------------------------------------------ */
.diagram-head {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  gap: 2.5rem; align-items: end; margin-bottom: 2rem;
}
.diagram-head .eyebrow { margin-bottom: .8rem; }
.diagram-head h2 { margin-bottom: 0; }
.diagram-head > p { color: var(--muted); max-width: 56ch; margin: 0; }

.topology-board {
  display: grid; grid-template-columns: minmax(0,1fr) 130px minmax(240px,.34fr);
  gap: 0; align-items: stretch;
}
.topology-zone { border: 1px solid #cfd5cf; border-radius: 18px; background: #fff; padding: 1.3rem; }
.zone-title { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .2rem .15rem 1rem; border-bottom: 1px solid var(--line); }
.zone-title span { font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.zone-title small { color: var(--muted); }
.topology-grid { display: grid; grid-template-columns: minmax(0,1fr) 95px minmax(0,1fr); gap: .9rem; padding-top: 1.1rem; align-items: center; }
.diagram-node { border: 1px solid #d9ddd8; border-radius: 12px; padding: 1rem; background: #f8f9f6; min-height: 132px; }
.diagram-node.strong { background: #eaf3ef; border-color: #b9d2c7; }
.diagram-node h3 { font-size: 1.05rem; margin: .7rem 0 .3rem; }
.diagram-node p { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0; }
.node-tag { color: var(--brand-dark); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.diagram-link, .external-link { display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--muted); text-align: center; }
.diagram-link span, .external-link span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.diagram-link b, .external-link b { color: var(--brand); font-size: 1.6rem; font-weight: 400; }
.boundary-note { margin-top: 1rem; padding: .72rem .9rem; border-radius: 9px; background: #17201c; color: #dce4df; font-size: .78rem; text-align: center; }
.vendor-zone { background: #17201c; border-color: #17201c; color: #fff; }
.vendor-zone .zone-title { border-color: #354139; }
.vendor-zone .zone-title span { color: #fff; }
.vendor-zone .zone-title small { color: #9eaaa4; }
.vendor-node { margin-top: 1.1rem; background: #202b25; border-color: #3b4841; }
.vendor-node h3 { color: #fff; }
.vendor-node .node-tag { color: #d8a744; }
.vendor-node ul { color: #bdc8c2; font-size: .84rem; padding-left: 1.1rem; margin: .8rem 0 0; }

.process-chain { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .75rem; counter-reset: process; }
.process-node { position: relative; min-height: 220px; padding: 1.15rem; border: 1px solid #d7dcd6; border-radius: 14px; background: #fff; }
.process-node:not(:last-child)::after { content: ""; position: absolute; right: -.76rem; top: 48%; width: .76rem; height: 2px; background: var(--brand); z-index: 2; }
.process-no { display: block; color: #a5aea9; font: 600 .72rem/1 var(--mono); margin-bottom: 2.4rem; }
.process-node h3 { margin: .55rem 0 .45rem; }
.process-node p { color: var(--muted); font-size: .84rem; margin: 0; }
.process-node.approval { background: #17201c; border-color: #17201c; }
.process-node.approval h3 { color: #fff; }
.process-node.approval p { color: #bdc8c2; }
.process-node.approval .node-tag { color: #d8a744; }

.document-flow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; margin: 1.6rem 0 1rem; }
.document-step { position: relative; min-height: 142px; padding: 1rem; border: 1px solid #d7dcd6; border-radius: 12px; background: #fff; display: flex; flex-direction: column; }
.document-step:not(:last-child)::after { content: ">"; position: absolute; right: -.62rem; top: 48%; width: .62rem; text-align: center; color: var(--brand); font-weight: 750; z-index: 2; }
.document-step > span { color: #a3ada7; font: 600 .7rem/1 var(--mono); }
.document-step b { margin-top: auto; font-size: .95rem; }
.document-step small { color: var(--muted); margin-top: .3rem; }
.document-step.output { background: #eaf3ef; border-color: #b9d2c7; }
.flow-rule { border-left: 3px solid #d8a744; padding: .65rem .8rem; background: #fbf5df; color: #5f4b15; font-size: .82rem; margin-bottom: .8rem; }

.document-lanes { display: grid; gap: .85rem; margin: 1.6rem 0 1rem; }
.document-lane { display: grid; grid-template-columns: 86px minmax(0,1fr); border: 1px solid #d7dcd6; border-radius: 14px; overflow: hidden; background: #fff; }
.lane-label { display: flex; align-items: center; justify-content: center; background: #17201c; color: #fff; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.lane-steps { display: flex; align-items: stretch; min-width: 0; }
.lane-steps span { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 82px; padding: .7rem 1rem; text-align: center; color: var(--ink-2); font-size: .8rem; font-weight: 650; }
.lane-steps span:not(:last-child)::after { content: ">"; position: absolute; right: -.25rem; color: var(--brand); z-index: 2; }
.lane-steps .settlement { background: #eaf3ef; color: var(--brand-dark); }

@media (max-width: 1000px) {
  .topology-board { grid-template-columns: 1fr; gap: .8rem; }
  .external-link { flex-direction: row; gap: .6rem; min-height: 48px; }
  .external-link b { transform: rotate(90deg); }
  .process-chain { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-node:not(:last-child)::after { display: none; }
  .process-node.approval { grid-column: 1 / -1; min-height: 150px; }
  .document-flow { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .document-step:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .diagram-head { grid-template-columns: 1fr; gap: .7rem; }
  .topology-grid { grid-template-columns: 1fr; }
  .diagram-link { min-height: 40px; flex-direction: row; gap: .5rem; }
  .diagram-link b { transform: rotate(90deg); }
  .process-chain, .document-flow { grid-template-columns: 1fr; }
  .process-node, .document-step { min-height: 130px; }
  .process-node.approval { grid-column: auto; }
  .document-lane { grid-template-columns: 1fr; }
  .lane-label { min-height: 38px; }
  .lane-steps { flex-direction: column; }
  .lane-steps span { min-height: 56px; border-top: 1px solid var(--line-soft); }
  .lane-steps span:not(:last-child)::after { content: "v"; right: 50%; bottom: -.45rem; top: auto; background: #fff; padding: 0 .2rem; }
}

/* ========================================================================== */
/* 1.21 interface refresh                                                     */
/* A quieter, editorial B2B system: restrained colour, crisp hierarchy and   */
/* purposeful surfaces instead of glow, gradients and generic AI styling.     */

:root {
  --ink: #17201c;
  --ink-2: #26332d;
  --muted: #69736e;
  --line: #d9ddd8;
  --line-soft: #e9ece8;
  --bg: #f7f7f2;
  --bg-soft: #eff1ec;
  --card: #fff;
  --brand: #176b52;
  --brand-dark: #0e503d;
  --brand-soft: #e6f1ec;
  --violet: #17201c;
  --radius: 12px;
  --max: 1240px;
  --shadow: 0 24px 70px rgba(31, 45, 38, .09);
  --shadow-sm: 0 8px 28px rgba(31, 45, 38, .07);
}

body { background: var(--bg); }
main { min-height: 55vh; }
h1, h2, h3, h4 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); line-height: .98; }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.06; }

.demo-banner {
  background: #17201c; color: #e8eee9; padding: .55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.demo-banner strong { background: #d8a744; color: #1e1b12; border-radius: 999px; padding: .12rem .55rem; }
.announce, .dealer-strip { position: relative; z-index: 22; }

.site-head { background: rgba(247,247,242,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head-inner { min-height: 72px; padding: .75rem 0; flex-wrap: nowrap; }
.brand { gap: .8rem; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 10px; background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand-text strong { font-size: 1.08rem; letter-spacing: -.025em; }
.brand-text small { font-size: .69rem; letter-spacing: .02em; }
.site-nav { gap: .15rem; justify-content: flex-end; }
.site-nav a { color: #52605a; padding: .52rem .68rem; font-size: .88rem; }
.site-nav a:hover { color: var(--ink); background: #e9ede7; border-radius: 8px; }
.site-nav a.on::after { left: .68rem; right: .68rem; bottom: .06rem; height: 2px; background: var(--brand); }
.site-nav a.nav-admin { margin-left: .35rem; background: var(--ink); border-color: var(--ink); color: #fff; padding-inline: .9rem; }
.site-nav a.nav-admin:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.hero {
  background: #17201c; padding: clamp(4.8rem, 9vw, 8.8rem) 0 clamp(4rem, 7vw, 7rem);
  border-bottom: 6px solid #d8a744;
}
.hero::before {
  background-image: linear-gradient(90deg, transparent 0 49.9%, rgba(255,255,255,.045) 50%, transparent 50.1%);
  background-size: 25% 100%; opacity: .8; mask-image: none; -webkit-mask-image: none;
}
.hero::after { display: none; }
.hero h1 { font-size: clamp(3rem, 6.3vw, 6.6rem); max-width: 13ch; letter-spacing: -.055em; }
.hero .lede { color: #c0c9c4; font-size: clamp(1.03rem, 1.5vw, 1.22rem); }
.hero .eyebrow { color: #d8a744; }
.hero-panel { background: #202b25; border-color: #3b4841; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.hero-stats { border-color: #3b4841; }

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section.tight { padding: clamp(2.8rem, 5vw, 4.6rem) 0; }
.eyebrow, .pill { color: var(--brand-dark); }
.eyebrow::before { width: 28px; height: 2px; }

.btn { min-height: 44px; border-radius: 9px; padding: .78rem 1.15rem; font-weight: 650; }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border-color: #cfd5cf; }
.btn-ghost:hover { background: #f0f3ef; border-color: #aeb8b1; }
.btn-light { background: #f7f7f2; }

.card { border-color: #dfe2dc; border-radius: 16px; box-shadow: 0 1px 0 rgba(20,32,26,.02); }
.card:hover { box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: clamp(1.5rem, 3vw, 2.35rem); }
.metrics, .steps, .cap-grid { border-color: #d7dcd6; }
.metric, .step, .cap-card { border-color: #d7dcd6; }
.metric:hover { transform: none; background: #f1f3ee; }
.cap-card:hover { border-color: #aabdb3; box-shadow: var(--shadow-sm); }

.product-grid { align-items: stretch; }
.product-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 1.8rem; border-top-width: 4px;
}
.product-card::after {
  content: ""; width: 8rem; height: 8rem; border: 1px solid var(--product-accent);
  position: absolute; right: -4.4rem; top: -4.4rem; border-radius: 50%; opacity: .22;
}
.product-card h2 { font-size: 1.45rem !important; max-width: 16ch; margin-top: 1.25rem; }
.product-card .price { margin: 1.2rem 0 .25rem; }
.product-code {
  color: var(--product-accent); font: 650 .72rem/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
}
.page-lead { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 3rem; align-items: end; }
.page-lead h1 { max-width: 15ch; }
.page-lead p { color: var(--muted); font-size: 1.05rem; max-width: 55ch; margin-bottom: .3rem; }

.demo-note {
  display: flex; align-items: center; gap: .75rem; margin-top: 1.7rem;
  padding: .85rem 1rem; border: 1px solid #dec986; background: #fbf5df;
  color: #5f4b15; border-radius: 10px; font-size: .87rem;
}
.demo-note strong { flex: 0 0 auto; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.demo-note.compact { width: fit-content; max-width: 100%; }

.auth-page { min-height: 72vh; display: flex; align-items: center; background: #eef0eb; }
.auth-intro { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.auth-intro h1 { max-width: 15ch; }
.auth-intro p, .auth-story > p { max-width: 55ch; color: var(--muted); font-size: 1.02rem; }
.auth-intro .demo-note { max-width: 350px; }
.auth-options { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; align-items: start; }
.auth-shell { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(350px,.85fr); min-height: 610px; background: #fff; border: 1px solid #d9ddd8; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.auth-story { padding: clamp(2.2rem, 6vw, 5.2rem); background: #17201c; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.auth-story h1 { color: #fff; max-width: 11ch; font-size: clamp(2.6rem, 5vw, 5.1rem); }
.auth-story > p { color: #bdc8c2; }
.auth-story .eyebrow { color: #d8a744; }
.auth-story .demo-note { margin-top: auto; background: rgba(216,167,68,.11); border-color: rgba(216,167,68,.4); color: #f1deb0; }
.auth-benefits { list-style: none; margin: 1.2rem 0 2.5rem; padding: 0; display: grid; gap: .65rem; color: #e1e7e3; }
.auth-benefits li { padding-left: 1.5rem; position: relative; }
.auth-benefits li::before { content: ""; width: 7px; height: 7px; background: #d8a744; position: absolute; left: .15rem; top: .55rem; border-radius: 50%; }
.auth-card { box-shadow: none; }
.auth-shell > .auth-card { border: 0; border-radius: 0; padding: clamp(2.2rem, 5vw, 4.4rem); display: flex; flex-direction: column; justify-content: center; }
.auth-card-primary { border-top: 4px solid var(--brand); }
.auth-kicker { display: block; color: var(--brand-dark); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .65rem; }
.auth-card h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.auth-card input { min-height: 48px; }
.dealer-process { padding: clamp(1.6rem,3vw,2.6rem); }
.dealer-process .flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.dealer-process .flow li { margin: 0; padding: 3.2rem 1rem 1rem 0; border-top: 1px solid var(--line); }
.portal-login-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; margin-bottom: 2rem; background: #edf0eb; border-radius: 11px; }
.portal-login-switch a { color: var(--muted); padding: .7rem .8rem; border-radius: 8px; text-align: center; font-size: .88rem; font-weight: 650; }
.portal-login-switch a:hover { text-decoration: none; color: var(--ink); }
.portal-login-switch a.on { color: #fff; background: var(--ink); box-shadow: 0 3px 10px rgba(23,32,28,.18); }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  border-radius: 9px; border-color: #cfd5cf; background: #fdfdfb; min-height: 42px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,107,82,.14); border-color: var(--brand); }
.choice { border-radius: 12px; }
.choice.on { border-color: var(--brand); background: #eef6f2; }

.table-wrap { border-radius: 14px; border-color: #d9ddd8; box-shadow: 0 6px 26px rgba(31,45,38,.04); }
th { background: #edf0eb; color: #53605a; }
tbody tr:hover { background: #f3f5f1; }
.stat { border-radius: 14px; border-color: #d9ddd8; }
.stat b { color: var(--ink); }
.chip.info { background: #e7f1ed; color: #0e5943; border-color: #bdd9ce; }
.flash { border-radius: 10px; }
.callout { border-left-color: var(--brand); background: #eaf3ef; }

.admin-shell { grid-template-columns: 236px minmax(0,1fr); gap: 1.4rem; }
.admin-nav { background: #17201c; border: 0; border-radius: 14px; padding: .8rem; top: 92px; box-shadow: var(--shadow-sm); }
.admin-nav a { color: #bdc8c2; border-radius: 8px; padding: .62rem .75rem; }
.admin-nav a:hover { background: #26332d; color: #fff; }
.admin-nav a.on { background: #d8a744; color: #241d0d; }
.admin-nav .sep { background: #39463f; }
.admin-nav .muted, .admin-nav .small { color: #9eaaa4; }

.tabs { border-color: #d4d9d4; gap: .35rem; }
.tabs a.tab { border-radius: 8px 8px 0 0; }
.tabs a.tab:hover { background: #e9eeea; }
.tabs a.tab.on { color: var(--brand-dark); }

.site-foot { background: #17201c; color: #dce4df; padding-top: 4rem; }
.site-foot a, .site-foot a:hover, .site-foot p, .site-foot li, .site-foot span,
.site-foot .muted, .site-foot .foot-bottom, .site-foot .foot-demo { color: #b8c4bd; }
.site-foot .foot-brand, .site-foot .foot-head { color: #fff; }
.site-foot a { text-decoration-color: #59665f; }
.foot-bottom { border-color: #354139; }

@media (max-width: 1050px) {
  .site-nav a { padding-inline: .48rem; font-size: .82rem; }
  .brand-text small { display: none; }
}

@media (max-width: 900px) {
  .head-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .15rem; }
  .site-nav a { white-space: nowrap; }
  .page-lead, .auth-intro, .auth-shell, .auth-options { grid-template-columns: 1fr; }
  .auth-shell { min-height: 0; }
  .auth-story { min-height: 480px; }
  .auth-intro .demo-note { max-width: none; }
  .dealer-process .flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-nav { display: flex; overflow-x: auto; position: static; gap: .2rem; }
  .admin-nav a { white-space: nowrap; }
  .admin-nav .sep, .admin-nav > div.small { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  h1 { font-size: 2.55rem; }
  .hero h1 { font-size: 3.35rem; }
  .brand-mark { width: 35px; height: 35px; }
  .site-nav a { font-size: .8rem; }
  .auth-story { min-height: 430px; padding: 2rem; }
  .auth-story h1 { font-size: 3rem; }
  .auth-shell > .auth-card { padding: 2rem 1.3rem; }
  .dealer-process .flow { grid-template-columns: 1fr; }
  .demo-note { align-items: flex-start; flex-direction: column; }
}
