/* Hallmark · shape: Split Studio · genre: modern-minimal · theme: brand (Auriva OS) · draw: ddc47d
 * paper: oklch(18.5% 0.018 45) · accent: oklch(66% 0.165 40) · display: Fraunces · body: Plus Jakarta Sans · hero: Settled · nav: slab · footer: statement · signature: the back office dashboard, built in HTML in the hero
 * finish-review: subagent · fix · 8 findings · 8 resolved, beside the claim it proves
 * axes: dark/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · imagery: screenshots 1 (capture.mjs), product sample in hero, aggregator-bill · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, Split Studio repeats one skeleton; each row's proof is a different kind of thing (dashboard, system diagram, bill, phone capture, table, rows, form) and the lead row takes the larger share */
/* Hallmark · swapped from the draw: pricing table → the accountant's files table (no prices given); close on the code sample → close on the demo form (no code; the job is a demo) */
/* Hallmark · dismissed 58 · the 1440 window at y=3000 straddles the files table and the questions, two sections counted together at 82 words */
@import url("./tokens.css");
@import url("./base.css");

/* ---- Controls ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-input);
  background: var(--color-ink);
  color: var(--color-accent-ink);
  font: 700 var(--text-md) / 1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}
.btn:hover {
  background: var(--color-ink-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn[aria-busy="true"] {
  cursor: progress;
}
.btn--quiet {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}
.btn--quiet:hover {
  background: var(--color-paper-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---- Nav: a slab across the top ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper-2);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  min-height: 72px;
}
.nav__mark {
  display: inline-flex;
  flex-shrink: 0;
}
.nav__mark img {
  width: 96px;
  height: auto;
}
.nav__links {
  display: flex;
  gap: var(--space-lg);
  margin-left: auto;
}
.nav__links a,
.nav__signin {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
}
.nav__links a:hover,
.nav__signin:hover {
  color: var(--color-ink);
  text-decoration: underline;
}
.nav__links a:focus-visible,
.nav__signin:focus-visible,
.nav__mark:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav__cta {
  min-height: 40px;
}

/* ---- Hero: Settled, text on six columns, the dashboard on six ---- */
.hero {
  padding-block: var(--space-3xl) var(--space-3xl);
  min-height: calc(100dvh - 73px);
  display: grid;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-3xl);
  align-items: center;
}
.hero__text {
  display: grid;
  gap: var(--space-lg);
  align-content: center;
}
.hero__text h1 {
  max-width: 14ch;
}
.hero__text .lead {
  color: var(--color-ink-2);
  max-width: 36ch;
}
.hero__text .actions {
  margin-top: var(--space-xs);
}

/* The dashboard sample: the back office's glass panel, built in HTML so the real capture can replace it. */
.hero__proof {
  border-radius: var(--radius-card);
  min-height: 520px;
  display: grid;
  align-items: center;
  outline: 1px solid var(--color-rule);
  outline-offset: -1px;
}
.dash {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.dash__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}
.dash__head strong {
  color: var(--color-ink);
  font-size: var(--text-lg);
}
.dash__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.dash__stats > div {
  padding-inline: var(--space-lg);
  border-left: var(--rule-hair) solid var(--color-rule);
}
.dash__stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.dash__stats dt {
  color: var(--color-muted);
}
.dash__stats dd {
  margin: var(--space-2xs) 0 0;
  color: var(--color-ink);
  font-size: var(--text-2xl);
  font-weight: 700;
}
.dash__chart {
  margin: 0;
  display: grid;
  gap: var(--space-xs);
}
.dash__chart svg {
  width: 100%;
  height: 140px;
}
.dash__chart polyline {
  fill: none;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.dash__last {
  stroke: var(--color-muted);
  stroke-dasharray: 4 5;
}
.dash__now {
  stroke: var(--color-turmeric);
}
.dash__ticks {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: var(--text-xs);
}
.dash__chart figcaption {
  color: var(--color-muted);
}
.dash__lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}
.dash__top,
.dash__alerts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-xs);
}
.dash__top li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.dash__top li .num {
  color: var(--color-ink);
  font-weight: 700;
}
.dash__alerts li {
  padding: var(--space-xs) var(--space-sm);
  border-left: 2px solid var(--color-accent);
  background: var(--color-paper-3);
  color: var(--color-ink);
}

/* ---- Rows: text on the left, proof on the right, all the way down ---- */
.row {
  padding-block: var(--section-gap);
}
.row + .row {
  padding-top: 0;
}
.row--lead {
  padding-top: var(--section-gap);
}
.row__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  align-items: start;
}
/* Two rows break the split: the head runs across the top and the body fills the width under it. */
.row__stack {
  display: grid;
  gap: var(--space-2xl);
}
.row__stack .row__text {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--space-3xl);
  align-items: end;
}
.row__text {
  display: grid;
  gap: var(--space-lg);
  align-content: start;
}
.row__text .lead {
  color: var(--color-ink-2);
}
.row__text .btn {
  justify-self: start;
}
.row__proof {
  margin: 0;
  min-width: 0;
}
.frame {
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  outline: 1px solid var(--color-rule);
  outline-offset: -1px;
}

