:root {
  --paper:  #EEE9E2;   /* fundo: areia/linho, tom quente de luz natural */
  --stone:  #E5DED5;   /* faixas de respiro, um tom abaixo */
  --ink:    #2B2521;   /* texto principal: marrom quase preto */
  --mute:   #6E655E;   /* texto secundário */
  --line:   #D6CDC2;   /* linhas finas */
  --card:   #F6F2EC;   /* superfícies elevadas (preço) */
  --dusk:   #1D1915;   /* "sala escura": frame do filme e rodapé */
  --brand:  #F97316;   /* laranja Cermony — só em ação e marcação de tempo */
  --brand-ink: #C2540A;/* laranja para texto sobre fundo claro (contraste AA) */

  --measure: 34rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(6rem, 12vw, 10rem);   /* respiro entre seções */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 5rem; }

/* Tipografia: um só família, a personalidade vem do peso leve e do espaço */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.04; max-width: 15ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; max-width: 18ch; }
h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; }
p { margin: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--mute); max-width: var(--measure); }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--mute); }
.timecode { font-variant-numeric: tabular-nums; color: var(--brand-ink); font-weight: 500; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font: 500 0.9375rem/1 'Inter', sans-serif; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #E8660C; }
.btn-quiet { color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* NAV */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238,233,226,0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 500; letter-spacing: -0.02em; font-size: 1.0625rem; }
.nav-links { display: none; gap: 2rem; font-size: 0.875rem; color: var(--mute); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: 0.75rem; font-size: 0.8125rem; color: var(--mute); }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang [aria-current] { color: var(--ink); font-weight: 500; }
header .btn { padding: 0.6rem 1.05rem; font-size: 0.875rem; display: none; }
@media (min-width: 640px) { header .btn { display: inline-flex; } }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* HERO */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 var(--space); position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
/* Grão de ISO alto só no hero: mais visível no topo e sumindo antes da próxima seção */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--hero-grain, 0.2); transition: opacity .6s ease; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.6 0 0 0 -0.3 1.6 0 0 0 -0.3 1.6 0 0 0 -0.3 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero h1 { margin-bottom: 2rem; }
.hero .lead { margin-bottom: 2.5rem; }
.hero .small { margin-top: 1.25rem; max-width: var(--measure); }

/* O frame de cinema: o momento memorável da página */
.film { margin-top: clamp(3.5rem, 6vw, 4.5rem); }
.film-frame {
  position: relative; background: var(--dusk);
  padding: clamp(1.25rem, 4vw, 3.25rem) 0;  /* letterbox */
  border-radius: 6px; overflow: hidden;
}
.film-frame img { width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; }
.subtitle {
  position: absolute; left: 50%; bottom: clamp(2.25rem, 7vw, 5.5rem);
  transform: translateX(-50%);
  width: min(90%, 36rem); text-align: center;
  color: #fff; font-size: clamp(0.9rem, 1.7vw, 1.125rem); line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 1.2s ease; z-index: 3;
}
.subtitle.is-on { opacity: 1; }
.subtitle span { display: block; font-size: 0.75em; opacity: 0.75; margin-bottom: 0.2rem; font-variant-numeric: tabular-nums; }


