/* Arvela Studio: one stylesheet (one request) in six parts, in this order:
   1 tokens, 2 base, 3 layout, 4 components, 5 sections, 6 motion.
   Literal values live in part 1 only (the phone mockup keeps its own miniature sizes). */

/* ===== 1. Tokens ===== */
:root {
  /* Brand palette */
  --ink: #14213D;
  --ink-soft: #2C3550;
  --ink-line: #2E3A57;
  --clay: #C8553D;
  --clay-deep: #A9432E;
  --clay-deeper: #8E3624;
  --cream: #F6F1E7;
  --cream-deep: #EFE7D6;
  --paper: #FFFFFF;
  --sage: #8A9A7B;
  --stone: #6B6A64;
  --mist: #C9CCD6;
  --line: #E4DCCB;

  /* Semantic colors */
  --bg: var(--cream);
  --bg-alt: var(--cream-deep);
  --surface: var(--paper);
  --text: var(--ink);
  --text-body: var(--ink-soft);
  --text-muted: var(--stone);
  --border: var(--line);
  --accent: var(--clay);
  --action: var(--clay-deep);
  --action-hover: var(--clay-deeper);
  --on-action: var(--paper);
  --dark-bg: var(--ink);
  --dark-text: var(--cream);
  --dark-muted: var(--mist);
  --dark-quiet: var(--sage);
  --dark-line: var(--ink-line);
  --focus: var(--clay-deep);
  --focus-on-dark: var(--clay);
  --error: #A3261B;
  --success: #2F6B3A;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-price: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  --fs-step: 1.75rem;
  --lh-tight: 1.04;
  --lh-head: 1.15;
  --lh-body: 1.65;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-display: 400;
  --weight-display-strong: 500;
  --opsz-display: 144;
  --opsz-head: 72;
  --tracking-display: -0.02em;

  /* Space (8px rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-pad: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Layout */
  --container: 72rem;
  --measure: 38rem;
  --header-height: 4.5rem;
  --logo-height: 2.25rem;
  --footer-logo-height: 2.5rem;
  --tap: 2.75rem;
  --doorway-w: 22rem;
  --doorway-w-small: 17rem;
  --doorway-ratio: 22 / 31;
  --doorway-ring: 5.7cqi;
  --doorway-inset: 8% 11.4% 0;
  --doorway-phone: 58%;
  --doorway-perspective: 300cqi;
  --marker-w: 3.25rem;
  --marker-h: 3.75rem;
  --connector: 2px;

  /* Shape */
  --radius-sm: 0.5rem;
  --radius: 0.625rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --radius-arch: var(--radius-pill) var(--radius-pill) 0 0;
  --border-width: 1px;
  --focus-ring: 3px;

  /* Elevation */
  --shadow-header: 0 1px 0 var(--line);
  --shadow-phone: 0 30px 60px -30px rgba(0, 0, 0, 0.55);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 700ms;
  --dur-intro: 900ms;
  --dur-door: 1100ms;
  --dur-screen: 4200ms;
  --delay-door: 250ms;
  --delay-screen: 1500ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --door-open: 58deg;
  --screen-scroll: -60cqi;
  --rise: var(--space-6);

  /* Layers */
  --z-header: 50;
  --z-skip: 100;
}

/* ===== 2. Base ===== */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--weight-regular);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--lh-head);
  font-variation-settings: "opsz" var(--opsz-head);
  text-wrap: balance;
}
h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  font-variation-settings: normal;
}

p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: var(--focus-ring) solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.site-header, .hero, .section--dark, .site-footer, .price--main { --focus: var(--focus-on-dark); }
.site-header.is-light { --focus: var(--clay-deep); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: calc(-1 * var(--space-9));
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ===== 3. Layout ===== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark-bg); color: var(--dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--dark-text); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: var(--space-4); font-size: var(--fs-lead); }

/* Header: dark over the hero, light after it (main.js adds .is-light). Without JS it stays dark. */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--dark-bg);
  color: var(--dark-text);
}
.site-header.is-light { background: var(--bg); color: var(--text); box-shadow: var(--shadow-header); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-height: var(--header-height);
}
.site-header__logo { display: grid; }
.site-header__logo img { grid-area: 1 / 1; height: var(--logo-height); width: auto; }
.site-header .logo-on-light { opacity: 0; }
.site-header.is-light .logo-on-dark { opacity: 0; }
.site-header.is-light .logo-on-light { opacity: 1; }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav__links { display: flex; gap: var(--space-5); list-style: none; }
.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
  text-underline-offset: 0.35em;
  font-size: var(--fs-small);
  font-weight: var(--weight-medium);
}
.site-nav__links a:hover { text-decoration: underline; }

