/* TechCellence site styles (V3)
   Colours: change the values in :root (light) and in the dark block below. Every first visit is light; the sun/moon
   switch turns dark on, and the choice is remembered from page to page. */

@font-face {
  font-family: "Archivo";
  src: url(assets/fonts/archivo-latin-standard-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-a: #d4f5e8;            /* background shifts slowly between these two */
  --bg-b: #f7fbf9;
  --band: rgba(255, 255, 255, .45);
  --surface: #ffffff;
  --surface-2: #eef6f2;
  --ink: #0f1f1b;
  --muted: #4a5f59;
  --line: #d3e1db;
  --brand: #08786a;
  --brand-strong: #065f54;
  --brand-ink: #ffffff;
  --brand-soft: #d4f3ea;
  --brand-text: #08786a;
  --gold: #c9921c;
  --gold-strong: #b07c0c;
  --gold-text: #8a5c00;
  --gold-soft: #fbf0d2;
  --gold-ink: #2b1d00;
  --premium: #012527;
  --premium-2: #0b3236;
  --premium-ink: #f8f5ee;
  --premium-muted: #c5bda8;
  --gold-on-premium: #e7b551;
  --cta-bg: #086a5e;
  --cta-ink: #ffffff;
  --chat-bg: #f0ebdc;
  --bubble-in: #ffffff;
  --bubble-out: #bcebd1;
  --bubble-time: #4a5f59;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(7, 31, 32, .06), 0 8px 24px -12px rgba(7, 31, 32, .16);
  --shadow-lg: 0 2px 4px rgba(7, 31, 32, .05), 0 24px 48px -22px rgba(7, 31, 32, .26);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 116%;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1160px;
  --max-header: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-a: #022621;
  --bg-b: #051214;
  --band: rgba(255, 255, 255, .02);
  --surface: #0d2324;
  --surface-2: #132d2e;
  --ink: #e5efec;
  --muted: #9db1ab;
  --line: #26393a;
  --brand: #33d1af;
  --brand-strong: #5fe0c4;
  --brand-ink: #052420;
  --brand-soft: #0a2d29;
  --brand-text: #33d1af;
  --gold: #e3b341;
  --gold-strong: #f0c45c;
  --gold-text: #e7b551;
  --gold-soft: #3b2b0d;
  --gold-ink: #2b1d00;
  --premium: #1f1b10;
  --premium-2: #2a2414;
  --premium-ink: #f8f5ee;
  --premium-muted: #c9bfa5;
  --gold-on-premium: #e7b551;
  --cta-bg: #0b3a34;
  --cta-ink: #e5efec;
  --chat-bg: #0f1d1e;
  --bubble-in: #223132;
  --bubble-out: #094e3e;
  --bubble-time: #b9ccc6;
  --danger: #ff9a8f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 50px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg-b);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* The slowly shifting background. Everything on top of it is flat. */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(155deg, var(--bg-a) 0%, var(--bg-a) 34%, transparent 88%);
  animation: bg-shift 26s ease-in-out infinite alternate;
}
@keyframes bg-shift {
  from { opacity: .25; transform: translate3d(-3%, -2%, 0); }
  to { opacity: 1; transform: translate3d(3%, 2%, 0); }
}

img, video { max-width: 100%; display: block; }
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-stretch: var(--wide);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--band { background: var(--band); border-block: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 42rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* Small teal label above section headings */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-text);
  line-height: 1.4;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 650;
}
.skip:focus { left: 8px; }

