/* Página da raiz usenitor.com.br (p32, fase 1). Pouco texto e o próprio produto como imagem:
   a agenda do dia desenhada com os mesmos cartões, faixas e linha do "agora" da plataforma
   (apps/web/src/canvas.css, .day-grid). Tokens copiados de packages/design/src/tokens.css.
   Sem JavaScript: o tema segue o do aparelho. */

@font-face {
  font-family: 'Archivo Variable';
  src: url('/fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ds-bg: #18191c;
  --ds-bg-sunken: #121315;
  --ds-surface-raised: #2c3036;
  --ds-pane-solid: #212429;
  --ds-line: rgb(220 230 233 / 0.22);
  --ds-line-dim: rgb(220 230 233 / 0.12);
  --ds-line-strong: rgb(220 230 233 / 0.4);
  --ds-text-primary: #edf1f2;
  --ds-text-secondary: #bfc4ca;
  --ds-text-muted: #9aa0a7;
  --ds-accent: #e4ecee;
  --ds-accent-hover: #f2f6f7;
  --ds-on-accent: #18191c;
  --ds-focus: #9aa0a7;
  --ds-ok: #6ccba5;
  --ds-nitor-red: #d41f21;
  --ds-pane: rgb(31 34 38 / 0.8);
  --ds-pane-edge: rgb(255 255 255 / 0.1);
  --ds-pane-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 40px 120px rgb(0 0 0 / 0.55);
  --ds-tint: rgb(255 255 255 / 0.04);
  --light: rgb(255 255 255 / 0.055);
  --glint: rgb(255 255 255 / 0.06);
  --ds-shadow-lift: 0 14px 32px rgb(0 0 0 / 0.45);
  --mark-stem: #e4eaec;
  --mark-cut: #d41f21;
  --ds-font-ui: 'Archivo Variable', 'Archivo', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --ds-font-mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
  --ds-tracking-mono: 0.12em;
  --ds-tracking-mono-xs: 0.06em;
  --ds-radius-btn: 7px;
  --ds-radius-frame: 18px;
  --ds-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ds-ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 32px;
  /* Escala da agenda: uma hora = 88 px. */
  --hour: 88px;
  --ruler: 56px;
  --head: 58px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ds-bg: #dce6e9;
    --ds-bg-sunken: #d3dee2;
    --ds-surface-raised: #f6f9fa;
    --ds-pane-solid: #eef2f4;
    --ds-line: rgb(26 28 31 / 0.22);
    --ds-line-dim: rgb(26 28 31 / 0.12);
    --ds-line-strong: rgb(26 28 31 / 0.34);
    --ds-text-primary: #1a1c1f;
    --ds-text-secondary: #43484e;
    --ds-text-muted: #5a6067;
    --ds-accent: #1a1c1f;
    --ds-accent-hover: #2c3036;
    --ds-on-accent: #f6f9fa;
    --ds-focus: #5a6067;
    --ds-ok: #2f8f6b;
    --ds-pane: rgb(242 246 247 / 0.74);
    --ds-pane-edge: rgb(255 255 255 / 0.7);
    --ds-pane-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 40px 120px rgb(26 28 31 / 0.16);
    --ds-tint: rgb(26 28 31 / 0.04);
    --light: rgb(255 255 255 / 0.55);
    --glint: rgb(255 255 255 / 0.5);
    --ds-shadow-lift: 0 14px 32px rgb(26 28 31 / 0.14);
    --mark-stem: #1a1c1f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  /* Uma luz neutra vinda de cima, sem cor: o vidro da agenda pega reflexo dela. */
  background:
    radial-gradient(ellipse 70% 46% at 50% -8%, var(--light), transparent 72%),
    var(--ds-bg);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

/* ---- Barra do topo ------------------------------------------------------------------- */

/* Barra fixa no topo. Onde a rolagem comanda a animação, começa transparente e vira vidro
   quando o título sai de cena, junto com o botão; nos demais, já nasce vidro com o botão. */
.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--ds-line-dim);
  background: color-mix(in srgb, var(--ds-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ds-text-primary);
  text-decoration: none;
}

.brand__mark {
  width: 15px;
  height: 22px;
}

.brand__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark-stem {
  fill: var(--mark-stem);
}

.mark-cut {
  fill: var(--mark-cut);
}

.nav__link {
  color: var(--ds-text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 140ms var(--ds-ease-standard);
}

.nav__link:hover {
  color: var(--ds-text-primary);
}

/* ---- Abertura ------------------------------------------------------------------------ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 11vh, 120px) var(--gutter) 0;
  text-align: center;
}

.hero--solo {
  padding-top: clamp(96px, 22vh, 220px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: var(--ds-tracking-mono);
  text-transform: uppercase;
}

.hero__eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ds-nitor-red);
  content: '';
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 92px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__sub {
  max-width: 44ch;
  margin: 26px 0 0;
  color: var(--ds-text-secondary);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  text-wrap: balance;
}

.hero__cta {
  margin-top: 36px;
}

/* Botão: cópia de .ds-button do design, um tamanho acima para a abertura. */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-btn);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 140ms var(--ds-ease-standard),
    transform 140ms var(--ds-ease-enter);
  -webkit-tap-highlight-color: transparent;
}

