/* SkiLeads landing page, built on the Slate & Amber design system. */

/* ---------- Fonts (self-hosted, no Google Fonts request) ----------
   One variable font file covers weights 400 to 800. The "fallback" face is Arial resized to match
   Plus Jakarta Sans, so text doesn't jump when the real font arrives. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 106%;
  ascent-override: 97.9%;
  descent-override: 20.9%;
  line-gap-override: 0%;
}

:root {
  --ink: #242f35;
  --ink-2: #2d3a41;            /* raised panel on the ink ground */
  --ink-muted: #637076;
  --ink-subtle: #a3a9ab;
  --surface: #f3f7f8;
  --surface-alt: #e2eeee;
  --accent: #f2a73d;
  --on-accent: var(--ink);
  --on-dark: var(--surface-alt);
  --line: rgba(135, 146, 164, 0.2);
  --line-dark: rgba(163, 169, 171, 0.14);
  --overlay-strong: rgba(36, 47, 53, 0.95);
  --overlay: rgba(36, 47, 53, 0.8);
  --overlay-soft: rgba(36, 47, 53, 0.3);
  --hl: rgba(242, 167, 61, 0.38);

  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0, 0, .3642, 1);

  --s1: 10px; --s2: 20px; --s3: 30px; --s4: 40px; --s5: 50px; --s6: 60px; --s10: 100px;
  --container: 1140px;
  --r-sm: 10px; --r-md: 20px; --r-lg: 30px; --r-pill: 60px;
  --angle: 60px;
  --header-h: 76px;

  --display: clamp(44px, 6.2vw, 86px);
  --h2: clamp(30px, 3.6vw, 42px);
  --numeral: clamp(40px, 4.2vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 28px;
  color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
/* <picture> wrappers (AVIF/WebP with JPEG fallback) take no box of their own, so the <img> lays out as before. */
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--s3)); margin: 0 auto; padding: 0 var(--s3); }
@media (max-width: 640px) { .wrap { padding: 0 var(--s2); } }

.section { padding: var(--s10) 0; }
@media (max-width: 760px) { .section { padding: 70px 0; } }
.alt { background: var(--surface-alt); }
.dark { background: var(--ink); color: var(--on-dark); }

/* ---------- Type ---------- */
.badge {
  display: inline-block; padding: 2px 12px 4px; border-radius: var(--r-md);
  background: var(--ink-subtle); color: var(--ink);
  font: 600 14px/18px var(--font);
  justify-self: start; width: max-content; max-width: 100%;
}
.dark .badge { background: var(--ink-2); color: var(--on-dark); }
.badge--accent { background: var(--accent); color: var(--ink); }