@media (max-width: 52rem) {
  .site-nav__links { display: none; }
}
@media (max-width: 26rem) {
  :root { --logo-height: 1.875rem; }
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-small);
  border-top: var(--border-width) solid var(--dark-line);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.site-footer__brand img { height: var(--footer-logo-height); width: auto; margin-bottom: var(--space-4); }
.site-footer__links { list-style: none; display: grid; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--dark-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--dark-line);
}
@media (max-width: 40rem) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 4. Components ===== */
/* Buttons: one primary per screen, the rest outlined */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  border: var(--border-width) solid transparent;
  font-weight: var(--weight-semibold);
  font-size: var(--fs-body);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); }
.btn--outline { background: transparent; color: inherit; border-color: currentColor; }
.btn--outline:hover { background: var(--dark-text); color: var(--dark-bg); border-color: var(--dark-text); }
.is-light .btn--outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--small { min-height: var(--tap); padding: var(--space-2) var(--space-4); font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Line icons: one family, one stroke */
.icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature list: plain items under a rule, not cards */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  column-gap: var(--space-7);
  row-gap: var(--space-7);
}
.feature-list li { padding-top: var(--space-5); border-top: var(--border-width) solid var(--border); }
.feature-list .icon { color: var(--accent); margin-bottom: var(--space-4); }
.feature-list h3 { margin-bottom: var(--space-2); }

/* Steps: a real sequence, so the numbers carry meaning. Each marker is a small doorway. */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
}
.step { position: relative; display: grid; align-content: start; gap: var(--space-2); }
.step__num {
  display: grid;
  place-items: center;
  width: var(--marker-w);
  height: var(--marker-h);
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-radius: var(--radius-arch);
  background: var(--action);
  color: var(--dark-text);
  font-family: var(--font-display);
  font-size: var(--fs-step);
  font-weight: var(--weight-display-strong);
  font-variation-settings: "opsz" var(--opsz-head);
  line-height: 1;
}
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--marker-h) / 2);
  left: calc(var(--marker-w) + var(--space-3));
  right: calc(var(--space-3) - var(--space-6));
  height: var(--connector);
  background: var(--border);
  transform-origin: left center;
}
.step:not(:last-child)::after { background: var(--accent); }
.step__pay { margin-top: var(--space-2); font-size: var(--fs-small); font-weight: var(--weight-semibold); color: var(--action); }

@media (max-width: 52rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .step { grid-template-columns: var(--marker-w) minmax(0, 1fr); column-gap: var(--space-5); }
  .step > * { grid-column: 2; }
  .step > .step__num { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after {
    top: calc(var(--marker-h) + var(--space-3));
    bottom: calc(var(--space-3) - var(--space-6));
    left: calc(var(--marker-w) / 2 - var(--connector) / 2);
    right: auto;
    width: var(--connector);
    height: auto;
    transform-origin: center top;
  }
}

/* Price blocks */
.price {
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price__amount {
  font-family: var(--font-display);
  font-size: var(--fs-price);
  font-weight: var(--weight-display-strong);
  font-variation-settings: "opsz" var(--opsz-head);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price__amount small { font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--weight-regular); color: var(--text-muted); }
.price__list { list-style: none; display: grid; gap: var(--space-2); }
.price__list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--space-2); }
.price__list svg {
  width: 1.25rem; height: 1.25rem; margin-top: 0.2em;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  color: var(--success);
}
.price--main { background: var(--dark-bg); border-color: var(--dark-bg); color: var(--dark-muted); overflow: hidden; }
.price--main h3, .price--main .price__amount { color: var(--dark-text); }
.price--main .price__amount small { color: var(--dark-muted); }
.price--main .price__list svg { color: var(--dark-quiet); }
.price__offer {
  margin: var(--space-2) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
  padding: var(--space-5) var(--space-6);
  background: var(--action);
  color: var(--on-action);
}