/* Monitor da câmera: ISO, obturador e abertura nas faixas do letterbox */
.hud {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem); height: clamp(1.25rem, 4vw, 3.25rem);
  color: rgba(255,255,255,0.62); font-size: clamp(0.625rem, 1vw, 0.8125rem);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; z-index: 2;
}
.hud-top { top: 0; }
.hud-bottom { bottom: 0; }
.hud-group { display: flex; align-items: center; gap: clamp(0.75rem, 2.2vw, 1.75rem); }
.hud .rec { display: inline-flex; align-items: center; gap: 0.4rem; }
.hud .rec::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.hud button {
  background: none; border: 0; padding: 0.15rem 0; margin: 0; cursor: pointer;
  font: inherit; color: rgba(255,255,255,0.88); letter-spacing: inherit;
  border-bottom: 1px dotted rgba(255,255,255,0.3); transition: color .2s, border-color .2s;
}
.hud button:hover { color: #fff; border-bottom-color: var(--brand); }
.hud button .k { color: rgba(255,255,255,0.5); margin-right: 0.3em; }
.meter { display: flex; align-items: center; gap: 0.5rem; }
.meter-scale { position: relative; width: clamp(4.5rem, 10vw, 7.5rem); height: 0.75rem; }
.meter-scale::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.45) 0 1px, transparent 1px calc(100% / 6));
  -webkit-mask: linear-gradient(#000 0 0) center / 100% 45% no-repeat; mask: linear-gradient(#000 0 0) center / 100% 45% no-repeat;
}
.meter-zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.8); }
.meter-needle { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--brand); left: 50%; transition: left .5s ease; }
.meter-value { min-width: 2.2em; text-align: right; }
.film-frame img { transition: filter .6s ease; }
.aperture-blur {
  position: absolute; left: 0; right: 0; pointer-events: none;
  top: clamp(1.25rem, 4vw, 3.25rem); bottom: clamp(1.25rem, 4vw, 3.25rem);
  -webkit-mask: radial-gradient(ellipse 38% 60% at 60% 50%, transparent 55%, #000 100%);
          mask: radial-gradient(ellipse 38% 60% at 60% 50%, transparent 55%, #000 100%);
  transition: backdrop-filter .6s ease, -webkit-backdrop-filter .6s ease;
}
.iso-grain {
  position: absolute; left: 0; right: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0;
  top: clamp(1.25rem, 4vw, 3.25rem); bottom: clamp(1.25rem, 4vw, 3.25rem);
  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='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity .6s ease;
}
.film-hint { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--mute); }
@media (max-width: 639px) {
  .hud .hide-sm { display: none; }
  .meter-value { display: none; }
}

.scrubber { position: relative; height: 2.5rem; margin-top: 1.25rem; }
.track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.played { position: absolute; left: 0; top: 50%; height: 1px; background: var(--ink); width: 0; }
.playhead { position: absolute; top: 50%; width: 1px; height: 1.25rem; background: var(--ink); transform: translateY(-50%); left: 0; }
.marker {
  position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--brand);
  transform: scale(0.6); opacity: 0.45; transition: transform .6s ease, opacity .6s ease;
}
.marker.is-on { transform: scale(1); opacity: 1; }

.film-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-size: 0.875rem; color: var(--mute);
}
.film-meta strong { color: var(--ink); font-weight: 500; }
.film-meta dl { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }
.film-meta dt { display: inline; }
.film-meta dd { display: inline; margin: 0 0 0 0.35rem; color: var(--ink); }

/* Seções genéricas */
.block { padding: var(--space) 0; }
.block-stone { background: var(--stone); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
}
.split .lead { margin-top: 1.75rem; }

