/* ------------------------------------------------------------------
   Quiff launch site. Tokens come from docs/site/BRIEF.md; every colour
   on the page is one of these properties.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --bg: #f8f3ec;
  --bg-deep: #efe6da;
  --surface: #fffdf9;
  --surface-sunk: #f1e9de;
  --ink: #221b17;
  --ink-muted: #675a51;
  --ink-faint: #9a8c81;
  --line: #e4d9cb;
  --line-strong: #c9b9a6;
  --fern: #2f5d50;
  --fern-strong: #234a3f;
  --fern-soft: #dfeae3;
  --fern-glow: #bcd9c9;
  --on-fern: #fffdf9;
  --copper: #b8642f;
  --copper-soft: #f3e2d4;
  --avatar-0: #e6c9b8;
  --avatar-1: #c9dccf;
  --avatar-2: #d8cbe3;
  --avatar-3: #efdcae;
  --avatar-4: #bcd6e0;
  --avatar-5: #e8c3cc;

  --shadow-soft:
    0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
    0 10px 28px -8px color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow-raised:
    0 2px 4px color-mix(in srgb, var(--ink) 8%, transparent),
    0 18px 44px -12px color-mix(in srgb, var(--ink) 28%, transparent);

  --font-display:
    "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body:
    "Instrument Sans", "Avenir Next", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-h1: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --text-h3: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;

  --content-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --control-height: 2.75rem;

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171210;
    --bg-deep: #0f0c0a;
    --surface: #211a16;
    --surface-sunk: #2b231e;
    --ink: #f4ece3;
    --ink-muted: #b7a899;
    --ink-faint: #80726a;
    --line: #3a2f28;
    --line-strong: #57483f;
    --fern: #8cc7b2;
    --fern-strong: #a9d8c6;
    --fern-soft: #223b33;
    --fern-glow: #2c5648;
    --on-fern: #10201a;
    --copper: #e89a63;
    --copper-soft: #3d2a1c;
    --avatar-0: #6b4636;
    --avatar-1: #3f5f4e;
    --avatar-2: #54456b;
    --avatar-3: #6b5a2a;
    --avatar-4: #35586a;
    --avatar-5: #6b3a48;
    --shadow-soft:
      0 1px 2px color-mix(in srgb, var(--bg-deep) 70%, transparent),
      0 10px 28px -8px color-mix(in srgb, var(--bg-deep) 90%, transparent);
    --shadow-raised:
      0 2px 4px color-mix(in srgb, var(--bg-deep) 80%, transparent),
      0 18px 44px -12px var(--bg-deep);
  }
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

a {
  color: var(--fern);
  text-underline-offset: 0.2em;
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease);
}

a:hover {
  color: var(--fern-strong);
}

a:focus-visible,
.pill:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

small {
  font-size: var(--text-caption);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 0.375rem;
  background: var(--surface-sunk);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--fern);
  color: var(--on-fern);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

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

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

.section {
  padding-block: var(--section-pad);
}

.band-deep {
  background: var(--bg-deep);
}

.centred {
  display: grid;
  justify-items: center;
  text-align: center;
}

.lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.lead--wide {
  max-width: 40rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fern);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

/* ------------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------------ */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--control-height);
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    color 150ms var(--ease),
    box-shadow 150ms var(--ease),
    transform 150ms var(--ease);
}

.pill--quiet:hover {
  background: var(--fern-soft);
  border-color: var(--fern-glow);
  color: var(--ink);
}

.pill--primary {
  border-color: var(--fern);
  background: var(--fern);
  color: var(--on-fern);
  box-shadow: var(--shadow-soft);
}

.pill--primary:hover {
  border-color: var(--fern-strong);
  background: var(--fern-strong);
  color: var(--on-fern);
}

.pill:active {
  transform: translateY(1px);
}

.pill--large {
  min-height: 3.25rem;
  padding: 0 2rem;
  font-size: var(--text-body);
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.text-link:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------------
   Header and brand
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--fern-soft);
  color: var(--ink);
}

.site-nav a:active {
  transform: translateY(1px);
}

.site-header__cta-short {
  display: none;
}

/* ------------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------------ */

.hero {
  overflow-x: clip;
  padding-block: clamp(3rem, 7vw, 6rem) var(--section-pad);
}

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.1875rem;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  color: var(--ink-muted);
  font-size: var(--text-small);
}

.hero__scene {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1.1;
}

/* Grid children must be allowed to shrink below their content, or a
   pre block widens its column and the page scrolls sideways. */
