/* ============================================================
   Web Whittle — demo template stylesheet
   Themed per page via --accent / --accent-dark (set in each page head)
   ============================================================ */

:root {
  --accent: #2b6fd6;
  --accent-dark: #1b4fa3;
  --ink: #1a2233;
  --body: #41506b;
  /* --muted must clear WCAG AA (4.5:1) on BOTH #fff and --bg-soft; #6b7896
     only reached 4.15 on the tinted sections. This is 5.25 / 4.93. */
  --muted: #616c86;
  --line: #e6ebf3;
  --line-strong: #d4dced;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-tint: color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  /* Placeholder "photo" tiles. Deliberately NOT raw --accent: a light brand
     accent (yellow, mint, pale blue) would leave the white icon invisible.
     Mixing toward near-black guarantees the tile stays dark enough for
     full-opacity white art whatever the brand colour is. */
  --art-bg: color-mix(in srgb, var(--accent-dark) 72%, #0b1220);
  --art-fg: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 35, 70, 0.06);
  --shadow: 0 18px 44px rgba(20, 35, 70, 0.12);
  --maxw: 1140px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Anchor links (#services, #contact) otherwise land underneath the sticky nav. */
html { scroll-padding-top: 84px; scroll-padding-bottom: 84px; }
/* Must be `clip`, never `hidden`: overflow-x:hidden makes <body> a scroll container,
   which silently stops .demo-ribbon (position:sticky) from ever pinning. */
html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn--solid:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn--light { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--light:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--accent-dark); color: #fff; font-size: 0.85rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center; justify-content: space-between; padding: 0.5rem 1.4rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 620px) { .topbar__inner { justify-content: center; text-align: center; gap: 0.25rem 1rem; } }
/* On a phone the topbar wrapped to 3 lines (89px) of PLACEHOLDER contact
   details — the first thing a QR visitor saw. The same details appear in the
   contact section and footer, so the fold is worth more than the repetition. */
@media (max-width: 700px) { .topbar { display: none; } }

/* ---------- preview strip (personalised demos) ----------
   Replaces the old classless, inline-styled disclaimer banner (~230px on a
   phone). Says who made this and that nothing is published, in one compact
   line, with the long explanation behind a native <details> disclosure.
   The conversion CTA lives in the sticky ribbon, so it is hidden here on
   mobile rather than competing with it. */
.preview-strip { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, #fff); color: var(--accent-dark); }
.preview-strip__inner { max-width: var(--maxw); margin: 0 auto; padding: 0.5rem 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.9rem; font-size: 0.88rem; line-height: 1.45; }
.preview-strip__label { flex: 1 1 auto; font-weight: 600; }
.preview-strip__label strong { font-weight: 800; }
.preview-strip__more { flex: 1 1 100%; font-size: 0.84rem; }
.preview-strip__more summary { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0; cursor: pointer; font-weight: 600; list-style: none; text-decoration: underline; text-underline-offset: 2px; }
.preview-strip__more summary::-webkit-details-marker { display: none; }
.preview-strip__more summary::after { content: "+"; font-size: 1.05em; text-decoration: none; }
.preview-strip__more[open] summary::after { content: "\2212"; }
.preview-strip__more p { padding: 0 0 0.6rem; max-width: 68ch; font-weight: 500; }
.preview-strip__cta { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; padding: 0.4rem 0.95rem; border-radius: 999px; white-space: nowrap; }
.preview-strip__cta:hover { background: var(--accent); }
.preview-strip__cta svg { width: 14px; height: 14px; }
@media (max-width: 620px) {
  .preview-strip__inner { padding: 0.45rem 1.1rem; font-size: 0.84rem; }
  .preview-strip__cta { display: none; }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.4rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 1.4rem; list-style: none; font-weight: 500; font-size: 0.96rem; }
.nav__links a { color: var(--body); }
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 0.35rem; margin: -0.35rem; color: var(--ink); cursor: pointer; line-height: 0; }
.nav__toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0.5rem; margin: -0.5rem; }
  .nav__right { display: none; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.4rem 1.4rem 0.9rem;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links li:last-child a { border-bottom: 0; }
  /* Safety net: a template that ships without a .nav__toggle button would
     otherwise lose its navigation entirely below 860px (12 templates did).
     Without a button to open it, keep the menu visible as a wrapped row. */
  .nav__inner:not(:has(.nav__toggle)) .nav__links {
    display: flex; position: static; flex-direction: row; flex-wrap: wrap;
    gap: 0.15rem 1.1rem; background: none; border: 0; box-shadow: none;
    padding: 0; flex-basis: 100%; justify-content: center;
  }
  .nav__inner:not(:has(.nav__toggle)) { flex-wrap: wrap; }
  .nav__inner:not(:has(.nav__toggle)) .nav__links a { display: inline-block; padding: 0.45rem 0.2rem; border-bottom: 0; font-size: 0.95rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-tint); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.1rem; }
.kicker svg { flex: none; width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--ink); }
.hero h1 .hl { color: var(--accent); }
.hero__sub { margin: 1.2rem 0 1.8rem; font-size: 1.12rem; color: var(--body); max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.stat__label { font-size: 0.85rem; color: var(--muted); }

/* hero art */
.hero__art { position: relative; min-height: 360px; }
.art-card { position: relative; aspect-ratio: 4/4.4; border-radius: 26px; overflow: hidden; background: var(--art-bg); box-shadow: var(--shadow); display: grid; place-items: center; }
.art-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.16), transparent 42%), radial-gradient(circle at 80% 85%, rgba(0,0,0,0.18), transparent 45%); }
.art-card__icon { position: relative; z-index: 1; width: 44%; color: var(--art-fg); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }
.art-card__icon svg { width: 100%; height: auto; }
.art-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 0.85rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.art-chip svg { width: 16px; height: 16px; color: var(--accent); }
/* Anchored INSIDE the tile, one per corner. These were -4%/-6%, which floated the
   pills off the tile edge onto the page background and read as misplaced rather
   than layered. Bottom-left (not mid-left) keeps them clear of the centred logo. */