.h2 { font: 800 var(--h2)/1.1 var(--font); letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.h2 em { font-style: normal; color: var(--ink-muted); }
.dark .h2 { color: var(--on-dark); }
.dark .h2 em { color: var(--ink-subtle); }
.lead { font-size: 18px; line-height: 30px; color: var(--ink-muted); max-width: 560px; }
.alt .lead, .alt p { color: var(--ink); }
.dark .lead, .dark p { color: var(--ink-subtle); }
.head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.head .badge { justify-self: start; }
.head--center { text-align: center; justify-items: center; }
.head--center .badge { justify-self: center; }
.head--center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 70px; padding: 0 10px 0 var(--s4); border-radius: var(--r-pill);
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 16px/20px var(--font);
  transition: transform .3s var(--ease);
}
.btn:hover { transform: scale(1.03); }
.btn .disc {
  width: 50px; height: 50px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  transition: transform .4s var(--ease);
}
.btn:hover .disc { transform: rotate(-45deg); }
.btn svg { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent .disc { background: var(--ink); color: var(--accent); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark .disc { background: var(--accent); color: var(--ink); }
.btn--light { background: var(--surface-alt); color: var(--ink); }
.btn--light .disc { background: var(--accent); color: var(--ink); }
.btn--sm { height: 52px; padding-left: 24px; gap: 14px; font-size: 15px; }
.btn--sm .disc { width: 38px; height: 38px; }
.btn--block { width: 100%; justify-content: space-between; white-space: normal; text-align: left; height: auto; min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 480px) {
  .btn--block { min-height: 62px; }
  .btn { height: 62px; padding-left: 26px; }
  .btn .disc { width: 44px; height: 44px; }
  .btn--sm { height: 50px; }
}
.link { display: inline-flex; align-items: center; min-height: 24px; gap: var(--s1); font: 600 16px/20px var(--font); text-decoration: none; }
.link svg { width: 14px; height: 14px; color: var(--accent); transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.light-bg .link svg { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.cta-note { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.dark .cta-note { color: var(--ink-subtle); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: var(--on-dark);
  transition: background-color .3s var(--ease), box-shadow .3s;
}
.header.is-scrolled { background: var(--overlay-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; min-height: 24px; gap: var(--s1); font: 800 22px/1 var(--font); letter-spacing: -0.02em; text-decoration: none; color: var(--on-dark); }
.brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: var(--s4); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { display: inline-block; padding: 2px 0; font: 500 15px/20px var(--font); color: var(--ink-subtle); text-decoration: none; }
.nav a:hover { color: var(--on-dark); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) {
  .header .btn--sm .label-long { display: none; }
  .header .wrap { gap: 12px; }
  .header .btn--sm { padding: 0 6px 0 18px; gap: 10px; height: 46px; font-size: 14px; }
  .header .btn--sm .disc { width: 34px; height: 34px; }
}
@media (max-width: 360px) { .header .btn--sm .disc { display: none; } .header .btn--sm { padding: 0 18px; } }
@media (min-width: 481px) { .header .btn--sm .label-short { display: none; } }

/* ---------- Photos and placeholders ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(160deg, #3a4950, #242f35); min-height: 280px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: var(--s3);
  color: var(--ink-subtle); font-size: 13px; line-height: 18px;
}
.photo__ph b { color: var(--on-dark); font-size: 15px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 0; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 80% 0%, #33434b 0%, var(--ink) 60%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg img { object-position: 78% 60%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(36,47,53,.94) 0%, rgba(36,47,53,.82) 45%, rgba(36,47,53,.45) 100%),
  linear-gradient(180deg, rgba(36,47,53,.35) 0%, rgba(36,47,53,0) 30%, rgba(36,47,53,.6) 75%, var(--ink) 100%); }
@media (max-width: 980px) { .hero__bg::after { background: linear-gradient(180deg, rgba(36,47,53,.9) 0%, rgba(36,47,53,.86) 60%, var(--ink) 100%); } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.hero__copy { display: grid; gap: var(--s3); align-content: start; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/18px var(--font); color: var(--on-dark); }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,167,61,.18); }
.hero__h1 { display: grid; gap: inherit; }
.hero__h1 .display { display: block; }
.display { font: 800 var(--display)/0.95 var(--font); letter-spacing: -0.04em; color: var(--on-dark); }
.display .k { color: var(--ink-subtle); }
.strike { position: relative; white-space: nowrap; color: var(--ink-subtle); }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 0.09em; border-radius: 4px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: strike .7s .5s var(--ease) forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .strike::after { animation: none; transform: scaleX(1); } }
.hero__sub { font-size: 19px; line-height: 31px; color: var(--ink-subtle); max-width: 560px; }
.hero__sub b { color: var(--on-dark); font-weight: 600; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Live inbox */
.inbox {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  padding: var(--s3); color: var(--on-dark);
}
.inbox__head { display: flex; justify-content: space-between; align-items: center; font: 600 13px/18px var(--font); color: var(--ink-subtle); }
.inbox__live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.inbox__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.inbox__median { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin: var(--s2) 0; padding-bottom: var(--s2); border-bottom: 1px solid var(--line-dark); }
.inbox__median span { font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.inbox__median strong { font: 800 var(--numeral)/1 var(--font); letter-spacing: -0.03em; }
.inbox__median strong small { font-size: .55em; color: var(--accent); margin-left: 2px; }
/* Fixed-height window: app.js sets the height to exactly 4 rows (3 on phones). */
.feed { display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; height: 294px; } /* 4 rows x 66px + 3 gaps */
@media (max-width: 640px) {
  .feed { height: 218px; } /* 3 rows x 66px + 2 gaps */
  .feed:not(.is-live) .feed__row:nth-child(n+4) { display: none; }
}
.feed__row {
  flex: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line-dark);
  will-change: transform;
}
.feed__txt { min-width: 0; }
.feed__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); color: var(--ink); font: 700 13px/1 var(--font); }
.feed__who { font: 600 14px/20px var(--font); }
.feed__sub { font-size: 12.5px; line-height: 18px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__t { text-align: right; font-size: 12px; line-height: 15px; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .06em; }
.feed__t b { display: block; font: 800 22px/1 var(--font); letter-spacing: -0.02em; color: var(--accent); text-transform: none; margin-top: 3px; }
.inbox__note { margin-top: var(--s2); font-size: 12px; line-height: 16px; color: var(--ink-subtle); }

.proof { margin-top: 90px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); }
.proof > div { padding: var(--s4) var(--s3) var(--s4) 0; display: flex; gap: var(--s2); align-items: center; }
.proof > div + div { padding-left: var(--s3); border-left: 1px solid var(--line-dark); }
.proof strong { font: 800 var(--numeral)/1 var(--font); letter-spacing: -0.03em; color: var(--on-dark); white-space: nowrap; }
.proof strong small { font-size: .55em; color: var(--accent); }
.proof p { font-size: 14px; line-height: 21px; color: var(--ink-subtle); max-width: 220px; }
.proof .proof__src { font-size: 12px; line-height: 18px; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 640px) {
  .waiting { padding: var(--s2); }
  .waiting li { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__copy { gap: var(--s2); }
  .hero__sub { font-size: 17px; line-height: 28px; }
  .inbox { padding: var(--s2); }
  .proof { margin-top: 60px; grid-template-columns: 1fr; }
  .proof > div, .proof > div + div { padding: var(--s3) 0; border-left: 0; }
  .proof > div + div { border-top: 1px solid var(--line-dark); }
}

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.story { display: grid; gap: var(--s2); }
.story p { color: var(--ink-muted); }
.story .pull { font: 700 20px/30px var(--font); color: var(--ink); letter-spacing: -0.01em; padding-top: var(--s2); border-top: 1px solid var(--line); }
.problem__visual { position: relative; padding-bottom: 120px; }
.problem__visual .photo { aspect-ratio: 4 / 5; min-height: 0; }
.waiting {
  position: absolute; left: -40px; right: 40px; bottom: 0;
  background: var(--surface); padding: var(--s3);
  clip-path: polygon(0 0, calc(100% - var(--angle)) 0, 100% var(--angle), 100% 100%, 0 100%);
}
.waiting__head { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; font: 600 13px/18px var(--font); color: var(--ink-muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); padding-right: 40px; }
.waiting__head b { color: var(--ink); }
.waiting ol { list-style: none; margin: 0; padding: 0; }
.waiting li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.waiting li:last-child { border-bottom: 0; padding-bottom: 0; }
.waiting time { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.waiting .who b { display: block; font-weight: 700; }
.waiting .who span { color: var(--ink-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waiting .age { font-weight: 800; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.waiting .age::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s5); }
  .waiting { left: 16px; right: 16px; }
}

/* ---------- Demo ---------- */
.demo-cta { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.demo-cta p { font: 700 20px/28px var(--font); letter-spacing: -0.01em; max-width: 560px; }

.stage { background: var(--surface); }
.stage__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); background: var(--surface);
}
.clock { display: flex; align-items: baseline; gap: 10px; min-width: 190px; }
.clock span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.clock strong { font: 800 44px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.clock strong small { font-size: .5em; color: var(--ink-muted); margin-left: 2px; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps button {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 0 0;
  border-top: 3px solid var(--line); font: 600 13px/17px var(--font); color: var(--ink-muted);
  transition: color .3s, border-color .3s;
}
.steps button .n { display: block; font-weight: 800; font-size: 12px; letter-spacing: .04em; margin-bottom: 2px; }
.steps button.is-done { border-top-color: var(--ink); color: var(--ink); }
.steps button.is-cur { border-top-color: var(--accent); color: var(--ink); }
.controls { display: flex; gap: 8px; }
.ctl {
  height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-alt);
  font: 600 14px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .3s var(--ease);
}
.ctl:hover { transform: scale(1.03); }
.ctl--primary { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.ctl svg { width: 14px; height: 14px; }

.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { padding: var(--s3); border-right: 1px solid var(--line); min-height: 560px; display: flex; flex-direction: column; gap: 14px; transition: background-color .4s; }
.panel:last-child { border-right: 0; }
.panel.is-active { background: #fbfdfd; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel__title { font: 800 13px/18px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--font); color: var(--ink-muted); padding: 3px 10px; border-radius: var(--r-md); background: var(--surface-alt); white-space: nowrap; }
.status:not(.is-done) { color: var(--ink); }
.status.is-running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.status.is-done { background: var(--ink); color: var(--on-dark); }

.mail { font-size: 14px; line-height: 23px; }
.mail dl { display: grid; grid-template-columns: 62px 1fr; gap: 4px 8px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 19px; }
.mail dt { color: var(--ink-muted); }
.mail dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mail p + p { margin-top: 10px; }
.mail mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; transition: background-color .4s; }
.mail mark.is-on { background: var(--hl); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.facts li, .inv li { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.facts li.is-in, .inv li.is-in { opacity: 1; transform: none; }
.facts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 20px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--ink-muted); }
.facts li b { font-weight: 700; }
.facts .facts__type { grid-template-columns: 1fr; }
.facts .facts__type b { display: inline-flex; align-items: center; gap: 8px; }
.facts .facts__type b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.subhead { font: 700 12px/16px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-top: 6px; }
.inv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inv li { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 10px; align-items: center; font-size: 13.5px; line-height: 19px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-alt); }
.inv li small { display: block; color: var(--ink); opacity: .78; font-size: 12px; }
.inv .is-miss small { color: var(--ink-muted); opacity: 1; }
.inv .px { font-weight: 700; font-variant-numeric: tabular-nums; }
.inv .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.inv .is-match .mk { background: var(--accent); color: var(--ink); }
.inv .is-miss { background: transparent; border: 1px dashed var(--line); }
.inv .is-miss span:first-child, .inv .is-miss .px { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: rgba(99,112,118,.5); }
.inv .is-miss .mk { color: var(--ink-muted); }
.inv .is-best { background: var(--surface); outline: 2px solid var(--ink); outline-offset: -2px; }

.reply { font-size: 14px; line-height: 23px; flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply b { font-weight: 700; }
.reply .cursor { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: pulse .8s steps(2) infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.actions.is-in { opacity: 1; transform: none; }
.actions .pill { height: 40px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 600 14px/1 var(--font); background: var(--surface-alt); }
.actions .pill--go { background: var(--accent); }
.actions .done { width: 100%; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 4px; }
.actions .done b { color: var(--ink); }
.stage__foot { padding: 12px var(--s3); border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; color: var(--ink-muted); }

@media (max-width: 1020px) {
  .stage__bar { position: sticky; top: var(--header-h); z-index: 5; padding: 14px var(--s2); gap: 12px var(--s2); }
  .clock { min-width: 0; }
  .clock strong { font-size: 34px; }
  .steps { order: 3; flex-basis: 100%; }
  .controls { margin-left: auto; }
  .panels { grid-template-columns: 1fr; }
  .panel { display: none; border-right: 0; min-height: 0; padding: var(--s2); }
  .panel.is-active { display: flex; background: var(--surface); animation: fadein .35s var(--ease); }
  .stage__foot { padding: 12px var(--s2); }
}
@media (max-width: 480px) {
  .steps button { font-size: 11.5px; line-height: 15px; }
  .ctl { padding: 0 14px; }
  /* Visually hidden, but still read out by screen readers and AI agents. */
  .ctl .ctl__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Angle card ---------- */
.card {
  position: relative; background: var(--surface); padding: var(--s6) var(--s4) var(--s4);
  clip-path: polygon(0 0, calc(100% - var(--angle)) 0, 100% var(--angle), 100% 100%, 0 100%);
}
.card::after { content: ""; position: absolute; top: 0; right: 0; width: var(--angle); height: var(--angle); background: linear-gradient(225deg, transparent 50%, var(--line) 50%); }
.card--alt { background: var(--surface-alt); }
.card--alt::after { background: linear-gradient(225deg, transparent 50%, rgba(135,146,164,.35) 50%); }
.card h3 { font: 800 24px/30px var(--font); letter-spacing: -0.01em; }
.card p { color: var(--ink-muted); }
.card--alt p { color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font: 500 15px/22px var(--font); }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23242f35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.dark .checklist li { color: var(--on-dark); }
@media (max-width: 640px) { .card { padding: var(--s5) var(--s3) var(--s3); --angle: 44px; } }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s6); align-items: start; }
.how__intro { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: var(--s2); }
.how__intro .badge { justify-self: start; }
.how__intro p { color: var(--ink-muted); }
.tools { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; line-height: 21px; }
.tools div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.tools span { color: var(--ink-muted); }
.tools b { font-weight: 600; }
.stepslist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stepslist li { display: grid; grid-template-columns: 74px 1fr; gap: var(--s2); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.stepslist li:last-child { border-bottom: 1px solid var(--line); }
.stepslist .num { font: 800 40px/1 var(--font); letter-spacing: -0.04em; color: var(--ink-muted); }
.stepslist h3 { font: 800 22px/28px var(--font); letter-spacing: -0.01em; margin-bottom: 8px; }
.stepslist p { color: var(--ink-muted); }
.stepslist .eg { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-alt); font: 600 13px/1 var(--font); }
.chip--dark { background: var(--ink); color: var(--on-dark); }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: var(--s4); }
  .how__intro { position: static; }
  .stepslist li { grid-template-columns: 52px 1fr; gap: 14px; padding: var(--s3) 0; }
  .stepslist .num { font-size: 30px; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); align-items: center; }
.founder .photo { aspect-ratio: 4 / 5; min-height: 0; }
.founder__copy { display: grid; gap: var(--s3); }
.founder__copy .badge { justify-self: start; }
.founder blockquote { margin: 0; display: grid; gap: var(--s2); }
.founder blockquote p { font-size: 18px; line-height: 30px; color: var(--ink); }
.founder__sig { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 20px; color: var(--ink); }
.founder__sig b { display: block; font-weight: 800; font-size: 16px; }
.founder__sig i { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font: 800 16px/1 var(--font); font-style: normal; }
.founder .checklist { padding: var(--s3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: var(--s4); } .founder .photo { aspect-ratio: 4 / 3; } }

/* ---------- Results ---------- */
.results__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end; margin-bottom: var(--s5); }
.results__intro p { color: var(--ink-muted); }
.results__intro .quote { font: 700 19px/29px var(--font); color: var(--ink); letter-spacing: -0.01em; }
.results__panel { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 140px var(--s4) var(--s4); background: linear-gradient(160deg, #4a5b63, #242f35); isolation: isolate; }
.results__panel > picture > img, .results__panel > .photo__ph { position: absolute; inset: 0; z-index: -2; }
.results__panel > picture > img { width: 100%; height: 100%; object-fit: cover; }
.results__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,47,53,.05) 0%, var(--overlay-soft) 60%); }
.results__panel .photo__ph { align-content: start; padding-top: var(--s4); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.stat {
  border-radius: var(--r-md); padding: var(--s3); background: var(--overlay); color: var(--on-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 12px; align-content: start;
}
.stat strong { font: 800 var(--numeral)/1 var(--font); letter-spacing: -0.03em; }
.stat strong small { font-size: .55em; color: var(--accent); margin-left: 2px; }
.stat p { font-size: 14px; line-height: 21px; color: var(--ink-subtle); }
.stat p b { color: var(--on-dark); font-weight: 700; display: block; }
@media (max-width: 1020px) { .stats { grid-template-columns: 1fr 1fr; } .results__intro { grid-template-columns: 1fr; gap: var(--s2); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .results__panel { padding: 120px 14px 14px; } }

/* ---------- Levels ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.level { display: flex; flex-direction: column; gap: var(--s2); }
.level__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.level__n { font: 800 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.level__time { font: 700 15px/22px var(--font); color: var(--ink); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.level--start { background: var(--ink); color: var(--on-dark); }
.level--start::after { background: linear-gradient(225deg, transparent 50%, rgba(163,169,171,.25) 50%); }
.level--start h3 { color: var(--on-dark); }
.level--start p, .level--start .level__n { color: var(--ink-subtle); }
.level--start .level__time { color: var(--on-dark); border-color: var(--line-dark); }
.level--start .checklist li { color: var(--on-dark); }
.levels__note { margin-top: var(--s4); text-align: center; color: var(--ink-muted); font-size: 15px; }
@media (max-width: 980px) { .levels { grid-template-columns: 1fr; } }

/* ---------- Keep ---------- */
.keep { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s6); align-items: stretch; }
.keep .photo { min-height: 420px; }
.keep__list { display: grid; gap: 0; align-content: center; }
.keep__item { padding: var(--s3) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: var(--s2); }
.keep__item:last-child { border-bottom: 1px solid var(--line); }
.keep__item span { font: 700 13px/18px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); padding-top: 6px; }
.keep__item strong { display: block; font: 800 28px/1.1 var(--font); letter-spacing: -0.03em; margin-bottom: 6px; }
.keep__item p { color: var(--ink-muted); }
@media (max-width: 900px) { .keep { grid-template-columns: 1fr; gap: var(--s4); } .keep .photo { min-height: 0; aspect-ratio: 16/10; } .keep__item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); max-width: 940px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: var(--s2); }
.plan__for { font: 600 15px/22px var(--font); color: var(--ink-muted); }
.plan__price { display: flex; align-items: baseline; gap: 8px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.plan__price strong { font: 800 64px/1 var(--font); letter-spacing: -0.04em; }
.plan__price span { color: var(--ink-muted); font-weight: 500; }
.plan .checklist { margin-bottom: var(--s2); flex: 1; }
.plan .btn { margin-top: auto; }
.pricing__terms { max-width: 940px; margin: var(--s4) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.pricing__terms div { border-top: 2px solid var(--ink); padding-top: 14px; font-size: 15px; line-height: 24px; }
.pricing__terms b { display: block; font-weight: 800; margin-bottom: 4px; }
.alt .pricing__terms div { color: var(--ink); }
@media (max-width: 820px) { .pricing, .pricing__terms { grid-template-columns: 1fr; } .plan__price strong { font-size: 54px; } }

/* ---------- Book ---------- */
.book { position: relative; overflow: hidden; isolation: isolate; }
.book__bg { position: absolute; inset: 0; z-index: -1; }
.book__bg img { width: 100%; height: 100%; object-fit: cover; }
.book__bg img { object-position: 70% 50%; }
.book__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,47,53,.96) 0%, rgba(36,47,53,.9) 45%, rgba(36,47,53,.78) 100%); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s6); align-items: start; }
.book__copy { display: grid; gap: var(--s3); }
.book__copy .badge { justify-self: start; }
.callsteps { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 0; }
.callsteps li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); color: var(--ink-subtle); font-size: 15px; line-height: 24px; }
.callsteps li::before { content: counter(c); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 800 14px/1 var(--font); }
.callsteps li b { color: var(--on-dark); font-weight: 700; }
.book__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.book__facts .chip { background: var(--ink-2); color: var(--on-dark); }
.cal { background: var(--surface); color: var(--ink); border-radius: var(--r-md); overflow: hidden; min-height: 700px; position: relative; }
.cal .calendly-inline-widget { min-width: 280px; height: 700px; }
.cal__ph { padding: var(--s4); display: grid; gap: var(--s2); align-content: center; min-height: 700px; text-align: center; justify-items: center; }
.cal__ph h3 { font: 800 24px/30px var(--font); }
.cal__ph p { color: var(--ink-muted); max-width: 360px; }
.cal__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 360px; margin: var(--s1) 0; }
.cal__slots span { padding: 10px 0; border-radius: var(--r-sm); border: 1px solid var(--line); font: 600 14px/1 var(--font); }
@media (max-width: 980px) { .book__grid { grid-template-columns: 1fr; gap: var(--s5); } .cal, .cal__ph { min-height: 640px; } }
/* Phones and tablets: show the calendar straight after the intro, with the call steps below it. */
@media (max-width: 980px) {
  .book__grid { gap: var(--s3); }
  .book__copy { display: contents; }
  .book__facts { order: 4; }
  .book__grid > .cal { order: 5; margin-top: var(--s1); }
  .callsteps { order: 6; }
}
@media (max-width: 640px) { .cal__ph { padding: var(--s3) var(--s2); min-height: 0; } .cal { min-height: 0; } .cal__ph .btn { white-space: normal; text-align: left; height: auto; min-height: 62px; } .cal .calendly-inline-widget { height: 1000px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s6); align-items: start; }
.faq__intro { display: grid; gap: var(--s2); position: sticky; top: calc(var(--header-h) + 30px); }
.faq__intro .badge { justify-self: start; }
.faq__intro p { color: var(--ink-muted); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s2); align-items: center; padding: 22px 0; font: 700 18px/26px var(--font); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-alt); position: relative; transition: transform .3s var(--ease), background-color .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.qa[open] summary i { background: var(--accent); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa > div { padding: 0 50px 0 0; color: var(--ink-muted); }
.qa > div::after { content: ""; display: block; height: 24px; }
.qa > div p + p { margin-top: 10px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: var(--s3); } .faq__intro { position: static; } .qa > div { padding-right: 0; } .qa summary { font-size: 17px; } }

