/* =====================================================================
   KORVIK STUDIO — LANDING PAGE DE VENDAS
   Organização:
     1. Fonte e tokens (cores, raios, sombras)
     2. Base e acessibilidade
     3. Componentes (marca, botões, ícones, selos, campos)
     4. Seções (cabeçalho, topo, dores, antes e depois, passos, recursos,
        telas, planos, como começar, dúvidas, rodapé)
     5. Responsividade (940 px · 860 px)
   Para ajustar a identidade visual, altere apenas a seção 1.
   Os valores vêm do layout-korvik-definitivo.html.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. FONTE E TOKENS
   --------------------------------------------------------------------- */
/* Figtree (SIL Open Font License 1.1), arquivo local para abrir sem internet */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/Figtree-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Superfícies e texto */
  --bg: #f6f6f5;
  --surface: #ffffff;
  --surface-2: #f1f2f1;
  --line: #e4e6e4;
  --line-strong: #a1a6a2;
  --line-phone: #c8cdca;
  --ink: #202522;
  --ink-2: #505953;
  --ink-3: #606a63;
  --ink-brand: #242c27;

  /* Marca (vinho) e destaque (dourado) */
  --brand: #793646;
  --brand-hover: #642a38;
  --on-brand: #ffffff;
  --brand-soft: #f7ecef;
  --accent: #ac854a;

  /* Semânticas */
  --success: #247452;
  --success-soft: #eaf5ee;
  --danger: #ad3a39;
  --danger-soft: #fbefed;
  --info: #356594;
  --info-soft: #edf3f9;
  --focus: #356594;

  /* Faixa escura (rodapé) */
  --dark: #202522;
  --dark-line: #354139;
  --on-dark: #ffffff;
  --on-dark-brand: #f0f4f1;
  --on-dark-2: #c1cdc5;
  --on-dark-3: #a4b2a9;
  --on-dark-accent: #e4c99e;
  --on-dark-accent-line: #d2b47f;

  /* Raios e sombra */
  --radius-sm: 7px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-phone: 26px;
  --shadow-pop: 0 16px 50px rgba(24, 32, 27, .14), 0 2px 8px rgba(24, 32, 27, .05);

  /* Tipografia e medidas */
  --font-sans: "Figtree", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --content: 1200px;
  --anchor-offset: 82px; /* altura do cabeçalho fixo + respiro */
}

/* ---------------------------------------------------------------------
   2. BASE E ACESSIBILIDADE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.page { overflow-x: clip; }
.sprite { display: none; }

/* ---------------------------------------------------------------------
   3. COMPONENTES
   --------------------------------------------------------------------- */
