/* auditcrowd - warm off-white surface, charcoal type, Bitcoin orange accent.
   No external fonts, no CDN, no build step. */

:root {
  --paper: #faf6ef;
  --paper-raised: #fffdf9;
  --paper-sunken: #f2ece1;
  --ink: #201d1a;
  --ink-soft: #524b43;
  --ink-faint: #7d746a;
  --line: #e2d9c9;
  --line-strong: #cdc0aa;
  --orange: #f7931a;
  --orange-deep: #c96f05;
  --orange-wash: #fdeacd;
  --ok: #2f6b4a;
  --ok-wash: #e2f0e5;
  --alert: #a62c1e;
  --alert-wash: #fbe3de;
  --warn: #8a6300;
  --warn-wash: #fbeecb;
  --radius: 14px;
  --radius-lg: 22px;
  /* one spacing rhythm: blocks inside a panel, panels inside a section, sections */
  --gap-block: 1rem;
  --gap-panel: 1.5rem;
  --gap-section: clamp(2.25rem, 5vw, 3.5rem);
  --shadow: 0 1px 2px rgba(32, 29, 26, .05), 0 12px 28px -18px rgba(32, 29, 26, .35);
  --shadow-lift: 0 2px 4px rgba(32, 29, 26, .06), 0 24px 44px -24px rgba(32, 29, 26, .45);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shell: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }
code, .mono { font-family: var(--mono); font-size: .875em; }
small { font-size: .82rem; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; }
.brand-text strong { color: var(--orange-deep); font-weight: 600; }
.brand-mark {
  width: 28px; height: 30px; flex: none;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 22%, 100% 58%, 50% 100%, 0 58%, 0 22%);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px 6px 8px;
  background: var(--orange);
  clip-path: polygon(50% 8%, 100% 30%, 100% 60%, 50% 92%, 0 60%, 0 30%);
}

.site-nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.4rem); }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .45rem .1rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

.demo-badge {
  background: var(--orange-wash); color: var(--orange-deep); border: 1px solid var(--orange);
  border-radius: 999px; padding: .15rem .65rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.demo-bar {
  margin: 0; background: var(--orange-wash); color: #5a3a04; border-top: 1px solid var(--orange);
  font-size: .85rem; padding: .5rem clamp(1rem, 4vw, 2.5rem);
}

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--paper-raised); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------------------------------------------------------- layout */

main { flex: 1 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 0 4rem; outline: none; }
/* views nest sections inside a container div, so the rhythm cannot depend on depth */
.view section { margin-bottom: var(--gap-section); }
.view section:last-child { margin-bottom: 0; }
.view section > h1, .view section > h2 { margin-top: 0; }
.loading { color: var(--ink-faint); }

.alert {
  background: var(--alert-wash); border: 1px solid #e8b3a9; border-left: 4px solid var(--alert);
  color: #6f1d13; border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700;
  color: var(--orange-deep); margin: 0 0 .75rem;
}
.lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.muted { color: var(--ink-faint); }
.stack > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------- hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 46ch; }
.hero-copy .lede { max-width: none; }
.hero h1 { margin-bottom: .6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin: 1.5rem 0 0; font-size: .9rem; color: var(--ink-faint); max-width: 46ch; }

/* pure CSS illustration: pooled funding rings behind a stacked review sheet */
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-inline: auto; width: 100%; }
.hero-art .ring {
  position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid var(--line-strong); opacity: .8;
}
.hero-art .ring:nth-child(2) { inset: 20%; border-style: dashed; border-color: var(--orange); opacity: .5; }
.hero-art .sheet {
  position: absolute; left: 14%; right: 14%; top: 26%; bottom: 22%;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); padding: 1.1rem 1.2rem; display: grid; align-content: start; gap: .55rem;
}
.hero-art .sheet::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 62%; height: 100%;
  background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius-lg);
  z-index: -1;
}
.hero-art .bar { height: 8px; border-radius: 4px; background: var(--paper-sunken); }
.hero-art .bar.w1 { width: 72%; background: var(--ink); height: 10px; }
.hero-art .bar.w2 { width: 92%; }
.hero-art .bar.w3 { width: 58%; }
.hero-art .bar.w4 { width: 80%; }
.hero-art .chip {
  justify-self: start; margin-top: .4rem; background: var(--orange-wash); color: var(--orange-deep);
  border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease, border-color .12s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--orange); color: #241703; border-color: var(--orange-deep); }