/* The Hub diagram: a real system, labelled. */
.system {
  padding: var(--space-lg);
}
.system:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.system svg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}
.sys-zone {
  fill: none;
  stroke: var(--color-rule);
  stroke-dasharray: 6 6;
}
.sys-zone-label {
  fill: var(--color-ink-2);
  font-size: 14px;
}
.sys-box rect {
  fill: var(--color-paper-3);
  stroke: var(--color-rule);
}
.sys-box text,
.sys-hub text {
  fill: var(--color-ink);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}
.sys-hub rect {
  fill: var(--color-accent);
}
.sys-hub text {
  fill: var(--color-accent-ink);
  font-size: 18px;
}
.sys-line {
  fill: none;
  stroke: var(--color-turmeric);
  stroke-width: 2;
}
.sys-sync {
  fill: none;
  stroke: var(--color-muted);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}
.sys-small {
  fill: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
  text-anchor: middle;
}
.sys-cloud .sys-small {
  fill: var(--color-ink-2);
}

/* The aggregator bill: thermal paper on the counter. */
.bill {
  display: grid;
  justify-items: start;
  background: none;
}
.bill__paper {
  width: min(100%, 440px);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-ink);
  color: var(--color-accent-ink);
  border-radius: 4px;
  font-size: var(--text-sm);
  display: grid;
  gap: var(--space-xs);
}
.bill__cafe {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-align: center;
}
.bill__meta {
  text-align: center;
  color: var(--color-bill-muted);
}
.bill__field {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  color: var(--color-bill-muted);
}
.bill__line {
  flex: 1;
  border-bottom: 1px solid var(--color-bill-rule);
  margin-bottom: var(--space-2xs);
}
.bill table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-sm);
}
.bill td {
  padding: var(--space-2xs) 0;
  vertical-align: top;
}
.bill td.num {
  text-align: right;
  padding-left: var(--space-md);
  white-space: nowrap;
}
.bill tfoot tr:first-child td {
  border-top: 1px dashed var(--color-bill-rule);
  padding-top: var(--space-xs);
}
.bill__gst td {
  font-weight: 700;
}

/* The guest menu capture: a phone-width screen, no drawn device. */
.phone-shot {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  outline: 1px solid var(--color-rule);
  outline-offset: -1px;
}
.phone-shot__frame {
  width: min(100%, 380px);
  aspect-ratio: 780 / 1160;
  border-radius: var(--radius-card);
  outline: 1px solid var(--color-rule);
  outline-offset: -1px;
}
.phone-shot__frame > img {
  object-position: top;
}
.phone-shot figcaption {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* The accountant's files. */
.files {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-md);
}
.files-well {
  padding: var(--space-xl);
}
.files th,
.files td {
  text-align: left;
  padding: var(--space-lg) var(--space-md) var(--space-lg) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
}
.files thead th {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  white-space: nowrap;
}
.files tbody th {
  color: var(--color-ink);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}
.files tbody tr:last-child th,
.files tbody tr:last-child td {
  border-bottom: 0;
}
.files td {
  color: var(--color-ink-2);
}

/* Questions as rows. */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-columns);
}
.faq > div {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.faq dt {
  font-size: var(--text-lg);
}
.faq dt {
  color: var(--color-ink);
  font-weight: 700;
}
.faq dd {
  margin: 0;
  color: var(--color-ink-2);
}

/* The demo form. */
.row--close {
  padding-bottom: var(--section-gap);
}
.demo {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl);
}
.demo {
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  outline: 1px solid var(--color-rule);
  outline-offset: -1px;
}
.field {
  display: grid;
  gap: var(--space-xs);
}
.field label {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.field input {
  min-height: 48px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-md);
  outline: 2px solid transparent;
  outline-offset: -3px;
}
.field input:focus-visible {
  outline-color: var(--color-focus);
}
.field input[aria-invalid] {
  border-color: var(--color-error);
}
.demo .btn {
  justify-self: start;
  margin-top: var(--space-xs);
}
.demo__help {
  min-height: 1lh;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---- Footer: one closing statement over the links ---- */
.foot {
  padding-block: var(--space-3xl) var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}
.foot__line {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-display-s);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  max-width: 24ch;
  text-wrap: balance;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}
.foot__links img {
  width: 72px;
  height: auto;
}
.foot__links a {
  color: var(--color-ink-2);
}
.foot__links a:hover {
  color: var(--color-ink);
}
.foot__links small {
  margin-left: auto;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ---- Under 60rem: everything stacks in reading order ---- */
@media (max-width: 60rem) {
  .nav__links {
    display: none;
  }
  .nav__signin {
    margin-left: auto;
  }
  .hero {
    min-height: 0;
    padding-block: var(--space-2xl);
  }
  .hero__grid,
  .row__grid,
  .row--lead .row__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .hero__proof {
    min-height: 0;
  }
  .dash {
    padding: var(--space-lg);
  }
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .row__stack .row__text {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 40rem) {
  .nav__signin {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
  .dash__stats dd {
    font-size: var(--text-lg);
  }
  .dash__stats > div {
    padding-inline: var(--space-sm);
  }
  .dash__head {
    flex-wrap: wrap;
  }
  .dash__stats {
    align-items: end;
  }
  .system {
    overflow-x: auto;
  }
  .system svg {
    min-width: 560px;
  }
  .phone-shot {
    padding: var(--space-lg);
  }
  .dash__lower {
    grid-template-columns: minmax(0, 1fr);
  }
  .files tbody th {
    white-space: normal;
  }
  .foot__links small {
    margin-left: 0;
  }
}
