/* Hallmark · genre: modern-minimal · macrostructure: Workbench · H7 hero knobs: clip=right, media=still screenshot, frame=hairline
 * theme: custom · vibe: "plain ledger, cool, exact, working" · paper: oklch(98.6% 0.004 254) · accent: oklch(63.4% 0.2 254)
 * display: Malgun Gothic Bold · body: Malgun Gothic (owner's choice, system font) · axes: light / system-native / cool
 * nav: N1b (centre links=4, dropdowns=none, scroll=always-solid) · footer: Ft1 · enrichment: real product screenshots
 * studied: no · context: inferred · pre-emit critique: P4 H4 E4 S5 R4 V4 · contrast: pass (40–41)
 * Tokens live in about-tokens.css — reference them by name, never inline a colour or font here.
 */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure,
table {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  min-width: 0;
}

ol,
ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.skip {
  position: absolute;
  inset-block-start: var(--space-xs);
  inset-inline-start: var(--space-xs);
  z-index: var(--z-sticky);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  white-space: nowrap;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* ── buttons and links ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: var(--space-lg);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn--fill {
  background: var(--color-accent-strong);
  color: var(--color-accent-ink);
}

.btn--fill:hover {
  background: var(--color-ink);
  transform: translateY(-1.5px);
}

.btn--text {
  padding-inline: var(--space-sm);
  color: var(--color-ink-2);
}

.btn--text:hover {
  color: var(--color-accent-strong);
}

.btn--paper {
  background: var(--color-night-ink);
  color: var(--color-night);
}

.btn--paper:hover {
  background: var(--color-accent-soft);
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(1px);
  transition-duration: var(--dur-micro);
}

.btn--lg {
  min-height: 3.25rem;
  padding-inline: var(--space-xl);
}

.more {
  display: inline-block;
  color: var(--color-accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}

.more:hover {
  text-decoration-thickness: 2px;
}

/* ── nav · N1b ─────────────────────────────────────────────────── */

.nav-sentinel {
  position: absolute;
  inset-block-start: 0;
  block-size: 1px;
  inline-size: 1px;
}

.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  border-block-end: var(--rule-hair) solid transparent;
}

.nav.is-scrolled {
  border-block-end-color: var(--color-rule);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--nav-height);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav__center {
  display: none;
}

.nav__link {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-accent-strong);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  justify-self: end;
}

.nav__right .btn {
  min-height: 2.5rem;
  padding-inline: var(--space-md);
  font-size: var(--text-sm);
}

.nav__right .btn--text {
  padding-inline: var(--space-xs);
}

/* ── hero · headline left, real screen cut by the right edge ──── */

