/* ==========================================================================
   Archdeck — Landing page
   Identidade: minimalista e editorial. Papel, areia, pedra, grafite.
   Tipografia da marca (a mesma do editor): Crimson Text + DM Sans.
   ========================================================================== */

@font-face { font-family: "Crimson Text"; src: url("../assets/fonts/crimson-text-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../assets/fonts/crimson-text-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../assets/fonts/crimson-text-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dm-sans-variable.woff") format("woff"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --paper: #F3F1EC;
  --paper-2: #F8F7F3;
  --sand: #E7E1D6;
  --stone: #D3CDC2;
  --mute: #78726A;
  --graphite: #2E2C29;
  --ink: #1C1B19;
  --bronze: #9A8264;

  --line: rgba(28, 27, 25, .14);
  --line-2: rgba(28, 27, 25, .08);

  --serif: "Crimson Text", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1360px;
  --gut: clamp(20px, 5vw, 72px);
  --sec: clamp(88px, 12vw, 176px);
  --top-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.012em;
  max-width: 18ch; text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -.005em; }
.h4 { font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1.4; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--graphite); max-width: 58ch; }
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .9rem; color: var(--mute); margin-bottom: 22px; letter-spacing: .005em;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.micro { font-size: .88rem; color: var(--graphite); margin-top: 16px; }
.micro--mute { color: var(--mute); margin-top: 6px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border-radius: 0; text-wrap: balance; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--graphite); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.05rem; }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--stone); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--ink); }
.link--quiet { color: var(--mute); font-size: .95rem; }

/* ---------- Barra superior ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  background: rgba(243, 241, 236, .86); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 32px; }
.top__logo img { width: 128px; height: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: .92rem; }
.top__nav a { text-decoration: none; color: var(--graphite); }
.top__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Molduras (tela, navegador, celular) ---------- */
.frame { background: var(--paper-2); border: 1px solid var(--line); }
.frame__bar {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--graphite); background: var(--paper-2);
}
.frame__hint { color: var(--mute); }
.frame__media { position: relative; overflow: hidden; background: var(--sand); }
.r-16x10 { aspect-ratio: 16 / 10; }
.frame__media > video, .frame__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.phone {
  position: relative; width: 100%; aspect-ratio: 390 / 844;
  padding: 7px; background: var(--ink); border-radius: 34px;
  box-shadow: 0 30px 60px -30px rgba(28, 27, 25, .45);
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 27px; background: var(--paper); }
.phone__screen > video, .phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Controle de vídeo (pausar/reproduzir) */
.vbtn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(28, 27, 25, .2); background: rgba(248, 247, 243, .9); color: var(--ink);
  cursor: pointer; opacity: 0; transition: opacity .25s;
}
.frame__media:hover .vbtn, .phone__screen:hover .vbtn, .vbtn:focus-visible, .vbtn.is-paused { opacity: 1; }
.vbtn svg { width: 12px; height: 12px; }
.phone .vbtn { right: 10px; bottom: 14px; }

/* ---------- 1. Hero ---------- */
.hero { padding-top: calc(var(--top-h) + clamp(36px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 4.5vw, 4.9rem); line-height: 1; text-wrap: balance; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 30px;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: block; }
.hero__sub { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.62; color: var(--graphite); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }

.hero__stage { position: relative; padding-bottom: 56px; padding-right: clamp(0px, 4vw, 56px); }
.hero__desk { position: relative; z-index: 1; }
.hero__phone { position: absolute; right: 0; bottom: 0; z-index: 2; width: clamp(120px, 15vw, 210px); }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--line); padding-top: 22px; font-size: .92rem; color: var(--graphite);
}
.trust li { flex: 1 1 0; min-width: 180px; padding-right: 24px; }
.trust li + li { border-left: 1px solid var(--line); padding-left: 24px; }