.ds-button--sm {
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.ds-button:active {
  transform: scale(0.97);
}

.ds-button--primary {
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}

.ds-button--primary:hover {
  background: var(--ds-accent-hover);
}

.ds-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms var(--ds-ease-enter);
}

.ds-button:hover svg {
  transform: translateX(2px);
}

.ds-button:focus-visible,
.brand:focus-visible,
.nav__link:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 3px;
  border-radius: var(--ds-radius-btn);
}

/* ---- O produto ----------------------------------------------------------------------- */

.shot {
  width: 100%;
  max-width: 1136px;
  margin: clamp(64px, 10vh, 104px) auto 0;
  padding: 0 var(--gutter);
  perspective: 1800px;
}

/* Inclinação que segue o cursor (site.js). Parada, fica de frente. */
.tilt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 16px;
  align-items: start;
  transform:rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transform-style: preserve-3d;
  transition: transform 900ms var(--ds-ease-enter);
}

.win {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-pane-edge);
  border-radius: var(--ds-radius-frame);
  background: var(--ds-pane);
  box-shadow: var(--ds-pane-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  transform-origin: 50% 0;
}

/* Reflexo de luz no vidro, na posição do cursor. Neutro, sem cor. */
.win::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0), var(--glint), transparent 62%);
  content: '';
  opacity: var(--glow, 0);
  pointer-events: none;
  transition: opacity 500ms var(--ds-ease-standard);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ds-line-dim);
}

.win__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
}

.win__mark {
  width: 10px;
  height: 15px;
}

.win__date {
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: var(--ds-tracking-mono-xs);
}

.seg {
  display: inline-flex;
  margin-left: auto;
  padding: 2px;
  border: 1px solid var(--ds-line-dim);
  border-radius: var(--ds-radius-btn);
  color: var(--ds-text-muted);
  font-size: 12px;
}

.seg > span {
  padding: 4px 10px;
  border-radius: 5px;
}

.seg > .seg__on {
  background: var(--ds-surface-raised);
  color: var(--ds-text-primary);
}

.grid {
  display: flex;
}

.grid__ruler {
  position: relative;
  flex: none;
  width: var(--ruler);
}

.tick {
  position: absolute;
  right: 10px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
}

.t0 { top: calc(var(--head) + 4px); }
.t1 { top: calc(var(--head) + var(--hour) - 5px); }
.t2 { top: calc(var(--head) + var(--hour) * 2 - 5px); }
.t3 { top: calc(var(--head) + var(--hour) * 3 - 5px); }

/* Agora (10:42): selo vermelho na régua e linha em cada coluna, como na plataforma. */
.now-pill {
  position: absolute;
  z-index: 3;
  top: calc(var(--head) + var(--hour) * 1.7 - 9px);
  right: 5px;
  display: flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--ds-nitor-red);
  color: #fff;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  border-left: 1px solid var(--ds-line-dim);
}

.col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--head);
  padding: 0 14px;
  border-bottom: 1px solid var(--ds-line-dim);
}

