/* ==========================================================================
   Guilherme Franco: landing page (v3)
   Base clara, hero em vídeo tela cheia, preto e branco como cor; burgundy só em detalhes.
   Tipografia: Instrument Sans (texto e títulos) + Instrument Serif itálico (uma palavra por título).
   ========================================================================== */

:root {
  --bg:        #F6F4EF;   /* base clara: tom mais leve do Vintage White */
  --paper:     #E4E0D6;   /* Vintage White: faixas e superfícies */
  --paper-2:   #D6D1C4;
  --white:     #FFFFFF;
  --ink:       #1D1D1D;   /* Vintage Black */
  --ink-2:     #2A2A28;
  --wine:      #6D001A;   /* Burgundy: só detalhes (nota da pauta, estrelas, pontos, sublinhados) */
  --mute:      #74706A;
  --mute-ink:  #A6A198;   /* texto secundário sobre preto */
  --line:      rgba(29, 29, 29, .10);
  --line-ink:  rgba(228, 224, 214, .16);

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  --header-h: 68px;
  --staff-h: 14px;
  --r-card: 24px;
  --r-img: 20px;
  --r-field: 12px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, ol, ul, figure, fieldset, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
[data-theme="dark"] :focus-visible { outline-color: var(--paper); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; }
h2.h-big { font-size: clamp(2.1rem, 4.8vw, 4rem); max-width: 19ch; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; }
/* a palavra em itálico editorial: única serifa fora do logo */
h1 em, h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.01em; line-height: .9; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.5; color: #3F3C37; }
[data-theme="dark"] .lead { color: #CFCABF; }
.measure { max-width: 58ch; }
.small { font-size: .9375rem; }
strong { font-weight: 600; }

.eyebrow {
  display: flex; align-items: center; gap: .6em;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 1.4rem;
}
.eyebrow .dots { width: 18px; height: 12px; fill: var(--wine); flex: none; }
[data-theme="dark"] .eyebrow { color: var(--mute-ink); }
[data-theme="dark"] .eyebrow .dots { fill: #C9788A; }

.strike { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--wine); color: var(--mute); font-weight: 400; }

/* ---------- layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 150px); scroll-margin-top: calc(var(--header-h) + var(--staff-h)); position: relative; overflow: hidden; }
.band { background: var(--paper); }
[data-theme="dark"] { background: var(--ink); color: var(--paper); }
.section h2 { margin-bottom: 1.4rem; }
.section .lead { margin-bottom: 2.5rem; }
.section > .container { position: relative; z-index: 1; }

.card { background: var(--white); border-radius: var(--r-card); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #000; }
[data-theme="dark"] .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-theme="dark"] .btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: currentColor; border-color: rgba(29,29,29,.25); }
.btn-ghost:hover { background: rgba(29,29,29,.05); border-color: rgba(29,29,29,.5); }
[data-theme="dark"] .btn-ghost { border-color: rgba(228,224,214,.35); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(228,224,214,.08); border-color: rgba(228,224,214,.7); }
.btn-sm { padding: .7em 1.15em; font-size: .85rem; }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; width: 100%; }
.textlink {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .95rem;
  color: var(--ink); padding-bottom: 2px;
  background: linear-gradient(var(--wine), var(--wine)) no-repeat 0 100% / 100% 1px;
  transition: background-size .3s var(--ease-out);
}
.textlink:hover { background-size: 30% 1px; }
[data-theme="dark"] .textlink { color: var(--paper); }

/* ---------- header + pauta ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ink); transition: color .4s; }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(246,244,239,.92), rgba(246,244,239,.6));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .4s;
}
.site-header[data-theme="dark"] { color: var(--paper); }
.site-header[data-theme="dark"]::before {
  background: linear-gradient(rgba(29,29,29,.55), rgba(29,29,29,0));
  mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent);
}
.header-bar {
  position: relative; height: var(--header-h);
  width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: block; flex: none; }
.brand-logo { height: 15px; width: auto; transition: filter .4s; }
.site-header[data-theme="dark"] .brand-logo { filter: invert(1) brightness(.92); }
.nav { display: flex; gap: 1.75rem; font-size: .9rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.staff { position: relative; height: var(--staff-h); }
.staff-lines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; opacity: .22; }
.staff-lines i { display: block; height: 1px; background: currentColor; }
.staff-bars { position: absolute; inset: 0; }
.staff-bars i { position: absolute; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .35; }
.staff-note { position: absolute; left: 0; top: 50%; width: 9px; height: 20px; fill: var(--wine); transform: translate(0, -60%); will-change: transform; }
.site-header[data-theme="dark"] .staff-note { fill: #D9A3AF; }

/* ---------- notas ambientes ---------- */
.notes-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.notes-field svg {
  position: absolute; bottom: -10%; fill: var(--ink); opacity: 0;
  animation: drift var(--dur, 22s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
.notes-field.notes-light svg { fill: var(--paper); }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); opacity: 0; }
  10%  { opacity: var(--op, .08); }
  90%  { opacity: var(--op, .08); }
  100% { transform: translate3d(var(--dx, 0px), -120vh, 0) rotate(calc(var(--rot, 0deg) * -1)); opacity: 0; }
}

/* ---------- hero: vídeo tela cheia ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; isolation: isolate;
  color: var(--paper);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.72);
  opacity: 0; animation: fade-in 1.8s .2s var(--ease-out) forwards;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 40%, rgba(29,29,29,.1), rgba(29,29,29,.8) 70%),
    linear-gradient(rgba(29,29,29,.4), rgba(29,29,29,.1) 45%, rgba(29,29,29,.9));
}
.hero .notes-field { z-index: 0; }
.hero-content {
  position: relative; z-index: 1;
  padding-top: calc(var(--header-h) + var(--staff-h) + clamp(56px, 10vh, 120px));
  padding-bottom: clamp(40px, 6vh, 80px);
  align-self: center;
}
.hero .eyebrow { animation: rise .9s .3s var(--ease-out) both; }
.hero-title { max-width: 13ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: line-up 1.1s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .45s; }
.hero-title .line:nth-child(2) > span { animation-delay: .6s; }
.hero-lead { max-width: 44ch; margin-top: 1.75rem; color: #D6D1C6; animation: rise .9s .9s var(--ease-out) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; animation: rise .9s 1.05s var(--ease-out) both; }

@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: translateY(0); } }

/* ---------- piano (assinatura) ---------- */
.piano-wrap { position: relative; z-index: 1; animation: piano-in 1.2s 1.1s var(--ease-out) both; }
@keyframes piano-in { from { transform: translateY(100%); } to { transform: none; } }
.piano-hint {
  position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em .95em; border-radius: 999px;
  background: rgba(246,244,239,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246,244,239,.25);
  color: var(--paper); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .5s, transform .5s var(--ease-out);
}
.piano-hint svg { width: 11px; height: 15px; fill: var(--wine); filter: brightness(1.8); }
.piano-hint.is-hidden { opacity: 0; transform: translate(-50%, 6px); }
.piano {
  position: relative;
  height: clamp(72px, 11vw, 124px);
  display: flex;
  border-top: 2px solid var(--wine);
  background: var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.key { position: relative; border: 0; padding: 0; margin: 0; cursor: pointer; transition: background-color .08s; }
.key.white {
  flex: 1 1 0; height: 100%;
  background: var(--bg); border-right: 1px solid var(--paper-2);
  border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.07);
}
.key.white:last-child { border-right: 0; }
.key.black {
  position: absolute; top: 0; z-index: 2;
  height: 62%; width: var(--bw);
  background: var(--ink); border: 1px solid #000; border-top: 0;
  border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,.5), inset 0 -8px 0 rgba(255,255,255,.06);
}
.key.white:hover { background: #fff; }
.key.black:hover { background: #33332F; }
.key.is-on.white { background: var(--wine); box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); }
.key.is-on.black { background: var(--wine); }
.key:focus-visible { outline-offset: -3px; }
.fly-note { position: absolute; bottom: 100%; z-index: 3; width: 18px; height: 24px; fill: var(--paper); pointer-events: none; animation: fly 1.6s var(--ease-out) forwards; }
@keyframes fly {
  0%   { opacity: 0; transform: translate(-50%, 0) rotate(0deg) scale(.6); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -220px) rotate(var(--rot)) scale(1.1); }
}

