/* We & Co. — design system in DESIGN.md. Light, minimal, rounded; one story read top to bottom. */

/* Instrument Sans, self-hosted (Google Fonts, SIL Open Font License). One variable file covers 400–700
   and every character English and Spanish need. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --mist: #EEF2F5;
  --soft: #F5F7F8;
  --border: #E3E8EC;
  --border-strong: #D2D9DF;
  --text: #121A21;
  --text-2: #55616C;
  --accent: #1F6B5C;
  --accent-hover: #18584B;
  --tint: #E8F2EF;

  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --flow: clamp(96px, 12vw, 176px);
  --bar-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --device-shadow: 0 34px 64px -28px rgba(18, 26, 33, .32), 0 10px 24px -12px rgba(18, 26, 33, .14);
  /* Studio default: placeholders are soft gradient frames, never stock photos. */
  --ph-img: linear-gradient(160deg, #E9EEF2 0%, #F4F6F8 60%, #EDF2F0 100%); /* taste-skill-ignore */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--tint); color: var(--text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 500;
}
.skip:focus { top: 12px; }

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

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--font); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
/* Flat fill: soft button shadows read as template (site-preship-check, 2026-10-22). */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 8px; }
.btn-sm .icon { width: 18px; height: 18px; }

/* ---------- 0. Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  transition: background-color .3s, box-shadow .3s;
}
.topbar.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--border); } /* taste-skill-ignore: sticky bar */
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.wordmark {
  font-weight: 700; font-size: 23px; letter-spacing: -0.025em; line-height: 1;
  padding: 10px 0; margin-right: auto; white-space: nowrap;
}
.wordmark .amp { color: var(--accent); font-weight: 500; }

.nav { display: none; gap: 34px; }
.nav a { font-size: 16px; color: var(--text-2); padding: 10px 0; transition: color .2s; }
.nav a:hover { color: var(--text); }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-cta { display: none; }

.lang {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: var(--mist);
}
.lang a {
  min-width: 44px; height: 36px; display: grid; place-items: center; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: #fff; color: var(--text); }

@media (min-width: 900px) { .topbar-cta { display: inline-flex; } }
@media (min-width: 1100px) { .nav { display: flex; } }

/* ---------- 1. Opening ---------- */
.opening {
  position: relative;
  padding-top: calc(var(--bar-h) + clamp(28px, 7vh, 88px));
  padding-bottom: var(--flow);
  /* Studio default: a soft blue-gray wash behind the opening, fading into the white page. */
  background: radial-gradient(120% 70% at 85% 10%, var(--mist) 0%, rgba(238, 242, 245, 0) 60%); /* taste-skill-ignore */
}
/* Desktop: the headline runs across the full width in two lines; under it, the lead and buttons
   on the left and the devices on the right. .opening-copy is display: contents so its children
   sit on this grid directly (and can be reordered on phones). */
.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  column-gap: clamp(36px, 4.5vw, 72px);
  align-items: start;
}
.opening-copy { display: contents; }
.opening h1 {
  grid-column: 1 / -1;
  position: relative; z-index: 2;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.opening .lead, .opening .actions, .opening .facts { grid-column: 1; position: relative; z-index: 2; }
.opening .stage { grid-column: 2; grid-row: 2 / span 4; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }
.lead {
  margin-top: clamp(28px, 3.4vw, 52px);
  max-width: 44ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
}
.actions { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  margin-top: clamp(26px, 3vw, 40px);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 15px; color: var(--text-2);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { width: 17px; height: 17px; color: var(--accent); stroke-width: 2.4; }

/* The stage: a desktop screen that bleeds off the right edge and dissolves into the page,
   with a phone in front. Both hold real screenshots of a live client site. */
.stage {
  --bleed: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  position: relative;
  margin-top: clamp(28px, 3.4vw, 52px);
  padding-bottom: clamp(56px, 7vw, 110px);
}
.screen {
  position: relative;
  width: min(calc(100% + var(--bleed) + 60px), 1100px);
  padding: 0 9px 9px;
  border-radius: 22px;
  background: var(--mist);
  /* Studio default: scenery edges dissolve into the page (a mask, not a fill). */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%); /* taste-skill-ignore */
          mask-image: linear-gradient(to bottom, #000 74%, transparent 100%); /* taste-skill-ignore */
}
.screen-bar { height: 40px; display: grid; place-items: center; }
.url {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 14px; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0;
}
.url .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.screen-view { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--ph-img); }

.media-inner { position: absolute; inset: 0; will-change: transform; }
.media-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone {
  position: absolute; z-index: 2;
  right: clamp(24px, 9%, 120px); bottom: 0;
  width: clamp(176px, 16.5vw, 240px);
  padding: 7px; border-radius: 44px;
  background: #fff;
  box-shadow: var(--device-shadow), 0 0 0 1px var(--border); /* taste-skill-ignore: the phone floats in front of the screen */
}
.phone-screen { position: relative; overflow: hidden; border-radius: 37px; aspect-ratio: 390 / 844; background: var(--ph-img); }
.island {
  position: absolute; z-index: 3; top: 15px; left: 50%; translate: -50% 0;
  width: 30%; height: 21px; border-radius: 999px; background: #121A21;
}

.stage-caption { position: absolute; left: 0; bottom: 6px; z-index: 2; }
.stage-caption a {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); padding: 8px 0;
}
.caption-url { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--accent); }
.caption-url .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.stage-caption a:hover .caption-url .icon { transform: translate(2px, -2px); }