/* Sections fade in gently as they come into view (only things that start below the screen) */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.is-pending { opacity: 0; transform: translateY(16px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: .85em 1.35em; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn--small { padding: .6em 1.05em; font-size: .95rem; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-strong); color: var(--gold-ink); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; text-decoration: none; }
.text-link .icon { width: 1em; height: 1em; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; }
/* Websites "How you pay": Build | Build + care side by side, so it reads as one or the other */
.pay-choice { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 16px; margin: 14px 0 18px; }
.pay-choice strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.pay-choice span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.pay-or { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; width: 1px; background: var(--line); }
.pay-or b { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.t-brand { color: var(--brand-text); font-weight: 650; white-space: nowrap; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-b) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner {
  width: min(100% - 2 * clamp(14px, 2.2vw, 28px), var(--max-header));
  margin-inline: auto;
  display: flex; align-items: center; gap: 20px; height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; padding: 6px 0; border-radius: 8px; }
.brand img { height: 26px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 550;
  padding: 8px 13px; border-radius: 10px; font-size: .97rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav a.nav-gold { color: var(--gold-text); }
.nav a.nav-gold:hover, .nav a.nav-gold[aria-current="page"] { color: var(--gold-text); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.menu-toggle { display: none; }

/* Sliding light/dark switch */
.theme-switch {
  position: relative; flex: none;
  width: 60px; height: 32px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted);
  cursor: pointer;
}
.theme-switch .ts-icon { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; transition: color .2s ease, opacity .2s ease; }
.theme-switch .ts-sun { left: 8px; }
.theme-switch .ts-moon { right: 8px; }
.theme-switch .ts-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s cubic-bezier(.3, .7, .3, 1);
}
.theme-switch[aria-checked="true"] .ts-thumb { transform: translateX(28px); }
.theme-switch[aria-checked="false"] .ts-sun { color: var(--gold-text); }
.theme-switch[aria-checked="true"] .ts-moon { color: var(--brand); }
.theme-switch .ts-thumb { z-index: 0; }
.theme-switch .ts-icon { z-index: 1; }
.theme-switch:hover { border-color: var(--brand); }

@media (max-width: 1100px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--bg-b); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.02rem; }
  .menu-toggle {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .menu-toggle .icon { width: 20px; height: 20px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .header-actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 400px) {
  .brand img { height: 22px; }
}
@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .brand img { height: 18px; }
  .header-actions { gap: 8px; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 30px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks .icon { width: 17px; height: 17px; color: var(--brand); }
/* The guarantee under the headline (Home and Battery campaign) */
.hero-promise { color: var(--ink); font-weight: 650; font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.45; max-width: 34em; margin: 0 0 8px; }
.hero .lead.hero-promise { color: var(--ink); margin-bottom: 8px; }
.hero-small { color: var(--muted); font-size: 1rem; margin: 0 0 6px; }
.hero-terms { margin: 0 0 26px; }
.hero-terms .text-link { font-size: .97rem; }
.hero-after { color: var(--muted); font-size: .93rem; margin: 12px 0 0; max-width: 34em; }

/* Top section on service pages: text left, how-you-pay panel right */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero--plain .wrap { display: block; }
@media (max-width: 900px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Cards and panels ---------- */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.panel { padding: clamp(22px, 3vw, 32px); }
.panel h3 { margin-bottom: 12px; }
.panel--brand { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
/* Cards and panels rise slightly on hover, like the "Three steps" cards. Not the privacy page's text card, the FAQ,
   the plan cards, the demo panel or the booking calendar (those aren't .card/.panel, or are excluded here). */
@media (hover: hover) {
  .card:not(.prose-card), .panel { transition: transform .3s ease, box-shadow .3s ease, border-color .15s ease; }
  .card:not(.prose-card):hover, .panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* How you pay */
.pay-panel .eyebrow { margin-bottom: 4px; }
.pay-title { font-size: 1.15rem; font-weight: 750; font-stretch: var(--wide); margin: 0 0 14px; }
.pay-list { list-style: none; padding: 0; margin: 0; }
.pay-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.pay-list li:first-child { border-top: 0; padding-top: 4px; }
.pay-list .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.pay-list strong { display: block; font-weight: 700; line-height: 1.35; }
.pay-list span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.45; margin-top: 3px; }
.pay-list .guarantee-chip { display: inline-flex; color: var(--brand-text); font-size: .74rem; line-height: 1.4; margin: 0 0 6px; }
.pay-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 650; font-size: .95rem; }
.pay-panel .btn { width: 100%; margin-top: 18px; }
.guarantee-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-text); background: var(--brand-soft);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
}

/* Gold version (Complete package) */
.pay-panel--gold { border: 2px solid var(--gold); position: relative; }
.pay-panel--gold .pay-list .icon { color: var(--gold-text); }
.pay-panel--gold .eyebrow { color: var(--gold-text); }
.pay-panel--gold .pay-list .guarantee-chip { color: var(--gold-text); background: var(--gold-soft); }
.page-hero--gold .eyebrow { color: var(--gold-text); }
.page-hero--gold { background: color-mix(in srgb, var(--gold-soft) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }

/* ---------- Phone + chat mock ---------- */
.phone-wrap { position: relative; width: min(100%, 360px); margin-inline: auto; }
.example-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 14px;
}
.example-label b { color: var(--brand-text); font-weight: 750; }
.phone-wrap > .example-label { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; box-shadow: var(--shadow); }
.phone {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg);
}
.phone-screen { background: var(--chat-bg); border-radius: 29px; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.chat-name { font-weight: 700; font-size: .93rem; line-height: 1.2; }
.chat-sub { font-size: .74rem; color: var(--muted); }
.chat { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .84rem; line-height: 1.42; }
.chat-stamp { align-self: center; font-size: .7rem; font-weight: 650; color: var(--muted); margin: 2px 0; }
.bubble { max-width: 86%; padding: 7px 10px 5px; border-radius: 14px; background: var(--bubble-in); color: var(--ink); }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 5px; }
.bubble u { text-underline-offset: 2px; color: var(--brand-text); }
.bubble time { display: block; text-align: right; font-size: .66rem; color: var(--bubble-time); margin-top: 2px; }
.bubble--in { align-self: flex-start; border-top-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.bubble-who { display: block; font-size: .68rem; font-weight: 750; color: var(--brand-text); margin-bottom: 2px; letter-spacing: .01em; }
.chat-choice { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chat-choice span { border: 1px solid var(--brand); color: var(--brand-text); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .76rem; font-weight: 650; }
.chat-choice span.is-picked { background: var(--brand); color: var(--brand-ink); }
/* The hero phone's three times fit on one row (they wrap only on the narrowest phones) */
.phone .chat-choice { gap: 4px; }
.phone .chat-choice span { font-size: .66rem; padding: 4px 7px; }
.reply-timer {
  align-self: center; font-size: .72rem; font-weight: 650; color: var(--brand-text);
  background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px;
}
.booked-card { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.booked-card .icon { width: 24px; height: 24px; color: var(--brand); }
.booked-card strong { display: block; font-size: .86rem; }
.booked-card span { display: block; font-size: .76rem; color: var(--muted); }

/* The hero chat plays once on load */
.chat--play > * { opacity: 0; transform: translateY(6px); animation: msg-in .45s ease forwards; animation-delay: var(--d, 0s); }
.chat--play .is-picked { animation: chip-pick .3s ease forwards; animation-delay: var(--p, 0s); background: var(--surface); color: var(--brand-text); }
/* Phones: the hero conversation shows only the first text, the reply and the "Survey booked" card */
@media (max-width: 640px) {
  .phone .is-extra { display: none; }
  .phone .chat--play > .booked-card { animation-delay: 2.4s; }
}
@keyframes msg-in { to { opacity: 1; transform: none; } }
@keyframes chip-pick { to { background: var(--brand); color: var(--brand-ink); } }

/* ---------- Problem cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.problem { padding: 26px; display: flex; flex-direction: column; }
.icon-tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 18px; }
.icon-tile .icon { width: 21px; height: 21px; }
.problem h3 { font-size: 1.15rem; }
.problem p { color: var(--muted); margin: 0 0 18px; font-size: .98rem; }
.problem .text-link { margin-top: auto; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Grant strip and grant boxes ---------- */
.grant-strip { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.grant-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.grant-strip h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.grant-strip-head p { color: var(--muted); font-size: .95rem; margin: 0; }
.grant-tile { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.grant-name { font-weight: 700; font-size: .95rem; color: var(--muted); }
.grant-figure { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.grant-for { color: var(--muted); font-size: .95rem; margin: 2px 0 14px; }
.grant-tile .text-link { margin-top: auto; }
.date-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 650; color: var(--brand-text);
  background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.source-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 960px) { .grant-strip { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grant-tiles { grid-template-columns: 1fr; } }

.grant-box .checklist { margin-top: 4px; }
.grant-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grant-box-grid h3 { font-size: 1.05rem; margin-bottom: 10px; }
@media (max-width: 760px) { .grant-box-grid { grid-template-columns: 1fr; } }

/* ---------- Demo section ---------- */
/* One panel split by a slanted line: "Watch" (the video itself, shown small) | "Try it" (the chat itself, shown small).
   Choosing a side grows that same box to full size; there is never a second copy to swap in. */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }
@property --ucap { syntax: "<length>"; inherits: true; initial-value: 16px; }
.demo { --demo-ease: cubic-bezier(.3, .7, .3, 1); position: relative; max-width: 1160px; margin-inline: auto; }
.demo-panel {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.demo-half { position: relative; }
.demo-label {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}
.demo-label .icon { width: 14px; height: 14px; color: var(--brand); }
.demo-video { position: relative; aspect-ratio: 16 / 9; background: #0a1311; overflow: hidden; container-type: inline-size; }
.demo-video video { width: 100%; height: 100%; object-fit: cover; background: #0a1311; }
.demo-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer;
  border-radius: 0;
}
/* The play button keeps its size in step with the video (small in the split view, full size when chosen) */
.demo-play-btn {
  width: clamp(48px, 8.2cqi, 76px); height: clamp(48px, 8.2cqi, 76px); border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55);
  transition: transform .2s ease, background-color .2s ease;
}
.demo-play-btn .icon { width: 40%; height: 40%; margin-left: 6%; }
.demo-play:hover .demo-play-btn { transform: scale(1.06); background: var(--brand-strong); }
.demo-play:focus-visible { outline-offset: -6px; border-radius: 24px; }
.demo-play[hidden] { display: none; }
.demo-caption { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.demo-back {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  display: none; align-items: center; gap: 6px;
  font: inherit; font-size: .88rem; font-weight: 650;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  padding: 7px 13px 7px 10px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow);
}
.demo-back .icon { width: 16px; height: 16px; }
.demo-back:hover { border-color: var(--brand); }
.demo.is-playing .demo-label { opacity: 0; }

/* Watch only (if the chat is switched off with data-try="off"): the video fills the panel */
.demo[data-try="off"] .demo-half--try,
.demo[data-try="off"] .demo-select,
.demo[data-try="off"] .demo-half-text { display: none; }

/* Split view */
/* --both-h (main.js): the split view's own height, so pointing at a side or choosing one never makes the panel dip */
.demo[data-try="on"] .demo-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: max(460px, var(--both-h, 0px)); transition: grid-template-columns .5s var(--demo-ease); }
.demo[data-try="on"] .demo-half {
  display: flex; flex-direction: column; justify-content: center; padding: 64px 28px 28px; min-width: 0;
  transition: opacity .35s ease, visibility 0s, padding .5s var(--demo-ease), margin .5s var(--demo-ease), clip-path .5s var(--demo-ease);
}
.demo[data-try="on"] .demo-half--watch { background: var(--surface); z-index: 2; margin-right: -40px; padding-right: 64px; clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%); }
.demo[data-try="on"] .demo-half--try { background: var(--surface-2); padding-left: 64px; }
.demo[data-try="on"] .demo-video { border-radius: 16px; box-shadow: var(--shadow); transition: border-radius .5s var(--demo-ease), box-shadow .5s var(--demo-ease); }
.demo-select {
  position: absolute; inset: 0; z-index: 5;
  border: 0; margin: 0; padding: 0; background: transparent; cursor: pointer;
}
.demo-select:focus-visible { outline-offset: -6px; border-radius: 20px; }
.demo-half-text { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.demo[data-try="on"] .demo-half-text { max-height: 4.5em; overflow: hidden; transition: opacity .3s ease, max-height .5s var(--demo-ease), margin .5s var(--demo-ease); }
.demo[data-try="on"] .bot-note { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: opacity .3s ease, max-height .5s var(--demo-ease), margin .5s var(--demo-ease); }

@media (hover: hover) and (min-width: 761px) {
  .demo[data-try="on"][data-view="both"] .demo-panel:has(.demo-half--watch:hover) { grid-template-columns: 1.35fr .65fr; }
  .demo[data-try="on"][data-view="both"] .demo-panel:has(.demo-half--try:hover) { grid-template-columns: .65fr 1.35fr; }
  .demo[data-try="on"][data-view="both"] .demo-panel:has(.demo-half--try:hover) .demo-try-live { --ucap: var(--ucap-hover, var(--ucap-both, 8px)); }
}

/* A side was chosen: it widens to fill the panel and straightens its edge, while the other side fades out */
.demo[data-try="on"][data-view="watch"] .demo-panel { grid-template-columns: 1fr 0fr; }
.demo[data-try="on"][data-view="try"] .demo-panel { grid-template-columns: 0fr 1fr; }
.demo[data-try="on"][data-view="watch"] .demo-half--try,
.demo[data-try="on"][data-view="try"] .demo-half--watch {
  opacity: 0; visibility: hidden; padding-left: 0; padding-right: 0; pointer-events: none; overflow: hidden;
  transition: opacity .35s ease, visibility 0s .35s, padding .5s var(--demo-ease), margin .5s var(--demo-ease), clip-path .5s var(--demo-ease);
}
.demo[data-try="on"][data-view="watch"] .demo-half--watch { margin-right: 0; padding: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.demo[data-try="on"][data-view="watch"] .demo-video { border-radius: 0; box-shadow: none; }
.demo[data-try="on"][data-view="try"] .demo-half--watch { margin-right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.demo[data-try="on"][data-view="try"] .demo-half--try { padding-left: 28px; }
.demo[data-try="on"]:not([data-view="both"]) .demo-half-text { opacity: 0; max-height: 0; margin-top: 0; }
.demo[data-try="on"][data-view="try"] .bot-note { max-height: 6em; opacity: 1; margin-top: 10px; }
.demo[data-try="on"]:not([data-view="both"]) .demo-back { display: inline-flex; }
.demo[data-try="on"]:not([data-view="both"]) .demo-select { display: none; }

/* Phones: the halves stack, with the slanted line running across. Choosing a side fades the other away. */
@media (max-width: 760px) {
  .demo[data-try="on"] .demo-panel { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .demo[data-try="on"] .demo-half { transition: opacity .35s ease, visibility 0s; }
  .demo[data-try="on"] .demo-half--watch { margin: 0 0 -28px; padding: 58px 18px 52px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .demo[data-try="on"] .demo-half--try { padding: 52px 18px 22px; }
  .demo[data-try="on"] .demo-video, .demo[data-try="on"] .demo-half-text, .demo[data-try="on"] .bot-note { transition: none; }
  .demo[data-try="on"][data-view="watch"] .demo-panel, .demo[data-try="on"][data-view="try"] .demo-panel { grid-template-columns: 1fr; }
  .demo[data-try="on"][data-view="watch"] .demo-half--try,
  .demo[data-try="on"][data-view="try"] .demo-half--watch { display: none; }
  .demo[data-try="on"][data-view="watch"] .demo-half--watch { margin: 0; padding: 0; clip-path: none; }
  .demo[data-try="on"][data-view="try"] .demo-half--try { padding: 52px 18px 22px; }
  .demo[data-try="on"]:not([data-view="both"]) .demo-label { display: none; }
}

/* Without JavaScript the chat can't run: the video shows on its own, with its normal controls */
.no-js .demo[data-try="on"] .demo-panel { display: block; min-height: 0; }
.no-js .demo[data-try="on"] .demo-half--watch { display: block; margin: 0; padding: 0; clip-path: none; }
.no-js .demo[data-try="on"] .demo-video { border-radius: 0; box-shadow: none; }
.no-js .demo[data-try="on"] .demo-half--try,
.no-js .demo[data-try="on"] .demo-select,
.no-js .demo[data-try="on"] .demo-half-text { display: none; }

/* ---------- Demo chat (Try it) ----------
   Every size inside the chat is in --u units: 1 px at full size. On computers --u shrinks with the width of the
   "Try it" side (and is capped by --ucap in the split view), so in the split view the chat is drawn as a small
   copy of itself and grows smoothly into the full chat. main.js sets --r (16 ÷ the chat's full width) and --hb
   (the message area's full height in px) when the page loads and when the window is resized. */
.demo-try-live { container-type: inline-size; width: 100%; max-width: 800px; margin-inline: auto; }
.bot {
  --u: 1px;
  width: 100%; margin-inline: auto; font-size: calc(16 * var(--u));
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(22 * var(--u));
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 761px) {
  .demo[data-try="on"] .demo-try-live { --ucap: var(--umax, 16px); max-width: none; transition: --ucap .5s var(--demo-ease); }
  .demo[data-try="on"]:not([data-view="try"]) .demo-try-live { --ucap: var(--ucap-both, 8px); }
  .demo[data-try="on"] .bot { --u: calc(min(var(--umax, 16px), 100cqi * var(--r, .02), var(--ucap)) / 16); width: calc(var(--fw, 800) * var(--u)); }
}
.bot:focus { outline: none; }
.bot-head { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-bottom: 1px solid var(--line); }
.bot .chat-avatar { width: calc(34 * var(--u)); height: calc(34 * var(--u)); font-size: calc(12.8 * var(--u)); }
.bot-name { margin: 0; font-weight: 700; font-size: calc(15.2 * var(--u)); line-height: 1.25; }
.bot-label { display: inline-block; margin-top: calc(3 * var(--u)); font-size: calc(11.84 * var(--u)); font-weight: 650; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: calc(1 * var(--u)) calc(8 * var(--u)); line-height: 1.5; }
.bot-label b { color: var(--brand-text); font-weight: 750; }
.bot-body {
  background: var(--chat-bg); height: clamp(380px, 60vh, 546px); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u));
  display: flex; flex-direction: column; gap: calc(8 * var(--u)); font-size: calc(14.4 * var(--u)); line-height: 1.45;
}
@media (min-width: 761px) { .demo[data-try="on"] .bot-body { height: calc(var(--hb, 546) * var(--u)); } }
.bot-body:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 0; }
.bot-scene { background: var(--surface); border: 1px dashed var(--line); border-radius: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(11 * var(--u)); font-size: calc(13.44 * var(--u)); color: var(--muted); }
.bot-scene > p { margin: 0 0 calc(8 * var(--u)); }
.bot-scene .bubble { max-width: 100%; color: var(--ink); border: 1px solid var(--line); }
.bot .bubble { padding: calc(7 * var(--u)) calc(10 * var(--u)) calc(5 * var(--u)); border-radius: calc(14 * var(--u)); }
.bot .bubble--in { border-top-left-radius: calc(4 * var(--u)); }
.bot .bubble--out { border-top-right-radius: calc(4 * var(--u)); }
.bot .bubble p + p { margin-top: calc(5 * var(--u)); }
.bot .bubble-who { font-size: calc(10.88 * var(--u)); margin-bottom: calc(2 * var(--u)); }
.bot-log { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.bot-log .bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-starters { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); justify-content: flex-end; }
.bot-starters[hidden] { display: none; }
.bot .chat-choice { gap: calc(6 * var(--u)); }
.bot-starters button, .bot-times button {
  font: inherit; font-size: calc(13.44 * var(--u)); font-weight: 650; line-height: 1.3;
  border: 1px solid var(--brand); color: var(--brand-text); background: var(--surface);
  border-radius: 999px; padding: calc(6 * var(--u)) calc(12 * var(--u)); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.bot-starters button:hover, .bot-times button:not(:disabled):hover { background: var(--brand-soft); }
.bot-times button.is-picked { background: var(--brand); color: var(--brand-ink); }
.bot-times button:disabled { cursor: default; }
.bot-times button:disabled:not(.is-picked) { opacity: .55; }
.bot .booked-card { border-radius: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); gap: calc(10 * var(--u)); }
.bot .booked-card .icon { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.bot .booked-card strong { font-size: calc(13.76 * var(--u)); }
.bot .booked-card span { font-size: calc(12.16 * var(--u)); }
.bot-booked { margin-top: calc(2 * var(--u)); }
.bot-booked span + span { margin-top: calc(3 * var(--u)); }
.bot .bot-booked .bot-booked-time { color: var(--ink); font-weight: 650; font-size: calc(13.12 * var(--u)); }
.bot-call { align-self: flex-start; }
.bot .btn { font-size: calc(16 * var(--u)); border-radius: calc(12 * var(--u)); }
.bot .btn--small { font-size: calc(15.2 * var(--u)); }
.bot-break, .bot-end { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
.bot-break p, .bot-end p { margin: 0 0 calc(10 * var(--u)); }
.bot-break-actions { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); }
.bot-end { text-align: center; border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); padding: calc(16 * var(--u)) calc(14 * var(--u)); }
.bot-end p { font-weight: 700; font-size: calc(16 * var(--u)); }
.bot-typing { display: inline-flex; gap: calc(4 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); }
.bot-typing span { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--muted); opacity: .4; animation: bot-dot 1s infinite ease-in-out; }
.bot-typing span:nth-child(2) { animation-delay: .15s; }
.bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bot-dot { 0%, 80%, 100% { transform: none; opacity: .35; } 40% { transform: translateY(-3px); opacity: .9; } }
.bot-form { display: flex; align-items: flex-end; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(6 * var(--u)); border-top: 1px solid var(--line); background: var(--surface); }
.bot-input {
  flex: 1; min-width: 0; resize: none; display: block;
  font: inherit; font-size: calc(16 * var(--u)); line-height: 1.4; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: calc(18 * var(--u));
  padding: calc(9 * var(--u)) calc(14 * var(--u)); max-height: calc(132 * var(--u)); overflow-y: hidden;
}
.bot-input::placeholder { color: var(--muted); opacity: 1; }
/* No scroll bar in the message box: it still scrolls by touch, wheel and keyboard once a long message fills it */
.bot-input { scrollbar-width: none; }
.bot-input::-webkit-scrollbar { display: none; }
.bot-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: calc(18 * var(--u)); }
.bot-input:disabled { opacity: .6; }
.bot-send { flex: none; width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, opacity .15s ease; }
.bot-send:hover { background: var(--brand-strong); }
.bot-send[aria-disabled="true"] { opacity: .45; cursor: default; background: var(--brand); }
.bot-send .icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); margin: calc(1 * var(--u)) calc(2 * var(--u)) 0 0; }
.bot-send:focus-visible { border-radius: 50%; }
.bot-hint { margin: 0; padding: 0 calc(16 * var(--u)) calc(4 * var(--u)); font-size: calc(12.8 * var(--u)); color: var(--danger); background: var(--surface); }
.bot-hint:empty { display: none; }
.bot-meta { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); padding: calc(2 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); font-size: calc(12.48 * var(--u)); color: var(--muted); background: var(--surface); }
.bot-chars.is-over { color: var(--danger); font-weight: 650; }
/* "Start again" in the open chat: a fresh demo with 10 messages (the 40-a-day limit per connection still applies) */
.bot-reset { margin-left: auto; font: inherit; font-weight: 650; color: var(--brand-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: calc(3 * var(--u)); }
.bot-reset:hover { color: var(--brand-strong); }
.bot-reset:disabled { opacity: .5; cursor: default; }
.bot-reset[hidden] { display: none; }
.bot-note { max-width: 800px; margin: 10px auto 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .bot-typing span { animation: none; opacity: .6; } }
@media (max-width: 760px) {
  .bot-body { height: clamp(340px, 62vh, 546px); padding: 10px 10px 12px; }
  .bot-head { padding: 10px 12px; }
  /* In the stacked split view the chat shows as a short window; choosing "Try it" opens it to full height */
  .demo[data-try="on"][data-view="both"] .bot-body { height: 160px; overflow: hidden; }
}

/* ---------- Plan cards ---------- */
.plans { display: flex; gap: 16px; align-items: stretch; }
.plan {
  flex: 1 1 0; min-width: 0;
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  /* A short pause before a card opens or closes, so a mouse passing over quickly changes nothing */
  transition: flex-grow .65s cubic-bezier(.45, .05, .25, 1) .2s, border-color .3s ease .2s;
}
.plan-tag {
  position: absolute; top: -12px; left: 22px;
  font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand);
  padding: 4px 11px; border-radius: 999px;
}
.plan-pay { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 8px; line-height: 1.4; }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan-outcome { font-weight: 600; font-size: 1rem; line-height: 1.4; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .96rem; line-height: 1.45; }
.plan li .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.plan-note { margin: 12px 0 0; padding: 11px 13px; border-radius: var(--radius-md); background: var(--brand-soft); font-size: .9rem; line-height: 1.45; }
.plan-note strong { display: block; }
.plan-note span { color: var(--muted); font-size: .84rem; }
.plan-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .65s cubic-bezier(.45, .05, .25, 1) .2s, opacity .45s ease .2s; }
.plan-more > div { overflow: hidden; min-height: 0; }
.plan-more ul { padding-top: 2px; }
.plan-foot { margin-top: auto; padding-top: 22px; }
.plan-foot .btn { width: 100%; }

/* The hovered (or keyboard-focused) card widens and shows more; the first card leads by default */
@media (min-width: 961px) and (hover: hover) {
  .plan.is-featured { flex-grow: 1.6; border-color: var(--brand); }
  .plans:hover .plan.is-featured:not(:hover) { flex-grow: 1; border-color: var(--line); }
  .plans .plan:hover, .plans .plan:focus-within { flex-grow: 1.6; border-color: var(--brand); }
  .plans:focus-within .plan.is-featured:not(:focus-within):not(:hover) { flex-grow: 1; border-color: var(--line); }

  .plan.is-featured .plan-more { grid-template-rows: 1fr; opacity: 1; }
  .plans:hover .plan.is-featured:not(:hover) .plan-more { grid-template-rows: 0fr; opacity: 0; }
  .plans .plan:hover .plan-more, .plans .plan:focus-within .plan-more { grid-template-rows: 1fr; opacity: 1; }
  .plans:focus-within .plan.is-featured:not(:focus-within):not(:hover) .plan-more { grid-template-rows: 0fr; opacity: 0; }
}
/* Touch screens and narrow windows: no hover, so everything shows */
@media (max-width: 960px), (hover: none) {
  .plans { flex-direction: column; gap: 24px; }
  .plan-more { grid-template-rows: 1fr; opacity: 1; }
  .plan.is-featured { border-color: var(--brand); }
}
@media (min-width: 640px) and (max-width: 960px) {
  .plans { display: grid; grid-template-columns: 1fr 1fr; }
  .plan.is-featured { grid-column: 1 / -1; }
}
.plans-foot { margin: 22px 0 0; color: var(--muted); font-size: .95rem; text-align: center; }

/* Complete package: full-width gold card */
.plan--best {
  margin-top: 28px;
  background: var(--premium); color: var(--premium-ink);
  border: 2px solid var(--gold);
  text-align: center; align-items: center;
  padding: 40px clamp(22px, 5vw, 64px) 32px;
}
.plan--best .plan-pay { color: var(--gold-on-premium); }
.plan--best h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 8px; }
.plan--best .plan-outcome { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-bottom: 6px; }
.plan--best .plan-outcome-note { color: var(--premium-muted); font-size: .9rem; margin: 0 0 22px; }
.best-badge {
  position: absolute; top: -16px; right: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--gold-ink);
  font-weight: 750; font-size: .85rem; letter-spacing: .02em;
  padding: 6px 14px 6px 11px; border-radius: 999px;
}
.best-badge .icon { width: 18px; height: 18px; }
.plan--best ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 900px; margin: 0; }
.plan--best li {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  background: var(--premium-2); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: var(--radius-md); padding: 12px 14px; font-size: .95rem;
}
.plan--best li .icon { color: var(--gold-on-premium); }
.plan--best .plan-more { width: 100%; max-width: 900px; }
.plan--best .plan-more ul { padding-top: 12px; }
.plan--best .plan-foot { width: min(100%, 320px); }
.plan--best:focus-within { border-color: var(--gold-strong); }
.plan--best :focus-visible { outline-color: var(--gold-on-premium); }
.plan--best .plan-fine { color: var(--premium-muted); font-size: .86rem; margin: 14px 0 0; }
@media (min-width: 961px) and (hover: hover) {
  .plan--best:hover .plan-more, .plan--best:focus-within .plan-more { grid-template-rows: 1fr; opacity: 1; }
}
@media (max-width: 960px), (hover: none) {
  .plan--best { margin-top: 36px; }
  .plan--best ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .best-badge { right: 16px; }
}