.av {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ds-line-dim);
  border-radius: 50%;
  background: var(--ds-surface-raised);
  font-size: 11px;
  font-weight: 500;
}

.who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.who b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.who i {
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.col__body {
  position: relative;
  height: calc(var(--hour) * 4);
  /* Linhas de hora cheias e de meia hora mais leves. */
  background-image:
    linear-gradient(to bottom, var(--ds-line-dim) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ds-line-dim) 50%, transparent) 1px, transparent 1px);
  background-position:
    0 0,
    0 calc(var(--hour) / 2);
  background-size:
    100% var(--hour),
    100% var(--hour);
}

.card,
.free,
.away {
  position: absolute;
  top: calc(var(--t) * var(--hour) + 2px);
  right: 3px;
  left: 3px;
  height: calc(var(--d) * var(--hour) - 4px);
}

.card {
  --stripe: var(--ds-text-primary);

  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px 7px 13px;
  overflow: hidden;
  border: 1px solid var(--ds-line-dim);
  border-radius: 5px;
  background: var(--ds-surface-raised);
  line-height: 1.2;
  transition:
    transform 260ms var(--ds-ease-enter),
    border-color 160ms var(--ds-ease-standard),
    box-shadow 260ms var(--ds-ease-standard);
}

/* O cartão se levanta de leve sob o cursor, como na plataforma. */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    z-index: 4;
    border-color: var(--ds-line-strong);
    box-shadow: var(--ds-shadow-lift);
    transform: translateY(-2px);
  }
}

.card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--stripe);
  content: '';
}

.card .m {
  color: var(--ds-text-secondary);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.card .tt {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card .tt em {
  margin-left: 6px;
  color: var(--ds-text-secondary);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.card .sb {
  overflow: hidden;
  color: var(--ds-text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card.done {
  --stripe: var(--ds-line-strong);

  border-color: transparent;
  background: var(--ds-bg-sunken);
}

.card.done .tt {
  color: var(--ds-text-secondary);
}

.card.done .m,
.card.done .sb {
  color: var(--ds-text-muted);
}

.card.now {
  --stripe: var(--ds-ok);

  border-color: var(--ds-line-strong);
}

.free::before {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--ds-line);
  border-radius: 5px;
  content: '';
}

.free > span,
.away > span {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.away {
  right: 0;
  left: 0;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--ds-text-primary) 9%, transparent) 0 1px,
    transparent 1px 6px
  );
}

.now-line {
  position: absolute;
  /* Acima de tudo na coluna, até do cartão que se levanta sob o cursor. */
  z-index: 5;
  top: calc(var(--hour) * 1.7 - 1px);
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ds-nitor-red);
  transform-origin: left;
}

/* Horários do dia (início e duração em horas, a partir das 09:00) e ordem de entrada. */
.c-r1 { --t: 0; --d: 0.75; --i: 0; }
.c-r2 { --t: 1; --d: 0.667; --i: 4; }
.c-r3 { --t: 1.667; --d: 0.833; --i: 8; }
.c-r4 { --t: 2.5; --d: 0.5; --i: 12; }
.c-r5 { --t: 3; --d: 0.75; --i: 14; }
.c-b1 { --t: 0.25; --d: 0.75; --i: 1; }
.c-b2 { --t: 1.25; --d: 1; --i: 5; }
.c-b3 { --t: 2.5; --d: 0.75; --i: 10; }
.c-b4 { --t: 3.5; --d: 0.5; --i: 15; }
.c-d1 { --t: 0; --d: 1; --i: 2; }
.c-d2 { --t: 1; --d: 1; --i: 6; }
.c-d3 { --t: 2; --d: 0.75; --i: 9; }
.c-d4 { --t: 3; --d: 1; --i: 13; }
.c-l1 { --t: 0.5; --d: 1; --i: 3; }
.c-l2 { --t: 1.5; --d: 0.75; --i: 7; }
.c-l3 { --t: 2.5; --d: 1; --i: 11; }

/* ---- Fechamento do dia (painel ao lado da agenda; antes dela no celular) ------------- */

.close {
  position: relative;
  z-index: 8;
  margin: 0;
  padding: 16px 18px 6px;
  border: 1px solid var(--ds-pane-edge);
  border-radius: 14px;
  background: var(--ds-pane);
  box-shadow: var(--ds-pane-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
}

.close p {
  margin: 0;
}

.close__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.close__ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-ok);
}