/* ---------- Chapter basics ---------- */
h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.chapter-lead {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 46ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- 2. From listing to website ---------- */
/* Desktop: heading + steps on the left, a pinned phone on the right whose screen follows the steps. */
.journey { padding-top: var(--flow); }
.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(36px, 6vw, 96px);
}
.journey-head { grid-column: 1; grid-row: 1; max-width: 560px; }
.journey-stage { grid-column: 2; grid-row: 1 / span 2; }
.journey-steps { grid-column: 1; grid-row: 2; margin: 0; padding: 0; list-style: none; }

.journey-sticky {
  position: sticky; top: var(--bar-h);
  height: calc(100vh - var(--bar-h));
  display: grid; place-items: center;
}
.journey-phone {
  position: relative; right: auto; bottom: auto;
  width: min(330px, calc((100vh - var(--bar-h) - 96px) * 0.462));
}

.jstep {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 460px;
}
.jstep:last-child { min-height: 70vh; }
.jstep h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
.jstep p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.jstep a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jstep a:hover { text-decoration-thickness: 2px; }
/* With JS, the step being read is in full ink and the others step back. */
html.js .jstep { opacity: .32; transition: opacity .45s var(--ease); }
html.js .jstep.is-active { opacity: 1; }

/* The phone's screens: stacked, one visible at a time. Sizes inside use container units so the
   drawn UI scales with the phone. */