.hero__grid > *,
.questions__lead > *,
.questions__grid > *,
.steps > *,
.step > *,
.split > *,
.features__grid > *,
.field-row > * {
  min-width: 0;
}

.plane {
  position: absolute;
  inset: 0;
  transition: transform 200ms var(--ease);
  will-change: transform;
}

.plane--bg {
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -12%;
  right: -22%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--fern-glow) 55%, transparent) 0%,
    transparent 70%
  );
}

.hero__leaf {
  position: absolute;
  bottom: -6%;
  left: -14%;
  width: min(420px, 110%);
  aspect-ratio: 1;
  border-radius: 100% 0 100% 0;
  background: var(--fern-soft);
  transform: rotate(-12deg);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.menu-card {
  position: absolute;
  top: 0;
  left: -4%;
  width: 300px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.menu-card__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.menu-card__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.menu-rows {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--text-caption);
  transition:
    background-color 240ms var(--ease),
    border-color 240ms var(--ease);
}

.menu-row.is-added {
  border-color: var(--fern-glow);
  background: var(--fern-soft);
}

.menu-row__text {
  flex: 1 1 100%;
  min-width: 0;
}

.menu-row__text strong {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
}

.menu-row__text p {
  margin-top: 0.125rem;
  color: var(--ink-muted);
}

.menu-row__meta {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.menu-row__meta strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.add-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fern);
  font-size: var(--text-caption);
  font-weight: 500;
  transition:
    background-color 240ms var(--ease),
    border-color 240ms var(--ease),
    color 240ms var(--ease);
}

.add-pill::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.add-pill.is-added {
  border-color: var(--fern);
  background: var(--fern);
  color: var(--on-fern);
}

.add-pill.is-added::before {
  width: 0.4em;
  height: 0.7em;
  margin-top: -0.2em;
  background: none;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.estimate-card {
  position: absolute;
  right: -8%;
  bottom: -16%;
  width: 340px;
  padding: 1.5rem;
  box-shadow: var(--shadow-raised);
}

.estimate-rows {
  margin-top: 0.75rem;
  list-style: none;
}

.estimate-rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-small);
  transition:
    opacity 420ms var(--ease-out),
    translate 420ms var(--ease-out);
}

.estimate-rows__name {
  font-weight: 500;
}

.estimate-rows__meta {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.totals {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
}

.totals__label {
  display: block;
  color: var(--ink-muted);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.totals__price,
.totals__time {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.totals__price {
  font-size: 2.5rem;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

.totals__from {
  position: relative;
  top: -1.1em;
  margin-right: 0.1em;
  color: var(--copper);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: opacity 300ms var(--ease);
}

.totals__time {
  font-size: 1.5rem;
}

.estimate-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.estimate-card__actions .pill {
  flex: 1;
  padding-inline: 1rem;
}

.plane--chip {
  pointer-events: none;
}

.status-chip,
.copied-chip,
.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--fern-soft);
  color: var(--fern-strong);
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
}

.status-chip {
  position: absolute;
  top: -4%;
  right: 2%;
  box-shadow: var(--shadow-soft);
}

.status-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fern);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--fern) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--fern) 0%, transparent);
  }
}

.copied-chip,
.saved-chip {
  transition:
    opacity 240ms var(--ease-out),
    scale 240ms var(--ease-out);
}

/* Straddles the estimate card's bottom edge, under the Print button and
   clear of the totals panel; the card itself hangs 16% below the scene. */
.copied-chip {
  position: absolute;
  right: 4%;
  bottom: -20%;
  box-shadow: var(--shadow-soft);
}

.copied-chip::before,
.saved-chip::before {
  content: "";
  width: 0.4em;
  height: 0.75em;
  margin-top: -0.2em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------
   2. The five questions
   ------------------------------------------------------------------ */

.questions__lead {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem 4rem;
  align-items: end;
}

.questions__lead h2 {
  max-width: 20rem;
}

.questions__lead p {
  max-width: 34rem;
  color: var(--ink-muted);
}

.questions__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.q-card,
.f-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 240ms var(--ease-out),
    border-color 150ms var(--ease),
    box-shadow 240ms var(--ease);
}

.q-card:hover,
.f-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.q-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.q-card p {
  font-size: var(--text-small);
}