.close__ok::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-ok);
  content: '';
}

.close__big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0 12px;
}

.close__big b {
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}

.close__big span {
  color: var(--ds-text-secondary);
  font-size: 13px;
}

.close__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.close__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ds-line-dim);
  font-size: 13px;
}

.close__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-text-secondary);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

/* Visto desenhado em CSS (sem ícone de fora). */
.close__done::before {
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid var(--ds-ok);
  border-left: 1.5px solid var(--ds-ok);
  content: '';
  transform: translateY(-2px) rotate(-45deg);
}

/* ---- Rodapé -------------------------------------------------------------------------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter) 32px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: var(--ds-tracking-mono-xs);
}

.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 140ms var(--ds-ease-standard);
}

.foot a:hover {
  color: var(--ds-text-primary);
}

/* ---- Celular ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .col--4 {
    display: none;
  }

  /* Sem espaço ao lado: o fechamento vem antes da agenda, em uma faixa. */
  .tilt {
    grid-template-columns: minmax(0, 1fr);
  }

  .close {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 32px;
    align-items: center;
    order: -1;
  }

  .close__head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --hour: 80px;
    --ruler: 46px;
  }

  .nav {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero__title br {
    display: none;
  }

  .hero__cta,
  .hero__cta .ds-button {
    width: 100%;
  }

  .col--3,
  .seg {
    display: none;
  }

  .close {
    display: block;
    padding: 14px 16px 4px;
  }

  .close__big b {
    font-size: 36px;
  }

  .shot {
    margin-top: 56px;
  }

  .foot {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---- Entrada (as mesmas formas da plataforma; parado com movimento reduzido) ----------- */

@keyframes ds-sobe {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}

@keyframes ds-cai {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.9);
  }
}

@keyframes ds-cresce-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes ds-aparece {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav {
    animation: ds-aparece 900ms var(--ds-ease-standard) both;
  }

  .hero__eyebrow {
    animation: ds-sobe 800ms var(--ds-ease-enter) 60ms both;
  }

  .hero__title {
    animation: ds-sobe 900ms var(--ds-ease-enter) 140ms both;
  }

  .hero__sub {
    animation: ds-sobe 900ms var(--ds-ease-enter) 260ms both;
  }

  .hero__cta {
    animation: ds-sobe 900ms var(--ds-ease-enter) 360ms both;
  }


  .card,
  .free,
  .away {
    transform-origin: top;
    animation: ds-cai 620ms var(--ds-ease-enter) calc(1000ms + var(--i, 0) * 45ms) backwards;
  }

  .now-line {
    animation: ds-cresce-x 900ms var(--ds-ease-enter) 1800ms both;
  }

  .now-pill {
    animation: ds-aparece 400ms var(--ds-ease-standard) 1800ms both;
  }

  .close {
    animation: ds-sobe 1000ms var(--ds-ease-enter) 1500ms both;
  }

  .foot {
    animation: ds-aparece 900ms var(--ds-ease-standard) 600ms both;
  }
}

/* ---- Cena ao rolar ------------------------------------------------------------------- */
/* A primeira tela é só o título, com o topo da agenda aparecendo embaixo. Rolando, a tela
   fica parada: o título sobe, desfoca e apaga, e a agenda com o fechamento sobe até o centro,
   inteira. Depois a página segue até o rodapé. Só em tela grande o bastante e onde o
   navegador liga animação à rolagem; fora disso, tudo empilhado e parado. */

@keyframes titulo-sai {
  to {
    opacity: 0;
    transform: translateY(-90px) scale(0.97);
    filter: blur(10px);
  }
}

