/* Onduria — site. Mesma paleta, fontes e clima do app. Fontes servidas pelo próprio site (nada de terceiros). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/fraunces-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }

:root {
  --cacau: #2a1b15;
  --cacau-2: #1f140f;
  --linho: #f6efe6;
  --areia: #e8dacb;
  --mel: #d9a25b;
  --argila: #b4532f;
  --argila-2: #d06a43;
  --salvia: #6f7f64;
  --muted: #bfae9f;
  --line: rgba(246, 239, 230, 0.12);
  --glass: rgba(246, 239, 230, 0.04);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --r: 24px;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cacau);
  color: var(--linho);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grão de filme bem leve, como nas fotos */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- topo ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(31, 20, 15, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: -0.3px; }
.brand svg { width: 34px; height: 34px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.lang {
  appearance: none;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--linho);
  font: 600 13px var(--sans);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang option { color: #000; }

/* botão App Store */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--linho);
  color: var(--cacau);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font: 700 14px var(--sans);
  transition: transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(217, 162, 91, 0.6); }
.store svg { width: 20px; height: 20px; }
.store small { display: block; font: 500 10px var(--sans); opacity: 0.7; line-height: 1; }
.store span { line-height: 1.1; }
.store.big { padding: 14px 26px 14px 20px; font-size: 17px; }
.store.big svg { width: 26px; height: 26px; }
.store.big small { font-size: 11px; }

/* ---------- tipografia ---------- */
.eyebrow { font: 700 12px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--mel); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -1.2px; line-height: 1.02; }
h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 30ch; }
em.gold { font-style: italic; color: var(--mel); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; width: 100%; }
.hero-text { display: flex; flex-direction: column; gap: 26px; z-index: 2; }
.hero-visual { position: relative; height: min(78svh, 720px); }
.hero-photo {
  position: absolute;
  inset: 0 0 0 30%;
  border-radius: 200px 200px var(--r) var(--r);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42, 27, 21, 0.55)); }
.hero .phone { position: absolute; left: 0; bottom: 4%; z-index: 3; width: 230px; }
.trust { display: flex; gap: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--mel); }

/* ---------- celular (telas do app, desenhadas em CSS) ---------- */
.phone {
  width: 250px;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 10px;
  background: #0d0806;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(246, 239, 230, 0.08);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--cacau);
  padding: 44px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 72px; height: 20px; translate: -50% 0; border-radius: 20px; background: #0d0806; }
.s-eyebrow { font: 700 9px var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mel); text-align: center; }
.ring { position: relative; width: 132px; height: 132px; margin: 4px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(246, 239, 230, 0.1); }
.ring .bar { stroke: var(--mel); stroke-linecap: round; stroke-dasharray: 339; stroke-dashoffset: 339; transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 46px var(--serif); padding-bottom: 12px; }
.ring i { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font: 700 8px var(--sans); letter-spacing: 1.2px; color: var(--mel); font-style: normal; text-transform: uppercase; }
.s-type { text-align: center; font: 500 34px var(--serif); line-height: 1; }
.s-meta { text-align: center; color: var(--muted); font-size: 10px; }
.needs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.need { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 10px; color: var(--areia); }
.need span { height: 6px; border-radius: 3px; background: rgba(246, 239, 230, 0.08); overflow: hidden; }
.need span::after { content: ''; display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.in .need span::after, .need.on span::after { transform: scaleX(1); }
.s-card { border: 1px solid var(--line); background: var(--glass); border-radius: 16px; padding: 12px; }
.s-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- seções ---------- */
section { position: relative; }
.block { padding: clamp(90px, 14vw, 170px) 0; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* história com rolagem: o celular fica fixo e a tela muda */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story-steps { display: flex; flex-direction: column; grid-column: 1; grid-row: 1; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0.25; transition: opacity 0.5s; }
.story-step.active { opacity: 1; }
.story-step .num { font: 500 15px var(--serif); color: var(--mel); }
.story-stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; grid-column: 2; grid-row: 1; }
.story-stick .phone { width: 280px; }
.views { position: relative; height: 100%; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.6s, transform 0.6s; }
.view.on { opacity: 1; transform: none; }

/* câmera do scan */
.cam { position: relative; flex: 1; border-radius: 22px; overflow: hidden; background: #000; }
.cam img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.cam .frame { position: absolute; inset: 14% 16%; border: 2px dashed rgba(217, 162, 91, 0.8); border-radius: 48% 48% 44% 44%; }
.cam .scan { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--mel); box-shadow: 0 0 18px 6px rgba(217, 162, 91, 0.35); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 12%; } to { top: 86%; } }
.steps-dots { display: flex; gap: 5px; }
.steps-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(246, 239, 230, 0.15); }
.steps-dots i.on { background: var(--mel); }

/* calendário do cronograma */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 600 8px var(--sans); color: var(--muted); font-style: normal; }
.cal i.h { background: rgba(122, 163, 178, 0.28); box-shadow: inset 0 0 0 1.5px #7aa3b2; }
.cal i.n { background: rgba(217, 162, 91, 0.25); box-shadow: inset 0 0 0 1.5px var(--mel); }
.cal i.r { background: rgba(180, 83, 47, 0.28); box-shadow: inset 0 0 0 1.5px var(--argila); }
.cal i.done { color: var(--linho); }

/* faixa de foto grande com parallax */
.band { position: relative; height: clamp(360px, 70vh, 720px); overflow: hidden; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cacau) 0%, transparent 25%, transparent 70%, var(--cacau) 100%); }
.band blockquote { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14%; text-align: center; font: italic 500 clamp(28px, 4.4vw, 58px) var(--serif); letter-spacing: -0.8px; padding: 0 var(--pad); }