.q-card small {
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------
   3. How it works
   ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 4rem;
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.step__number {
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.step h3 {
  font-size: 1.5rem;
}

.step p {
  color: var(--ink-muted);
}

.step__visual {
  margin-top: 1rem;
}

.step__visual .menu-row {
  box-shadow: var(--shadow-soft);
}

/* The pill stays on the right on one row; the text may break only at
   its separators, never inside a segment. */
.tray {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  transition: translate 420ms var(--ease-out);
}

.tray p {
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tray p span {
  white-space: nowrap;
}

.tray .pill {
  min-height: 2.5rem;
  padding-inline: 1.125rem;
}

.paper {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.paper--torn {
  border-top: 2px dashed var(--line-strong);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ------------------------------------------------------------------
   Split layouts (4 and 6)
   ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem 4rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 5fr 7fr;
}

.split--even {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.split__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.split__copy p {
  max-width: 36rem;
}

.split__copy h3 {
  margin-top: 0.75rem;
}

.split__visual {
  transition:
    opacity 420ms var(--ease-out),
    translate 420ms var(--ease-out);
}

.leaf-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.leaf-list li {
  position: relative;
  padding-left: 1.5rem;
}

.leaf-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.7em;
  height: 0.7em;
  border-radius: 100% 0 100% 0;
  background: var(--fern);
}

.paper--summary {
  padding: 1.5rem 1.75rem;
  border-top: 4px solid var(--fern);
  background: var(--surface);
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
}

.paper--summary mark {
  padding: 0.05em 0.3em;
  border-radius: 3px;
  background: var(--copper-soft);
  color: var(--ink);
  transition: opacity 300ms var(--ease);
}

/* ------------------------------------------------------------------
   5. Features
   ------------------------------------------------------------------ */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.f-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.f-card p {
  color: var(--ink-muted);
  font-size: var(--text-small);
}

.glyph {
  margin-bottom: 0.5rem;
  fill: none;
  stroke: var(--fern);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph--avatar circle {
  fill: var(--avatar-1);
  stroke: none;
}

.glyph--avatar text {
  fill: var(--ink);
  stroke: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.glyph--leaves path {
  stroke: none;
}

.glyph__mask {
  fill: var(--surface);
}

/* ------------------------------------------------------------------
   6. For owners
   ------------------------------------------------------------------ */

.moves {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  counter-reset: move;
}

.moves li {
  position: relative;
  padding-left: 2rem;
  counter-increment: move;
}

.moves li::before {
  content: counter(move);
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--fern);
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  font-size: var(--text-small);
}

.plain-list {
  display: grid;
  gap: 0.375rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.plain-list li::marker {
  color: var(--ink-faint);
}

.owners__visual {
  display: grid;
  gap: 1.25rem;
}

/* The admin form rides alongside the copy, which is about twice as tall,
   so the right half of the split is never left blank. */
@media (min-width: 721px) {
  .owners__visual {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-color: var(--fern-glow);
  box-shadow: var(--shadow-soft);
}

.backup-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.backup-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.backup-card .pill {
  min-height: 2.5rem;
  padding-inline: 1.125rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field__label,
.field-check {
  font-size: var(--text-small);
  font-weight: 500;
}

.field__input {
  display: block;
  min-height: var(--control-height);
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-small);
}

.field__input--tall {
  min-height: 4.5rem;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  background: var(--surface);
}

.checkbox.is-checked {
  border-color: var(--fern);
  background: var(--fern);
}

.checkbox.is-checked::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.4rem;
  width: 0.3rem;
  height: 0.6rem;
  border: solid var(--on-fern);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------
   7. The demo salon
   ------------------------------------------------------------------ */

.demo {
  padding-block: var(--section-pad) clamp(5rem, 10vw, 9rem);
}

.browser {
  max-width: 64rem;
  margin: 3rem auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  transition:
    opacity 560ms var(--ease-out),
    translate 560ms var(--ease-out);
}

.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}

.browser__dots {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 6px;
}

.browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser__title {
  color: var(--ink-muted);
  font-size: var(--text-small);
}

.browser iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--bg);
}

.demo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------
   8. Close
   ------------------------------------------------------------------ */

.close {
  padding-block: clamp(6rem, 14vw, 11rem);
}

.close__title {
  max-width: 24ch;
  font-size: var(--text-h1);
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.close__line {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
}

.close .pill--large {
  margin-top: 2.25rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-top: 3.5rem;
  color: var(--ink-muted);
  font-size: var(--text-small);
  text-align: left;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
  padding-block: 3rem;
  background: var(--bg-deep);
  color: var(--ink-muted);
  font-size: var(--text-small);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer__row + .site-footer__row {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.brand--footer .wordmark {
  font-size: 1.625rem;
}

.site-footer__links {
  justify-content: flex-start;
  gap: 1.5rem;
}

.site-footer a {
  padding: 0.5rem 0;
  color: var(--fern);
  font-weight: 500;
}

.site-footer a:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------------
   Motion. Pre-reveal states exist only with JS and motion allowed,
   so nothing is hidden without main.js or with reduced motion.
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    opacity: 0;
    translate: 0 12px;
    transition:
      opacity 420ms var(--ease-out),
      translate 420ms var(--ease-out);
  }

  html.js [data-reveal].is-visible,
  html.js [data-reveal-group].is-visible > * {
    opacity: 1;
    translate: none;
  }

  /* Revealed cards keep their hover lift; the reveal rule above would
     otherwise replace the card's own transition list. */
  html.js [data-reveal-group].is-visible > .q-card,
  html.js [data-reveal-group].is-visible > .f-card {
    transition:
      opacity 420ms var(--ease-out),
      translate 420ms var(--ease-out),
      transform 240ms var(--ease-out),
      border-color 150ms var(--ease),
      box-shadow 240ms var(--ease);
  }

  html.js .browser[data-reveal] {
    translate: 0 24px;
    transition-duration: 560ms;
  }

  html.js .browser[data-reveal].is-visible {
    translate: none;
  }

  html.js .step .tray {
    translate: 0 16px;
  }

  html.js .steps.is-visible .tray {
    translate: none;
    transition-delay: 300ms;
  }

  html.js .paper--summary mark {
    opacity: 0;
  }

  html.js .is-visible .paper--summary mark {
    opacity: 1;
  }

  html.js .is-visible .paper--summary mark:nth-of-type(1) {
    transition-delay: 420ms;
  }

  html.js .is-visible .paper--summary mark:nth-of-type(2) {
    transition-delay: 720ms;
  }

  html.js .is-visible .paper--summary mark:nth-of-type(3) {
    transition-delay: 1020ms;
  }

  html.js .saved-chip {
    opacity: 0;
    scale: 0.8;
  }

  html.js .is-visible .saved-chip {
    opacity: 1;
    scale: 1;
    transition-delay: 1020ms;
  }

  html.js .estimate-rows li.is-pending {
    opacity: 0;
    translate: 0 8px;
  }

  html.js .totals__from.is-pending,
  html.js .copied-chip.is-pending {
    opacity: 0;
  }

  html.js .copied-chip.is-pending {
    scale: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .plane {
    transform: none !important;
  }
}

/* ------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .questions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 6fr 6fr;
    align-items: start;
  }

  .hero__scene {
    align-self: start;
    height: 46rem;
    aspect-ratio: auto;
  }

  .estimate-card {
    right: 0;
    bottom: 0;
  }

  .copied-chip {
    bottom: -4%;
  }

  .menu-card {
    width: 260px;
  }

  .estimate-card {
    width: 300px;
  }
}

/* ------------------------------------------------------------------
   Phone: one column, full-width buttons, the hero reduced to the
   estimate card.
   ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .site-header__cta {
    margin-left: auto;
  }

  .site-header__cta-long {
    display: none;
  }

  .site-header__cta-short {
    display: inline;
  }

  .hero__grid,
  .questions__lead,
  .questions__grid,
  .steps,
  .split,
  .split--reverse,
  .split--even,
  .features__grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .demo__actions,
  .estimate-card__actions,
  .backup-card__actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .pill,
  .demo__actions .pill,
  .close .pill,
  .backup-card .pill,
  .form-actions .pill {
    width: 100%;
  }

  .hero__scene {
    display: grid;
    gap: 1rem;
    aspect-ratio: auto;
    margin-top: 1rem;
  }

  .plane {
    position: static;
    transform: none !important;
  }

  .plane--mid {
    display: none;
  }

  .plane--bg {
    position: absolute;
    inset: 0;
  }

  .hero__glow {
    top: -10%;
    right: -20%;
    width: 260px;
    height: 260px;
  }

  .hero__leaf {
    display: none;
  }

  .plane--chip {
    order: -1;
  }

  .status-chip {
    position: static;
  }

  .copied-chip {
    display: none;
  }

  .estimate-card {
    position: relative;
    width: 100%;
  }

  .split--reverse .split__visual {
    order: 1;
  }

  .browser iframe {
    height: 600px;
  }

  .facts {
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
  }

  .site-footer__row,
  .site-footer__links {
    flex-direction: column;
    align-items: flex-start;
  }
}
