/* Clinic page. Phone first (375 px), laptop from 1024 px. Satoshi for words, JetBrains Mono for numbers (his pick, 24 Nov 2026). */
:root {
  --bg: #f5f2ec; --surface: #fffdf9; --ink: #15120f; --ink-2: #4a433c; --muted: #857b71; --line: rgba(21, 18, 15, 0.1);
  --accent: #d9482a; --accent-ink: #b53a1e; --accent-soft: rgba(217, 72, 42, 0.09); --on-accent: #fff;
  --shadow: 0 30px 60px -32px rgba(40, 24, 10, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: "Satoshi", ui-sans-serif, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  --bg: #0f0d0c; --surface: #191614; --ink: #f4efe7; --ink-2: #c8beb2; --muted: #8e8478; --line: rgba(244, 239, 231, 0.1);
  --accent: #ff7552; --accent-ink: #ff9a7d; --accent-soft: rgba(255, 117, 82, 0.12); --on-accent: #170c08;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 15px; transition: transform 0.4s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand__by { display: none; color: var(--muted); font-size: 15px; }
.top__nav { display: none; }
.top__act { display: flex; align-items: center; gap: 8px; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.theme__dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); transition: transform 0.6s var(--spring); }
:root[data-theme="dark"] .theme__dot { transform: rotate(180deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--primary:hover { box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.dim { font-family: var(--mono); font-size: 13px; font-weight: 500; opacity: 0.75; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Type */
.kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); letter-spacing: 0; }
h1, h2 { margin: 0; font-weight: 900; letter-spacing: -0.045em; line-height: 0.98; }
.hero__title { font-size: clamp(44px, 11.5vw, 108px); max-width: 11.5em; }
h2 { font-size: clamp(36px, 8.4vw, 72px); margin-bottom: 28px; }
.lede { margin: 20px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 30em; font-weight: 500; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* hidden from the first paint until the motion script reveals them (removed after 3 s if it never runs) */
.js .hero__title, .js [data-hero], .js .layer, .js [data-reveal] { opacity: 0; }

/* Hero */
.hero { position: relative; padding: 36px 0 0; overflow: hidden; }
.hero__in { display: grid; gap: 40px; }
.hero__vis { position: relative; height: 520px; max-width: 380px; width: 100%; margin: 0 auto; }
.layer { position: absolute; will-change: transform; }
.layer--phone { left: 50%; top: 0; width: 262px; margin-left: -131px; }
.device { border-radius: 36px; overflow: hidden; background: #efeae2; border: 8px solid #17130f; box-shadow: var(--shadow); }
.device img { width: 100%; }
.layer--board { left: -6px; bottom: 54px; width: 72%; }
.layer--board img { border-radius: 16px; box-shadow: var(--shadow); }
.layer--chip { right: -4px; top: 74px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.chip .mono { color: var(--accent-ink); }
.label { position: absolute; z-index: 2; top: -13px; left: 18px; height: 26px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; background: var(--ink); color: var(--bg); font: 500 12px var(--mono); letter-spacing: -0.01em; white-space: nowrap; }

/* Ticker */
.ticker { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: inline-flex; gap: 48px; padding: 16px 0; animation: tick 46s linear infinite; }
.ticker span { font-size: 15px; color: var(--ink-2); }
.ticker span::before { content: "●"; color: var(--accent); font-size: 9px; vertical-align: 3px; margin-right: 12px; }
.ticker b { color: var(--ink); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* Sections */
.sec { padding: 84px 0; }
.fit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit__list li { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; padding: 18px 0; border-top: 1px solid var(--line); }
.tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.tick svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.fit__line { margin: 30px 0 0; font-size: clamp(22px, 5vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; max-width: 22em; }

/* Story */
.story__grid { display: block; }
.story__steps { list-style: none; margin: 0 -20px; padding: 0 20px 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.story__steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 82%; scroll-snap-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px 20px 0; overflow: hidden; }
.step__who { margin: 0; font-weight: 700; font-size: 15px; } .step__who .mono { color: var(--accent-ink); margin-right: 6px; font-size: 13px; }
.step__text { margin: 8px 0 18px; font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.step__img { border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; aspect-ratio: 390 / 560; object-fit: cover; object-position: top; width: 100%; }
.step__img--wa { background: #efeae2; object-fit: contain; }
.story__stage { display: none; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots span { width: 7px; height: 7px; border-radius: 6px; background: var(--line); transition: width 0.4s var(--ease), background-color 0.3s; }
.dots span.is-on { width: 26px; background: var(--accent); }

/* Proof */
.proof__grid { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-2); }
.card b { color: var(--ink); }
.big { font-size: clamp(44px, 10vw, 76px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px !important; color: var(--ink) !important; }
.big .mono { font-weight: 600; letter-spacing: -0.06em; }
.arrow { display: inline-block; color: var(--accent); transition: transform 0.5s var(--spring); }
.card:hover .arrow { transform: translateX(8px); }
.demos { margin: 24px 0 0; color: var(--ink-2); font-size: 17px; }

/* Trust */
.trust__in { display: grid; gap: 40px; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.trust__list li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); position: relative; font-size: 18px; }
.trust__list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.log { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); align-self: start; }
.log__head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.live { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }
.log__list { list-style: none; margin: 0; padding: 0; min-height: 300px; }
.log__list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.log__list li:last-child { border-bottom: 0; }
.log__list p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.log__list b { color: var(--ink); }
.log__list .t { float: right; color: var(--muted); font-size: 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.diff { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 12px; color: var(--ink); }

/* Price */
.toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.toggle button { position: relative; z-index: 1; height: 44px; padding: 0 18px; border: 0; background: none; border-radius: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.toggle button[aria-selected="true"] { color: var(--bg); }
.toggle__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 12px; background: var(--ink); transition: transform 0.45s var(--spring), width 0.45s var(--spring); }
.save { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; display: grid; gap: 22px; box-shadow: var(--shadow); max-width: 760px; }
.plan__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.amount { font-size: clamp(48px, 12vw, 84px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.per { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan__sub { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.pop { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.plan__incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan__incl li { padding-left: 28px; position: relative; }
.plan__incl li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent); transform: rotate(-45deg); }
.plan__fine { margin: 0; font-size: 14px; color: var(--muted); }
.offer { margin: 22px 0 0; display: inline-block; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* Start */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.steps3 li { position: relative; padding: 22px 22px 22px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; font-size: 18px; }
.steps3 .n { position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 16px; }
.steps3__line { display: none; }

/* FAQ */
.faq__in { display: grid; gap: 10px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--accent), var(--accent)) center/100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 100% no-repeat; transition: transform 0.45s var(--spring); }
details[open] summary::after { transform: rotate(135deg); }
.ans { overflow: hidden; }
.ans p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* End and forms */
.end__in { display: grid; gap: 36px; }
.form, .gate__card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
.form__title, .gate__title { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.gate__sub { margin: -6px 0 4px; color: var(--muted); font-size: 15px; }
.form label, .gate__card label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.opt { font-weight: 500; color: var(--muted); }
input:not([type="checkbox"]) { height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: 500 16px var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input.bad { border-color: #c2214a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--ink-2); }
.form__msg { margin: 0; font-size: 14px; min-height: 1em; color: var(--accent-ink); font-weight: 700; }

/* Gate */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.gate[hidden] { display: none; }
.gate__bg { position: absolute; inset: 0; background: rgba(10, 8, 6, 0.55); backdrop-filter: blur(4px); animation: fade 0.3s var(--ease); }
.gate__card { position: relative; width: 100%; max-width: 460px; border-radius: 26px 26px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: up 0.45s var(--ease); }
.gate__x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* Footer and phone bar */
.foot { padding: 34px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.45s var(--ease); }
.bar.is-on { transform: none; }
.bar .btn { height: 48px; }

/* Laptop */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .wrap { padding: 0 56px; }
  .brand__by { display: inline; }
  .top__nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
  .top__nav a { text-decoration: none; color: var(--ink-2); position: relative; }
  .top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
  .top__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 0; }
  .hero > .wrap { width: 100%; } /* an auto margin in a flex column stops it stretching: keep it aligned with the header */
  .hero__in { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 56px; min-height: calc(100vh - 64px - 60px); }
  .hero__text { position: relative; z-index: 2; }
  .hero__vis { height: 640px; max-width: 460px; }
  .layer--phone { width: 300px; margin-left: -110px; }
  .layer--board { left: -28px; bottom: 60px; width: 320px; }
  .layer--chip { right: -10px; top: 90px; }
  .lede { font-size: 21px; }
  .ticker { margin-top: 0; }
  .sec { padding: 140px 0; }
  h2 { margin-bottom: 44px; }
  .fit__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .fit__list li { flex-direction: column; align-items: flex-start; font-size: 26px; line-height: 1.15; padding: 26px 0 0; }
  .story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .story__steps { display: block; margin: 0; padding: 0; overflow: visible; }
  .step { background: none; border: 0; border-radius: 0; padding: 0; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease); }
  .step.is-on { opacity: 1; }
  .step__who { font-size: 18px; } .step__who .mono { font-size: 15px; }
  .step__text { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 0; max-width: 13em; }
  .step__img { display: none; }
  .story__stage { display: flex; align-items: center; justify-content: center; gap: 28px; position: sticky; top: calc(50vh - 330px); height: 660px; }
  .device--lg { position: relative; width: 300px; height: 650px; }
  .device--lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity 0.55s var(--ease), transform 0.8s var(--ease); }
  .device--lg img.wa { object-fit: contain; background: #efeae2; }
  .device--lg img.is-on { opacity: 1; transform: none; }
  .rail { width: 3px; height: 240px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .rail__fill { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0.2); transition: transform 0.6s var(--ease); }
  .dots { display: none; }
  .proof__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card { padding: 40px; }
  .trust__in { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .plan { padding: 44px; }
  .plan .btn { justify-self: start; }
  .plan__incl { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps3 li { padding: 84px 28px 30px; min-height: 200px; }
  .steps3 .n { left: 28px; top: 26px; }
  .faq__in { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .end__in { grid-template-columns: 1fr 0.9fr; gap: 80px; align-items: center; }
  .gate { place-items: center; }
  .gate__card { border-radius: 26px; padding: 32px; }
  .bar { display: none; }
  .foot { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker__track { animation: none; }
}
