/* DB landing page. Style direction: docs/design/style-direction.md */

/* Heebo (Google Fonts, SIL Open Font License), served from this site: no outside requests.
   David 2026-11-08: all business text, Hebrew and English, is in Heebo.
   The shekel sign (U+20AA) comes from the Hebrew file only, so pages with prices do not also
   download the 15 KB latin-ext file. */
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/heebo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20A9, U+20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #F3FAF7;
  --surface: #FFFFFF;
  --ink: #0F1E2E;
  --muted: #4A5868;
  --line: #D5E6DF;
  --teal: #12A58A;        /* logo brackets, rules, large marks only */
  --teal-text: #0B7A66;   /* teal used as text: 4.97:1 on --bg */
  --btn-bg: #0F1E2E;
  --btn-ink: #FFFFFF;
  --focus: #0B7A66;
  --err: #A3261B;
  --warm-text: #C2410C;  /* problems (pain) only: checked 4.5:1+ on --bg and --warm-soft */
  --warm-soft: #EEF3F6;
  --teal-soft: #DDF5EC;  /* the fix side of the problem/fix section */
  --radius: 6px;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: var(--sans); /* David: Heebo for the whole page */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1714;
    --surface: #12211D;
    --ink: #E9F2EE;
    --muted: #A7B8B1;
    --line: #22352F;
    --teal: #3FD1B0;
    --teal-text: #5EDDBF;
    --btn-bg: #3FD1B0;
    --btn-ink: #0C1714;
    --focus: #5EDDBF;
    --err: #FF9A8F;
    --warm-text: #FF9E7A;
    --warm-soft: #161C24;
    --teal-soft: #0F2A24;
  }
}
/* Same dark colours when a host forces dark mode */
:root[data-theme="dark"] {
  --warm-text: #FF9E7A;
  --warm-soft: #161C24;
  --teal-soft: #0F2A24;
  --bg: #0C1714;
  --surface: #12211D;
  --ink: #E9F2EE;
  --muted: #A7B8B1;
  --line: #22352F;
  --teal: #3FD1B0;
  --teal-text: #5EDDBF;
  --btn-bg: #3FD1B0;
  --btn-ink: #0C1714;
  --focus: #5EDDBF;
  --err: #FF9A8F;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
/* Focused items and anchors never hide under the sticky header (WCAG 2.4.11) */
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.tag { font-weight: 800; }
.lead { font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--teal-text); text-underline-offset: .2em; }
.mono { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

#main:focus { outline: none; }

.preview-bar {
  margin: 0; padding: 6px 16px; text-align: center; font-size: .9rem; font-weight: 600;
  background: var(--ink); color: var(--bg);
}

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { font: 800 1.7rem/1 var(--sans); letter-spacing: .02em; color: var(--ink); }
.wordmark::after { content: "."; color: var(--teal); } /* stand-in; tools/make-site.mjs puts the real logo in */
/* The logo, when tools/make-site.mjs adds it */
:root { --logo-ink: #0F1E2E; --logo-teal: #12A58A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-ink: #E9F2EE; --logo-teal: #3FD1B0; } }
:root[data-theme="dark"] { --logo-ink: #E9F2EE; --logo-teal: #3FD1B0; }
.brand { gap: 10px; color: var(--ink); }
.mark { width: 44px; height: 44px; flex: none; }
.mark .mk-ink { stroke: var(--logo-ink); }
.mark .mk-teal { stroke: var(--logo-teal); }
.mark .mk-teal-fill { fill: var(--logo-teal); }
.mark .mk-ink-fill { fill: var(--logo-ink); }
.brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.005em; }
.foot__name { font-weight: 600; }
.nav { display: none; gap: 24px; margin-inline-start: auto; }
.nav { align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a.nav__cta { padding: 8px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; }
.nav a.nav__cta:hover { color: var(--btn-ink); text-decoration: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 45%, transparent); }
.nav a:hover { color: var(--teal-text); text-decoration: underline; }
@media (min-width: 820px) { .nav { display: flex; } }
/* Phones: only the Contact button shows in the top bar */
@media (max-width: 819.98px) { .nav { display: flex; } .nav a:not(.nav__cta) { display: none; } }

.lang {
  margin-inline-start: auto;
  min-width: 48px; min-height: 44px; padding: 0 12px;
  font: 600 .95rem var(--mono);
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
@media (min-width: 820px) { .lang { margin-inline-start: 8px; } }
.lang--link { display: inline-flex; align-items: center; text-decoration: none; }
.lang:hover { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 1.02rem/1.2 var(--sans);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 45%, transparent); }
.btn--ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface); }
.btn--big { min-height: 56px; font-size: 1.1rem; padding-inline: 28px; }
.btn__icon { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { display: grid; gap: 40px; padding-block: 40px 24px; }
@media (min-width: 960px) {
  .hero { padding-block: 64px 32px; }
  .hero h1 { max-width: none; }
}
.eyebrow { font-weight: 600; font-size: .95rem; color: var(--teal-text); }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); font-weight: 800; letter-spacing: -.015em; max-width: 14ch; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Two short promises right under the buttons: they answer "will this commit me?" before the tap */
.assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 1rem; }
.assure li { display: flex; align-items: baseline; gap: 6px; }
.assure li::before { content: "✓"; color: var(--teal-text); font-weight: 700; }