.hero {
  padding-block: var(--space-2xl) var(--space-3xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero__title {
  font-size: var(--text-display);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--color-accent-strong);
}

.hero__lede {
  max-width: 31rem;
  margin-block-start: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-block-start: var(--space-xl);
}

.hero__note {
  margin-block-start: var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.frame {
  position: relative;
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  box-shadow: 0 1px 2px var(--color-shadow);
}

.frame img {
  width: 100%;
}

/* on a phone a 1280px screen is unreadable when shrunk, so it pans instead */
.frame--pan {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.frame--pan img {
  inline-size: 44rem;
  max-inline-size: none;
}

.frame__canvas {
  position: relative;
  inline-size: max-content;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── flow strip · one ruled ledger row under the hero ─────────── */

.flow {
  border-block: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}

.flow__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.flow__step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-rule-2);
}

.flow__step:last-child {
  border-block-end: 0;
}

.flow__no {
  color: var(--color-accent-strong);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
}

.flow__name {
  font-weight: 800;
}

.flow__desc {
  grid-column: 2;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ── tour · the screens are the page ──────────────────────────── */

.section-head {
  max-width: 38rem;
  margin-block-end: var(--space-2xl);
}

.section-head h2 {
  font-size: var(--text-xl);
}

.section-head p {
  margin-block-start: var(--space-md);
  color: var(--color-ink-2);
}

.section-head .tour__hint {
  margin-block-start: var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.tour {
  padding-block: var(--space-3xl) var(--space-xl);
}

.tour section,
.clinic,
.menu,
.pricing {
  scroll-margin-block-start: calc(var(--nav-height) + var(--space-lg));
}

.tour {
  scroll-margin-block-start: var(--nav-height);
}

.shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  margin-block-end: var(--space-3xl);
}

.shot__caption h3 {
  font-size: var(--text-lg);
}

.shot__caption p {
  max-width: 34rem;
  margin-block-start: var(--space-sm);
  color: var(--color-ink-2);
}

.shot__caption .more {
  margin-block-start: var(--space-md);
}

.pin {
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  display: grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-strong);
  box-shadow: 0 0 0 3px var(--color-paper);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.legend {
  display: grid;
  gap: var(--space-sm);
  margin-block-start: var(--space-lg);
  counter-reset: legend;
}

.legend li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  color: var(--color-ink-2);
  counter-increment: legend;
}

.legend li::before {
  content: counter(legend);
  display: grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-strong);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

.legend b {
  color: var(--color-ink);
  font-weight: 800;
}

/* ── clinic band ──────────────────────────────────────────────── */

.clinic {
  padding-block: var(--space-3xl);
  border-block: var(--rule-hair) solid var(--color-rule-2);
  background: var(--color-paper-2);
}

.clinic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.clinic .section-head {
  margin-block-end: 0;
}

.roles {
  border-block-start: 2px solid var(--color-ink);
}

.roles__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  padding-block: var(--space-lg);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.roles dt {
  font-weight: 800;
}

.roles dd {
  color: var(--color-ink-2);
}

.roles__fee {
  color: var(--color-accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

/* ── menu · the whole app as a ruled sheet ────────────────────── */

.menu {
  padding-block: var(--space-3xl) var(--space-2xl);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  border-block-start: 2px solid var(--color-ink);
  text-align: start;
}

.sheet tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  padding-block: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.sheet th {
  font-weight: 800;
  text-align: start;
}

.sheet td {
  padding: 0;
}

.sheet__items {
  font-weight: 600;
}

.sheet__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ── pricing · written like a ledger entry ────────────────────── */

.pricing {
  padding-block: var(--space-2xl) var(--space-4xl);
}

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.pricing .section-head {
  margin-block-end: 0;
}

.pricing__trial {
  display: inline-block;
  margin-block-start: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 800;
}

.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-block-start: var(--space-xl);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  border-block-start: 2px solid var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.ledger th,
.ledger td {
  padding: var(--space-md) 0;
  border-block-end: var(--rule-hair) solid var(--color-rule);
  text-align: start;
  vertical-align: baseline;
}

.ledger thead th {
  padding-block: var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.ledger tbody th {
  padding-inline-end: var(--space-md);
  font-weight: 800;
}

.ledger__detail {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

.ledger .ledger__amount {
  font-family: var(--font-body);
  font-weight: 500;
  text-align: end;
  white-space: nowrap;
}

.ledger__amount--main {
  color: var(--color-accent-strong);
  font-size: var(--text-lg);
  font-weight: 600;
}

.ledger__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}

.pricing__notes {
  display: grid;
  gap: var(--space-2xs);
  margin-block-start: var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.pricing__missing {
  padding: var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  color: var(--color-ink-2);
}

/* ── closing band and footer · one dark end-cap ───────────────── */

.close {
  padding-block: var(--space-3xl) var(--space-2xl);
  background: var(--color-night);
  color: var(--color-night-ink);
}

.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

.close h2 {
  max-width: 14em;
  font-size: var(--text-xl);
}

.close__actions {
  margin-block-start: var(--space-xl);
}

.contact dt {
  color: var(--color-night-muted);
  font-size: var(--text-sm);
}

.contact__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.contact__tel:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.contact__hours {
  color: var(--color-night-muted);
  font-size: var(--text-sm);
}

.foot {
  padding-block: var(--space-xl) var(--space-2xl);
  background: var(--color-night);
  color: var(--color-night-muted);
  font-size: var(--text-sm);
}

.foot__inner {
  display: grid;
  gap: var(--space-lg);
  padding-block-start: var(--space-xl);
  border-block-start: var(--rule-hair) solid var(--color-night-rule);
}

.foot__mast {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-md);
}

.foot__brand {
  color: var(--color-night-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-lg);
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-night-ink);
  text-decoration: none;
  white-space: nowrap;
}

.foot__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.foot__legal {
  display: grid;
  gap: var(--space-3xs);
  line-height: 1.6;
}

/* ── sticky bar · arrives once the screens have made the case ─── */

.cta-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-sticky);
  border-block-start: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform calc(var(--dur-short) * 0.75) var(--ease-in),
    visibility 0s linear calc(var(--dur-short) * 0.75);
}

.cta-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform var(--dur-short) var(--ease-out), visibility 0s;
}

.cta-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4rem;
  padding-block-end: env(safe-area-inset-bottom);
}

.cta-bar__text {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 40rem · tablet ───────────────────────────────────────────── */

@media (min-width: 40rem) {
  .nav__right {
    gap: var(--space-xs);
  }

  .nav__right .btn--text {
    padding-inline: var(--space-sm);
  }

  .flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-xl);
  }

  .frame--pan {
    overflow-x: hidden;
  }

  .frame--pan img {
    inline-size: 100%;
  }

  .frame__canvas {
    inline-size: auto;
  }

  .section-head .tour__hint {
    display: none;
  }

  .roles__row {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    gap: var(--space-lg);
    align-items: baseline;
  }

  .sheet tr {
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: var(--space-lg);
  }

  .sheet__note {
    grid-column: 2;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .foot__legal {
    grid-column: 1 / -1;
  }
}

/* ── 60rem · desktop ──────────────────────────────────────────── */

@media (min-width: 60rem) {
  .nav__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav__center {
    display: flex;
    gap: var(--space-2xs);
    justify-self: center;
  }

  .hero {
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--space-2xl);
  }

  /* the screen is wider than its column and runs off the right edge */
  .hero__media {
    inline-size: 60rem;
    max-inline-size: none;
  }

  .flow__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }

  .flow__step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
    border-block-end: 0;
  }

  .flow__step + .flow__step {
    padding-inline-start: var(--space-lg);
    border-inline-start: var(--rule-hair) solid var(--color-rule);
  }

  .flow__desc {
    grid-column: 1;
  }

  .shot--split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .shot--split .shot__caption {
    padding-block-start: var(--space-lg);
  }

  /* one screen breaks the column and runs off the page */
  .shot--bleed .frame {
    margin-inline-end: calc(-1 * (50vw - min(50vw, var(--page-max) / 2) + 6rem));
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  .shot--wide .shot__caption {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .shot--wide .legend {
    margin-block-start: var(--space-2xs);
  }

  .clinic__grid,
  .pricing__grid,
  .close__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .close__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }

  .sheet tr {
    grid-template-columns: 10rem minmax(0, 5fr) minmax(0, 6fr);
    align-items: baseline;
  }

  .sheet__note {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-delay: 0ms !important;
    transition-duration: 150ms !important;
  }

  .reveal {
    transform: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

@media print {
  .nav,
  .cta-bar {
    display: none;
  }
}