/* Abertura: a única sequência animada da página */
.js .hero__title .ln > span { transform: translateY(105%); }
.js .hero__sub, .js .hero__cta, .js .hero .micro, .js .hero__kick { opacity: 0; }
.js .hero__desk { clip-path: inset(0 0 100% 0); }
.js .hero__phone { opacity: 0; transform: translateY(24px); }
.is-ready .hero__title .ln > span { transform: none; transition: transform 1.1s var(--ease); }
.is-ready .hero__title .ln:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero__title .ln:nth-child(3) > span { transition-delay: .16s; }
.is-ready .hero__sub, .is-ready .hero__cta, .is-ready .hero .micro { opacity: 1; transition: opacity .9s .45s ease; }
.is-ready .hero__desk { clip-path: inset(0 0 0 0); transition: clip-path 1.3s .2s var(--ease); }
.is-ready .hero__phone { opacity: 1; transform: none; transition: opacity .9s .9s ease, transform 1.1s .9s var(--ease); }

/* ---------- Seções ---------- */
.sec { padding: var(--sec) 0; }
.sec__head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec__head .lede { margin-top: 24px; }
.sec__head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.sec__head--split .lede { margin-top: 0; }

/* ---------- 3. Problema ---------- */
.problem { background: var(--sand); }
.problem__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); }
.problem__head .h2 { position: sticky; top: calc(var(--top-h) + 40px); }
.problem__body > p { margin-top: 28px; color: var(--graphite); max-width: 58ch; }
.problem__body > .lede { margin-top: 0; }
.pains { margin-top: 36px; border-top: 1px solid var(--line); }
.pains > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; }
.pains dt { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.pains dd { color: var(--graphite); }
.turn { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; color: var(--ink) !important; margin-top: 48px !important; max-width: 26ch !important; }

/* ---------- 4. Como funciona ---------- */
.how__video { margin-bottom: 18px; }
.how__cap { padding: 12px 14px 0; font-size: .85rem; color: var(--mute); border-top: 0; }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}
.steps li { padding: 24px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__n { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--bronze); margin-bottom: 18px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin-bottom: 10px; }
.steps p { font-size: .95rem; color: var(--graphite); }
/* ---------- 6. Diferenciais ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 112px); }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); }
.why__list > div { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.why__list dt { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }
.why__list dd { color: var(--graphite); font-size: .98rem; }

/* ---------- 7. Depoimentos (ilustrativos) ---------- */
.voices { background: var(--sand); }
.voices__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.voice { position: relative; grid-column: span 2; background: var(--paper); border: 1px solid var(--line); padding: 34px 30px 28px; display: flex; flex-direction: column; }
.voice--lead { grid-column: span 4; }
.voice__flag { position: absolute; top: 14px; right: 14px; font-size: .72rem; color: var(--mute); border: 1px solid var(--line); padding: 1px 8px; }
.voice__topic { font-size: .85rem; color: var(--mute); margin-bottom: 18px; }
.voice blockquote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.38; flex: 1; }
.voice blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .7; color: var(--bronze); margin-bottom: 8px; }
.voice--lead blockquote { font-size: 1.7rem; }
.voice figcaption { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.voice figcaption span { display: block; font-weight: 400; color: var(--mute); }

/* ---------- 8. Oferta ---------- */
.offer__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
.offer__visual { position: relative; padding: 0 clamp(40px, 6vw, 80px) 48px 0; }
.offer__phone { position: absolute; right: 0; bottom: 0; width: clamp(110px, 13vw, 180px); }
.gets { margin-top: 20px; border-top: 1px solid var(--line); }
.gets li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--graphite); font-size: .98rem; }
.gets strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--ink); margin-bottom: 2px; }