/* ---------- Final band ---------- */
.band { background: var(--ink); color: var(--on-dark); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: 80px; padding-bottom: 80px; }
.band h2 { font: 800 var(--h2)/1.1 var(--font); letter-spacing: -0.04em; max-width: 640px; }
.band h2 em { font-style: normal; color: var(--ink-subtle); }
@media (max-width: 820px) { .band .wrap { flex-direction: column; align-items: flex-start; padding-top: 60px; padding-bottom: 60px; } }

/* ---------- Footer ---------- */
.footer { background: var(--surface-alt); color: var(--ink); }
.footer__main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s4); padding: var(--s6) 0 var(--s5); }
.footer .brand { color: var(--ink); }
.footer p, .footer li { font-size: 14px; line-height: 24px; color: var(--ink); }
.footer h3 { font: 700 16px/22px var(--font); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer li a, .footer__base a { display: inline-block; min-height: 24px; line-height: 24px; }
.footer a:hover { text-decoration: underline; }
.footer__base { border-top: 1px solid var(--line); padding: var(--s2) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink); }
@media (max-width: 760px) { .footer__main { grid-template-columns: 1fr 1fr; } .footer__main > div:first-child { grid-column: 1 / -1; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; justify-content: space-between; height: 60px; }
@media (max-width: 760px) { .sticky-cta { display: block; } body { padding-bottom: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed__row, .facts li, .inv li, .actions { transition: none; }
  .inbox__live i, .status.is-running::before, .reply .cursor { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Image crops ---------- */
.pos-couple { object-position: 64% 40%; }
.pos-phone { object-position: 58% 50%; }
.pos-guests { object-position: 45% 40%; }
.results__panel > picture > img.pos-mountain { object-position: 50% 30%; }
.photo__tag {
  position: absolute; left: 16px; top: 16px; z-index: 1; padding: 6px 12px; border-radius: var(--r-md);
  background: var(--overlay); color: var(--on-dark); font: 600 13px/18px var(--font);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100% - 32px));
  background: var(--ink); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  padding: var(--s2) var(--s3) var(--s3); display: grid; gap: 14px; font-size: 14px; line-height: 22px;
}
.consent[hidden], html:not(.consent-open) .consent { display: none; }
.consent p { color: var(--ink-subtle); }
.consent b { color: var(--on-dark); font-weight: 700; }
.consent a { color: var(--on-dark); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn {
  height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line-dark); cursor: pointer;
  background: var(--ink-2); color: var(--on-dark); font: 600 15px/1 var(--font);
  transition: transform .3s var(--ease);
}
.consent__btn:hover { transform: scale(1.03); }
.consent__btn--yes { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.consent-open .sticky-cta { display: none; }
@media (max-width: 480px) { .consent { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 16px; } }

/* ---------- Simple text pages (privacy, 404) ---------- */
.doc { padding: calc(var(--header-h) + 60px) 0 var(--s10); }
.doc .wrap { max-width: 780px; }
.doc h1 { font: 800 clamp(36px, 5vw, 56px)/1.05 var(--font); letter-spacing: -0.04em; margin-bottom: var(--s3); }
.doc h2 { font: 800 22px/28px var(--font); margin: var(--s5) 0 var(--s1); }
.doc p, .doc li { color: var(--ink-muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--ink); }
.doc .meta { font-size: 14px; color: var(--ink-muted); margin-bottom: var(--s4); }
.header--solid { background: var(--ink); }

/* ---------- Demo start prompt ---------- */
.panels { position: relative; }
.stage__start {
  position: absolute; top: 0; bottom: 0; left: 33.333%; right: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: var(--s4);
  background: rgba(243, 247, 248, 0.94);
  transition: opacity .4s var(--ease), visibility .4s;
}
.stage__start p { max-width: 300px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.stage__start .btn .disc svg { width: 14px; height: 14px; margin-left: 2px; }
.stage__start.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 1020px) {
  .stage__start { position: static; padding: var(--s3) var(--s2) var(--s4); background: var(--surface); border-top: 1px solid var(--line); }
  .stage__start.is-gone { display: none; }
}

/* ---------- FAQ open/close animation ---------- */
.qa > div { overflow: hidden; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; left: 50%; bottom: 24px; z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--accent);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, bottom .35s var(--ease);
}
.to-top svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.to-top:hover { transform: translate(-50%, 0) scale(1.06); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent-open .to-top { opacity: 0; visibility: hidden; }
/* On phones, sit above the sticky "Book" button when it's showing. */
@media (max-width: 760px) {
  .to-top { width: 46px; height: 46px; bottom: 16px; }
  .sticky-on .to-top { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s, visibility .2s; } }

/* ---------- Rendering performance ----------
   Sections below the hero are skipped by the browser until they get close to the screen, so the
   first paint (and the re-layout when the web font arrives) only has to deal with the hero.
   The size hints are rough section heights; "auto" means the browser remembers the real size
   once a section has been seen. */
main > section:not(.hero), .footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
/* Once the visitor uses an in-page link (or arrives on one), render everything so jumps land in the right place. See app.js. */
.cv-off main > section, .cv-off .footer { content-visibility: visible; }
@media (max-width: 640px) { main > section:not(.hero), .footer { contain-intrinsic-size: auto 1500px; } }