/* Build log: the signature detail */
.log {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 6px 6px 0 var(--teal);
}
[dir="rtl"] .log { box-shadow: -6px 6px 0 var(--teal); }
.log__head { font-weight: 600; margin-bottom: 14px; }
.log__head .mono, .log__foot { color: var(--teal-text); }
.log__list { list-style: none; margin: 0; padding: 0; }
.log__list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px dashed var(--line);
}
.log__mark { font-family: var(--mono); width: 1.2em; flex: none; color: var(--teal-text); font-weight: 700; }
.is-now { font-weight: 600; }
.is-now .log__mark { animation: pulse 1.6s ease-in-out infinite; }
.log__foot { margin: 10px 0 0; font-size: .9rem; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .is-now .log__mark { animation: none; } }

/* Sections */
.block { padding-block: 64px; border-top: 1px solid var(--line); }
.block--alt { background: var(--surface); }
@media (min-width: 960px) { .block { padding-block: 88px; } }

.tag { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 28px; }

/* Services: numbered spec rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .rows { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }
.row__num { color: var(--teal-text); font-size: 1.1rem; font-weight: 500; padding-top: 2px; }
.row h3 { font-size: 1.25rem; margin-bottom: .3em; }
.row p { margin: 0; color: var(--muted); }

/* Process: steps on a line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li {
  position: relative; padding-block: 0 26px; padding-inline-start: 56px;
}
.steps li::before {
  content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0;
  border-inline-start: 2px solid var(--teal);
}
.steps li:last-child::before { display: none; }
.steps__n {
  position: absolute; inset-inline-start: 0; top: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--bg); font-weight: 600;
}
.steps h3, .steps h4 { font-size: 1.15rem; margin: 6px 0 .25em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 56px 0 0; }
  .steps li::before {
    inset-inline-start: 48px; inset-inline-end: -24px; top: 19px; bottom: auto;
    border-inline-start: 0; border-top: 2px solid var(--teal);
  }
}

/* Sample product: phone that follows the steps */
.demo__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .demo__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.demo__stage { display: grid; place-items: center; }
@media (min-width: 960px) { .demo__stage { position: sticky; top: 120px; } }
.phone {
  width: 270px; height: 560px; border-radius: 44px; padding: 10px;
  background: #0F1E2E; box-shadow: 0 40px 80px -40px rgba(15, 30, 46, .55), inset 0 0 0 2px #22352F;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%); background: #0F1E2E; border-radius: 20px; z-index: 2;
}
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #FFFFFF; color: #0F1E2E; }
.scr {
  position: absolute; inset: 0; padding: 56px 18px 18px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  font-size: .92rem;
}
.scr.is-active { opacity: 1; transform: none; }
.scr p { margin: 0; }
.scr__brand { font: 600 .8rem var(--sans); color: #0B7A66; }
.scr .scr__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.scr__card { display: flex; justify-content: space-between; padding: 12px; border: 1.5px solid #D5E6DF; border-radius: 12px; }
.scr__card.is-picked { border-color: #12A58A; background: #E3F6EF; }
.scr__meta { color: #4A5868; font-size: .85rem; }
.scr__btn { margin-top: auto; text-align: center; padding: 12px; border-radius: 12px; background: #0F1E2E; color: #FFFFFF; font-weight: 600; }
.scr__days, .scr__slots { display: grid; gap: 8px; }
.scr__days { grid-template-columns: repeat(5, 1fr); }
.scr__slots { grid-template-columns: repeat(3, 1fr); }
.scr__days span, .scr__slots span { text-align: center; padding: 9px 0; border: 1.5px solid #D5E6DF; border-radius: 10px; font-size: .85rem; }
.scr__days .is-picked, .scr__slots .is-picked { background: #0B7A66; border-color: #0B7A66; color: #fff; font-weight: 700; }
.scr__slots .is-off { color: #8A91A0; text-decoration: line-through; }
.scr--done { align-items: center; justify-content: center; text-align: center; }
.scr__check {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: #0B7A66; color: #fff; font-size: 2.2rem; font-weight: 700; margin-bottom: 8px;
  transform: scale(.4); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .15s;
}
.scr--done.is-active .scr__check { transform: none; }
.demo__steps { list-style: none; margin: 0; padding: 0; }
.demo__steps li { padding: 18px 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--line); transition: border-color .4s ease, opacity .4s ease; }
.demo__steps li h3 { font-size: 1.2rem; margin-bottom: .2em; }
.demo__steps li p { margin: 0; color: var(--muted); }
.demo__steps li.is-current { border-color: var(--teal); }
@media (min-width: 960px) {
  /* Each step needs only enough scroll to change the phone screen (David 2026-11-23: it dragged).
     Capped in pixels, so a tall or zoomed-out window does not stretch it. */
  .demo__steps li { min-height: clamp(170px, 28vh, 240px); display: flex; flex-direction: column; justify-content: center; }
  /* Steps not in view are quieter by colour, never by opacity: text keeps its contrast (WCAG 1.4.3). */
  .demo__steps li:not(.is-current) h3 { color: var(--muted); }
  .demo__text .tag { margin-bottom: 0; }
}

/* Booking app plans */
.plans .eyebrow { margin-bottom: .4em; }
.plans__lead { color: var(--muted); max-width: 60ch; margin-top: -12px; margin-bottom: 32px; }
.plans__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .plans__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.plan--pick { border-color: var(--ink); box-shadow: 6px 6px 0 var(--teal); }
[dir="rtl"] .plan--pick { box-shadow: -6px 6px 0 var(--teal); }
.plan__badge {
  position: absolute; top: -14px; inset-inline-start: 20px; margin: 0;
  padding: 2px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--btn-bg); color: var(--btn-ink);
}
.plan__name { font-size: 1.5rem; font-weight: 800; margin-bottom: .1em; }
.plan__for { color: var(--muted); margin-bottom: 18px; }
.plan__price, .plan__month { margin: 0; }
.plan__num { font-weight: 800; font-size: 1.9rem; letter-spacing: -.01em; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.plan__month { color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan__month .plan__num { font-size: 1.35rem; color: var(--teal-text); }
.plan__list { list-style: none; margin: 16px 0 0; padding: 0; }
.plan__list li { padding: 7px 0; padding-inline-start: 26px; position: relative; }
.plan__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; font-weight: 700; color: var(--teal-text); }
.plan__list .plan__plus { padding-inline-start: 0; font-weight: 600; }
.plan__list .plan__plus::before { content: none; }

.plans__notes { list-style: none; margin: 24px 0 0; padding: 0; color: var(--muted); font-size: .98rem; }
.plans__notes li { padding: 4px 0; padding-inline-start: 18px; position: relative; }
.plans__notes li::before { content: "·"; position: absolute; inset-inline-start: 4px; font-weight: 800; }

/* Facts strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.facts li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts strong { font-weight: 700; font-size: 1.1rem; color: var(--teal-text); }
.facts span { color: var(--muted); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }
@media (min-width: 960px) { #why.block { padding-block: 56px; } }

/* Why */
.why { display: grid; gap: 32px; }
@media (min-width: 960px) { .why { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: 14px 0; padding-inline-start: 34px; position: relative;
  border-bottom: 1px solid var(--line); font-weight: 500;
}
.checks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 14px;
  font-family: var(--mono); font-weight: 700; color: var(--teal-text);
}

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1.5px solid var(--ink); }
summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem;
  padding: 18px 0; padding-inline-end: 36px; position: relative; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; inset-inline-end: 4px; top: 14px;
  font: 500 1.4rem var(--mono); color: var(--teal-text);
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 8px; }

/* Contact */
.contact__panel {
  display: grid; gap: 40px;
  background: var(--spot-bg); color: var(--spot-ink);
  border: 1px solid #22352F;
  border-radius: 20px; padding: 32px 22px;
}
.contact__panel :focus-visible { outline-color: #5FD3DC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact__panel { background: #12211D; } }
:root[data-theme="dark"] .contact__panel { background: #12211D; }
@media (min-width: 960px) { .contact__panel { grid-template-columns: 1.1fr 1fr; padding: 56px; gap: 56px; align-items: start; } }
.contact__panel .tag { color: #F3FAF7; }
.contact__lead { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; margin-bottom: 28px; max-width: 24ch; }
.contact__panel .btn--primary { background: #3FD1B0; color: #0C1714; }
.contact__panel .form .btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.contact__panel .note { background: #18302A; color: #F3FAF7; }
.contact__panel .form .note { background: var(--bg); color: var(--ink); }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact__list li { padding: 10px 0; padding-inline-start: 28px; position: relative; border-top: 1px solid #22352F; }
.contact__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: #3FD1B0; font-weight: 700; }
.contact .form { color: var(--ink); border-color: transparent; border-radius: 14px; }
.contact .form a { color: var(--teal-text); }
.chips { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips label { margin: 0; font-weight: 500; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--muted); border-radius: 999px; cursor: pointer;
}
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt { font-weight: 400; color: var(--muted); }

/* Floating WhatsApp button on phones, after the first screen */
.fab {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 6;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; visibility: hidden;
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1), visibility .35s;
}
.fab__icon { width: 26px; height: 26px; }
.show-fab .fab { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (min-width: 820px) { .fab { display: none; } }

.form {
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 24px;
}
.form h3 { font-size: 1.2rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--muted); border-radius: var(--radius); padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: .95rem; margin: 6px 0 0; font-weight: 600; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.privacy-line { font-size: .95rem; color: var(--muted); }
.note {
  margin-top: 14px; padding: 12px 14px; border-inline-start: 4px solid var(--teal);
  background: var(--surface); font-size: .98rem;
}
.form .note { background: var(--bg); }

/* Footer */
.linkish { font: inherit; color: var(--teal-text); background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.foot__contact { width: 100%; display: flex; gap: 24px; }

.foot { border-top: 1.5px solid var(--ink); padding-block: 28px; font-size: .95rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot .mono { color: var(--teal-text); font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
.foot__links a { display: inline-block; padding: 10px 0; }

/* Icons: Lucide (ISC licence), drawn inline, coloured by the text colour */
.ico {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* Own app or subscription tool */
.compare { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { padding: 20px 22px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare__col--pick { border-color: var(--ink); }
.compare h3 { font-size: 1.05rem; margin-bottom: .6em; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 6px 0; padding-inline-start: 22px; position: relative; color: var(--muted); }
.compare li::before { content: "·"; position: absolute; inset-inline-start: 6px; font-weight: 800; color: var(--ink); }
.compare__col--pick li { color: var(--ink); }
.compare__col--pick li::before { content: "✓"; inset-inline-start: 0; color: var(--teal-text); }


/* Phones: the product cards start inside the first screen */
@media (max-width: 599.98px) {
  .hero .lead { font-size: 1.1rem; }
  .hero .cta { margin-top: 20px; }
  .shelf__track { padding-top: 26px; }
}

/* ---- Product shelf: one card per product standing on a shelf; a card opens its packages ---- */
:root { --plate-studio: #D3F0E4; --plate-salon: #E4ECF7; --plate-custom: #1A2540; --shelf-shadow: rgba(15, 30, 46, .5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --plate-studio: #1F302A; --plate-salon: #1B2533; --plate-custom: #0F3139; --shelf-shadow: rgba(0, 0, 0, .7); }
}
:root[data-theme="dark"] { --plate-studio: #1F302A; --plate-salon: #1B2533; --plate-custom: #0F3139; --shelf-shadow: rgba(0, 0, 0, .7); }

.shelf { padding-block: 8px 72px; }
@media (min-width: 960px) { .shelf { padding-block: 16px 96px; } }
.shelf__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shelf .tag { margin-bottom: 8px; }
.shelf__hint { color: var(--muted); margin: 0; }
.shelf__arrows { display: flex; gap: 8px; flex: none; }
.shelf__arrows[hidden] { display: none; }
.shelf__arrow {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%;
}
.shelf__arrow svg, .prod__open svg, .detail__close svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="ltr"] .shelf__arrow svg { transform: scaleX(-1); }
.shelf__arrow:hover { background: var(--ink); color: var(--bg); }
.shelf__arrow:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); }

/* The track: swipe on phones, three side by side from 900px */
.shelf__track {
  list-style: none; margin: 0 -16px; padding: 36px 16px 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(82%, 340px); gap: 14px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.shelf__track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .shelf__track { margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; } }
@media (min-width: 900px) {
  .shelf__track { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; }
}
.prod { display: flex; scroll-snap-align: center; }
.prod--studio { --plate: var(--plate-studio); }
.prod--salon { --plate: var(--plate-salon); }
.prod--custom { --plate: var(--plate-custom); }

.prod__card {
  appearance: none; font: inherit; color: inherit; text-align: start; cursor: pointer;
  width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column;
  background: var(--plate); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0;
  overflow: hidden; transform-origin: bottom center;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), filter .4s ease;
}
.prod__art { position: relative; display: block; height: 200px; overflow: hidden;
  background: radial-gradient(circle at 70% 20%, color-mix(in srgb, #fff 40%, transparent), transparent 62%); }
.prod__phone {
  position: absolute; top: 26px; inset-inline-end: 24px; width: 168px; padding: 6px;
  border-radius: 28px; background: #0F1E2E; box-shadow: 0 24px 40px -18px rgba(15, 30, 46, .6), inset 0 0 0 2px #22352F;
  transform: rotate(-5deg); transition: transform .6s var(--ease-out);
}
[dir="ltr"] .prod__phone { transform: rotate(5deg); }
.prod__phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.prod__phone--draw { height: 330px; display: grid; align-content: start; gap: 10px; padding: 30px 16px; }
.prod__phone--draw span { display: block; height: 16px; border-radius: 6px; background: #22352F; }
.prod__phone--draw span:first-child { height: 46px; background: #12A58A; }
.prod__phone--draw span:nth-child(2) { width: 70%; }
.prod__phone--draw span:nth-child(3) { width: 85%; }
.prod__phone--draw span:nth-child(4) { height: 40px; margin-top: 8px; border: 2px dashed #3FD1B0; background: transparent; }

.prod__body {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 30px 20px 22px; background: var(--surface); border-top: 1.5px solid var(--ink);
}
.prod__body > .ico {
  position: absolute; top: -26px; inset-inline-start: 18px; width: 50px; height: 50px; padding: 11px;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--teal-text);
}
.prod__name { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.prod__line { color: var(--muted); }
.prod__from { font-weight: 600; margin-top: 4px; }
.prod__num { font-weight: 800; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.prod__open { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--teal-text); }
.prod__open svg { transition: transform .45s var(--ease-out); }

.prod__card:hover { transform: translateY(-6px); box-shadow: 0 22px 30px -24px var(--shelf-shadow); }
.prod__card:hover .prod__phone, .prod.is-open .prod__phone { transform: translateY(-14px) rotate(0deg); }
.prod.is-open .prod__card { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--teal), 0 30px 40px -26px var(--shelf-shadow); }
.prod.is-open .prod__open svg { transform: rotate(180deg); }
.shelf.has-open .prod:not(.is-open) .prod__card { filter: saturate(.55); transform: scale(.97); }
.shelf.has-open .prod:not(.is-open) .prod__card:hover { filter: none; transform: translateY(-6px); }

/* The shelf itself */
.shelf__ledge {
  position: relative; z-index: 1; height: 14px; border-radius: 3px;
  background: linear-gradient(var(--ink), color-mix(in srgb, var(--ink) 70%, var(--bg)));
  box-shadow: 0 16px 20px -14px var(--shelf-shadow);
}

/* The open product: its packages */
.shelf__details { margin-top: 30px; }
.detail {
  --notch: 50%;
  position: relative; margin-bottom: 24px; padding: 28px 18px 24px;
  border: 1.5px solid var(--ink); border-radius: 16px;
  background: linear-gradient(var(--plate), var(--plate)) top / 100% 8px no-repeat, var(--surface);
}
@media (min-width: 720px) { .detail { padding: 36px 32px 32px; } }
.detail--studio { --plate: var(--plate-studio); }
.detail--salon { --plate: var(--plate-salon); }
.detail--custom { --plate: var(--teal); }
.shelf--js .detail { margin-bottom: 28px; }
.shelf--js .detail::before {
  content: ""; position: absolute; top: -11px; left: var(--notch); width: 20px; height: 20px;
  background: var(--plate); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0;
}
.detail__head { position: relative; display: grid; gap: 24px; margin-bottom: 32px; }
@media (min-width: 960px) { .detail__head { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.detail__title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; max-width: 20ch; padding-inline-end: 52px; margin-bottom: .4em; }
.detail__lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.detail__shot { display: none; margin: 0; }
@media (min-width: 960px) {
  .detail__shot { display: grid; justify-items: center; gap: 10px; margin-inline-end: 56px; }
  .detail__shot img { width: 190px; height: auto; padding: 6px; border-radius: 28px; background: #0F1E2E; box-shadow: 0 30px 50px -30px rgba(15, 30, 46, .6); }
  .detail__shot figcaption { color: var(--muted); font-size: .9rem; }
}
.detail__close {
  display: none; position: absolute; top: -8px; inset-inline-end: -4px; width: 44px; height: 44px; padding: 0; cursor: pointer;
  place-items: center; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 50%;
}
.shelf--js .detail__close { display: grid; }
.detail__close:hover { border-color: var(--ink); }
.detail .plans__grid { margin-top: 0; }
.detail .plan { background: var(--bg); }

/* Products step onto the shelf one after another */
.motion .prod.reveal { transform: translateY(36px) scale(.97); }
.motion .prod.reveal.is-in { transform: none; transition-delay: calc(.1s + var(--i) * 140ms); }
.motion .shelf__ledge.reveal { transform: scaleX(.9); }
.motion .shelf__ledge.reveal.is-in { transform: none; }

/* ---- Colour bands: the scroll changes colour section by section ----
   white (products), light cyan (sample app), deep cyan (principles); cream between them. */
:root { --band-white: #FFFFFF; --band-cyan: #DDF5EC; --band-deep: #0B7A66; --band-deep-ink: #FFFFFF; --band-deep-soft: #E6F8F1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band-white: #12211D; --band-cyan: #0F2A24; --band-deep: #3FD1B0; --band-deep-ink: #0C1714; --band-deep-soft: #123A30; }
}
:root[data-theme="dark"] { --band-white: #12211D; --band-cyan: #0F2A24; --band-deep: #3FD1B0; --band-deep-ink: #0C1714; --band-deep-soft: #123A30; }
.band { border-top: 0; }
.band--white { background: var(--band-white); }
.band--white .prod__body, .band--white .detail { background-color: var(--surface); }
.band--cyan { background: var(--band-cyan); }
.band--cyan .demo__steps li { border-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.band--cyan .demo__steps li.is-current { border-color: var(--teal-text); }
.band--deep { background: var(--band-deep); color: var(--band-deep-ink); }
.band--deep .facts { border-top-color: var(--band-deep-ink); }
.band--deep .facts li { border-bottom-color: color-mix(in srgb, var(--band-deep-ink) 30%, transparent); }
.band--deep .facts strong { color: var(--band-deep-ink); font-size: 1.5rem; font-weight: 800; }
.band--deep .facts span { color: var(--band-deep-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band--deep .facts span { color: var(--band-deep-ink); } }
:root[data-theme="dark"] .band--deep .facts span { color: var(--band-deep-ink); }
.band--deep :focus-visible { outline-color: var(--band-deep-ink); }

/* Legal pages */
.doc { max-width: 760px; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); max-width: none; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); font-family: var(--mono); font-size: .92rem; }
.doc__table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.doc__table caption { text-align: start; font-weight: 700; margin-bottom: .4em; }
.doc__table th, .doc__table td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc__table th { border-bottom: 1.5px solid var(--ink); }
.doc hr { border: 0; border-top: 1.5px solid var(--ink); margin: 56px 0; }

/* ---- Motion (js/motion.js adds .motion only when motion is allowed) ---- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
main { overflow-x: clip; }

.top { transition: box-shadow .4s ease, background-color .4s ease; }
.top.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 30, 46, .45); }

/* The hidden state applies at once; only the arrival is animated. */
.motion .reveal { opacity: 0; transform: translateY(28px); }
.motion .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Headline arrives with a soft focus pull */
.motion .hero__text h1.reveal { filter: blur(10px); transform: translateY(18px) scale(.985); }
.motion .hero__text h1.reveal.is-in { filter: none; transform: none; }

/* Build log: panel lifts in, then the lines tick one by one */
.motion .log.reveal { transform: translateY(40px) scale(.97); }
.motion .log.reveal.is-in { transform: none; transition-delay: .25s; }
.motion .log__list li.reveal { transform: none; }
.motion .log__list li.reveal.is-in { transition-delay: calc(.7s + var(--i) * 260ms); }
.motion .log__list li.is-in .log__mark { transition: transform .5s var(--ease-out); transition-delay: inherit; }
.motion .log__list li.reveal:not(.is-in) .log__mark { transform: scale(0); }

/* Process: the line draws itself between the steps */
.motion .steps li.reveal::before { transform-origin: top; transform: scaleY(0); }
.motion .steps li.reveal.is-in::before { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(.3s + var(--i) * 140ms); }
@media (min-width: 960px) {
  .motion .steps li.reveal::before { transform-origin: left; transform: scaleX(0); }
  [dir="rtl"] .motion .steps li.reveal::before, .motion[dir="rtl"] .steps li.reveal::before { transform-origin: right; }
  .motion .steps li.reveal.is-in::before { transform: none; }
}

.hero { position: relative; isolation: isolate; }

/* Buttons respond to touch and hover */
.btn { transition: transform .25s var(--ease-out), box-shadow .25s ease, background-color .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

/* FAQ: answers slide open */
details[open] p { animation: open .45s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Visitor pressed "Stop animations" */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  details[open] p, .is-now .log__mark { animation: none; }
  .scr, .scr__check, .fab, .demo__steps li { transition: none; }
  .btn, .top, .prod__card, .prod__phone, .prod__open svg { transition: none; }
  .prod__card:hover, .prod.is-open .prod__card, .shelf.has-open .prod:not(.is-open) .prod__card, .prod__card:hover .prod__phone, .prod.is-open .prod__phone { transform: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---- Pain first, then the fix (2026-11-22) ----
   Warm coral marks problems only; teal marks the answer. */
.eyebrow { margin-bottom: .5em; }
.eyebrow--warm { color: var(--warm-text); }
.btn__icon--sm { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .btn__icon--sm { transform: scaleX(-1); }

/* Hero (2026-11-24 redesign): big headline beside a rounded picture of real app screens,
   a dark "most asked for" block overlapping it, and three white promise cards over its edge. */
.hero { grid-template-areas: "text" "art" "spot" "promise"; gap: 0; padding-block: 28px 8px; }
.hero__text { grid-area: text; }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 7.2vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
.hero .lead { margin-top: 16px; max-width: 40ch; }
.hero .btn { border-radius: 999px; }
.hero__art {
  grid-area: art; position: relative; margin: 28px 0 0; width: auto; height: 340px;
  border-radius: 32px 32px 32px 110px; overflow: hidden;
  background: var(--teal-soft);
}
[dir="ltr"] .hero__art { border-radius: 32px 32px 110px 32px; }
.hero__phone {
  position: absolute; width: 150px; padding: 5px; border-radius: 26px; background: #0F1E2E;
  box-shadow: 0 30px 50px -24px rgba(15, 30, 46, .55);
}
.hero__phone img { display: block; width: 100%; height: auto; border-radius: 21px; }
.hero__phone--a { inset-inline-start: 18%; top: 34px; transform: rotate(-5deg); z-index: 1; }
.hero__phone--b { inset-inline-end: 16%; top: 70px; transform: rotate(6deg); }
.hero__art figcaption {
  position: absolute; inset-inline-end: 16px; top: 14px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: .875rem;
}
/* Phone: smaller picture so the dark price block starts on the first screen */
@media (max-width: 599.98px) {
  .hero h1 { font-size: 2.1rem; }
  .hero__art { height: 230px; margin-top: 20px; }
  .hero__phone { width: 118px; }
  .hero__phone--a { top: 52px; }
  .hero__phone--b { top: 66px; }
  .hero__art figcaption { z-index: 2; }
  .spot { margin-top: -40px; }
}

.spot {
  grid-area: spot; position: relative; z-index: 2; display: grid; gap: 20px;
  margin-top: -64px; padding: 28px 22px; border-radius: 32px;
  background: var(--spot-bg); color: var(--spot-ink);
  box-shadow: 0 30px 60px -36px rgba(15, 30, 46, .7);
}
.spot__title { margin: 0 0 10px; font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.15; color: var(--spot-ink); }
.spot__lead { margin: 0; color: var(--spot-soft); }
.spot .cta { margin-top: 20px; }
.btn--accent { background: var(--spot-btn); color: var(--spot-btn-ink); border-color: var(--spot-btn); border-radius: 999px; }
.btn--accent:hover { box-shadow: 0 0 0 3px rgba(63, 209, 176, .4); }
.spot :focus-visible { outline-color: var(--spot-ink); }
/* Dark block in light mode; in dark mode a mint block with dark text, so it stands out from the page */
:root { --spot-bg: #0F1E2E; --spot-ink: #F3FAF7; --spot-soft: #C9D6D1; --spot-btn: #3FD1B0; --spot-btn-ink: #06261F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --spot-bg: #3FD1B0; --spot-ink: #06261F; --spot-soft: #0C3A30; --spot-btn: #0C1714; --spot-btn-ink: #E9F2EE; } }
:root[data-theme="dark"] { --spot-bg: #3FD1B0; --spot-ink: #06261F; --spot-soft: #0C3A30; --spot-btn: #0C1714; --spot-btn-ink: #E9F2EE; }

.promise { grid-area: promise; position: relative; z-index: 3; list-style: none; margin: -22px 10px 0; padding: 0; display: grid; gap: 12px; }
.promise li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(15, 30, 46, .35);
}
.promise__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-text); font-weight: 900;
}
.promise h3 { margin: 0 0 4px; font-size: 1.1rem; }
.promise p { margin: 0; color: var(--muted); font-size: .97rem; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1.05fr; grid-template-areas: "text art" "spot spot" "promise promise";
    column-gap: 48px; align-items: center; padding-block: 40px 16px;
  }
  .hero__text { align-self: start; padding-top: 24px; }
  .hero__art { align-self: start; }
  .hero h1 { font-size: 3.5rem; }
  .hero__art { height: 500px; margin-top: 0; border-radius: 48px 48px 48px 200px; }
  [dir="ltr"] .hero__art { border-radius: 48px 48px 200px 48px; }
  .hero__phone { width: 200px; }
  .hero__phone--a { top: 46px; }
  .hero__phone--b { top: 96px; }
  .spot {
    width: calc((100% - 48px) * 1.05 / 2.05); justify-self: end; margin-top: -120px; padding: 36px 40px;
  }
  [dir="ltr"] .spot { justify-self: end; }
  .promise { width: 92%; justify-self: start; margin: -28px 0 0; grid-template-columns: repeat(3, 1fr); }
}

/* Motion: the app screens float gently; the hero parts arrive one after another */
.motion .hero__phone--a { animation: float-a 7s ease-in-out infinite alternate; }
.motion .hero__phone--b { animation: float-b 8s ease-in-out infinite alternate; }
@keyframes float-a { to { transform: rotate(-3deg) translateY(-12px); } }
@keyframes float-b { to { transform: rotate(4deg) translateY(10px); } }
.motion .spot.reveal { transform: translateY(40px) scale(.98); }
.motion .spot.reveal.is-in { transform: none; transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .hero__phone--a, .hero__phone--b { animation: none; } }

/* Problem and fix in one section (David 2026-11-23: shorter page). Each card holds the problem
   and its fix in the same spot; the switch, or the section coming into view, turns them over.
   Without JavaScript both show, problem first. */
.pf { background: var(--warm-soft); border-top: 0; transition: background-color .5s ease; }
.pf[data-state="after"] { background: var(--teal-soft); }
.pf .tag { max-width: 24ch; }
.pf__head { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 960px) { .pf__head { grid-template-columns: 1fr auto; align-items: end; } }
.pf__head .tag { margin-bottom: 0; }
.pf__switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; justify-self: start;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
}
.pf__btn {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted); background: transparent;
  transition: background-color .3s ease, color .3s ease;
}
.pf__btn[aria-pressed="true"][data-pf="before"] { background: var(--warm-text); color: var(--surface); }
.pf__btn[aria-pressed="true"][data-pf="after"] { background: var(--teal-text); color: var(--surface); }
.pf__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Drawn scenes of the problem and the fix (our own SVGs, no stock photos) */
.pf__scene { display: grid; margin: 0 0 20px; }
.pf__art { grid-area: 1 / 1; width: 100%; max-width: 820px; height: auto; border-radius: 22px; justify-self: center; }
.pf__art--after { display: none; }
.pf--live .pf__art { display: block; transition: opacity .45s ease; }
.pf--live[data-state="before"] .pf__art--after,
.pf--live[data-state="after"] .pf__art--before { opacity: 0; visibility: hidden; }
.pf__pic { grid-column: 1 / -1; width: 100%; height: auto; border-radius: 10px; margin-bottom: 14px; }
.no-motion .pf__art { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .pf__art { transition: none !important; } }
.pf__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .pf__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1040px) { .pf__grid { grid-template-columns: repeat(4, 1fr); } }
.pf__card { display: grid; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); overflow: hidden; }
.pf__face { padding: 14px 14px 18px; display: grid; grid-template-columns: 1fr; align-content: start; }
.pf__face h3, .pf__face p { padding-inline: 6px; }
.pf__face .ico { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; }
.pf__face h3 { font-size: 1.1rem; margin: 0 0 .3em; }
.pf__face p { margin: 0; color: var(--muted); font-size: .97rem; }
.pf__face--before { border-top: 4px solid var(--warm-text); }
.pf__face--before .ico { color: var(--warm-text); }
.pf__face--after { border-top: 4px solid var(--teal); }
.pf__face--after .ico { color: var(--teal-text); }
/* Turned on by js/before-after.js: both faces in one spot, only the chosen one visible. */
.pf--live .pf__face { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s var(--ease-out, ease); }
.pf--live[data-state="before"] .pf__face--after,
.pf--live[data-state="after"] .pf__face--before { opacity: 0; visibility: hidden; transform: translateY(8px); }
.pf--live[data-state="before"] .pf__t--after,
.pf--live[data-state="after"] .pf__t--before { display: none; }
.pf--live[data-state="after"] .eyebrow--warm { visibility: hidden; }
.pf--live .pf__card:nth-child(2) .pf__face { transition-delay: .08s; }
.pf--live .pf__card:nth-child(3) .pf__face { transition-delay: .16s; }
.pf--live .pf__card:nth-child(4) .pf__face { transition-delay: .24s; }
.no-motion .pf, .no-motion .pf__face, .no-motion .pf__btn { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .pf, .pf__face, .pf__btn { transition: none !important; } }
.pain__punch { margin: 24px 0 0; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; max-width: 36ch; }

/* What it costs: three sliders and the result */
.cost__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .cost__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.cost__lead { color: var(--muted); max-width: 40ch; }
.calc { background: var(--bg); border: 1.5px solid var(--ink); border-radius: 16px; padding: 24px 20px; }
@media (min-width: 720px) { .calc { padding: 32px; } }
.calc__row { margin-bottom: 22px; }
.calc__row label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__val { font-weight: 800; font-size: 1.2rem; color: var(--teal-text); unicode-bidi: isolate; }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to left, var(--teal) var(--fill, 50%), var(--line) var(--fill, 50%));
}
[dir="ltr"] .calc input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--teal) var(--fill, 50%), var(--line) var(--fill, 50%));
}
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.calc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--teal); }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--ink); box-shadow: 0 4px 10px -4px rgba(15, 30, 46, .5);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink);
}
.calc input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.calc__result { display: grid; gap: 12px; margin: 8px 0 16px; padding: 20px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-ink); }
@media (min-width: 720px) { .calc__result { grid-template-columns: 1fr 1fr; } }
.calc__result p { margin: 0; display: grid; gap: 2px; }
.calc__big { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
[dir="rtl"] .calc__big { text-align: right; }
.calc__note { margin: 0; color: var(--muted); font-size: .92rem; }

.demo__live { margin-top: 24px; }
.motion .pf__card.reveal.is-in { transition-delay: calc(var(--i, 0) * 110ms); }

@media (prefers-reduced-motion: reduce) {
}