/* Ícones de traço fino (símbolos definidos no início do index.html) */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-brand); }
.brand__glyph {
  width: 35px; height: 35px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--brand); color: var(--on-brand);
  font-weight: 750; font-size: 22px; line-height: 1; letter-spacing: -.04em;
}
.brand__name { font-weight: 750; font-size: 20px; line-height: 1; letter-spacing: -.8px; color: var(--ink-brand); white-space: nowrap; }
.brand__name span { font-weight: 400; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: inherit; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn--primary, .btn--primary:hover { color: var(--on-brand); }
.btn--primary { background: var(--brand); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--outline, .btn--outline:hover { color: var(--ink); }
.btn--outline { background: var(--surface); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--surface-2); }
/* «Login em breve» (página gerada para quando o app ainda não está no ar): o lugar do botão, sem link nem ação */
.btn.btn--em-breve, .btn.btn--em-breve:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); cursor: default; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 14px; white-space: nowrap; }
.btn--md { min-height: 52px; padding: 10px 20px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* Selos */
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  border-radius: 5px; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 8px;
  border-radius: 5px; background: var(--line); color: var(--ink-2);
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.tag--brand { background: var(--brand-soft); color: var(--brand); }

/* Títulos e texto de apoio das seções */
.h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 650; line-height: 1.14;
  letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.h2--center { text-align: center; }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* Estrutura comum das seções */
.section { padding: clamp(52px, 6.4vw, 76px) var(--gutter); scroll-margin-top: var(--anchor-offset); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: var(--content); margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: clamp(28px, 3.6vw, 40px); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

/* Capturas de tela */
.shot { display: block; height: auto; }
.shot--window {
  width: 100%; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-pop);
}
.shot--modal { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 15px 15px 0 0; box-shadow: var(--shadow-pop); }
.shot--flush { width: 100%; }

/* ---------------------------------------------------------------------
   4. SEÇÕES
   --------------------------------------------------------------------- */
/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1264px; min-height: 66px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Topo */
.hero { padding: clamp(44px, 6vw, 76px) var(--gutter) clamp(52px, 7vw, 84px); }
.hero__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vw, 52px); }
.hero__copy { max-width: 880px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hero__title { font-size: clamp(29px, 7.6vw, 66px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; color: var(--ink); }
.hero__title span { display: block; }
.hero__sub { max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.hero__points { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink-3); }
.hero__figure { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.hero__figure figcaption { text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-3); }

/* Dores */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.pain { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pain__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.pain__icon .icon { width: 22px; height: 22px; }
.pain p { font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink); }

/* Antes e depois */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.compare { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare__head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.compare__head .icon { color: var(--brand); }
.compare__head h3 { font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.compare__before, .compare__after { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.compare__before { padding: 18px 22px; background: var(--bg); border-bottom: 1px solid var(--line); }
.compare__before p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.compare__after { flex: 1; padding: 18px 22px 22px; }
.compare__after p { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(24px, 3vw, 36px); }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.step__num { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.step__top .icon { width: 30px; height: 30px; color: var(--ink-3); stroke-width: 1.5; }
.step h3 { font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.step p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* O que está incluído */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4vw, 56px); }
.split__intro { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.split__intro .lead { text-wrap: pretty; }
.features {
  flex: 2 1 480px; padding: clamp(8px, 1.6vw, 14px) clamp(20px, 2.6vw, 30px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.features li { display: flex; align-items: center; gap: 12px; padding: 15px 0; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.features__check { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--success-soft); color: var(--success); }
.features__check .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* Telas */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); grid-auto-flow: row dense; gap: 24px; }
.screen { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.screen--wide { grid-column: 1 / -1; }
.screen--text { gap: 22px; padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px); }
.screen__text { display: flex; flex-direction: column; gap: 8px; }
.screen__text--pad { padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px) 0; }
.screen__text h3 { font-size: 23px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.screen__text p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.screen--text .screen__text p { text-wrap: pretty; }
.screen__shot { margin-top: auto; padding: 28px clamp(16px, 2.6vw, 32px) 0; }
.screen__shot--flush { padding: 0; }
.booking { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.booking li { flex: 1; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.booking__num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; line-height: 1; }
.note { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.note .icon { width: 18px; height: 18px; margin-top: 2px; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan--featured { padding: 27px; border: 2px solid var(--brand); }
.plan__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.plan__head h3 { font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.plan--featured .plan__head h3 { color: var(--brand); }
.plan__for { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.3; }
.plan--featured .plan__for { background: var(--brand); color: var(--on-brand); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan__value { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.plan__period { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.plan__list { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.plan__list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--success); stroke-width: 2; }
.plan .btn { margin-top: auto; }

/* Como funciona a cobrança (K14a): as regras da assinatura, logo abaixo dos planos */
.billing { padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.billing h3 { font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.billing__list { display: flex; flex-direction: column; gap: 12px; }
.billing__list li { display: flex; align-items: flex-start; gap: 10px; max-width: 78ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.billing__list .icon { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--success); stroke-width: 2; }
.billing__list strong { font-weight: 650; color: var(--ink); }

/* Como começar */
.next { padding: clamp(44px, 5.4vw, 64px) var(--gutter); scroll-margin-top: var(--anchor-offset); background: var(--brand-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px clamp(28px, 4vw, 56px); }
.next__text { flex: 1 1 420px; max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.next__text h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 650; line-height: 1.16; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.next__text p { font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Dúvidas */
.faq-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
.faq-layout .h2 { flex: 1 1 280px; }
.faq { flex: 2 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px clamp(18px, 2.4vw, 26px);
  font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink);
  list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__item summary .icon { transition: transform .15s; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { max-width: 68ch; padding: 0 clamp(18px, 2.4vw, 26px) 22px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Rodapé */
.site-footer { padding: 28px var(--gutter) 36px; background: var(--dark); border-top: 1px solid var(--dark-line); }
.site-footer__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer .brand__name { color: var(--on-dark-brand); }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.site-footer__item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-footer__item .icon { width: 16px; height: 16px; }
.site-footer__copy { color: var(--on-dark-3); }
.site-footer a { color: var(--on-dark-accent); }
.site-footer a:hover { color: var(--on-dark); }

/* ---------------------------------------------------------------------
   5. RESPONSIVIDADE
   --------------------------------------------------------------------- */
/* Tablet em pé e menores: os grupos de três viram uma coluna */
@media (max-width: 940px) {
  .compare-grid, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
}

/* Celular e tablet pequeno: menu some, capturas trocam para a versão de celular */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .shot--window, .shot--flush {
    width: min(100%, 320px); margin: 0 auto; background: var(--bg);
    border: 1px solid var(--line-phone); border-radius: var(--radius-phone); box-shadow: var(--shadow-pop);
  }
  .shot--modal { max-width: 370px; }
  .screen__shot--flush { padding: 26px 20px 28px; }
}

/* Celulares estreitos (até 359 px): cabeçalho e título mais compactos para caber sem rolagem lateral */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .site-header__inner { gap: 12px; }
  .site-header .brand__name { font-size: 18px; letter-spacing: -.7px; }
  .btn--sm { padding: 8px 12px; }
  .btn--lg { padding: 12px 18px; }
  .hero__title { font-size: 8.1vw; }
}

/* Abaixo de 320 px o botão do cabeçalho passa para a linha de baixo em vez de estourar a tela */
@media (max-width: 319px) {
  .site-header__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq__item summary .icon { transition: none; }
}