.price { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); border: 1px solid var(--ink); background: var(--paper-2); }
.price__main { padding: clamp(32px, 4vw, 56px); border-right: 1px solid var(--line); }
.price__from { font-size: 1.05rem; color: var(--graphite); }
.price__from s { color: var(--mute); text-decoration-thickness: 1px; }
.price__now { font-family: var(--serif); font-size: clamp(4.5rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; margin: 12px 0 10px; }
.price__cur { font-size: .32em; letter-spacing: 0; vertical-align: .95em; margin-right: .2em; }
.price__terms { font-size: 1.05rem; color: var(--graphite); margin-bottom: 30px; }
.price__side { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; }
.guarantee { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.guarantee p, .access li { color: var(--graphite); font-size: .96rem; margin-top: 8px; }
.access ol { counter-reset: a; margin-top: 4px; }
.access li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; }
.access li::before { content: counter(a); font-family: var(--serif); color: var(--bronze); font-size: 1.1rem; line-height: 1.4; }
.offer__honest { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--graphite); }

/* ---------- 9. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 112px); }
.faq__head p { margin-top: 20px; color: var(--graphite); max-width: 32ch; }
.faq__stick { position: sticky; top: calc(var(--top-h) + 40px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details > div { padding: 0 48px 26px 0; color: var(--graphite); max-width: 68ch; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- 10. Fechamento ---------- */
.closing { position: relative; overflow: hidden; background: var(--sand); padding: clamp(120px, 16vw, 240px) 0; text-align: left; }
.closing__bg { position: absolute; inset: 0 -6%; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 28px; transform: rotate(-3deg); opacity: .13; pointer-events: none; }
.closing__bg img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.closing__bg img:nth-child(3n+2) { transform: translateY(14%); }
.closing__in { position: relative; }
.closing__title { max-width: 16ch; font-size: clamp(2.6rem, 5.4vw, 5rem); }
.closing .lede { margin: 26px 0 38px; }