/* FAQ: native details/summary */
.faq { display: grid; border-top: var(--border-width) solid var(--border); }
.faq details { border-bottom: var(--border-width) solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--fs-lead);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem; height: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding-bottom: var(--space-5); max-width: var(--measure); }

/* Form */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: var(--weight-semibold); color: var(--dark-text); font-size: var(--fs-small); }
.field .hint { font-size: var(--fs-small); color: var(--dark-muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-body);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--clay); box-shadow: 0 0 0 var(--focus-ring) var(--clay); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--clay); }
.field .error { color: var(--cream); background: var(--error); padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-small); justify-self: start; }
.field .error:empty { display: none; }
.form__note { font-size: var(--fs-small); color: var(--dark-muted); }
.form__status { font-size: var(--fs-body); color: var(--dark-text); }
.form__status:empty { display: none; }

/* Phone mockup: a decorative sample preview. Sizes are in cqi, so it scales as one piece. */
.phone {
  container-type: inline-size;
  position: relative;
  width: 15.5rem;
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 17.6% / 8.6%;
  box-shadow: var(--shadow-phone);
}
.phone__screen {
  position: absolute;
  inset: 4.7cqi;
  border-radius: 13.5cqi;
  overflow: hidden;
  background: var(--paper);
  font-family: var(--font-body);
  color: var(--ink);
}
.phone__page { display: flex; flex-direction: column; padding-bottom: 6cqi; }
.phone__url {
  margin: 7cqi 6.7cqi 0;
  padding: 1.6cqi 4.7cqi;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--stone);
  font-size: 4.9cqi;
  line-height: 1.5;
  text-align: center;
}
.phone__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 3cqi;
  padding: 4.7cqi 6.7cqi;
  font-size: 5.4cqi; font-weight: var(--weight-semibold); line-height: 1.4;
  white-space: nowrap;
}
.phone__call {
  background: var(--action); color: var(--on-action);
  border-radius: var(--radius-pill);
  padding: 2cqi 4.7cqi;
}
.phone__hero {
  margin: 0 4.7cqi;
  border-radius: 7.8cqi;
  background: var(--sage);
  color: var(--ink);
  padding: 7.8cqi 6.7cqi;
  display: grid; gap: 3.1cqi;
}
.phone__hero strong {
  font-family: var(--font-display); font-weight: var(--weight-display-strong);
  font-variation-settings: "opsz" var(--opsz-head);
  font-size: 9cqi; line-height: 1.15;
}
.phone__hero span { font-size: 5.4cqi; line-height: 1.45; }
.phone__quote {
  margin-top: 3.1cqi; justify-self: start;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-pill); padding: 2.4cqi 5.5cqi;
  font-weight: var(--weight-semibold);
}
.phone__section { padding: 6.3cqi 6.7cqi 0; display: grid; gap: 3.5cqi; }
.phone__label { font-size: 5.4cqi; font-weight: var(--weight-semibold); line-height: 1.4; }
.phone__stars { color: var(--clay); font-size: 5.9cqi; letter-spacing: 0.1em; line-height: 1.2; }
.phone__review { font-size: 5.4cqi; line-height: 1.45; color: var(--stone); }
.phone__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4cqi; }
.phone__tiles span { aspect-ratio: 1; border-radius: 3.1cqi; background: var(--cream-deep); }
.phone__tiles span:nth-child(2) { background: var(--mist); }
.phone__tiles span:nth-child(3) { background: var(--line); }
.phone__field { height: 8cqi; border-radius: 2.4cqi; background: var(--cream); }
.phone__send {
  padding: 2.4cqi; border-radius: 2.4cqi;
  background: var(--action); color: var(--on-action);
  font-size: 5.4cqi; font-weight: var(--weight-semibold); line-height: 1.4; text-align: center;
}

/* ===== 5. Sections ===== */
/* Hero: ink field, cream type, and the doorway with the preview standing in it */
.hero {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding-block: var(--space-7) var(--section-pad);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-7);
  align-items: center;
}
.hero h1 {
  color: var(--dark-text);
  font-size: var(--fs-h1);
  font-weight: var(--weight-display-strong);
  font-variation-settings: "opsz" var(--opsz-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}
.hero__lead { margin-top: var(--space-5); font-size: var(--fs-lead); max-width: 34rem; }
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}
.hero .text-link { color: var(--dark-text); }
.hero__assure { margin-top: var(--space-5); max-width: 34rem; font-size: var(--fs-small); color: var(--dark-quiet); }