/* Problema: perguntas soltas, como pensamentos — não é sequência, então sem números */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .questions { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.questions li {
  padding: 1.1rem 0; border-top: 1px solid var(--line);
  font-size: 1.0625rem; color: var(--ink); font-weight: 300;
}

/* Para quem */
.audience { max-width: 46rem; }
.audience p { font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.45; font-weight: 300; letter-spacing: -0.015em; }
.audience p + p { margin-top: 1.5rem; font-size: 1.0625rem; color: var(--mute); font-weight: 400; letter-spacing: 0; line-height: 1.7; }

/* Produto */
.product-head { display: grid; gap: 1.75rem; margin-bottom: 3.5rem; }
@media (min-width: 900px) { .product-head { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: end; } }
.screen {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(43,37,33,0.25), 0 0 0 1px rgba(43,37,33,0.06);
}
.screen figure { margin: 0; }
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.screen [data-carousel-slide] { transition: opacity .6s ease; }
.screen-caption { display: grid; gap: 0.25rem; margin-top: 1.5rem; min-height: 3.5rem; }
.screen-caption strong { font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; font-size: 0.9375rem; }
.tabs button {
  background: none; border: 0; padding: 0.35rem 0; cursor: pointer;
  font: inherit; color: var(--mute); border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="true"] { color: var(--ink); border-color: var(--ink); }

/* Vantagens: 2 x 2, sem numeração */
.benefits { display: grid; gap: 3.5rem 5rem; margin-top: 4.5rem; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits article p { margin-top: 0.85rem; color: var(--mute); max-width: 30rem; }
.benefits article .note { margin-top: 1.1rem; color: var(--ink); font-size: 0.9375rem; padding-left: 1rem; border-left: 1px solid var(--brand); }

/* Rotina: é sequência de verdade (o caminho do vídeo), então aqui a numeração se justifica */
.path { list-style: none; margin: 4.5rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.path li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line); font-weight: 300; font-size: 1.0625rem;
}
.path li::before { content: counter(step); color: var(--mute); font-size: 0.875rem; font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
@media (min-width: 1000px) {
  .path { grid-template-columns: repeat(7, 1fr); gap: 1.25rem; }
  .path li { grid-template-columns: 1fr; align-content: start; gap: 1.25rem; border-top: 0; padding: 0; font-size: 1rem; line-height: 1.45; }
  .path li::before { display: block; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
  .path li:last-child::before { border-color: var(--brand); color: var(--brand-ink); }
}

/* Preço */
.pricing { display: grid; gap: 1.5rem; margin-top: 4.5rem; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.plan { border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.75rem, 3vw, 2.75rem); background: var(--card); display: flex; flex-direction: column; }
.plan-name { font-size: 0.9375rem; color: var(--mute); }
.plan .price { color: var(--ink); font-size: clamp(3rem, 6vw, 4rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; margin-top: 1.25rem; }
.plan .price small { font-size: 1rem; letter-spacing: 0; color: var(--mute); font-weight: 400; margin-left: 0.4rem; }
.plan > p { margin-top: 1.25rem; color: var(--mute); }
.plan ul { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.plan li { padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.plan .fine { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--mute); line-height: 1.6; }
.plan .btn { margin-top: auto; }
.plan .btn-wrap { margin-top: 2rem; padding-top: 0; display: flex; }
.plan .btn-wrap .btn { flex: 1; }
.plan-paid { background: #FBF8F4; }

/* Guias */
.guides { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 700px) { .guides { grid-template-columns: 1fr 1fr; } }
.guides a { display: block; padding: 1.25rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.guides a:hover h3 { color: var(--brand-ink); }
.guides h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; transition: color .2s; }
.guides p { font-size: 0.9375rem; color: var(--mute); margin-top: 0.25rem; }

/* Contato — a sala escura no fim, como os créditos */
.closing { background: var(--dusk); color: #EDE8E2; padding: var(--space) 0; }
.closing h2 { color: #fff; }
.closing .lead { color: #A79E96; margin-top: 1.75rem; }
.closing .actions { margin-top: 2.75rem; }
.closing .btn-quiet { color: #fff; border-color: rgba(255,255,255,0.2); }
.closing .btn-quiet:hover { border-color: #fff; }

footer { background: var(--dusk); color: #8C837B; font-size: 0.8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; padding-bottom: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }


/* Grão de filme: textura quase imperceptível que dá acabamento ao fundo */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Páginas de guia ---------- */
.g-header .btn { display: inline-flex; }
.g-hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.g-hero .crumb { color: var(--mute); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.g-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 20ch; margin-bottom: 1.75rem; }
.g-hero .lead { max-width: 38rem; }
.g-hero .actions { margin-top: 2.25rem; }

.g-items article, .g-rows li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.g-items h2, .g-items h3, .g-cols h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; max-width: none; }
.g-items p, .g-cols p { margin-top: 0.6rem; color: var(--mute); max-width: 32rem; }
.g-rows { list-style: none; margin: 0; padding: 0; }
.g-rows li { padding: 1.1rem 0; font-weight: 300; }
.g-rows strong { font-weight: 500; }
.g-cols { display: grid; gap: 0 5rem; }
.g-cols article { padding: 1.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .g-cols { grid-template-columns: repeat(3, 1fr); gap: 0 3rem; } }

.g-links { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 700px) { .g-links { grid-template-columns: 1fr 1fr; } }
.g-links a { display: block; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.g-links a:hover { color: var(--brand-ink); }
.g-links a.is-key::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 0.65rem; vertical-align: middle; }

.closing .lead a { color: #fff; text-underline-offset: 0.25em; }
.closing .fine { margin-top: 1rem; color: #8C837B; font-size: 0.875rem; max-width: var(--measure); }

/* ---------- Hero em duas colunas no desktop ---------- */
.film-frame picture { display: block; }
@media (min-width: 1100px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(3rem, 5vw, 5.5rem); align-items: center; }
  .hero h1 { font-size: clamp(2.6rem, 4.4vw, 4.25rem); }
  .hero .film { margin-top: 0; }
  .film-frame img { aspect-ratio: 1.711 / 1; }
}


/* ---------- Miniaturas do carrossel de telas ---------- */
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.thumb { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; font: inherit; color: var(--mute); }
.thumb img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border-radius: 4px; box-shadow: 0 0 0 1px rgba(43,37,33,0.08);
  opacity: 0.5; filter: saturate(0.6); transition: opacity .35s ease, filter .35s ease, box-shadow .35s ease;
}
.thumb span { display: inline-block; margin-top: 0.7rem; font-size: 0.875rem; padding-bottom: 0.3rem; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.thumb:hover img { opacity: 0.85; filter: none; }
.thumb:hover span { color: var(--ink); }
.thumb[aria-current="true"] img { opacity: 1; filter: none; box-shadow: 0 0 0 1px var(--ink); }
.thumb[aria-current="true"] span { color: var(--ink); border-color: var(--ink); }
@media (max-width: 759px) {
  .thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.85rem; padding-bottom: 0.5rem; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .thumb { flex: 0 0 44%; scroll-snap-align: start; }
}