/* ---------- 11. Rodapé ---------- */
.foot { padding: 72px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); font-size: .9rem; color: var(--graphite); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px 64px; }
.foot__brand img { width: 150px; margin-bottom: 18px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__legal { grid-column: 1 / -1; color: var(--mute); font-size: .82rem; max-width: 90ch; padding-top: 28px; border-top: 1px solid var(--line); }
.foot__copy { grid-column: 1 / -1; color: var(--mute); font-size: .82rem; }

/* ---------- Barra fixa (celular) ---------- */
.mbar { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__in > .btn { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__copy { max-width: 720px; }
  .hero__title { font-size: clamp(2.8rem, 9vw, 5.2rem); }
  .sec__head--split, .problem__grid, .why__grid, .faq__grid, .offer__grid, .result__grid { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .formats__text { grid-column: 1 / -1; }
  .problem__head .h2, .faq__stick { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li { padding-bottom: 28px; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .price { grid-template-columns: 1fr; }
  .price__main { border-right: 0; border-bottom: 1px solid var(--line); }
  .voices__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice { grid-column: span 1; }
  .voice--lead { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --top-h: 58px; }
  .top__logo img { width: 112px; }
  .hero__title { font-size: clamp(2.55rem, 11.5vw, 3.6rem); }
  .hero__cta .btn { width: 100%; }
  .hero__stage { padding-right: 18%; padding-bottom: 36px; }
  .hero__phone { width: 30%; }
  .frame__bar { height: 30px; font-size: .72rem; }
  .frame__hint { display: none; }
  .trust { gap: 0; }
  .trust li, .trust li + li { flex: 1 1 50%; min-width: 0; border-left: 0; padding: 8px 12px 8px 0; }
  .pains > div { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .why__list { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .how__cta .btn, .closing .btn, .price .btn, .result__demo .btn { width: 100%; padding: 0 18px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
  .show__index { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
  .tpls { grid-template-columns: 1fr; }
  .cmp__pages { gap: 4px 18px; }
  .voices__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); padding-bottom: 8px; }
  .voice, .voice--lead { flex: 0 0 82%; scroll-snap-align: start; }
  .voice--lead blockquote { font-size: 1.32rem; }
  .offer__visual { padding-right: 22%; padding-bottom: 32px; }
  .offer__phone { width: 28%; }
  .faq summary { padding-right: 36px; }
  .faq details > div { padding-right: 0; }
  .closing__bg { grid-template-columns: repeat(2, 1fr); inset: 0 -20%; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .mbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 241, 236, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__name { font-family: var(--serif); font-size: 1.15rem; }
  .mbar__price { font-size: .92rem; color: var(--graphite); }
  .mbar .btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .hero__title .ln > span, .js .hero__desk, .js .hero__phone { transform: none; clip-path: none; opacity: 1; }
  .js .hero__sub, .js .hero__cta, .js .hero .micro { opacity: 1; }
}

/* ==========================================================================
   v2 — seções escuras, monitor, comparador, animações de entrada
   ========================================================================== */

/* ---------- Tema escuro (redefine os tokens dentro da seção) ---------- */
.is-dark {
  --paper: #1C1B19; --paper-2: #242320; --sand: #2C2A27; --stone: #4C4842;
  --mute: #A39C91; --graphite: #D6D1C7; --ink: #F3F1EC; --bronze: #BCA382;
  --line: rgba(243, 241, 236, .16); --line-2: rgba(243, 241, 236, .08);
  background: var(--paper); color: var(--ink);
}
.is-dark ::selection { background: #F3F1EC; color: #1C1B19; }
.is-dark .frame__media { background: #2C2A27; }

/* ---------- Segmentado (toggle) ---------- */
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: transparent; padding: 11px 22px; cursor: pointer; font-size: .95rem; color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

/* ---------- 2. Resultado: monitor ---------- */
.result__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.result__copy .lede { margin-top: 24px; }
.result__demo { margin-top: 36px; }
.result .legal-note { margin-top: 20px; font-size: .82rem; color: var(--mute); }

.show__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }

.monitor { position: relative; }
.monitor__body { padding: clamp(8px, 1vw, 14px); padding-bottom: clamp(18px, 2.2vw, 30px); background: #0E0E0D; border: 1px solid #3A3733; border-radius: 10px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); }
.monitor__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F2F0EB; border-radius: 2px; }
.monitor__stand { display: flex; flex-direction: column; align-items: center; }
.monitor__neck { width: 15%; height: clamp(28px, 4vw, 56px); background: #2E2C29; border-left: 1px solid #45423D; border-right: 1px solid #45423D; }
.monitor__base { width: 34%; height: 8px; background: #3A3733; border-radius: 3px 3px 1px 1px; }

.show__index { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 10px; margin-top: 26px; }
.show__index button { width: 100%; display: block; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--mute); font-size: .8rem; line-height: 1.3; }
.show__index button span { display: block; padding-bottom: 10px; transition: color .3s; }
.show__index button i { display: block; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.show__index button i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.show__index button:hover { color: var(--graphite); }
.show__index button[aria-current="true"] { color: var(--ink); }
.show__index button[aria-current="true"] i::after { transform: scaleX(1); }

.show__hint { font-size: .85rem; color: var(--mute); margin: 0; }
.show__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.show__poster.is-on { opacity: 1; }
.show__frame { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; background: #F2F0EB;
  transform: scale(var(--s, .5)); transform-origin: 0 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.show__frame.is-on.is-loaded { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.show__loading { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 12px; font-size: .78rem; color: #1C1B19; background: rgba(243, 241, 236, .92); border: 1px solid rgba(28, 27, 25, .15); opacity: 0; transition: opacity .3s; pointer-events: none; }
.show.is-loading .show__loading { opacity: 1; }


.formats { margin-top: var(--sec); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.formats__text p { margin-top: 18px; color: var(--graphite); max-width: 40ch; }
.clipv figcaption { margin-top: 12px; color: var(--graphite); font-size: .92rem; }

/* ---------- 4. Como funciona ---------- */
.how__cta { margin-top: clamp(48px, 6vw, 72px); }

/* ---------- 5. Modelos: comparador ---------- */
.models { background: var(--paper-2); }
.cmp__view { position: relative; overflow: hidden; background: var(--sand); border: 1px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__img--a { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: #F3F1EC; box-shadow: 0 0 0 .5px rgba(28, 27, 25, .35); pointer-events: none; }
.cmp__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); background: #F3F1EC; border: 1px solid rgba(28, 27, 25, .3); display: grid; place-items: center; }
.cmp__handle span::before, .cmp__handle span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-top: 1px solid #1C1B19; border-left: 1px solid #1C1B19; }
.cmp__handle span::before { left: 12px; transform: translateY(-50%) rotate(-45deg); }
.cmp__handle span::after { right: 12px; transform: translateY(-50%) rotate(135deg); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp__range:focus-visible ~ .cmp__handle span, .cmp__view:has(.cmp__range:focus-visible) .cmp__handle span { outline: 2px solid #1C1B19; outline-offset: 2px; }
.cmp__tag { position: absolute; top: 14px; padding: 4px 10px; font-size: .78rem; background: rgba(243, 241, 236, .92); color: #1C1B19; border: 1px solid rgba(28, 27, 25, .15); pointer-events: none; }
.cmp__tag--a { left: 14px; }
.cmp__tag--b { right: 14px; }
.cmp__pages { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 20px; }
.cmp__pages button { border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--mute); font-size: .95rem; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.cmp__pages button[aria-checked="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--line); }
.tpl__tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--graphite); margin: 6px 0 16px; }
.tpl-col > p:not(.tpl__tag):not(.tpls__k) { color: var(--graphite); max-width: 52ch; }
.tpls__k { margin-top: 26px; font-size: .85rem; color: var(--mute); }
.sws { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 12px; font-size: .85rem; color: var(--graphite); }
.sws li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sw { position: relative; display: block; width: 58px; height: 40px; background: var(--bg); border: 1px solid rgba(28, 27, 25, .16); overflow: hidden; }
.sw::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: var(--fg); }
.sw::after { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 9px; background: var(--ac); }
.sw--b::before { height: 55%; }
.tpls__note { margin-top: 40px; color: var(--graphite); font-size: .98rem; max-width: 70ch; }

/* ---------- Rodapé escuro ---------- */
.foot.is-dark { border-top: 0; }

/* ---------- Animações de entrada ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--rd, 0s), transform 1.1s var(--ease) var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1) var(--rd, 0s); }
.js .rv-img.in { clip-path: inset(0 0 0 0); }
.js .rv-img > video, .js .rv-img > img { transform: scale(1.06); transition: transform 1.8s var(--ease) var(--rd, 0s); }
.js .rv-img.in > video, .js .rv-img.in > img { transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease) calc(var(--wi, 0) * 38ms); }
.js .split.in .w > span { transform: none; }

@media (max-width: 1080px) {
  .result__copy { max-width: 640px; }
  .show__index { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-img, .js .split .w > span, .js .rv-img > video, .js .rv-img > img { opacity: 1; transform: none; clip-path: none; }
}

/* v2 — responsivo (precisa vir depois das regras acima) */
@media (max-width: 1080px) {
  .result__grid { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .formats__text { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .formats { grid-template-columns: 1fr; }
  .tpls { grid-template-columns: 1fr; }
  .show__top { flex-wrap: wrap; }
  .show__top .seg { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; }
  .show__index { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .show__index button { font-size: .74rem; }
  .show__frame, .show__loading, .show__hint { display: none; }
  .show__poster { transition: opacity .5s ease; }
  .monitor__body { border-radius: 6px; }
  .cmp__handle span { width: 38px; height: 38px; }
  .cmp__tag { top: 8px; font-size: .7rem; padding: 2px 7px; }
  .cmp__tag--a { left: 8px; } .cmp__tag--b { right: 8px; }
  .cmp__pages { gap: 4px 18px; }
}