.journey-phone .phone-screen { container-type: inline-size; background: #fff; }
.jscreen {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s var(--ease);
  background: #fff; overflow: hidden;
  font-size: 4.4cqw; line-height: 1.4; color: var(--text);
}
.jscreen.is-active { opacity: 1; }
.jscreen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.jscreen .icon { width: 1.25em; height: 1.25em; }
.jscreen .muted { color: var(--text-2); }
/* Five stars drawn as one repeating SVG shape (not text characters). */
.jscreen .stars {
  display: inline-block; vertical-align: -0.12em;
  width: 5.3em; height: 1em; background: #E3A008;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 1.06em 1em repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 1.06em 1em repeat-x;
}
.jscreen .stars.stars-48 { background: linear-gradient(90deg, #E3A008 96%, var(--border-strong) 96%); } /* 4.8 of 5: a hard stop, not a fade */
.r-who .stars { width: 4.6em; height: .86em; -webkit-mask-size: .92em .86em; mask-size: .92em .86em; }

/* Screen 1: map + listing sheet */
.map { position: relative; height: 46%; overflow: hidden; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 44%; top: 38%; width: 11cqw; color: #fff; }
.map-pin svg { position: static; width: 100%; height: auto; fill: var(--text); stroke: #fff; stroke-width: 1.5; }
.map-search {
  position: absolute; left: 5%; right: 5%; top: 13cqw;
  display: flex; align-items: center; gap: .5em;
  padding: .55em .9em; border-radius: 999px; background: #fff;
  font-weight: 500; box-shadow: 0 2px 8px rgba(18, 26, 33, .14);
}
.map-search .icon { width: 1.1em; height: 1.1em; color: var(--text-2); }
.sheet {
  position: relative; margin-top: -5cqw; height: calc(54% + 5cqw);
  padding: 2.4cqw 6cqw 0; border-radius: 6cqw 6cqw 0 0; background: #fff;
  box-shadow: 0 -2px 10px rgba(18, 26, 33, .08);
}
.grabber { display: block; width: 11cqw; height: 1.2cqw; margin: 0 auto 3.4cqw; border-radius: 999px; background: var(--border-strong); }
.l-name { font-size: 6.6cqw; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.l-rating { margin: .2em 0; }
.open { color: var(--accent); font-weight: 500; }
.l-actions { display: flex; gap: 2cqw; margin: 4cqw 0; }
.l-actions span {
  padding: .45em .9em; border-radius: 999px; font-size: .92em; font-weight: 500;
  background: var(--mist); color: var(--text);
}
.l-actions span:first-child { background: var(--accent); color: #fff; }
.l-rows { display: grid; gap: .2em; }
.l-rows li { display: flex; align-items: center; gap: .8em; padding: .55em .4em; border-radius: 3cqw; }
.l-rows .icon { color: var(--text-2); }
.l-rows .no-site { color: var(--text-2); background: #FFF3E0; box-shadow: inset 0 0 0 1.5px #F2C27B; }
.l-rows .no-site .icon { color: #B26A00; }

/* Screen 2: reviews */
.jscreen-reviews { padding: 16cqw 6cqw 0; font-size: 4.9cqw; }
.r-title { font-size: 7cqw; font-weight: 600; letter-spacing: -0.02em; }
.r-list { margin-top: 6cqw; display: grid; gap: 6cqw; }
.r-list li { padding-bottom: 6cqw; border-bottom: 1px solid var(--border); }
.r-all { margin-top: 5cqw; color: var(--accent); font-weight: 600; }
.r-who { display: flex; align-items: center; gap: .6em; font-weight: 600; margin-bottom: .5em; }
.avatar {
  width: 8cqw; height: 8cqw; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint); color: var(--accent); font-size: .9em;
}
.r-list mark { background: var(--tint); color: var(--accent); font-weight: 600; padding: 0 .15em; border-radius: .25em; }

/* Screen 4: a phone browser bar over the live site */
.jscreen-live { display: flex; flex-direction: column; }
.jscreen-live > img { flex: 1; min-height: 0; }
.browser-bar { flex: none; padding: 13cqw 5cqw 2.4cqw; display: grid; place-items: center; background: var(--soft); }
.browser-bar .url { height: auto; padding: .4em 1em; font-size: 3.6cqw; }

/* ---------- 3. Work ---------- */
.work { padding-top: var(--flow); }
.work-head { margin-bottom: clamp(32px, 4vw, 56px); }

.reel-intro h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.reel-meta { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--accent); }
.reel-intro p:not(.reel-meta) { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.reel-link {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
  font-weight: 600; color: var(--accent);
}
.reel-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.reel-link:hover .icon { transform: translate(2px, -2px); }

/* A screen frame: mist bezel + URL bar on desktop, a phone on phones. */
.shot-frame { position: relative; padding: 0 9px 9px; border-radius: 22px; background: var(--mist); }
.shot-frame .island { display: none; }
.shot-view { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--ph-img); }
.shot-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel-shot figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* Desktop, still (no JS or reduced motion): each project is a row: intro + two screens. */
@media (min-width: 900px) {
  .reel-track {
    max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
    display: grid; gap: clamp(64px, 8vw, 120px);
  }
  .reel-project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .reel-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
  .reel-intro { max-width: 380px; }

  /* Desktop with motion: the reel pins and the track slides sideways as you scroll down. */
  html.motion .reel { height: var(--reel-h, 400vh); }
  html.motion .reel-sticky {
    position: sticky; top: var(--bar-h);
    height: calc(100vh - var(--bar-h));
    overflow: hidden; display: flex; align-items: center;
  }
  html.motion .reel-track {
    --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    max-width: none; margin: 0; width: max-content;
    padding-inline: var(--edge);
    display: flex; align-items: center; gap: clamp(96px, 10vw, 180px);
    will-change: transform;
  }
  html.motion .reel-project { display: flex; align-items: center; gap: clamp(40px, 4.5vw, 72px); }
  html.motion .reel-intro { width: clamp(280px, 26vw, 400px); flex: none; }
  html.motion .reel-shots { display: flex; gap: clamp(40px, 4.5vw, 72px); }
  html.motion .reel-shot { width: min(60vw, calc((100vh - var(--bar-h) - 190px) * 1.6)); flex: none; }
}

/* Phones: intro, then the project's screens as a swipe strip of phone frames. */
@media (max-width: 899px) {
  .reel-project { padding-inline: var(--gutter); }
  .reel-project + .reel-project { margin-top: 72px; }
  .reel-shots {
    margin: 28px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px;
    display: flex; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reel-shots::-webkit-scrollbar { display: none; }
  .reel-shot { flex: none; width: 62vw; max-width: 280px; scroll-snap-align: start; }
  .shot-frame { padding: 5px; border-radius: 34px; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 24px 40px -24px rgba(18, 26, 33, .28); } /* taste-skill-ignore: a phone */
  .shot-frame .screen-bar { display: none; }
  .shot-frame .island { display: block; top: 12px; height: 15px; }
  .shot-view { aspect-ratio: 390 / 844; border-radius: 29px; }
}

/* ---------- 4. What you get ---------- */
/* Light rows split by hairlines (studio default for facts), two columns from 900px. */
.included { padding-top: var(--flow); }
.included h2 { max-width: 17ch; }
@media (min-width: 900px) {
  /* Heading left, lead right on the heading's last line, so the top of the section uses the full width. */
  .included-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .included-head .chapter-lead { margin: 0 0 .4em; }
}
.included-list {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.included-list li {
  display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; align-content: start;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--border);
}
.included-list .icon { grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 3px; color: var(--accent); stroke-width: 1.8; }
.included-list h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.015em; }
.included-list p { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 40ch; }
@media (min-width: 900px) {
  .included-list { grid-template-columns: 1fr 1fr; }
  .included-list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 899px) {
  .included-list li:last-child { border-bottom: 1px solid var(--border); }
}

/* ---------- 5. How it works ---------- */
/* Sticky heading left (5), timeline right (7). The line fills with --progress (0–1) as you read. */
.how { padding-top: var(--flow); }
.how-grid { display: grid; grid-template-columns: 1fr; row-gap: 40px; }
.how-actions { margin-top: clamp(26px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.text-link { padding: 12px 0; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.how-steps { --progress: 1; position: relative; margin: 0; padding: 0; list-style: none; }
/* track + fill, centred on the 44px markers */
.how-steps::before, .how-steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
}
.how-steps::before { background: var(--border); }
.how-steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--progress)); }
.how-step { position: relative; padding: 0 0 clamp(48px, 6vw, 80px) 72px; }
.how-step:last-child { padding-bottom: 0; }
.marker {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--text-2); font-weight: 600; font-size: 16px;
  box-shadow: inset 0 0 0 2px var(--border-strong); /* taste-skill-ignore: a ring, not a shadow */
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.how-step.is-reached .marker { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore */
.how-step h3 { padding-top: 6px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.how-step p { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 44ch; }

/* Step 2: the real preview link, drawn as a message link preview. */
.link-card {
  margin-top: 22px; display: flex; flex-direction: column; overflow: hidden;
  width: min(100%, 360px); border-radius: 18px; background: var(--mist);
  transition: background-color .2s;
}
.link-card:hover { background: #E6ECF0; }
.link-card-img { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--ph-img); }
.link-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.link-card-text { display: grid; gap: 2px; padding: 12px 16px 14px; }
.link-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
.link-card-url { font-size: 14px; color: var(--text-2); }
.how-step .link-card-note { margin-top: 10px; font-size: 14px; }

@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); }
  .how h2 { font-size: clamp(32px, 3.6vw, 52px); }
  .how-sticky { position: sticky; top: calc(var(--bar-h) + 48px); }
  .how-steps { padding-top: 8px; }
}
/* With JS the line starts empty and fills as you read; without JS or with reduced motion it stays full. */
html.motion .how-steps { --progress: 0; }
html:not(.motion) .marker { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore */

/* ---------- 6. Pricing ---------- */
/* Three open columns; only the middle one is a filled (tinted) shape. No borders, no card shadows. */
.pricing { padding-top: var(--flow); }
.pricing-head { max-width: 640px; }
.plans {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.plan { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px) clamp(4px, 1vw, 12px); }
.plan-featured { padding-inline: clamp(24px, 2.6vw, 36px); border-radius: 28px; background: var(--tint); }
.plan h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.plan-line { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-amount { font-size: clamp(40px, 3.8vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 16px; color: var(--text-2); }
/* "Starting at" sits on its own line above the amount */
.plan-from { flex-basis: 100%; font-size: 15px; font-weight: 500; color: var(--text-2); }
.plan-monthly { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-list { margin-top: 26px; display: grid; gap: 12px; align-content: start; }
.plan-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-list .plan-base { font-weight: 600; }
.plan-btn { margin-top: auto; align-self: flex-start; }
.plan-featured .btn-outline { background: #fff; }

@media (min-width: 900px) {
  /* The three plans share the same six rows (subgrid), so names, prices, lists and buttons line up across. */
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); column-gap: clamp(12px, 2vw, 28px); row-gap: 0; }
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .plan-price { align-self: end; }
  .plan-list { margin-bottom: 32px; }
  .plan-btn { align-self: end; justify-self: start; }
}
@media (max-width: 899px) {
  .plan-list { margin-bottom: 26px; }
  .plan-btn { align-self: stretch; }
}

/* On computers an sms: link can lead nowhere, so the number is spelled out under the opening's buttons
   and under the plans. */
.desk-note { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .desk-note { display: block; margin-top: 28px; font-size: 15px; color: var(--text-2); }
  .desk-note a { color: var(--accent); font-weight: 600; }
  .hero-note { margin-top: 16px; }
}

/* ---------- 7. Picture your business here + contact ---------- */
html:not(.js) .js-only { display: none !important; }
.try { padding-top: var(--flow); }
.try-grid { display: grid; grid-template-columns: 1fr; }
.try-head { max-width: 620px; }

/* Desktop: heading + form on the left, the phone sketch on the right. Phones: heading, sketch, form. */
@media (min-width: 900px) {
  .try-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(48px, 7vw, 120px); }
  .try-head { grid-column: 1; grid-row: 1; }
  .try-main { grid-column: 1; grid-row: 2; }
  .try-stage { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

.field-label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.try-form { margin-top: clamp(28px, 3.4vw, 44px); max-width: 560px; }
.field {
  width: 100%; height: 58px; padding: 0 22px; border: 0; border-radius: 16px;
  background: var(--soft); color: var(--text);
  font: 500 18px/1 var(--font); letter-spacing: -0.005em;
  box-shadow: inset 0 0 0 1px var(--border); /* taste-skill-ignore: form field */
  transition: background-color .2s, box-shadow .2s;
}
.field::placeholder { color: #66717C; font-weight: 400; }
.field:hover { background: #F0F3F5; }
.field:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore */

.chips { margin: 24px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; float: left; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--mist); color: var(--text); font-size: 15px; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.chip:hover span { background: #E4EAEE; }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.try-actions { margin-top: clamp(28px, 3.4vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.try-actions .btn { max-width: 100%; }
.try-btn-name { display: inline-block; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.contact-rows { margin-top: clamp(36px, 4vw, 52px); max-width: 560px; }
.contact-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border); font-size: 17px;
}
.contact-rows li:last-child { border-bottom: 1px solid var(--border); }
.contact-rows span { color: var(--text-2); }
.contact-rows a { font-weight: 600; color: var(--accent); padding: 6px 0; }
.contact-rows a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The sketch: a tiny site drawn in its own colour (--site), set per trade by main.js. */
.try-stage { display: grid; justify-items: center; }
/* The phone frame is the size container, so cqw inside the screen (its own font-size included) follow the phone. */
.try-phone { position: relative; right: auto; bottom: auto; width: min(300px, 70vw); container-type: inline-size; }
.try-screen {
  --site: #0A6A93;
  background: #fff; color: var(--text);
  font-size: 4.4cqw; line-height: 1.35;
  display: flex; flex-direction: column;
}
.ts-bar { display: flex; align-items: center; gap: 2.6cqw; padding: 15cqw 5cqw 3cqw; }
.ts-badge {
  flex: none; width: 9cqw; height: 9cqw; display: grid; place-items: center; border-radius: 2.6cqw;
  background: var(--site); color: #fff; font-size: 3.6cqw; font-weight: 700; letter-spacing: .02em;
  transition: background-color .3s;
}
.ts-name { flex: 1; min-width: 0; font-weight: 700; font-size: 4.6cqw; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-lang { flex: none; font-size: 3cqw; font-weight: 600; color: var(--text-2); padding: 1cqw 2.4cqw; border-radius: 999px; background: var(--soft); }
.ts-hero {
  position: relative; height: 60cqw; margin: 1cqw 5cqw 0; border-radius: 4cqw; overflow: hidden;
  background: color-mix(in srgb, var(--site) 13%, #fff);
  transition: background-color .3s;
}
.ts-art {
  position: absolute; inset: 8% 6%; width: 88%; height: 84%;
  fill: none; stroke: var(--site); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity .35s var(--ease), stroke .3s;
}
.try-screen[data-trade="pool"] [data-art="pool"],
.try-screen[data-trade="contractor"] [data-art="contractor"],
.try-screen[data-trade="roofing"] [data-art="roofing"],
.try-screen[data-trade="phone"] [data-art="phone"],
.try-screen[data-trade="realestate"] [data-art="realestate"],
.try-screen[data-trade="other"] [data-art="other"] { opacity: 1; }
.ts-body { padding: 5cqw 5cqw 0; }
.ts-pill {
  display: inline-block; padding: 1cqw 3cqw; border-radius: 999px; font-size: 3.3cqw; font-weight: 600;
  background: color-mix(in srgb, var(--site) 12%, #fff); color: var(--site);
}
.ts-head { margin-top: 3.4cqw; font-size: 9.2cqw; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.ts-sub { margin-top: 3cqw; font-size: 4.2cqw; color: var(--text-2); }
.ts-review {
  margin-top: 6cqw; padding: 4cqw 4.6cqw; border-radius: 3.6cqw;
  background: color-mix(in srgb, var(--site) 8%, #fff); color: var(--text);
  font-size: 4.4cqw; font-weight: 500; line-height: 1.35; transition: background-color .3s;
}
.ts-stars { margin-top: 4cqw; display: flex; align-items: center; gap: 2cqw; font-size: 3.6cqw; color: var(--text-2); }
/* the sketch's own bottom bar, like the quote bar on a real client site */
.ts-bottom { margin-top: auto; padding: 3.4cqw 5cqw 7cqw; box-shadow: 0 -1px 0 var(--border); } /* taste-skill-ignore: drawn UI */
.try-screen .stars {
  display: inline-block; width: 18cqw; height: 3.4cqw; background: #E3A008;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 3.6cqw 3.4cqw repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 3.6cqw 3.4cqw repeat-x;
}
.ts-buttons { display: flex; gap: 2.4cqw; }
.ts-quote {
  flex: 1; display: grid; place-items: center; height: 12cqw; border-radius: 999px;
  background: var(--site); color: #fff; font-weight: 600; font-size: 4.2cqw; transition: background-color .3s;
}
.ts-call { flex: none; width: 12cqw; height: 12cqw; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border-strong); } /* taste-skill-ignore: a ring */
.ts-call .icon { width: 5cqw; height: 5cqw; }
.try-note { margin-top: 18px; max-width: 30ch; text-align: center; font-size: 14px; color: var(--text-2); }

@media (max-width: 899px) {
  .try-stage { margin-top: 32px; }
  .try-phone { width: min(230px, 60vw); padding: 6px; border-radius: 36px; }
  .try-phone .phone-screen { border-radius: 30px; }
  .try-phone .island { top: 11px; height: 15px; }
  .try-form { margin-top: 32px; }
  .try-actions .btn { flex: 1 1 auto; }
}

/* ---------- Footer ---------- */
.site-footer { padding: var(--flow) 0 clamp(32px, 4vw, 48px); }
.footer-mark {
  font-size: clamp(64px, 15.5vw, 236px); font-weight: 700; line-height: .9; letter-spacing: -0.055em;
  white-space: nowrap; margin-left: -0.04em;
}
.footer-mark .amp { color: var(--accent); font-weight: 500; }
.footer-row {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  font-size: 15px; color: var(--text-2);
}
.footer-row a { color: var(--text); font-weight: 500; }
.footer-row a:hover { color: var(--accent); }

/* ---------- Phone bar (<900px) ---------- */
.phone-bar { display: none; }

@media (max-width: 899px) {
  :root { --bar-h: 64px; }
  .topbar { background: #fff; box-shadow: 0 1px 0 var(--border); } /* taste-skill-ignore: sticky bar */
  .wordmark { font-size: 21px; }

  .opening { padding-top: calc(var(--bar-h) + 28px); padding-bottom: calc(var(--flow) * .6); }
  /* Phone order: headline, lead, buttons, then the devices, then the facts, so the work shows in the first screen. */
  .opening-grid { grid-template-columns: 1fr; gap: 0; }
  .opening h1 { font-size: clamp(34px, 9.4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
  .opening .lead, .opening .actions, .opening .facts, .opening .stage { grid-column: 1; grid-row: auto; }
  .lead { margin-top: 18px; font-size: 17px; line-height: 1.55; }
  .actions { margin-top: 24px; }
  .actions .btn { flex: 1 1 auto; }
  .stage { order: 1; margin-top: 36px; padding-bottom: 72px; }
  .facts { order: 2; margin-top: 8px; }
  .screen { width: calc(100% + var(--gutter) + 22vw); padding: 0 6px 6px; border-radius: 16px; }
  .screen-bar { height: 30px; }
  .url { height: 22px; font-size: 12px; padding: 0 10px; }
  .screen-view { border-radius: 10px; }
  .phone { right: 6%; width: 38vw; max-width: 220px; padding: 5px; border-radius: 34px; }
  .phone-screen { border-radius: 29px; }
  .island { top: 11px; height: 15px; }
  .stage-caption { bottom: 0; }
  .stage-caption a { font-size: 14px; }

  .phone-bar {
    position: fixed; inset: auto 0 0; z-index: 60;
    display: flex; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -1px 0 var(--border); /* taste-skill-ignore: sticky bar */
    transition: transform .35s var(--ease);
  }
  /* With JS, the bar waits until the opening's own buttons have scrolled away. */
  html.bar-ready .phone-bar:not(.is-visible) { transform: translateY(110%); }
  /* Free quote fills the bar; Book a call is a round email button beside it (like Navarro POOL's bar). */
  .phone-bar .btn { min-height: 52px; font-size: 16px; }
  .phone-bar .btn-primary { flex: 1 1 auto; min-width: 0; padding: 0 14px; gap: 8px; }
  .phone-bar .btn-outline { flex: none; width: 52px; padding: 0; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}


/* Section 2 on phones: the phone sticks under the top bar and the steps scroll up beneath it,
   one at a time, in the space between the phone and the bottom bar. */
@media (max-width: 899px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-head, .journey-stage, .journey-steps { grid-column: 1; grid-row: auto; }
  .journey-stage { position: sticky; top: var(--bar-h); z-index: 3; margin-top: 28px; }
  .journey-sticky {
    position: relative; top: auto; height: auto;
    padding: 12px 0 36px; background: #fff;
  }
  /* soft edge so steps slide under the phone instead of being cut by a line */
  .journey-sticky::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px;
    background: linear-gradient(#fff, rgba(255, 255, 255, 0)); /* taste-skill-ignore: neutral scrim */
  }
  .journey-phone { width: min(200px, calc((100svh - var(--bar-h)) * 0.48 * 0.462)); padding: 5px; border-radius: 30px; }
  .journey-phone .phone-screen { border-radius: 25px; }
  .journey-phone .island { top: 9px; height: 13px; }
  .jstep { min-height: 46svh; justify-content: flex-start; padding-top: 8px; max-width: none; }
  .jstep:last-child { min-height: 40svh; }
  .jstep h3 { font-size: 24px; }
  .jstep p { font-size: 17px; margin-top: 10px; }
}

/* ---------- Motion ---------- */
html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
