/* =========================================================
   KarvAgenda: landing
   Tokens tirados do produto: azul da marca hsl(200 65% 35%),
   teal do botão do app, fundo slate do painel, noite da sidebar.
   ========================================================= */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
/* reserva com métricas próximas às da Bricolage (medidas no navegador),
   para a primeira visita em rede lenta, quando a fonte fica de fora */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 91.34%;
  ascent-override: 101.82%;
  descent-override: 29.56%;
  line-gap-override: 0%;
}

:root {
  --bg: #f6f8f9;
  --surface: #e9eff2;
  --surface-2: #dde6eb;
  --paper: #ffffff;
  --ink: #0e1a20;
  --muted: #45585f;
  --brand: #1f6d93;
  --brand-strong: #175877;
  --brand-soft: #d6e8f1;
  --teal: #177d73;
  --teal-soft: #d3ece8;
  --amber: #a15c07;
  --night: #0c1519;
  --night-2: #15232a;
  --on-night: #eef4f6;
  --night-muted: #a3b6be;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --step-display: clamp(3.25rem, 1.2rem + 7.6vw, 9.25rem);

  --margin: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(120px, 14vw, 220px);
  --radius: 6px;

  /* movimento (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Bricolage Grotesque", "Bricolage Fallback", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--margin); max-width: 1600px; margin-inline: auto; }
.section { padding-top: var(--section); }
.head { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.4; text-wrap: pretty; }
.soft { color: var(--muted); }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: var(--step-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn__arrow { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--light { background: var(--on-night); color: var(--night); }
.link {
  text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em;
  text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--brand-strong); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--ghost:hover { background: var(--surface-2); }
  .btn--light:hover { background: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* =========================================================
   <ka-header>: barra simples que some ao descer e volta ao subir
   ========================================================= */
ka-header { display: block; position: sticky; top: 0; z-index: 50; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; background: var(--bg);
  transition: transform 320ms var(--ease-drawer), background-color 200ms ease;
}
ka-header[data-hidden] .bar { transform: translateY(-100%); }
.bar__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; }
.bar__brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar__nav { display: flex; align-items: center; gap: 32px; font-size: var(--step-small); }
.bar__nav a:not(.btn) { text-decoration: none; padding: 12px 0; }
.bar__nav .btn { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.bar__toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--surface);
  cursor: pointer; place-items: center; transition: transform var(--t-press) var(--ease-out);
}
.bar__toggle:active { transform: scale(0.95); }
.bar__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.bar__toggle span + span { margin-top: 5px; }
ka-header[data-open] .bar__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
ka-header[data-open] .bar__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .bar__toggle { display: grid; }
  .bar__nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--margin) 28px; background: var(--bg);
    font-size: var(--step-lead);
    transform-origin: top center;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 240ms var(--ease-out), opacity 180ms ease, visibility 0s 240ms;
  }
  .bar__nav a:not(.btn) { padding: 14px 0; }
  .bar__nav .btn { margin-top: 16px; min-height: 52px; font-size: var(--step-body); }
  ka-header[data-open] .bar__nav { transform: none; opacity: 1; visibility: visible; transition: transform 240ms var(--ease-out), opacity 180ms ease; }
}

/* =========================================================
   HERO: a agenda real de hoje e o cliente marcando pelo celular
   ========================================================= */