.btn-primary:hover:not([disabled]) { background: #ffa63b; color: #241703; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover:not([disabled]) { background: #3a342e; color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink); color: var(--ink); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-soft); padding-inline: .5rem; }
.btn-quiet:hover:not([disabled]) { color: var(--ink); text-decoration: underline; }
.btn-danger { background: transparent; border-color: #ddb0a7; color: var(--alert); }
.btn-danger:hover:not([disabled]) { background: var(--alert-wash); }
.btn-small { padding: .45rem .85rem; font-size: .85rem; min-height: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------------------------------------------------------------- cards */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem;
  position: relative; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--line-strong); }
.card-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.card-top { display: flex; align-items: center; gap: .75rem; }
.card-title { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.card-desc { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.card-foot {
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .82rem; color: var(--ink-faint);
}
.avatar {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; color: #fff; background: var(--ink); text-transform: uppercase;
}
.panel {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
.panel + .panel { margin-top: var(--gap-panel); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel > h2, .panel > h3 { margin-bottom: .6em; }
.panel > .btn, .panel > .btn-row, .panel > .facts + .progress { margin-top: var(--gap-panel); }
.panel-sunken { background: var(--paper-sunken); box-shadow: none; }
.panel-feature { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.panel-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: var(--gap-block); }
.panel-head > * { margin-bottom: 0; }
.small-note { font-size: .86rem; }

/* a short call to action inside a panel or a dialog, never a full card */
.prompt-row {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between;
  background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin: var(--gap-block) 0 0; font-size: .9rem; color: var(--ink-soft);
}
.prompt-row > span { flex: 1 1 16rem; }

/* ---------------------------------------------------------------- tags and badges */

.tag {
  display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px;
  padding: .2rem .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  background: var(--paper-sunken); color: var(--ink-soft); border: 1px solid var(--line);
  text-transform: uppercase;
}
.tag-ok { background: var(--ok-wash); color: var(--ok); border-color: #b9d7c2; }
.tag-alert { background: var(--alert-wash); color: var(--alert); border-color: #e8b3a9; }
.tag-warn { background: var(--warn-wash); color: var(--warn); border-color: #e3ce98; }
.tag-info { background: var(--orange-wash); color: var(--orange-deep); border-color: #f0cb92; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.verdict-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid var(--line);
  background: var(--paper-sunken); margin-bottom: 1.25rem;
}
.verdict-banner strong { font-family: var(--serif); font-size: 1.2rem; }
.verdict-ok { background: var(--ok-wash); border-color: #b9d7c2; }
.verdict-alert { background: var(--alert-wash); border-color: #e8b3a9; }
.verdict-warn { background: var(--warn-wash); border-color: #e3ce98; }

/* ---------------------------------------------------------------- data lists */

.facts { display: grid; gap: .1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.facts > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.facts dd { margin: .2rem 0 0; font-size: .98rem; word-break: break-word; }
.facts + .btn-row { margin-top: var(--gap-panel); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
  padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0;
}
.rows > li:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: .2rem; min-width: 200px; }
.row-title { font-weight: 600; }
.row-sub { font-size: .84rem; color: var(--ink-faint); }

.cost-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.cost-table th, .cost-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cost-table tr:last-child th, .cost-table tr:last-child td { border-bottom: 0; font-weight: 700; font-size: 1.05rem; }

.progress { height: 8px; border-radius: 999px; background: var(--paper-sunken); overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: var(--orange); }

/* the project balance leads with the figure; long amounts wrap instead of overflowing */
.balance-figure {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem); line-height: 1.1;
  color: var(--orange-deep); margin: 0 0 .5rem; overflow-wrap: anywhere;
}

.invoice-box {
  font-family: var(--mono); font-size: .8rem; word-break: break-all; background: var(--paper-sunken);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; margin-bottom: .75rem;
  max-height: 9rem; overflow: auto;
}
.token-box {
  font-family: var(--mono); font-size: .95rem; word-break: break-all; background: var(--ink); color: #ffd79a;
  border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem;
}

.finding { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--paper-raised); border-left: 4px solid var(--line-strong); }
.finding + .finding { margin-top: 1rem; }
/* severity reads from the stripe before the tag is parsed */
.finding-critical, .finding-high { border-left-color: var(--alert); }
.finding-medium { border-left-color: var(--warn); }
.finding-low { border-left-color: var(--orange); }
.finding-informational { border-left-color: var(--line-strong); }
.finding h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.finding-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.finding dl { margin: 0; }
.finding dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; margin-top: .8rem; }
.finding dd { margin: .2rem 0 0; }
.pre { font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; word-break: break-word; background: var(--paper-sunken); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }

/* severity tally of a report: the number leads, the withheld marker sits under it */
.counts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}
.count {
  margin: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-sunken); display: grid; gap: .1rem; align-content: start;
}
.count-value { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.count-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.count-note { font-size: .74rem; color: var(--ink-soft); }
.count-zero { opacity: .65; }
.count-critical, .count-high { background: var(--alert-wash); border-color: #e8b3a9; }
.count-critical .count-value, .count-high .count-value { color: var(--alert); }
.count-medium { background: var(--warn-wash); border-color: #e3ce98; }
.count-medium .count-value { color: var(--warn); }
.count-low { background: var(--orange-wash); border-color: #f0cb92; }
.count-low .count-value { color: var(--orange-deep); }

.notice {
  border-left: 4px solid var(--orange); background: var(--orange-wash); color: #5a3a04;
  border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.1rem; font-size: .92rem;
  margin: var(--gap-block) 0;
}
.notice-quiet { border-left-color: var(--line-strong); background: var(--paper-sunken); color: var(--ink-soft); }
.notice p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap-panel); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { margin: 0; padding-top: .9rem; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--orange-deep); line-height: 1; margin-bottom: .35rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------- forms */

.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field-hint { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-faint); margin: .1rem 0 .4rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .7rem .85rem; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--orange-deep); }
input[aria-invalid="true"] { border-color: var(--alert); background: #fff8f6; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.1rem; }
.checkline input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; flex: none; accent-color: var(--orange-deep); }
.form-error { color: var(--alert); font-size: .88rem; margin: .3rem 0 0; }
.form-ok { color: var(--ok); font-size: .88rem; margin: .3rem 0 0; }
.search-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.search-row .field { flex: 1 1 260px; margin-bottom: 0; }

/* ---------------------------------------------------------------- dialog */

/* The body scrolls on its own so the actions stay reachable on a short viewport. */
.dialog {
  width: min(560px, calc(100vw - 2rem)); max-height: min(88vh, 900px); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); background: var(--paper-raised); color: var(--ink); padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-lift); overflow: hidden; position: relative;
}
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: rgba(32, 29, 26, .45); backdrop-filter: blur(2px); }
.dialog-close-form { margin: 0; position: absolute; top: .5rem; right: .7rem; }
.dialog-close { background: transparent; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: .2rem .4rem; border-radius: 8px; }
.dialog-close:hover { color: var(--ink); }
.dialog-title { flex: none; margin-top: 0; padding-right: 2.5rem; }
.dialog-body { font-size: .95rem; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dialog-body > :last-child { margin-bottom: 0; }
.dialog-error { flex: none; color: var(--alert); background: var(--alert-wash); border-radius: var(--radius); padding: .6rem .8rem; font-size: .9rem; margin: var(--gap-block) 0 0; }
.dialog-actions { flex: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--gap-panel); padding-top: var(--gap-block); border-top: 1px solid var(--line); }
.dialog-actions .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--paper-sunken); padding: 2rem 0; margin-top: auto; }
.footer-inner { display: grid; gap: .75rem; }
.footer-line { margin: 0; font-size: .88rem; color: var(--ink-soft); max-width: 70ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; color: var(--ink-faint); }
.footer-operator { margin-left: auto; font-size: .85rem; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: none; }
  /* the illustration decorates the desktop hero; on a phone it only pushes the offer down */
  .hero-art { display: none; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding: .5rem 0 .75rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange-deep); }
  .demo-badge { align-self: flex-start; margin-top: .75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .rows > li { align-items: flex-start; }
  .dialog { width: calc(100vw - 1.5rem); max-height: 90dvh; padding: 1.25rem 1.1rem; }
  .dialog-actions .btn { flex: 1 1 100%; }
  .prompt-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.invoice-qr { display: block; max-width: 100%; margin: 1rem auto; background: white; }
