/* Robbie Murdoch site. Tokens first, then layout, then the three scroll mechanics.
   Read CLAUDE.md before changing anything marked SCROLL. */

:root {
  --brand: #0C4636;      /* deep green: hero, CTA, accents */
  --soft: #F6EFCB;       /* butter: page ground, text on brand */
  --white: #FFFFFF;
  --ink: #12241E;        /* text on white */
  --muted: #45574F;      /* secondary text on white (passes 4.5:1) */
  --line: #DCE3DF;

  --display: Manrope, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;

  --radius-card: 28px;
  --radius-btn: 12px;
  --wrap: 1240px;
  --gutter: 40px;
  --nav-h: 80px;         /* height of the fixed nav; content and pinned sections sit below it */

  /* SCROLL: written by js/scroll.js. Defaults are the no-JS state. */
  --p: 0;                /* story progress, 0 to 1 */
  --scroll: 0;           /* window.scrollY in px, unitless */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

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

h1, h2, h3, .wordmark, .card__num { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
h1 .line, h2 .line { display: block; }   /* hand-set line breaks so the headline reads in phrases */
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.03em; }
.lede { font-size: 19px; line-height: 1.5; max-width: 30em; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow--plain { font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px;
  border: 1.5px solid transparent; border-radius: var(--radius-btn);
  font: 600 17px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn--white { background: var(--white); color: var(--brand); }
.btn--soft { background: var(--soft); color: var(--brand); padding: 12px 22px; }
.btn--outline { border-color: var(--soft); color: var(--soft); }
.btn--brand { background: var(--brand); color: var(--white); }
@media (hover: hover) {
  .btn--white:hover, .btn--soft:hover { background: #FFFFFF; transform: translateY(-1px); }
  .btn--outline:hover { background: rgba(246, 239, 203, 0.12); }
  .btn--brand:hover { background: #0A3A2D; }
}

/* Nav */
.nav {
  /* Fixed to the top on every screen size, Ramp-style: a thin line along its bottom edge at all
     times; see-through over the hero, then a frosted green bar once the page scrolls
     (js/scroll.js adds .is-scrolled). Inner padding keeps it aligned with the page's content. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; max-width: none;
  height: var(--nav-h);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px;
  background: rgba(12, 70, 54, 0);
  border-bottom: 1px solid rgba(246, 239, 203, 0.14);
  color: var(--soft);
  transition: background-color 250ms ease-out, -webkit-backdrop-filter 250ms ease-out, backdrop-filter 250ms ease-out;
}
.nav.is-scrolled {
  background: rgba(12, 70, 54, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html { scroll-padding-top: calc(var(--nav-h) + 8px); }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark__by { font-family: var(--body); font-weight: 400; font-size: 15px; letter-spacing: 0; opacity: 0.75; margin-left: 6px; }
.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; font-size: 16px; font-weight: 500; }
.nav__links a:not(.btn) { text-decoration: none; padding: 12px 0; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.story { background: var(--brand); color: var(--soft); padding-top: var(--nav-h); }

/* ---------- Hero ----------
   Text on the left, a static graphic on the right: a phone showing the finished
   clinic site, a "preview ready" email and a price chip. No scroll effects here. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  min-height: min(82vh, 760px);
  padding-block: 40px 72px;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  display: flex; justify-content: center;
  /* The phone is cropped and faded at the bottom, on every screen size. */
  max-height: 580px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
          mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
.phone {
  width: 330px; height: 680px;
  border-radius: 54px; padding: 11px;
  background: #0B0F0E;
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.75), inset 0 0 0 2px #3A403E, inset 0 0 0 5px #0B0F0E, inset 0 0 0 6px #2A302E;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 43px; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column;
}
.phone__screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #0B0F0E; }

/* The chat inside the phone. */
.avatar { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--display); }
.avatar--me { background: var(--brand); color: var(--soft); }
.avatar--them { background: var(--soft); color: var(--brand); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 52px 18px 12px; border-bottom: 1px solid var(--line); }
.chat__head .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.chat__title { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.chat__title span { font-size: 12px; color: var(--muted); }
.chat__log { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msg__who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.msg__bubble { margin: 0; max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.msg--them { align-items: flex-end; }
.msg--them .msg__bubble { background: var(--brand); color: var(--white); }
.msg--me .msg__bubble { background: #EEF2EF; }
.msg__update { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand); }
.chat__input { margin: 0 14px 18px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 7px 14px; font-size: 13px; color: #7A877F; }
.chat__send { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: #C4CCC7; color: var(--white); display: flex; align-items: center; justify-content: center; }

.typing { display: none; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8A968F; animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* Playback states, set by js/chat.js. Hidden messages keep their space, so nothing jumps. */
.chat.is-live .msg { opacity: 0; transform: translateY(8px); transition: opacity 280ms ease-out, transform 280ms ease-out; }
.chat.is-live .msg.is-typing,
.chat.is-live .msg.is-shown { opacity: 1; transform: none; }
.chat.is-live .msg.is-typing .typing { display: inline-flex; }
.chat.is-live .msg.is-typing .msg__text,
.chat.is-live .msg.is-typing .msg__update { display: none; }
.chat.is-live .msg__update { opacity: 0; transition: opacity 280ms ease-out 250ms; }
.chat.is-live .msg.is-shown .msg__update { opacity: 1; }

/* ---------- SCROLL MECHANIC 1: before and after ----------
   Two cards side by side: the old site (left) and the new one (right), each with its half
   of the heading. On desktop, js/scroll.js adds .is-pinned to .compare: it becomes tall and
   .compare__pin is sticky, so the section holds still while you scroll through it. --p (0 to 1)
   fades the old card down and the new card up; then the page carries on.
   No ancestor of .compare__pin may have overflow hidden/auto/scroll or sticky breaks. */
.compare { padding-block: 24px 72px; }
.compare__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px; row-gap: 16px;
}
.compare__side {
  display: grid; grid-template-rows: subgrid; grid-row: span 2;   /* lines the two browsers up */
  border-radius: var(--radius-card); padding: 32px;
}
.compare__side--old { background: rgba(255, 255, 255, 0.06); }
.compare__side--new { background: var(--soft); color: var(--brand); }
.compare__side--new .lede { color: var(--ink); }
.compare__side h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.compare__side .lede { font-size: 17px; }
.compare__side .browser { align-self: end; margin-top: 8px; }

.compare.is-pinned { height: 250vh; padding-block: 0; }
.compare.is-pinned .compare__pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.compare.is-pinned .compare__side--old { opacity: calc(1 - 0.9 * var(--p)); }
.compare.is-pinned .compare__side--new { opacity: calc(0.1 + 0.9 * var(--p)); transform: translateY(calc((1 - var(--p)) * 16px)); }

.browser {
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #CFD8D3; }
.browser__url { margin-left: 10px; flex: 1; background: #F1F4F2; border-radius: 8px; padding: 7px 12px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.browser__screen { position: relative; height: clamp(220px, calc(100vh - 470px), 360px); border-radius: 12px; overflow: hidden; }
.pane { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; }

/* Lo-fi wireframes. One rule set for both:
   - every line is the same: 6px tall, rounded ends, in --lo-line (light grey);
   - no dark colours anywhere; hierarchy comes from line width and spacing only;
   - the new site's only accent is --lo-accent (light green): buttons and card circles;
   - the old site has no accent at all.
   Old: a narrow, cramped, text-heavy fixed-width page in the middle of a grey screen,
   with a broken image box. New: full width, roomy, a button pair and three cards. */
:root { --lo-line: #C9D1CC; --lo-accent: #CFE0D5; --lo-h: 6px; }
.lo-line, .lo-old i, .lo-new__top i:not(.lo-new__cta), .lo-new__hero > i, .lo-new__cards i {
  display: block; height: var(--lo-h); border-radius: 3px; background: var(--lo-line);
}

.pane--old { background: #E4E6E5; padding: 0; align-items: center; }
.lo-old { width: 72%; height: 100%; background: #F6F7F6; display: flex; flex-direction: column; gap: 12px; }
.lo-old__banner { height: 56px; background: #ECEEED; border-bottom: 1px solid #DCE0DE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lo-old__banner i { width: 52%; }
.lo-old__nav { display: flex; justify-content: center; gap: 6px; padding: 0 12px; }
.lo-old__nav i { width: 12%; }
.lo-old__title { width: 42%; margin: 4px 14px 0; }
.lo-old__text { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.lo-old__text i:nth-child(2n) { width: 94%; }
.lo-old__text i:nth-child(3n) { width: 86%; }
.lo-old__text i:last-child { width: 60%; }
.lo-old__row { display: flex; gap: 10px; padding: 0 14px; }
.lo-old__row .lo-old__text { flex: 1; padding: 0; }
.lo-old__img {
  flex: 0 0 30%; height: 58px; border: 1px solid var(--lo-line); background-color: #EEF0EF;
  background-image:
    linear-gradient(to top right, transparent calc(50% - 0.6px), var(--lo-line) 50%, transparent calc(50% + 0.6px)),
    linear-gradient(to top left, transparent calc(50% - 0.6px), var(--lo-line) 50%, transparent calc(50% + 0.6px));
}
.lo-old__link { width: 46%; margin: 0 14px; }
.lo-old__footer { margin-top: auto; height: 18px; background: #ECEEED; border-top: 1px solid #DCE0DE; flex-shrink: 0; }

.pane--new { background: var(--white); padding: 24px; justify-content: space-between; gap: 18px; }
.pane--new b { display: block; }
.lo-new__top { display: flex; align-items: center; gap: 16px; }
.lo-new__logo { width: 72px; }
.lo-new__links { display: flex; gap: 10px; margin-left: auto; }
.lo-new__links i { width: 30px; }
.lo-new__cta { display: block; width: 64px; height: 22px; border-radius: 999px; background: var(--lo-accent); }
.lo-new__hero { display: flex; flex-direction: column; gap: 12px; }
.lo-new__h { width: 82%; }
.lo-new__h--short { width: 56%; }
.lo-new__sub { width: 68%; margin-top: 8px; }
.lo-new__btns { display: flex; gap: 8px; margin-top: 10px; }
.lo-new__btns i { display: block; width: 96px; height: 32px; border-radius: 9px; background: var(--lo-accent); }
.lo-new__btns .lo-new__btn--ghost { width: 80px; background: transparent; border: 1.5px solid var(--lo-line); }
.lo-new__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lo-new__cards div { background: #F1F4F2; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.lo-new__cards b { width: 24px; height: 24px; border-radius: 50%; background: var(--lo-accent); margin-bottom: 4px; }
.lo-new__cards i:last-child { width: 62%; }

/* ---------- SCROLL MECHANIC 2: the band ----------
   A row of butter domes on the green ground. It slides left at a third of
   scroll speed. background-position repaints a 64px strip only. */
.band {
  height: 64px;
  background: radial-gradient(circle at 50% 100%, var(--soft) 0 47px, transparent 48px) 0 0 / 96px 64px repeat-x;
  background-position-x: calc(var(--scroll) * -0.33px);
}

/* ---------- SCROLL MECHANIC 3: the card stack ----------
   Each card is sticky with a slightly larger top, so they pile up.
   --i is set inline on each card (0, 1, 2). Pure CSS. */
.how { padding-top: 96px; padding-bottom: 40px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; color: var(--brand); }
.stack { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.card {
  position: sticky;
  top: calc(88px + var(--i) * 24px);
  min-height: 300px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  box-shadow: 0 -12px 40px -24px rgba(18, 36, 30, 0.35);
}
.card > div:last-child { display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); }
.card__num { font-size: 96px; line-height: 1; letter-spacing: -0.05em; color: var(--brand); }
.card--brand { background: var(--brand); color: var(--soft); }
.card--brand p, .card--brand .card__num { color: var(--soft); }

/* About */
.about { padding-top: 80px; padding-bottom: 40px; }
.about__card { background: var(--white); border-radius: var(--radius-card); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* The photo has a white ground, so it sits straight on the white card with no frame.
   Cropped from the top so the face never gets cut. */
.about__photo { display: block; min-height: 460px; border-radius: var(--radius-card) 0 0 var(--radius-card); overflow: hidden; }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.about__text .eyebrow { color: var(--brand); }
.about__text h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.about__text p:last-child { color: var(--muted); }

/* Price */
/* Price: a centred heading, then two plan cards side by side (styled after Mobbin's pricing page).
   Hand-over = one-off price only. Looked after = one-off price plus £35 a month.
   Hovering a card turns it dark green with white text (Robbie's request); its button flips to butter. */
.price { padding-top: 64px; padding-bottom: 112px; }
.price__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--brand); margin-bottom: 48px; }
.price__head .lede { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin-inline: auto; }
.plan {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 28px;
  padding: 36px 36px 40px; display: flex; flex-direction: column;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.plan--featured { background: #EEF3EF; border-color: #DCE5DE; }
.plan h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.plan__badge { font: 600 13px/1 var(--body); letter-spacing: 0; padding: 6px 10px; border: 1.5px solid currentColor; border-radius: 999px; color: var(--brand); }
.plan__for { margin-top: 6px; font-size: 16px; color: var(--muted); }
.plan__price { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.plan__figure { font: 600 clamp(48px, 5vw, 60px)/1 var(--display); letter-spacing: -0.04em; color: var(--brand); }
.plan__small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.plan__monthly { margin-top: 12px; font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.plan__btn { margin-top: 24px; width: 100%; background: var(--brand); color: var(--white); }
.plan__note { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.plan__list { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.plan__list li { display: flex; align-items: flex-start; gap: 12px; }
.plan__includes { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink); }
.plan__list--plus { margin-top: 14px; padding-top: 0; border-top: 0; }
.plan__tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #E1EAE3; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; }
.plan h3, .plan p, .plan__figure, .plan__small, .plan__monthly, .plan__list, .plan__badge, .plan__tick, .plan__btn { transition: color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out; }
@media (hover: hover) {
  .plan:hover { background: var(--brand); border-color: var(--brand); }
  .plan:hover h3, .plan:hover p, .plan:hover .plan__figure, .plan:hover .plan__small, .plan:hover .plan__monthly, .plan:hover .plan__list, .plan:hover .plan__badge { color: var(--white); }
  .plan:hover .plan__list, .plan:hover .plan__includes { border-top-color: rgba(255, 255, 255, 0.2); }
  .plan:hover .plan__tick { background: rgba(255, 255, 255, 0.16); color: var(--white); }
  .plan:hover .plan__btn { background: var(--soft); color: var(--brand); }
}

/* FAQ: native <details> accordions, so they work without JS and with a keyboard.
   name="faq" makes opening one close the others in browsers that support it. */
.faq { padding-top: 8px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.faq h2 { color: var(--brand); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.06; position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { border-top: 1px solid rgba(12, 70, 54, 0.18); }
.faq details { border-bottom: 1px solid rgba(12, 70, 54, 0.18); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--brand);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink); line-height: 1.6; max-width: 46em; }

/* CTA + footer */
.cta { background: var(--brand); color: var(--soft); border-radius: 40px 40px 0 0; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 96px; padding-bottom: 64px; }
.cta__grid > div { display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: 36px; display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 15px; font-weight: 600; margin-top: 10px; }
.form label:first-child { margin-top: 0; }
.form input { font: inherit; font-size: 17px; min-height: 48px; padding: 12px 16px; border: 1.5px solid #8A9A92; border-radius: 12px; color: var(--ink); background: var(--white); }
.form input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.form .btn { margin-top: 18px; }
.form__note { font-size: 15px; color: var(--muted); }
.form__reassure { font-size: 15px; color: var(--muted); text-align: center; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.25); }

.label--short { display: none; }

/* Short desktop screens: the pinned before-and-after has less height, so the new wireframe drops its tile row. */
@media (max-height: 780px) and (min-width: 901px) {
  .lo-new__cards { display: none; }
}

/* ---------- Phone and small tablet ----------
   One column. The browser stops being sticky and sits under the hero text;
   js/scroll.js switches to measuring the browser itself (see CLAUDE.md). */
@media (max-width: 900px) {
  /* Mobile is copy-led: one-row nav, a cropped chat in the hero, and no browser
     in the before-and-after (the two headings read as one sentence on their own). */
  /* Phones: a shorter fixed nav (same behaviour as desktop). The hero's own buttons
     are hidden; the nav's "Free preview" is the one CTA. */
  :root { --nav-h: 68px; }
  .hero .actions { display: none; }
  .nav__links a:not(.btn) { display: none; }
  .nav__links .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
  .label--long { display: none; }
  .label--short { display: inline; }
  .wordmark { font-size: 19px; }
  .hero-art {
    max-height: 430px;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
            mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  :root { --gutter: 20px; }
  .compare { padding-block: 0 48px; }
  .compare__grid { grid-template-columns: minmax(0, 1fr); }
  .compare__side { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
  .compare__side .browser { display: none; }
  /* Phones: the same old-to-new hand-off as desktop, tied to where the new card sits
     on screen (js/scroll.js adds .is-flowing and writes --p). Nothing pins. */
  .compare.is-flowing .compare__side--old { opacity: calc(1 - 0.65 * var(--p)); transform: scale(calc(1 - 0.03 * var(--p))); }
  .compare.is-flowing .compare__side--new { opacity: calc(0.2 + 0.8 * var(--p)); transform: translateY(calc((1 - var(--p)) * 28px)) scale(calc(0.96 + 0.04 * var(--p))); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; padding-block: 40px 56px; }
  .phone { width: min(330px, 100%); }
  .pane--new { padding: 18px; }
  .lo-new__links { display: none; }
  .lo-new__cta { margin-left: auto; }
  .lo-new__cards div { padding: 10px; }
  .card, .about__card, .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 32px 28px; gap: 12px; min-height: 260px; top: calc(72px + var(--i) * 16px); }
  .card__num { font-size: 64px; }
  .about__photo { min-height: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .about__text { padding: 36px 28px; }
  .price { padding-top: 40px; padding-bottom: 72px; }
  .price__head { margin-bottom: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plan { padding: 28px 24px 30px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 72px; }
  .faq summary { font-size: 18px; padding: 20px 0; }
  .faq details p { padding-right: 0; }
  .cta { border-radius: 28px 28px 0 0; }
  .cta__grid { gap: 40px; padding-top: 64px; }
  .form { padding: 24px; }
  .nav__links { gap: 8px 20px; }
}

/* ---------- Reduced motion ----------
   No fade, no pin, no drift: both before-and-after cards show in full (js/scroll.js
   never adds .is-pinned), and the band stays still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { --scroll: 0 !important; }
  .btn { transition: none; }
  .typing i { animation: none; }
  .nav { transition: none; }
  .faq summary::after { transition: none; }
  .plan, .plan * { transition: none; }
}