@keyframes produto-entra {
  from {
    transform: translateY(var(--espia)) scale(0.92);
  }

  to {
    transform: none;
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 760px) and (min-height: 640px) {
    :root {
      /* Quanto a agenda começa abaixo do centro: só o topo da janela aparece. */
      --espia: 64vh;
    }

    .scene {
      height: 200vh;
    }

    .stage {
      position: sticky;
      top: 0;
      display: grid;
      height: 100vh;
      height: 100dvh;
      overflow: clip;
      place-items: center;
    }

    .hero,
    .shot {
      grid-area: 1 / 1;
    }

    .hero {
      z-index: 1;
      padding-top: 0;
      animation: titulo-sai linear both;
      animation-timeline: scroll(root);
      animation-range: 0 45vh;
    }

    /* Por cima do título: quando chega ao centro, o cursor alcança os cartões. */
    .shot {
      z-index: 2;
      margin: 0;
      animation: produto-entra linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }
  }
}

/* ---- Barra e entradas ligadas à rolagem ------------------------------------------------ */

@keyframes nav-vidro {
  from {
    border-bottom-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@keyframes nav-botao {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
  }
}

/* Uma forma de entrada para cada tipo de elemento. */
@keyframes k-aparece {
  from {
    opacity: 0;
  }
}

/* Título: sobe de dentro de uma fresta, como texto que se revela. */
@keyframes k-revela {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    clip-path: inset(-10% -2% -20% -2%);
  }
}

/* Texto corrido: sobe saindo do desfoque. */
@keyframes k-sobe {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
}

/* Palco da tela: chega de longe e se aproxima. */
@keyframes k-palco {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
  }
}

/* Escolhas (dias, horários, formas de pagamento): estalam uma a uma. */
@keyframes k-estala {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}

/* Linhas de lista: deslizam da esquerda. */
@keyframes k-desliza {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

/* Número final: rola para dentro da própria linha. */
@keyframes k-rola {
  from {
    opacity: 0;
    transform: translateY(70%);
    clip-path: inset(0 0 70% 0);
  }

  to {
    clip-path: inset(0 0 -20% 0);
  }
}

/* Barra de baixo do celular: sobe da borda da tela. */
@keyframes k-barra {
  from {
    transform: translateY(100%);
  }
}

@keyframes k-traco {
  from {
    transform: scaleX(0);
  }
}

.i0 { --i: 0; }
.i1 { --i: 1; }
.i2 { --i: 2; }
.i3 { --i: 3; }
.i4 { --i: 4; }
.i5 { --i: 5; }
.i6 { --i: 6; }
.i7 { --i: 7; }
.i8 { --i: 8; }
.i9 { --i: 9; }
.i10 { --i: 10; }
.i11 { --i: 11; }
.i12 { --i: 12; }
.i13 { --i: 13; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav {
      animation: nav-vidro linear both;
      animation-timeline: scroll(root);
      animation-range: 25vh 40vh;
    }

    .nav__cta {
      animation: nav-botao linear both;
      animation-timeline: scroll(root);
      animation-range: 30vh 42vh;
    }

    .sec-head,
    .beat,
    .final {
      view-timeline: --bloco block;
    }

    .sec-head .eyebrow {
      animation: k-aparece linear both;
      animation-timeline: --bloco;
      animation-range: entry 0% entry 50%;
    }

    .sec-title,
    .beat__title,
    .final__title {
      animation: k-revela linear both;
      animation-timeline: --bloco;
      animation-range: entry 10% entry 75%;
    }

    .beat__time {
      animation: k-aparece linear both;
      animation-timeline: --bloco;
      animation-range: entry 0% entry 45%;
    }

    .beat__time::after {
      transform-origin: left;
      animation: k-traco linear both;
      animation-timeline: --bloco;
      animation-range: entry 25% entry 80%;
    }

    .beat__text,
    .final__sub {
      animation: k-sobe linear both;
      animation-timeline: --bloco;
      animation-range: entry 30% entry 95%;
    }

    .beat__visual {
      animation: k-palco linear both;
      animation-timeline: --bloco;
      animation-range: entry 0% entry 85%;
    }

    .beat__who {
      animation: k-aparece linear both;
      animation-timeline: --bloco;
      animation-range: entry 50% entry 100%;
    }

    .pop {
      animation: k-estala linear both;
      animation-timeline: --bloco;
      animation-range: cover calc(26% + var(--i, 0) * 1.3%) cover calc(34% + var(--i, 0) * 1.3%);
    }

    .slide {
      animation: k-desliza linear both;
      animation-timeline: --bloco;
      animation-range: cover calc(26% + var(--i, 0) * 2%) cover calc(36% + var(--i, 0) * 2%);
    }

    .roll {
      animation: k-rola linear both;
      animation-timeline: --bloco;
      animation-range: cover 40% cover 48%;
    }

    .pb-bar {
      animation: k-barra linear both;
      animation-timeline: --bloco;
      animation-range: cover 32% cover 42%;
    }

    /* A chamada final termina de entrar enquanto ainda entra na tela: no fim da página,
       nada fica pela metade (nem desfocado). */
    .final__cta {
      animation: k-sobe linear both;
      animation-timeline: --bloco;
      animation-range: entry 45% entry 100%;
    }
  }
}