/* The doorway: cream arch ring, lit opening, clay door swung inward, sample phone in front */
.doorway {
  margin: 0;
  width: 100%;
  max-width: var(--doorway-w);
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: var(--space-8);
}
.doorway__frame {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: var(--doorway-ratio);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.doorway__arch {
  position: absolute;
  inset: 0;
  border: var(--doorway-ring) solid var(--cream);
  border-bottom: 0;
  border-radius: var(--radius-arch);
}
.doorway__opening {
  position: absolute;
  inset: var(--doorway-inset);
  border-radius: var(--radius-arch);
  background: var(--cream-deep);
  perspective: var(--doorway-perspective);
  perspective-origin: 50% 100%;
}
.doorway__door {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-arch);
  background: var(--clay-deep);
  transform-origin: left center;
  transform: rotateY(var(--door-open));
}
.doorway .phone {
  position: relative;
  width: var(--doorway-phone);
  margin-bottom: -7cqi;
  translate: 9cqi 0;
}
.doorway__caption {
  max-width: 18rem;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--dark-quiet);
}

@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .doorway { max-width: var(--doorway-w-small); }
}

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-5);
  align-items: start;
}
.pricing__cta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
}
.pricing__cta p { color: var(--text-muted); font-size: var(--fs-small); }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.about__grid h2 { font-size: var(--fs-h2); }
.about__body { display: grid; gap: var(--space-4); font-size: var(--fs-lead); }
@media (max-width: 52rem) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}

/* FAQ */
.faq-wrap .faq { max-width: 50rem; }

/* Final call to action with form */
.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  align-items: start;
}
.start__grid h2 { font-size: var(--fs-h2); }
.start__intro { display: grid; gap: var(--space-4); font-size: var(--fs-lead); }
.start__alt { font-size: var(--fs-body); }
.start__alt a { color: var(--dark-text); overflow-wrap: anywhere; }
@media (max-width: 56rem) {
  .start__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

/* ===== 6. Motion =====
   One orchestrated moment: on load the clay door swings open behind the preview, the phone steps up,
   and its screen scrolls once to show reviews and work. Then one scroll-linked detail (the step path)
   and feedback on what people do (header, buttons, FAQ, fields). Transform-only on the hero, so a
   frozen first frame still shows everything; with reduced motion, every final state shows at once. */
@media (prefers-reduced-motion: no-preference) {
  .btn, .text-link, .site-nav__links a {
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
      border-color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out);
  }
  .site-header { transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
  .site-header__logo img { transition: opacity var(--dur-base) var(--ease-out); }
  .field input, .field textarea { transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .faq summary::after { transition: transform var(--dur-base) var(--ease-out); }

  /* FAQ answers open smoothly where the browser supports it; elsewhere they simply open */
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }

  /* Hero */
  .doorway__door { animation: door-open var(--dur-door) var(--ease-in-out) var(--delay-door) backwards; }
  .doorway .phone { animation: phone-rise var(--dur-intro) var(--ease-out) 150ms backwards; }
  .phone__page { animation: screen-scroll var(--dur-screen) var(--ease-in-out) var(--delay-screen); }

  @keyframes door-open {
    from { transform: rotateY(0deg); background-color: var(--clay); }
  }
  @keyframes phone-rise {
    from { transform: translateY(var(--rise)); }
  }
  @keyframes screen-scroll {
    40%, 62% { transform: translateY(var(--screen-scroll)); }
  }

  /* How it works: the path between the steps draws as you scroll */
  @supports (animation-timeline: view()) {
    .js .step:not(:last-child)::after {
      animation: draw-x linear both;
      animation-timeline: view();
      animation-range: cover 15% cover 45%;
    }
    .js .step:nth-child(2)::after { animation-range: cover 30% cover 55%; }
    @media (max-width: 52rem) {
      .js .step:not(:last-child)::after { animation-name: draw-y; animation-range: cover 10% cover 50%; }
    }
  }
  @keyframes draw-x { from { transform: scaleX(0); } }
  @keyframes draw-y { from { transform: scaleY(0); } }
}