/* ---------- Steps (floating cards with large faded numbers) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.step { padding: 28px 26px 26px; transition: transform .3s ease, box-shadow .3s ease; counter-increment: step; }
/* Large faded numbers (decoration only: the list itself gives the order) */
.step::before { content: "0" counter(step); display: block; font-stretch: var(--wide); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; color: color-mix(in srgb, var(--brand) 32%, transparent); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (min-width: 861px) {
  .steps .step:nth-child(2) { transform: translateY(18px); }
  .steps .step:nth-child(3) { transform: translateY(36px); }
  .steps { padding-bottom: 36px; }
  .steps .step:hover { box-shadow: var(--shadow-lg); }
  .steps .step:nth-child(1):hover { transform: translateY(-4px); }
  .steps .step:nth-child(2):hover { transform: translateY(14px); }
  .steps .step:nth-child(3):hover { transform: translateY(32px); }
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Checklists and timelines ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checklist .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: .97rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 46rem; }
.timeline::before { content: ""; position: absolute; left: 87px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline > li { display: grid; grid-template-columns: 74px 24px 1fr; gap: 0 14px; padding-bottom: 26px; position: relative; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline .when { font-weight: 700; color: var(--brand-text); font-size: .88rem; text-align: right; padding-top: 1px; line-height: 1.35; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); margin: 4px 0 0 5px; position: relative; z-index: 1; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: .97rem; }
.timeline-card { padding: clamp(22px, 3vw, 32px); }
@media (max-width: 480px) {
  .timeline::before { left: 69px; }
  .timeline > li { grid-template-columns: 56px 24px 1fr; gap: 0 10px; }
  .timeline .when { font-size: .8rem; }
}

/* Example messages inside the battery timeline */
.msg-example { margin-top: 10px; }
.msg-example summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 650; color: var(--brand-text); list-style: none;
}
.msg-example summary::-webkit-details-marker { display: none; }
.msg-example summary .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.msg-example[open] summary .icon { transform: rotate(180deg); }
.msg-card {
  margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px; font-size: .92rem; line-height: 1.5;
}
.msg-card p { color: var(--ink); margin: 0 0 8px; font-size: .92rem; }
.msg-card .msg-meta { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.msg-card .msg-subject { font-weight: 700; }
.msg-card .msg-cta { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 650; padding: 6px 12px; border-radius: 8px; font-size: .85rem; margin: 2px 0 10px; }
.msg-card .msg-foot { border-top: 1px solid var(--line); padding-top: 8px; margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.msg-card u { text-underline-offset: 2px; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--center { align-items: center; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 880px) { .split, .split--wide-right { grid-template-columns: 1fr; } }

/* Two options side by side (Websites) */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.option { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; }
.option .plan-pay { margin-bottom: 6px; }
.option h3 { font-size: 1.4rem; margin-bottom: 6px; }
.option .plan-outcome { margin-bottom: 18px; }
.option--care { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
@media (max-width: 820px) { .options { grid-template-columns: 1fr; } }

/* Weekly report (example layout) */
.report { font-size: .95rem; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.report-head strong { font-stretch: var(--wide); font-size: 1.05rem; }
.report-banner { background: var(--brand-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.report-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.report-rows li { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 14px; }
.report-rows span { color: var(--muted); font-size: .92rem; }
.report-rows i { flex: none; width: 54px; height: 22px; border-radius: 6px; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.report .example-label { margin-bottom: 14px; }

/* Guarantee */
.guarantee { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.guarantee-big { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
@media (max-width: 860px) { .guarantee { grid-template-columns: 1fr; } }
.terms-text { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--ink); font-weight: 600; line-height: 1.5; }

/* What you can check before you pay (Home and Battery campaign) */
.check-list {
  list-style: none; padding: 0; margin: 0; max-width: 50rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.check-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 16px 22px; }
.check-list li + li { border-top: 1px solid var(--line); }
.check-list .icon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text); }
.check-list p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.check-list strong { color: var(--ink); }
.check-list a { font-weight: 600; }
@media (max-width: 520px) {
  .check-list li { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 16px; }
  .check-list .icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
  .check-list p { margin-top: 4px; font-size: .97rem; }
}

/* No per-survey fees */
.fee-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee-point { padding: 22px; }
.fee-point h3 { font-size: 1.05rem; margin-bottom: 6px; }
.fee-point p { color: var(--muted); margin: 0; font-size: .95rem; }
.fee-point .icon-tile { background: var(--gold-soft); color: var(--gold-text); }
@media (max-width: 860px) { .fee-points { grid-template-columns: 1fr; } }

/* ---------- Founder photo (About) ---------- */
.founder-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; aspect-ratio: 4 / 5; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 650; font-size: 1.02rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { position: absolute; right: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-a p { margin: 0 0 .7em; max-width: 44em; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq-wrap { max-width: 52rem; margin-inline: auto; }

/* ---------- About ---------- */
.tagline-section { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.tagline { position: relative; font-size: clamp(2.2rem, 5.6vw, 4.3rem); line-height: 1.12; max-width: 16ch; margin-bottom: .35em; }
.tagline .tg-c { display: inline-block; color: var(--brand-text); }
.tagline .tg-rest { display: inline; }
.tagline .tg-probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.tagline .tg-runner { position: absolute; left: 0; top: 0; display: none; color: var(--brand-text); white-space: nowrap; pointer-events: none; z-index: 2; }
.tagline .tg-runner .tg-runner-c { position: relative; display: inline-block; z-index: 2; }
.tagline .tg-legs { position: absolute; left: 0; top: 0; overflow: visible; z-index: 1; }
.tagline .tg-legs path { fill: none; stroke: var(--brand-text); stroke-linecap: round; stroke-linejoin: round; }
.tagline .tg-dust { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.tagline .tg-dust circle { fill: var(--muted); }
.tagline-support { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; color: var(--muted); margin: 0 0 22px; }
@media (prefers-reduced-motion: no-preference) {
  /* The C waits off-stage until the script plays the animation. If the script never runs, it appears after 3.5 s. */
  .js .tagline .tg-c, .js .tagline-support { opacity: 0; animation: tg-show 0s 3.5s forwards; }
  .js .tagline.tg-armed .tg-c, .js .tg-armed + .tagline-support { animation: none; }
  .js .tagline.tg-done .tg-c, .js .tg-done + .tagline-support { opacity: 1; }
}
@keyframes tg-show { to { opacity: 1; } }
.about-sub { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: clamp(28px, 4vw, 44px) 0 0; }
.about-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.about-card { padding: 22px; }
.about-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.about-card p { color: var(--muted); margin: 0; font-size: .94rem; line-height: 1.5; }
@media (max-width: 1000px) { .about-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .about-cards { grid-template-columns: 1fr; } }
.team-note { margin-top: 16px; padding: 20px 22px; }
.team-note p { margin: 0; color: var(--muted); }
.team-note strong { color: var(--ink); }
.dealer { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.dealer .founder-photo { max-width: 300px; }
.dealer-name { font-size: 1.05rem; color: var(--muted); margin: 0 0 16px; }
.dealer-name strong { color: var(--ink); font-stretch: var(--wide); }
.dealer p { max-width: 36em; }
.dealer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.dealer-contact .text-link { font-weight: 600; }
@media (max-width: 760px) { .dealer { grid-template-columns: 1fr; } .dealer .founder-photo { max-width: 260px; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 35%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 26px; width: auto; }
.footer-line { color: var(--muted); font-size: .92rem; margin: 14px 0 10px; max-width: 32em; }
.footer-tagline { color: var(--brand-text); font-size: .85rem; font-weight: 600; letter-spacing: .01em; margin: 0; }
.footer-grid h2 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-stretch: 100%; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid a.footer-gold { color: var(--gold-text); }
.footer-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal a { color: var(--brand-text); }
.footer-legal a:hover { color: var(--brand-strong); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Booking calendar (bottom of every page except the privacy notice) ----------
   Looks like Cal.com's own calendar, in the site's colours: who and what on the left, the month in the middle, that
   day's times on the right. The times and the booking go through our own hidden booking part (main.js). */
.book-section { padding-block: clamp(48px, 7vw, 88px); }
.book {
  display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  max-width: 1040px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.book-info { padding: 28px 26px; border-right: 1px solid var(--line); }
.book-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.book-brand { margin: 0 0 2px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.book-title { font-size: 1.55rem; margin: 0 0 18px; }
.book-title:focus { outline: none; }
.book-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 11px; font-weight: 600; font-size: .95rem; }
.book-facts li { display: flex; align-items: center; gap: 10px; }
.book-facts .icon { width: 18px; height: 18px; color: var(--muted); }
.book-promise { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.book-main { padding: 26px 28px 28px; min-height: 400px; display: flex; flex-direction: column; min-width: 0; }
.book-status { margin: auto; color: var(--muted); text-align: center; }
.book-status .btn { margin-top: 12px; }
.book-note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--ink); font-size: .93rem; font-weight: 600; }
.book-note:empty { display: none; }
.book-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); gap: 28px; }
.book-cal, .book-times { min-width: 0; }

/* Month */
.book-month { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.book-month-name { font-size: 1.05rem; margin: 0 auto 0 0; letter-spacing: -0.01em; }
.book-nav {
  width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.book-nav:hover:not(:disabled) { border-color: var(--brand); }
.book-nav:disabled { opacity: .35; cursor: default; }
.book-nav .icon { width: 18px; height: 18px; }
.book-nav--next .icon { transform: rotate(180deg); }
.book-weekdays, .book-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.book-weekdays { margin-bottom: 6px; }
.book-weekdays span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.book-day {
  aspect-ratio: 1 / .92; min-height: 40px; border-radius: 10px; border: 0; padding: 0;
  font: inherit; font-weight: 650; font-size: .98rem; background: transparent; color: var(--muted); cursor: default;
}
.book-day:disabled { opacity: .5; }
.book-day.has-times { background: var(--brand-soft); color: var(--brand-text); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.book-day.has-times:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.book-day[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.book-day.is-blank { visibility: hidden; }

/* That day's times */
.book-day-name { font-size: 1.02rem; margin: 6px 0 2px; letter-spacing: -0.01em; }
.book-tz { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.book-slots { list-style: none; padding: 0 4px 0 0; margin: 0; display: grid; gap: 8px; max-height: 384px; overflow-y: auto; scrollbar-width: thin; }
.book-slot {
  width: 100%; font: inherit; font-weight: 650; font-size: 1rem; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.book-slot:hover { border-color: var(--brand); background: var(--brand-soft); }
.book-slot:focus-visible { outline-offset: 1px; }
.book-none { color: var(--muted); font-size: .95rem; margin: 0; }

/* Your details */
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.book-form > .book-chosen, .book-form > .book-note, .book-form > .book-actions, .book-form > .book-form-msg { grid-column: 1 / -1; }
.book-chosen { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 1.05rem; }
.book-chosen .icon { width: 20px; height: 20px; color: var(--brand); }
.book-chosen span { color: var(--muted); font-weight: 550; font-size: .95rem; }
.field { min-width: 0; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input {
  width: 100%; display: block; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
}
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 10px; }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field-err { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.field-err:empty { display: none; }
.book-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.book-form-msg { margin: 0; color: var(--danger); font-weight: 600; font-size: .93rem; }
.book-form-msg:empty { display: none; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.book-actions .btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* Booked */
.book-done { margin: auto; text-align: center; max-width: 30rem; padding: 18px 0; }
.book-done:focus { outline: none; }
.book-done-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin: 0 auto 16px; }
.book-done-icon .icon { width: 28px; height: 28px; }
.book-done h3 { font-size: 1.6rem; margin-bottom: 10px; }
.book-done-when { font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; }
.book-done p:last-child { color: var(--muted); margin: 0; }
.book-done strong { color: var(--ink); overflow-wrap: anywhere; }

.book-alt { text-align: center; color: var(--muted); font-size: .93rem; margin: 18px 0 0; }
.book-alt a { font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book-info {
    border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 22px;
    display: grid; grid-template-columns: 48px 1fr; gap: 0 14px; align-items: center;
  }
  .book-logo { width: 48px; height: 48px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .book-title { margin: 0; font-size: 1.35rem; }
  .book-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 8px; font-size: .92rem; }
  .book-promise { grid-column: 1 / -1; font-size: .92rem; }
  .book-main { min-height: 0; padding: 22px; }
}
/* Phones: the month on top, that day's times as a row you swipe; about one screen tall */
@media (max-width: 640px) {
  .book-info { padding: 16px 16px 14px; grid-template-columns: 40px 1fr; gap: 0 12px; }
  .book-logo { width: 40px; height: 40px; border-radius: 10px; }
  .book-brand { font-size: .85rem; }
  .book-title { font-size: 1.2rem; }
  .book-facts { margin: 10px 0 6px; gap: 4px 14px; font-size: .86rem; }
  .book-facts .icon { width: 16px; height: 16px; }
  .book-promise { font-size: .86rem; line-height: 1.45; }
  .book-main { padding: 14px 14px 16px; }
  .book-pick { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .book-month { margin-bottom: 8px; }
  .book-day { min-height: 36px; aspect-ratio: auto; height: 38px; font-size: .92rem; }
  .book-weekdays, .book-days { gap: 4px; }
  .book-day-name { margin-top: 8px; display: inline; font-size: .98rem; }
  .book-tz { display: inline; margin: 0 0 0 6px; }
  .book-slots {
    display: flex; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 10px 0 4px;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .book-slots::-webkit-scrollbar { display: none; }
  .book-slots li { flex: none; scroll-snap-align: start; }
  .book-slot { width: auto; padding: 10px 16px; }
  .book-form { grid-template-columns: 1fr; gap: 12px; }
  .book-actions { justify-content: stretch; }
  .book-actions .btn { flex: 1; }
  .book-alt { font-size: .88rem; }
}

/* ---------- Floating "Book a call" (computers) / bar along the bottom (phones) ---------- */
.float-book {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.float-book.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease, visibility 0s; }
.no-js .float-book { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.float-book .fb-long { display: none; }
@media (max-width: 640px) {
  .float-book {
    left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; justify-content: center;
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom)); font-size: 1.02rem;
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .35); transform: translateY(100%);
  }
  .float-book .fb-short { display: none; }
  .float-book .fb-long { display: inline; }
}
/* Netlify's free-plan badge (about 63 px tall) sits in the bottom-right corner: keep clear of it */
.has-host-badge .float-book { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px); }
@media (max-width: 640px) { .has-host-badge .float-book { bottom: 62px; } }
.has-host-badge .site-footer { padding-bottom: 100px; }

/* ---------- Swipe rows (phones and narrow screens) ----------
   Where a row of side-by-side cards would stack, it becomes a row you swipe: the next card peeks in from the edge,
   with arrows and position dots under it (main.js). data-swipe="N" switches it on at N px wide and below. */
.swipe-nav { display: none; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.swipe-nav[hidden] { display: none !important; }
.swipe-arrow {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.swipe-arrow:disabled { opacity: .35; cursor: default; }
.swipe-arrow .icon { width: 18px; height: 18px; }
.swipe-arrow--next .icon { transform: rotate(180deg); }
.swipe-dots { display: flex; align-items: center; }
.swipe-dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.swipe-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: width .2s ease, background-color .2s ease; }
.swipe-dot[aria-current="true"]::before { width: 18px; background: var(--brand); }
.swipe-dot:focus-visible { outline-offset: 0; border-radius: 50%; }

@media (max-width: 880px) {
  .js [data-swipe="880"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="880"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="880"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="880"] + .swipe-nav { display: flex; }
}
@media (max-width: 860px) {
  .js [data-swipe="860"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="860"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="860"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="860"] + .swipe-nav { display: flex; }
}
@media (max-width: 820px) {
  .js [data-swipe="820"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="820"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="820"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="820"] + .swipe-nav { display: flex; }
}
@media (max-width: 639px) {
  .js [data-swipe="639"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="639"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="639"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="639"] + .swipe-nav { display: flex; }
}
@media (max-width: 600px) {
  .js [data-swipe="600"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="600"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="600"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="600"] + .swipe-nav { display: flex; }
}
@media (max-width: 560px) {
  .js [data-swipe="560"] {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 14px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  }
  .js [data-swipe="560"]::-webkit-scrollbar { display: none; }
  .js [data-swipe="560"] > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; margin: 0; transform: none; }
  .js [data-swipe="560"] + .swipe-nav { display: flex; }
}
.js [data-swipe]:focus-visible { outline-offset: -3px; border-radius: 12px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; color: var(--brand-text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose-card { padding: clamp(24px, 4vw, 48px); }

/* ---------- No script ---------- */
.no-js .theme-switch, .no-js .menu-toggle { display: none; }

/* ---------- Print ---------- */
@media print {
  body::before, .site-header, .float-book, .demo, .book-section { display: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .card, .panel { box-shadow: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; opacity: .6; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chat--play > * { opacity: 1; transform: none; }
  .chat--play .is-picked { background: var(--brand); color: var(--brand-ink); }
  .reveal.is-pending { opacity: 1; transform: none; }
}