/* recursos: foto + cartões animados */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feature.flip .f-media { order: 2; }
.f-media { position: relative; }
.f-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.f-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.in .f-photo img { transform: scale(1.04); }
.f-photo.wide { aspect-ratio: 4 / 3; }
.f-text { display: flex; flex-direction: column; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--areia); display: inline-flex; align-items: center; gap: 8px; }

.float {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(31, 20, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.float img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.float b { display: block; font: 500 17px var(--serif); }
.float small { color: var(--muted); font-size: 12px; }
.float.a { right: -2%; top: 10%; }
.float.b { left: -4%; bottom: 12%; }
.verdict { width: 12px; height: 12px; border-radius: 50%; }

/* evolução: gráfico que se desenha */
.evo { border: 1px solid var(--line); background: var(--glass); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.evo svg { width: 100%; height: auto; overflow: visible; }
.evo .line { fill: none; stroke: var(--mel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s cubic-bezier(0.3, 0.7, 0.2, 1); }
.evo .area { fill: url(#g); opacity: 0; transition: opacity 1.4s 0.9s; }
.evo .pt { fill: var(--linho); opacity: 0; transition: opacity 0.4s; }
.evo.in .line { stroke-dashoffset: 0; }
.evo.in .area { opacity: 1; }
.evo.in .pt { opacity: 1; }
.evo-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.evo-head b { font: 500 clamp(40px, 5vw, 64px) var(--serif); line-height: 1; }
.evo-head .delta { background: var(--salvia); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }

/* chamada final */
.cta { overflow: hidden; }
.cta .glow { position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(closest-side, rgba(217, 162, 91, 0.22), transparent); pointer-events: none; }
.cta .mark { width: 92px; height: 92px; }

/* rodapé */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--linho); }

/* ---------- aparecer ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.words span { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.words.in span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .words span, .view { opacity: 1 !important; transform: none !important; }
}

/* ---------- celular ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .top .wrap { height: 64px; }
  .top .store small { display: none; }
  .hero { padding-top: 92px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { height: 520px; }
  .hero-photo { inset: 0 0 0 18%; }
  .hero .phone { width: 200px; left: 0; bottom: 4%; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stick, .story-steps { grid-column: 1; grid-row: auto; }
  .story-stick { position: sticky; top: 64px; height: 56vh; z-index: 1; background: linear-gradient(180deg, var(--cacau) 88%, transparent); }
  .story-stick .phone { width: 190px; }
  .story-step { min-height: 70vh; position: relative; z-index: 2; justify-content: flex-end; padding-bottom: 8vh; }
  .story-step > * { background: rgba(42, 27, 21, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; padding: 4px 8px; margin-left: -8px; width: fit-content; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .f-media { order: 0; }
  .float.a { right: 4%; top: auto; bottom: -20px; }
  .float.b { left: 4%; bottom: auto; top: -20px; }
}
@media (max-width: 420px) {
  .top .store { padding: 8px 12px 8px 10px; font-size: 12px; }
  .brand span { display: none; }
}

/* ---------- botão grande da App Store (limpo, como a referência) ---------- */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  padding: 17px 30px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font: 700 18px var(--sans);
  letter-spacing: -0.2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(217, 162, 91, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}
.store-btn svg { width: 22px; height: 22px; margin-top: -2px; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 50px -16px rgba(217, 162, 91, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25); }
.store-btn:active { transform: translateY(0) scale(0.98); }

/* ---------- seletor de idioma: botão discreto, menu com tipografia e entrada suave ---------- */
.lang-pick { position: relative; }
.lang-btn {
  min-width: 42px;
  height: 35px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--linho);
  font: 600 13px var(--sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover, .lang-pick.open .lang-btn { border-color: rgba(217, 162, 91, 0.45); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  list-style: none;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #1f140f;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 60;
}
.lang-pick.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(6px);
  transition: background 0.15s, opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lang-pick.open .lang-menu li { opacity: 1; transform: none; }
.lang-pick.open .lang-menu li:nth-child(2) { transition-delay: 0.04s; }
.lang-pick.open .lang-menu li:nth-child(3) { transition-delay: 0.08s; }
.lang-menu li span { font: 500 18px var(--serif); letter-spacing: -0.2px; color: var(--areia); transition: color 0.15s, letter-spacing 0.2s; }
.lang-menu li small { font: 700 11px var(--sans); letter-spacing: 1.2px; color: var(--muted); }
.lang-menu li:hover { background: rgba(246, 239, 230, 0.05); }
.lang-menu li:hover span { color: var(--linho); letter-spacing: 0.2px; }
.lang-menu li.on span { color: var(--mel); font-style: italic; }
.lang-menu li.on small { color: var(--mel); }
@media (max-width: 900px) {
  .store-btn { width: 100%; max-width: 340px; }
}