.hero { padding-top: clamp(40px, 7vw, 112px); }
.hero h1 { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines .line > span { display: block; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(36px, 5vw, 72px); align-items: start; }
.hero__copy { grid-column: 1 / span 5; padding-top: 8px; }
.hero__copy .lead { max-width: 30rem; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__note { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.hero__stage { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(200px, 0.62fr) 1fr; gap: clamp(20px, 2.4vw, 36px); align-items: start; }

/* <ka-day>: o dia real do negócio demo */
ka-day { display: block; }
.day {
  position: relative; width: 100%;
  background: var(--paper); border-radius: 18px; padding: 22px 22px 18px;
}
.day__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.day__title { font-weight: 600; font-size: 1.0625rem; }
.day__sum { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.day__sum b { color: var(--ink); font-weight: 600; }
.day__list { position: relative; display: grid; gap: 6px; }
.day__row {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  min-height: 46px; padding: 6px 12px 6px 0; border-radius: 10px;
  background: var(--bg); font-size: 0.9375rem; line-height: 1.25;
  border-left: 4px solid var(--brand);
}
.day__row[data-status="concluido"] { border-left-color: var(--teal); }
.day__row[data-status="pendente"] { border-left-color: #d58a1a; }
.day__time { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.day__who strong { display: block; font-weight: 600; }
.day__who span { color: var(--muted); font-size: 0.875rem; }
.day__tag { font-size: 0.8125rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.day__tag--concluido { background: var(--teal-soft); color: #0d5a52; }
.day__tag--confirmado { background: var(--brand-soft); color: #134e6b; }
.day__tag--pendente { background: #fbecd2; color: #7a4705; }
.day__now {
  position: absolute; left: 78px; right: 22px; height: 2px; background: #d6453d; border-radius: 2px;
  top: var(--now, 50%); pointer-events: none;
}
.day__now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #d6453d; }

.hero__phone { grid-column: 1; grid-row: 1; margin-top: clamp(40px, 6vw, 96px); }
.hero__phone ka-video { border-radius: 30px; padding: 8px; background: var(--night); }
.hero__phone video, .hero__phone img { border-radius: 23px; }
.hero__phone ka-video:defined img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.hero__phone figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
ka-day { grid-column: 2; grid-row: 1; }

/* =========================================================
   <ka-video>: vídeo real, sem som, só toca na tela
   ========================================================= */
ka-video { display: block; position: relative; background: var(--surface); }
ka-video video, ka-video img { width: 100%; height: auto; object-fit: cover; }
ka-video:defined img { position: absolute; inset: 0; transition: opacity 300ms ease; }
ka-video[data-playing] img { opacity: 0; }
.vid-toggle {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(12, 21, 25, 0.72); color: #fff; display: grid; place-items: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.vid-toggle:active { transform: scale(0.94); }
.vid-toggle svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .vid-toggle:hover { background: rgba(12, 21, 25, 0.9); } }

/* =========================================================
   VEJA FUNCIONANDO: <ka-tabs> com três gravações reais
   ========================================================= */
.show { margin-top: var(--section); background: var(--night); color: var(--on-night); padding-block: clamp(96px, 11vw, 168px); }
.show__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.show__head h2 { grid-column: 1 / span 7; }
.show__head p { grid-column: 9 / span 4; color: var(--night-muted); }
ka-tabs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.tabs__list { grid-column: 1 / span 4; display: grid; gap: 4px; align-content: start; }
.tab {
  position: relative; text-align: left; border: 0; cursor: pointer; padding: 22px 0 24px;
  background: none; color: var(--night-muted);
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tab:active { transform: scale(0.99); }
.tab strong { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.tab span { display: block; margin-top: 6px; font-size: var(--step-small); line-height: 1.45; max-width: 34ch; }
.tab[aria-selected="true"] { color: var(--on-night); }
.tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--night-2); border-radius: 3px; overflow: hidden; }
.tab__bar::after {
  content: ""; position: absolute; inset: 0; background: var(--on-night);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--on-night); } }
.tabs__panels { grid-column: 6 / span 7; position: relative; }
.panel { display: grid; place-items: center; background: var(--night-2); border-radius: 18px; padding: clamp(16px, 2.4vw, 36px); min-height: 560px; }
.panel[hidden] { display: none; }
.panel ka-video { border-radius: 12px; overflow: hidden; width: 100%; }
.panel__fig { width: 100%; display: grid; justify-items: center; }
.panel ka-video.is-phone { width: min(100%, 300px); border-radius: 26px; }
.panel ka-video:not(.is-phone) { width: min(100%, 560px); }
.panel__still { border-radius: 12px; }
.panel figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--night-muted); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: panel-in 380ms var(--ease-out); }
  @keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
}

.panel ka-video.is-wide { width: 100%; }

/* <ka-builder>: monte o seu link, veja a página e a conta das faltas */
.build { margin-top: clamp(112px, 12vw, 180px); }
.build__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.build__head h2 { grid-column: 1 / span 7; }
.build__head p { grid-column: 9 / span 4; color: var(--night-muted); }
ka-builder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.build__form { grid-column: 1 / span 5; display: grid; gap: 30px; }
.field { display: grid; gap: 10px; }
.field > span, .svcs legend { font-size: var(--step-small); color: var(--night-muted); }
.field b { color: var(--on-night); font-weight: 600; }
.field input:not([type="range"]) {
  min-height: 64px; padding: 0 20px; border: 0; border-radius: 14px;
  background: var(--night-2); color: var(--on-night); font-size: var(--step-lead); font-weight: 500;
}
.field input:focus-visible { outline: 2px solid var(--on-night); outline-offset: 2px; }
.field--range input { width: 100%; height: 44px; accent-color: var(--on-night); cursor: pointer; }
.svcs { border: 0; margin: 0; padding: 0; min-width: 0; }
.svcs legend { padding: 0; margin-bottom: 12px; }
.svcs__head, .svc { display: grid; grid-template-columns: minmax(0, 1fr) 104px 116px 48px; gap: 8px; align-items: center; }
.svcs__head { margin-bottom: 8px; font-size: 0.8125rem; color: var(--night-muted); }
.svcs__list { display: grid; gap: 8px; }
.svc input { min-width: 0; border: 0; color: var(--on-night); font-size: 1rem; font-weight: 500; }
.svc__name { min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--night-2); }
.svc__num { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 12px; border-radius: 12px; background: var(--night-2); cursor: text; }
.svc__num span { font-size: 0.875rem; color: var(--night-muted); }
.svc__num input { width: 100%; padding: 0; background: none; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.svc__num input::-webkit-outer-spin-button, .svc__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.svc__name:focus-visible, .svc__num:focus-within { outline: 2px solid var(--on-night); outline-offset: 2px; }
.svc__num input:focus-visible { outline: none; }
.svc__del {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer;
  background: none; color: var(--night-muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.svc__del svg { width: 18px; height: 18px; }
.svc__del:active:not(:disabled) { transform: scale(0.94); }
.svc__del:disabled { opacity: 0.3; cursor: default; }
.svcs__add {
  margin-top: 12px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--night-2); color: var(--on-night); font-weight: 600;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.svcs__add span { margin-right: 6px; }
.svcs__add:active:not(:disabled) { transform: scale(0.97); }
.svcs__add:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .svc__del:hover:not(:disabled) { background: var(--night-2); color: var(--on-night); }
  .svcs__add:hover:not(:disabled) { background: #1d2f37; }
}
@media (max-width: 560px) {
  .svcs__head { display: none; }
  .svc { grid-template-columns: 1fr 1fr 48px; padding-bottom: 6px; }
  .svc__name { grid-column: 1 / -1; }
}
.pv__slots .pv__none { grid-column: 1 / -1; text-align: left; border: 0; padding: 4px 0; color: var(--muted); }

.pv { grid-column: 7 / span 6; grid-row: 1 / span 2; background: var(--paper); color: var(--ink); border-radius: 20px; overflow: hidden; }
.pv__url { padding: 14px 22px; background: var(--surface); font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; }
.pv__url b { color: var(--ink); font-weight: 600; }
.pv__page { padding: 24px 24px 26px; }
.pv__name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pv__step { margin-top: 22px; font-size: var(--step-small); color: var(--muted); }
.pv__step b { color: var(--brand); font-weight: 600; }
.pv__svcs { display: grid; gap: 6px; margin-top: 10px; }
.pv__svcs button {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; text-align: left;
  min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--surface-2); border-radius: 12px; background: #fff; cursor: pointer;
  font-size: 0.9375rem; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.pv__svcs button:active { transform: scale(0.985); }
.pv__svcs small { color: var(--muted); font-size: 0.8125rem; }
.pv__svcs b { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.pv__svcs button[aria-pressed="true"] { border-color: var(--brand); background: #f2f8fb; }
.pv__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.pv__slots li { padding: 9px 0; text-align: center; border: 1.5px solid var(--surface-2); border-radius: 10px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pv__note { margin-top: 16px; font-size: 0.8125rem; color: var(--muted); }

.math { grid-column: 1 / span 5; }
.math__big strong { display: block; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.math__big span { display: block; margin-top: 10px; color: var(--night-muted); }
.math__how { margin-top: 14px; font-size: var(--step-small); color: var(--night-muted); }
.math__pay { margin-top: 18px; max-width: 40ch; }
.math .btn { margin-top: 28px; white-space: normal; text-align: left; justify-content: space-between; min-height: 56px; }
@media (max-width: 860px) { .math .btn { width: 100%; padding: 12px 24px; } }

/* o relógio do fundo também passa pelas seções escuras */
.show, .end { position: relative; clip-path: inset(0); }
.show > ka-reveal, .end > ka-reveal { position: relative; z-index: 1; }
.clock__time--night { z-index: 0; color: rgba(238, 244, 246, 0.05); }
.end .clock__time--night { color: rgba(255, 255, 255, 0.07); }
.clock__time.clock__time--night::after { content: none; animation: none; }

/* =========================================================
   PARA QUEM: <ka-slider> por tipo de negócio
   ========================================================= */
.who__foot { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.who__foot .slides__progress { flex: 1; margin: 0; }
.who__controls { display: flex; gap: 10px; }
.round {
  width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); display: grid; place-items: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, opacity 200ms ease;
}
.round:active:not(:disabled) { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: default; }
.round svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .round:hover:not(:disabled) { background: var(--surface-2); } }
ka-slider { display: block; margin-top: clamp(40px, 5vw, 64px); }
.slides {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 440px); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 4px; cursor: grab;
  padding-inline: var(--margin); scroll-padding-inline: var(--margin);
}
.slides::-webkit-scrollbar { display: none; }
ka-slider[data-dragging] .slides { cursor: grabbing; scroll-snap-type: none; }
.slide {
  scroll-snap-align: start; background: var(--paper); border-radius: 18px;
  padding: 28px 28px 30px; display: flex; flex-direction: column; min-height: 420px;
  transition: transform 260ms var(--ease-out);
}
.slide:nth-child(3n + 2) { background: var(--brand); color: #fff; }
.slide:nth-child(3n + 2) .slide__svc { color: #d6e8f1; }
.slide:nth-child(3n + 2) .slide__svc b { color: #fff; }
.slide:nth-child(3n) { background: var(--surface); }
.slide h3 { font-size: clamp(1.75rem, 0.9rem + 1.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.slide p { margin-top: 14px; }
.slide__svc { margin-top: auto; padding-top: 28px; display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.slide__svc li { display: flex; justify-content: space-between; gap: 12px; }
.slide__svc b { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .slide:hover { transform: translateY(-4px); } }
.who__note { margin-top: 18px; font-size: var(--step-small); }
.slides__progress { margin: 0; height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.slides__progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0.2)); transition: transform 200ms var(--ease-out); }

/* =========================================================
   FUNÇÕES: <ka-scrolly> cada passo liga um interruptor e troca a tela
   ========================================================= */
.feat__head { max-width: 13ch; }
ka-scrolly { display: block; margin-top: clamp(24px, 4vw, 48px); }
.step { padding-top: 64px; }
.step h3 { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin-top: 22px; text-wrap: balance; }
.step p { margin-top: 16px; max-width: 40ch; color: var(--muted); }
.step__switch {
  --w: 64px; display: block; width: var(--w); height: 36px; padding: 4px; border-radius: 999px;
  background: var(--surface-2); transition: background-color 280ms ease;
}
.step__switch::after { content: ""; display: block; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform 320ms var(--ease-out); }
.step[data-on] .step__switch { background: var(--c); }
.step[data-on] .step__switch::after { transform: translateX(calc(var(--w) - 36px)); }
.step__fig { margin-top: 24px; background: var(--night); border-radius: 18px; padding: clamp(8px, 1.2vw, 16px); }
.step__fig ka-video { border-radius: 10px; overflow: hidden; }

/* no computador: passos à esquerda, gravações empilhadas e fixas à direita */
@media (min-width: 861px) {
  ka-scrolly:defined { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  ka-scrolly:defined .step { grid-column: 1 / span 5; grid-row: var(--row); min-height: 76vh; padding: 0; display: flex; align-items: center; }
  ka-scrolly:defined .step h3 { color: var(--muted); transition: color 280ms ease; }
  ka-scrolly:defined .step[data-on] h3 { color: var(--ink); }
  ka-scrolly:defined .step__fig {
    grid-column: 7 / span 6; grid-row: 1 / span 5; align-self: start; margin: 0;
    position: sticky; top: max(96px, calc(50vh - 14.5vw - 16px));
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985);
    transition: opacity 420ms ease, transform 640ms var(--ease-out), visibility 0s 420ms;
  }
  ka-scrolly:defined .step__fig[data-active] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* =========================================================
   EM QUALQUER TELA: colagem com parallax
   ========================================================= */
.screens__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.screens__copy { grid-column: 1 / span 4; position: sticky; top: 120px; }
.screens__copy p { margin-top: 24px; color: var(--muted); }
.screens__art { grid-column: 5 / span 8; position: relative; min-height: 760px; }
.screens__desk { width: 100%; border-radius: 14px; overflow: hidden; background: var(--paper); }
.screens__phone { position: absolute; right: 4%; top: 46%; width: 30%; border-radius: 26px; padding: 7px; background: var(--night); }
.screens__phone img { border-radius: 20px; }
.screens__watches { position: absolute; left: 4%; top: 62%; display: flex; gap: 14px; }
.screens__watches img { width: clamp(92px, 9vw, 144px); aspect-ratio: 1; border-radius: 50%; background: #000; padding: 6px; }
.screens__caption { position: absolute; left: 4%; top: calc(62% + clamp(110px, 10.5vw, 162px)); font-size: var(--step-small); color: var(--muted); max-width: 30ch; }

/* parallax: travado à rolagem (linear), deslocamento pequeno */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-depth] { animation: depth linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes depth { from { transform: translateY(calc(var(--depth) * 1px)); } to { transform: translateY(calc(var(--depth) * -1px)); } }
  }
}

/* =========================================================
   PREÇOS: <ka-plans>
   ========================================================= */
ka-plans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.plans__names { grid-column: 1 / span 6; display: grid; align-content: start; }
.plan {
  display: flex; align-items: center; gap: 0.28em; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: clamp(3rem, 1.4rem + 5vw, 7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.06;
  color: #6c8089; transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.plan:active { transform: scale(0.985); }
.plan::before { content: ""; width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--brand); transform: scale(0.3); opacity: 0; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.plan[aria-selected="true"] { color: var(--ink); }
.plan[aria-selected="true"]::before { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .plan:hover { color: var(--ink); } }
.plans__stage { grid-column: 8 / span 5; align-self: start; background: var(--paper); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.stage__fade { transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out); }
.stage__fade.is-swapping { opacity: 0; filter: blur(2px); transform: translateY(4px); }
.stage__price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.stage__price strong { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stage__price span { color: var(--muted); }
.stage__annual { margin-top: 6px; color: var(--muted); font-size: 0.95em; font-variant-numeric: tabular-nums; }
.stage__text { margin-top: 18px; }
.stage__list { margin-top: 18px; display: grid; gap: 10px; }
.stage__list li { display: flex; gap: 10px; align-items: baseline; }
.stage__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.plans__stage .btn { margin-top: 28px; width: 100%; }
.plans__note { grid-column: 8 / span 5; margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

/* =========================================================
   PERGUNTAS
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.faq__grid h2 { grid-column: 1 / span 4; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.qa { background: var(--paper); border-radius: 14px; transition: background-color 240ms ease, color 240ms ease; }
.qa summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 18px; height: 18px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform 240ms var(--ease-out); }
.qa[open] { background: var(--brand); color: #fff; }
.qa[open] .plus::after { transform: rotate(0); }
.qa p { padding: 0 24px 26px; max-width: 56ch; }
@media (hover: hover) and (pointer: fine) { .qa:not([open]):hover { background: var(--surface); } }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] p { animation: qa-in 260ms var(--ease-out); }
  @keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
}

/* =========================================================
   CHAMADA FINAL E RODAPÉ
   ========================================================= */
.end { margin-top: var(--section); background: var(--brand); color: #fff; padding-block: clamp(96px, 11vw, 168px) 40px; }
.end h2 { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.92; }
.end__row { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.end__row p { max-width: 36ch; color: #d6e8f1; }
.foot { margin-top: clamp(96px, 12vw, 180px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 20px; font-size: var(--step-small); color: #d6e8f1; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a, .foot__right a { color: #fff; text-decoration: none; padding-block: 10px; }
.foot__right { justify-self: end; }

ka-reveal { display: block; }

/* =========================================================
   <ka-clock>: rolar a página é passar o expediente, 08:00 às 18:00
   ========================================================= */
ka-clock { display: contents; }
.clock__time {
  position: fixed; z-index: -1; left: var(--margin); bottom: -0.14em; pointer-events: none;
  font-size: clamp(6.5rem, 2rem + 22vw, 26rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
  font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--brand) 8%, transparent);
}
.clock__time::before { content: attr(data-t); }
/* a luz do dia atravessa o fundo da esquerda para a direita */
.clock__time::after {
  content: ""; position: fixed; z-index: -2; left: -40vmax; top: -48vmax; width: 80vmax; height: 80vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 205, 130, 0.30), rgba(255, 205, 130, 0.10) 55%, rgba(255, 205, 130, 0)); /* taste-skill-ignore: é a luz do dia que acompanha a rolagem */
}
.clock__rail {
  position: fixed; z-index: 40; right: max(8px, calc(var(--margin) / 2 - 4px)); top: 30vh; height: 40vh; width: 2px;
  background: rgba(255, 255, 255, 0.5); mix-blend-mode: difference; pointer-events: none;
}
.clock__rail i {
  position: absolute; left: -4px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  transform: translateY(calc(var(--p, 0) * 40vh));
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .clock__time::after { animation: sun linear both; animation-timeline: scroll(root); }
    @keyframes sun {
      0% { transform: translate(0, 34vh); opacity: 0.55; }
      50% { transform: translate(60vw, 6vh); opacity: 1; }
      100% { transform: translate(120vw, 40vh); opacity: 0.6; }
    }
  }
}
@media (max-width: 860px) { .clock__rail { display: none; } }

/* =========================================================
   <ka-reveal>: entrada em sequência e saída suave
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lines .line > span { transform: translateY(105%); animation: line-up 950ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }

  .js ka-reveal:defined [data-rv] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 75ms);
  }
  .js ka-reveal[data-in] [data-rv] { opacity: 1; transform: none; }
  .js ka-reveal:defined [data-rv="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js ka-reveal[data-in] [data-rv="mask"] { clip-path: inset(0); }

  /* saída: o bloco que vai embora cede um pouco, travado à rolagem */
  @supports (animation-timeline: view()) {
    /* só nos últimos 35% da tela: o fim do bloco já está chegando ao topo.
       Usar a fase "exit" inteira apagava seções altas ainda em leitura. */
    [data-exit] { animation: leave linear both; animation-timeline: view(); animation-range: exit calc(100% - 35vh) exit 100%; }
    @keyframes leave { to { opacity: 0.25; transform: translateY(-24px) scale(0.985); } }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =========================================================
   TABLET E CELULAR
   ========================================================= */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / span 6; }
  .hero__stage { grid-column: 7 / span 6; grid-template-columns: 1fr; }
  .hero__phone { grid-row: 2; width: min(100%, 280px); margin: -80px 0 0 auto; }
  ka-day { grid-column: 1; }
  .tabs__list { grid-column: 1 / span 5; }
  .tabs__panels { grid-column: 6 / span 7; }
}
@media (max-width: 860px) {
  .hero__grid, .show__head, ka-tabs, .screens__grid, ka-plans, .faq__grid { display: block; }
  .hero__stage { margin-top: 56px; min-height: 0; padding-bottom: 0; }
  .day { width: 100%; padding: 16px 14px 14px; }
  .day__row { grid-template-columns: 44px 1fr; }
  .day__tag { display: none; }
  .day__top { flex-direction: column; gap: 2px; }
  .day__now { left: 62px; right: 14px; }
  .hero__stage { display: grid; grid-template-columns: 1fr; }
  .hero__phone { grid-row: 1; width: min(72vw, 300px); margin: 0 auto 32px; }
  ka-day { grid-row: 2; }
  .show__head p { margin-top: 20px; }
  .build__head, ka-builder { display: block; }
  .build__head p { margin-top: 20px; }
  .pv { margin: 40px 0; }
  .pv__page { padding: 20px 18px 22px; }
  .tabs__list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .tab { padding: 14px 0 18px; }
  .tab strong { font-size: 1.0625rem; }
  .tab span { display: none; }
  .panel { min-height: 0; padding: 14px; }
  .slide { min-height: 380px; padding: 24px; }
  .screens__copy { position: static; margin-bottom: 40px; }
  .screens__art { min-height: 0; padding-bottom: 300px; }
  .screens__phone { width: 42%; top: 34%; }
  .screens__watches { top: auto; bottom: 64px; left: 0; }
  .screens__watches img { width: 78px; padding: 4px; }
  .screens__caption { top: auto; bottom: 0; left: 0; }
  .plans__names { display: flex; flex-wrap: wrap; gap: 0 0.5em; }
  .plan { font-size: 13vw; }
  .plans__stage { margin-top: 24px; }
  .plans__note { margin-top: 14px; }
  .faq__grid h2 { margin-bottom: 32px; }
  .qa summary { min-height: 64px; padding: 18px 20px; }
  .qa p { padding: 0 20px 22px; }
  .foot { grid-template-columns: 1fr; gap: 8px; }
  .foot__right { justify-self: start; }
}