/* ---- Um dia na sua casa ---------------------------------------------------------------- */

.story {
  width: 100%;
  max-width: 1136px;
  margin: 0 auto;
  padding: clamp(96px, 16vh, 180px) var(--gutter) 0;
}

.sec-head {
  margin-bottom: clamp(56px, 9vh, 104px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: var(--ds-tracking-mono);
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ds-nitor-red);
  content: '';
}

.sec-title,
.final__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.beat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(40px, 7vh, 72px) 0;
}

.beat--flip .beat__copy {
  order: 2;
}

.beat__time {
  margin: 0 0 18px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ds-tracking-mono-xs);
}

/* A hora com o traço vermelho do "agora" da agenda. */
.beat__time::after {
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;
  background: var(--ds-nitor-red);
  content: '';
}

.beat__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.beat__text {
  max-width: 40ch;
  margin: 18px 0 0;
  color: var(--ds-text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.beat__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(52px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px);
  border: 1px solid var(--ds-line-dim);
  border-radius: 22px;
  /* Palco da tela: a mesma luz neutra da abertura. */
  background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--light), transparent 75%), var(--ds-tint);
}

/* De quem é a tela: cliente, recepção ou dono. */
.beat__who {
  position: absolute;
  top: 20px;
  left: 22px;
  margin: 0;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono);
  text-transform: uppercase;
}