/* ---------- prova + pauta ondulada ---------- */
.wave-staff { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: clamp(160px, 22vw, 320px); color: var(--ink); opacity: .35; pointer-events: none; }
.wave-lines path, .wave-lines use { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); transition: stroke-dashoffset 2.6s var(--ease-out); }
.wave-staff.is-on .wave-lines path, .wave-staff.is-on .wave-lines use { stroke-dashoffset: 0; }
.wave-notes use { fill: var(--ink); opacity: 0; transition: opacity .6s; }
.wave-staff.is-on .wave-notes use { opacity: 1; }
.wave-notes use.is-wine { fill: var(--wine); }
.prova { padding-top: clamp(140px, 20vw, 260px); }
.prova-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.prova-media { position: relative; }
.prova-video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--ink); }
.prova-media figcaption { margin-top: .75rem; font-size: .8rem; color: var(--mute); }
.prova-text .lead { margin-bottom: 2rem; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--mute); padding-top: .3em; }
.facts dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.facts dd a { text-decoration: none; background: linear-gradient(var(--wine), var(--wine)) no-repeat 0 100% / 100% 1px; }

/* ---------- valor: três camadas como três teclas pretas ---------- */
.keys-layers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.5vw, 1.25rem);
  margin-top: 3rem; padding-top: 1.25rem; border-top: 2px solid var(--ink);
  align-items: start;
}
.klayer {
  background: var(--ink); color: var(--paper);
  padding: 2rem 1.75rem 2.5rem;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6), inset 0 -10px 0 rgba(255,255,255,.05);
  display: flex; flex-direction: column;
  min-height: 22rem;
}
.klayer:nth-child(2) { min-height: 25rem; }
.klayer:nth-child(3) { min-height: 28rem; }
.klayer .layer-n { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--mute-ink); margin-bottom: 1.5rem; }
.klayer h3 { margin-bottom: .8rem; }
.klayer p { font-size: .95rem; color: #CFCABF; }
.klayer .layer-note { margin-top: auto; padding-top: 1.75rem; font-weight: 500; color: var(--paper); }
.layers-caption { margin-top: 1.5rem; color: var(--mute); }

/* ---------- uma história ---------- */
.historia-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.historia-video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--ink-2); }
.historia-text h2 { margin-bottom: 2rem; }
.cronica { font-family: var(--font-accent); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; max-width: 30ch; display: grid; gap: 1.1em; color: #E9E5DB; }
.cronica em { font-style: italic; color: var(--paper); }
.cronica-end { padding-top: .4em; }
.historia-text .btn { margin-top: 2.5rem; }
.app-divider { grid-column: span 12; padding-top: clamp(2rem, 5vw, 4rem); margin-bottom: .5rem; }
.h-mid { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.aplicacoes .app-divider h2 { margin-bottom: 0; }
.conversa-text .btn { margin-bottom: 2rem; }

/* ---------- aplicações ---------- */
.aplicacoes h2 { margin-bottom: 3rem; }
.app-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.app { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + var(--staff-h) + 16px); }
.app figure { overflow: hidden; border-radius: var(--r-img); background: var(--paper); }
.app figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease-out); }
.app:hover figure img { transform: scale(1.04); }
.app-body { padding: 1.1rem .25rem 0; display: flex; flex-direction: column; flex: 1; }
.app-body .textlink { margin-top: auto; align-self: flex-start; }
.app-body .btn { align-self: flex-start; }
.app-body h3 { margin-bottom: .5rem; }
.app-body p { font-size: .95rem; color: #3F3C37; max-width: 52ch; margin-bottom: 1.25rem; }
.app-main { grid-column: span 12; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; margin-bottom: 1.5rem; }
.app-main figure { border-radius: var(--r-card); }
.app-main figure img { aspect-ratio: 3 / 2; }
.app-main .app-body { padding: 0 0 0 .5rem; }
.app-main .app-body h3 { font-size: clamp(1.75rem, 2.6vw, 2.3rem); }
.app-main .app-body p { font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.5rem; }
.app-grid > .app:not(.app-main) { grid-column: span 3; }

/* ---------- processo / partitura ---------- */
.processo .lead { color: #C9C4B9; }
.score { margin-top: 1rem; }
.score-svg { width: 100%; height: auto; color: rgba(228,224,214,.5); overflow: visible; }
.score-clef { opacity: .9; pointer-events: none; }
.score-ledger { opacity: .8; }
.snote { fill: var(--paper); cursor: pointer; opacity: 0; transition: opacity .5s, fill .25s; }
.score.is-on .snote { opacity: 1; }
.score.is-on .snote[data-i="1"] { transition-delay: .12s; }
.score.is-on .snote[data-i="2"] { transition-delay: .24s; }
.score.is-on .snote[data-i="3"] { transition-delay: .36s; }
.score.is-on .snote[data-i="4"] { transition-delay: .48s; }
.score.is-on .snote[data-i="5"] { transition-delay: .60s; }
.snote.is-active { fill: #D9A3AF; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: .5rem; padding-left: 11.67%; }
.step button { width: 100%; text-align: left; background: none; border: 0; padding: 1rem 0 0; cursor: pointer; border-top: 1px solid var(--line-ink); transition: border-color .3s; }
.step button:hover, .step.is-active button { border-top-color: var(--paper); }
.step-n { display: block; font-size: .75rem; letter-spacing: .1em; color: var(--mute-ink); margin-bottom: .4rem; }
.step strong { display: block; font-weight: 500; font-size: 1.15rem; margin-bottom: .4rem; letter-spacing: -0.01em; }
.step span:not(.step-n) { display: block; font-size: .85rem; line-height: 1.5; color: #B9B4A9; }

/* ---------- depoimentos / carrossel ---------- */
.depo-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.depo-head h2 { margin-bottom: 0; }
.depo-summary { max-width: 30ch; font-size: .95rem; color: #3F3C37; line-height: 1.55; }
.depo-summary .stars { margin-bottom: .5rem; }
.depo-summary .textlink { display: inline-block; margin-top: .5rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--wine); }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 1rem; margin: -4px -4px 0;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -2px; }
.review {
  flex: 0 0 min(100%, 380px); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem;
  min-height: 300px;
}
.review h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.review p { font-size: .95rem; line-height: 1.55; color: #3F3C37; flex: 1; }
.review footer { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--mute); padding-top: .5rem; border-top: 1px solid var(--line); }
.review footer strong { color: var(--ink); }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.cnav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(29,29,29,.25); background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.cnav:hover { background: var(--white); border-color: var(--ink); }
.cdots { display: flex; gap: 6px; }
.cdots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(29,29,29,.2); cursor: pointer; transition: background-color .2s, transform .2s; }
.cdots button.is-active { background: var(--wine); transform: scale(1.25); }

/* ---------- conversa / compositor ---------- */
.giant-g {
  position: absolute; left: -.08em; bottom: -.32em; z-index: 0;
  font-family: var(--font-accent); font-size: clamp(22rem, 48vw, 60rem); line-height: 1;
  color: var(--ink); opacity: .045; pointer-events: none; user-select: none;
}
.conversa-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.conversa-text .small { color: var(--mute); margin-top: 1rem; max-width: 46ch; }
.conversa-text .small a { color: var(--ink); }
.composer { display: grid; gap: 1.75rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { display: block; }
.field legend, .label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--mute); margin-bottom: .7rem; }
.label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="text"], input[type="date"] {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-field);
  padding: .8em 1em; font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s;
}
input[type="text"]::placeholder { color: #A6A198; }
input[type="text"]:focus, input[type="date"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span {
  display: inline-block; padding: .55em 1em; border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chips span:hover { border-color: rgba(29,29,29,.4); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.calendar { border: 1px solid var(--line); border-radius: var(--r-field); padding: 1rem; background: var(--bg); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-title { font-weight: 500; text-transform: capitalize; }
.cal-nav { background: #fff; border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: .7rem; letter-spacing: .1em; color: var(--mute); padding-bottom: .4rem; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; font-size: .9rem; cursor: pointer; transition: background-color .15s, color .15s; }
.cal-day:hover:not(:disabled) { background: var(--paper); }
.cal-day:disabled { color: #C4BFB3; cursor: default; }
.cal-day.is-today { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wine); }
.cal-day.is-selected { background: var(--ink); color: var(--paper); }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.slot { padding: .5em .95em; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s; }
.slot:hover { border-color: var(--ink); }
.slot.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots:empty::before { content: "Escolha um dia para ver os horários."; font-size: .9rem; color: var(--mute); }

.preview .bubble { background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 1rem 1.15rem; font-size: .95rem; line-height: 1.55; white-space: pre-line; position: relative; }
.preview .bubble::after { content: "✓✓"; position: absolute; right: .8rem; bottom: .35rem; font-size: .65rem; color: var(--mute); letter-spacing: -.1em; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 8vw, 96px) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2rem; align-items: start; }
.footer-logo { height: 46px; width: auto; filter: invert(1) brightness(.92); margin-bottom: 1.25rem; }
.footer-brand p { font-size: .9rem; color: var(--mute-ink); line-height: 1.6; }
.footer-links { display: grid; gap: .6rem; font-size: .95rem; justify-self: end; }
.footer-links a { text-decoration: none; color: var(--paper); opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--wine); }
.footer-copy { grid-column: 1 / -1; font-size: .78rem; color: var(--mute-ink); padding-top: 2rem; border-top: 1px solid var(--line-ink); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: .6em;
  height: 56px; padding: 0 1.2rem 0 1rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap;
  border: 1px solid rgba(228,224,214,.2);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out), background-color .25s;
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #000; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wa-float::after { content: ""; position: absolute; top: 10px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 600px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; opacity: 1; transform: none; pointer-events: auto; transition: bottom .5s var(--ease-out); }
  .wa-float:not(.is-on) { bottom: calc(clamp(72px, 11vw, 124px) + 14px); }
  .wa-float span { display: none; }
  .wa-float::after { top: 6px; right: 6px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .app-grid > .app:not(.app-main) { grid-column: span 6; }
  .keys-layers { grid-template-columns: 1fr; }
  .klayer, .klayer:nth-child(2), .klayer:nth-child(3) { min-height: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); padding-left: 0; }
  .score-svg { display: none; }
  .depo-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .prova-grid, .conversa-grid, .app-main, .historia-grid { grid-template-columns: 1fr; }
  .prova-media, .historia-media { max-width: 460px; }
  .app-main .app-body { padding: 1rem .25rem 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}
@media (max-width: 600px) {
  :root { --header-h: 58px; }
  .brand-logo { height: 12px; }
  .btn-sm { padding: .65em .85em; font-size: .75rem; }
  .app-grid > .app:not(.app-main) { grid-column: span 12; }
  .app figure img { aspect-ratio: 3 / 2; }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
  .steps { grid-template-columns: 1fr; gap: .5rem; }
  .step button { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .5rem; align-items: baseline; }
  .step strong { grid-column: 2; }
  .step span:not(.step-n) { grid-column: 2; }
  .step-n { grid-row: 1 / span 2; font-size: 1rem; }
  .review { flex-basis: 86%; }
  .piano-hint { display: none; }
  .hero-title { max-width: none; }
  .wave-staff { height: 120px; }
  .prova { padding-top: 120px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { animation: none; opacity: 1; }
  .hero .eyebrow, .hero-lead, .hero-actions, .piano-wrap { animation: none; }
  .hero-title .line > span { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .snote { opacity: 1 !important; transition: none; }
  .fly-note { animation-duration: .01s; }
  .notes-field { display: none; }
  .wave-lines path, .wave-lines use { stroke-dashoffset: 0 !important; transition: none; }
  .wave-notes use { opacity: 1 !important; }
  .carousel-track { scroll-behavior: auto; }
}