.art-chip--tl { top: 5%; left: 5%; }
.art-chip--br { bottom: 5%; right: 5%; }
.art-chip--bl { bottom: 5%; left: 5%; }
/* The two bottom chips share a row: cap them so they can never collide, and win
   over the per-page `.art-chip{max-width:46%}` overrides. */
.art-card .art-chip, .split__art .art-chip { max-width: 43%; }
/* Only where chips actually exist: keep a tall logo tile from reaching the corners
   and swallowing a chip (white pill on white tile). Median tile is 47% tall, so
   this is a no-op for all but the outliers. */
.art-card:has(.art-chip) .hero__logo-tile { max-height: 58%; }
.art-card:has(.art-chip) .hero__logo-tile img { max-height: 100%; object-fit: contain; }
/* Below ~360px the logo tile spans the full card, so chips have nowhere to sit
   without landing on it and wrapping their labels. They are garnish - drop them. */
@media (max-width: 360px) { .art-card .art-chip { display: none; } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__art { max-width: 420px; }
  .hero__sub { max-width: none; }
}

/* ---------- section heads ---------- */
.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section__sub { margin-top: 0.8rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.svc p { font-size: 0.96rem; color: var(--muted); }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
/* These tiles stand in for photos. They MUST carry their own solid background:
   with only the ::after overlay they inherited the near-white section behind
   them and the white icon/caption vanished (measured at 1.06:1). */
.gal { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; place-items: center; background: var(--art-bg); }
.gal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.16), transparent 45%), linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5)); }
.gal__icon { position: relative; z-index: 1; width: 34%; color: var(--art-fg); }
.gal__cap { position: absolute; z-index: 2; left: 0.9rem; right: 0.9rem; bottom: 0.8rem; color: #fff; font-weight: 600; font-size: 0.92rem; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
@media (max-width: 760px) { .gal-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- features (split) ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.feat-list { display: grid; gap: 1.3rem; }
.feat { display: flex; gap: 1rem; }
.feat__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat__icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feat p { font-size: 0.95rem; color: var(--muted); }
.split__art { aspect-ratio: 5/4.4; border-radius: var(--radius); background: var(--art-bg); position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.split__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.16), transparent 45%); }
.split__art svg { position: relative; z-index: 1; width: 42%; color: var(--art-fg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split__art { max-width: 460px; } }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); position: relative; }
.price--feat { border-color: var(--accent); box-shadow: var(--shadow); }
.price__flag { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; }
.price__name { font-size: 1.2rem; margin-bottom: 0.3rem; }
.price__amt { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--ink); }
.price__amt span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price__list { list-style: none; margin: 1.3rem 0; display: grid; gap: 0.7rem; }
.price__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--body); }
.price__list svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.price .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); }
.quote__stars { display: flex; gap: 2px; color: #f5b301; margin-bottom: 0.8rem; }
.quote__stars svg { width: 18px; height: 18px; }
.quote__text { color: var(--body); font-size: 0.98rem; margin-bottom: 1.2rem; }
.quote__who { display: flex; align-items: center; gap: 0.7rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-size: 0.95rem; }
.quote__name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.quote__role { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.1rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.6rem; }
.info-row { display: flex; gap: 0.85rem; margin-bottom: 1.3rem; }
.info-row__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.info-row__icon svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 0.15rem; }
.info-row p { font-size: 0.95rem; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; }
.form__msg { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 0.95rem; }
.form__msg.show { display: block; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18), transparent 40%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta-band p { margin: 0.7rem auto 1.6rem; max-width: 50ch; opacity: 0.95; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c7d0e0; padding: 3.4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer .brand { color: #fff; margin-bottom: 0.9rem; }
.footer p { font-size: 0.92rem; color: #9fabc4; max-width: 32ch; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer ul a { color: #b9c3d8; font-size: 0.92rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; font-size: 0.85rem; color: #8b97b0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- demo ribbon ----------
   The persistent conversion surface. Context now lives in .preview-strip at
   the top, so this stays conversion-only: one line, one clear action, no
   competing links next to the CTA on a phone.
   Keep `position: sticky` — an inline `position: relative` override silently
   un-sticks the primary CTA. */
.demo-ribbon { position: sticky; bottom: 0; z-index: 60; background: #11182a; color: #fff; padding-bottom: env(safe-area-inset-bottom); }
.demo-ribbon__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: center; text-align: center; padding: 0.5rem 1.4rem; font-size: 0.9rem; }
.demo-ribbon strong { color: #fff; }
.demo-ribbon a:not(.demo-ribbon__cta) { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.demo-ribbon a:not(.demo-ribbon__cta) svg { width: 14px; height: 14px; vertical-align: middle; }
.demo-ribbon .ww { display: inline-flex; align-items: center; gap: 0.4rem; }
/* Primary revenue action: was 29px tall because every page styled it inline. */
.demo-ribbon__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.5rem 1.25rem; border-radius: 999px;
  background: #fff; color: #11182a; font-family: var(--font-display);
  font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.demo-ribbon__cta:hover { background: #f1f5ff; text-decoration: none; }
.demo-ribbon__cta svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .demo-ribbon__inner { flex-wrap: nowrap; gap: 0.5rem 0.7rem; padding: 0.45rem 1rem; font-size: 0.85rem; }
  /* keep it a single row: context is already in the preview strip */
  .demo-ribbon__desc, .demo-ribbon__sep, .demo-ribbon__more, .demo-ribbon__email { display: none; }
  /* the label yields, the CTA never does - a wrapped ribbon costs 30px of screen */
  .demo-ribbon .ww { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.82rem; }
  .demo-ribbon .ww strong { overflow: hidden; text-overflow: ellipsis; }
  .demo-ribbon__cta { flex: none; padding: 0.5rem 0.95rem; font-size: 0.88rem; }
}
@media (max-width: 380px) { .demo-ribbon .ww { display: none; } }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: var(--shadow-sm); }
.step__num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.94rem; color: var(--muted); }
.steps--rail .step { border-left: 4px solid var(--accent); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- trust / stat band ---------- */
.trust-band { background: var(--accent-dark); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.trust__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.trust__label { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.trust__item + .trust__item {}
@media (max-width: 640px) { .trust-band { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; } }

/* ---------- coverage chips ---------- */
.coverage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 0.92rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 26%, #fff); }
.chip svg { width: 15px; height: 15px; color: var(--accent); }
.coverage__map { aspect-ratio: 5/4; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, #fff); position: relative; overflow: hidden; display: grid; place-items: center; }
.coverage__map svg { width: 40%; color: var(--accent); }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; gap: 1.8rem; } .coverage__map { max-width: 440px; } }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ba { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba__half { aspect-ratio: 1/1; display: grid; place-items: center; position: relative; }
.ba__half--before { background: var(--bg-soft); color: var(--muted); }
.ba__half--after { background: var(--accent); color: #fff; }
.ba__half span { position: absolute; top: 0.5rem; left: 0.5rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ba__half svg { width: 34%; }
.ba__cap { padding: 0.9rem 1rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; background: #fff; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ---------- accessibility & input ---------- */
/* There were no focus styles anywhere; .field even removed the UA outline.
   Two-tone ring so it stays visible on white, tinted and branded backgrounds. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85);
}
.demo-ribbon :focus-visible, .footer :focus-visible, .topbar :focus-visible, .cta-band :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.55);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-radius: 10px; }

/* Priority tap targets (>=44px). Deliberately NOT every link — enlarging the
   footer/topbar rows would just reclaim the vertical space we saved. */
@media (max-width: 860px) {
  .btn { min-height: 44px; }
  .faq-item summary { min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 44px; }
  .footer ul a, .topbar a { display: inline-block; padding: 0.35rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .svc:hover { transform: none; }
}

/* Hover lifts are meaningless on touch and can stick after a tap. */
@media (hover: none) {
  .btn:hover, .svc:hover { transform: none; }
}