.panel {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--ds-pane-edge);
  border-radius: 14px;
  background: var(--ds-pane);
  box-shadow: var(--ds-pane-shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.mono {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Rótulo de campo, como .ds-field__label da plataforma. */
.pb-label {
  margin: 16px 0 8px;
  color: var(--ds-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

/* Escolha marcada, como .ds-option[aria-checked='true']: a cor de destaque da casa. */
.pb-days .on,
.pb-slots .on,
.pay__methods .on {
  border-color: var(--ds-accent);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
  font-weight: 500;
}

/* ---- Tela do cliente (agendamento online, passo do horário) ----------------------------- */

.phone {
  width: 300px;
  max-width: 100%;
  padding: 9px;
  border: 1px solid var(--ds-pane-edge);
  border-radius: 40px;
  background: var(--ds-bg-sunken);
  box-shadow: var(--ds-pane-shadow);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 560px;
  padding: 18px 16px 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ds-bg);
}

.pb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.pb-nav__back {
  color: var(--ds-text-secondary);
}

.pb-nav__company {
  font-weight: 500;
}

.pb-steps {
  margin-top: 18px;
}

.pb-steps__label {
  margin: 0 0 8px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.pb-steps__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-steps__bar li {
  height: 3px;
  border-radius: 2px;
  background: var(--ds-line);
}

.pb-steps__bar .done {
  background: color-mix(in srgb, var(--ds-accent) 55%, var(--ds-line));
}

.pb-steps__bar .cur {
  background: var(--ds-accent);
}

.pb-title {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pb-days {
  display: flex;
  gap: 6px;
}

.pb-days span {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border: 1px solid var(--ds-line-dim);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

.pb-days i {
  font-family: var(--ds-font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.pb-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pb-slots span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--ds-line-dim);
  border-radius: 8px;
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Barra de baixo, fixa, como .pub-bar: o que foi escolhido e o próximo passo. */
.pb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto -16px 0;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--ds-line);
  background: color-mix(in srgb, var(--ds-bg) 88%, transparent);
}

.pb-bar__sum {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pb-bar__sum b {
  font-size: 13px;
  font-weight: 500;
}

.pb-bar__sum i {
  color: var(--ds-text-secondary);
  font-size: 11px;
  font-style: normal;
}

.pb-bar__go,
.pay__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--ds-radius-btn);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
  font-size: 13px;
  font-weight: 500;
}

/* ---- Tela da recepção (pagamento do atendimento) --------------------------------------- */

.pay {
  padding: 18px;
}

.pay__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ds-line-dim);
}

.pay__who {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pay__who b {
  font-size: 15px;
  font-weight: 500;
}

.pay__who i {
  color: var(--ds-text-secondary);
  font-size: 12px;
  font-style: normal;
}

.pay__head .mono {
  color: var(--ds-text-muted);
}

.pay__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pay__methods span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid var(--ds-line-dim);
  border-radius: 8px;
  font-size: 12px;
}

.pay__methods .pay__later {
  grid-column: span 2;
  color: var(--ds-text-secondary);
}

.pay__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field i {
  color: var(--ds-text-secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.field b {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: var(--ds-bg-sunken);
  font-family: var(--ds-font-mono);
  font-size: 13px;
  font-weight: 400;
}

.pay__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.pay__note span {
  color: var(--ds-text-secondary);
}

.pay__hint {
  margin: 6px 0 16px;
  color: var(--ds-text-muted);
  font-size: 11px;
}

.pay__go {
  width: 100%;
}

/* ---- Tela do dono (fechamento do mês) --------------------------------------------------- */

.fm {
  padding: 20px 20px 18px;
}

.fm__eyebrow {
  margin: 0;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.fm__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.fm__stamp {
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--ds-ok) 50%, transparent);
  border-radius: 4px;
  color: var(--ds-ok);
  font-family: var(--ds-font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: var(--ds-tracking-mono);
  text-transform: uppercase;
}

.fm__label {
  margin: 18px 0 8px;
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 10px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-transform: uppercase;
}

.fm__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm__checks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

/* Visto num círculo, como .fm-check da plataforma. */
.fm__checks li::before {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ds-ok) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ok) 45%, transparent);
  content: '';
}

.fm__checks li::after {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--ds-ok);
  border-left: 1.5px solid var(--ds-ok);
  content: '';
  transform: translateY(-70%) rotate(-45deg);
}

.fm__lines {
  margin: 0;
}

.fm__lines div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ds-line-dim);
  font-size: 13px;
}

.fm__lines dt {
  color: var(--ds-text-secondary);
}

.fm__lines dd {
  margin: 0;
  color: var(--ds-text-secondary);
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fm__lines dd.lead {
  color: var(--ds-text-primary);
}

.fm__profit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 500;
}

.fm__profit b {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -0.03em;
}

/* ---- Chamada final ------------------------------------------------------------------- */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1136px;
  margin: clamp(80px, 14vh, 160px) auto 0;
  padding: clamp(72px, 12vh, 128px) var(--gutter);
  border-top: 1px solid var(--ds-line-dim);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--light), transparent 70%);
  text-align: center;
}

.final__sub {
  max-width: 42ch;
  margin: 22px 0 0;
  color: var(--ds-text-secondary);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
}

.final__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.final__mail {
  color: var(--ds-text-muted);
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: var(--ds-tracking-mono-xs);
  text-decoration: none;
  transition: color 140ms var(--ds-ease-standard);
}

.final__mail:hover {
  color: var(--ds-text-primary);
}

.final__mail:focus-visible {
  outline: 2px solid var(--ds-focus);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .beat {
    grid-template-columns: minmax(0, 1fr);
  }

  .beat--flip .beat__copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  .nav__link {
    display: none;
  }

  .sec-title br,
  .final__title br {
    display: none;
  }

  .beat__visual {
    padding: 48px 12px 20px;
  }

  .final__cta,
  .final__cta .ds-button {
    width: 100%;
  }
}
