/* Chef Suite — site (landing e páginas de parceria). Mesma identidade do app: azul-marinho, dourado e creme,
   Playfair nos títulos, Geist no texto e a faixa azul (cordon bleu). Arquivo versionado: o cache é de 1 ano. */
:root {
  --bg: #f7f5f0;
  --cream: #f1eee7;
  --ink: #122033;
  --olive: #5b6878;
  --navy: #12365d;
  --navy-deep: #0d2040;
  --gold: #b98a32;
  --gold-soft: #c4933a;
  --wine: #6f253d;
  --white: #ffffff;
  --line: rgb(185 138 50 / 0.2);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgb(18 32 51 / 0.35);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height: auto: com width/height no HTML (para não pular o layout), a imagem encolhida mantém a proporção */
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--olive); max-width: 38rem; }
.section { padding: 88px 0; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 12px 0 14px; color: var(--navy); }

/* ─── Faixa azul ─────────────────────────────────────────── */
.ribbon-fabric {
  background:
    repeating-linear-gradient(-52deg, transparent 0 12px, rgb(255 255 255 / 0.05) 12px 24px),
    linear-gradient(135deg, #17325a 0%, var(--navy-deep) 45%, #17325a 100%);
  color: rgb(255 255 255 / 0.92);
}
.ribbon-band {
  position: relative;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  min-height: 58px; padding: 10px var(--gutter);
  font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.86rem;
  border-block: 2px solid rgb(196 147 58 / 0.55);
}
.ribbon-band::before, .ribbon-band::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: rgb(196 147 58 / 0.25); }
.ribbon-band::before { top: 6px; } .ribbon-band::after { bottom: 6px; }
.ribbon-band span + span::before { content: '·'; margin-right: 22px; color: var(--gold-soft); }
.ribbon-tag {
  display: inline-flex; align-items: center; padding: 4px 18px 4px 12px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-block: 1.5px solid rgb(196 147 58 / 0.6);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}

/* ─── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgb(18 54 93 / 0.7); }
.btn-primary:hover { background: #0f2d4f; }
.btn-primary .arrow { color: var(--gold-soft); }
.btn-ghost { border-color: rgb(18 54 93 / 0.25); color: var(--navy); background: rgb(255 255 255 / 0.6); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.cta-note { font-size: 0.92rem; color: var(--olive); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 245 240 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem var(--serif); color: var(--navy); }
.logo-mark { width: 38px; height: 38px; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .login { display: none; text-decoration: none; font-weight: 600; color: var(--navy); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgb(185 138 50 / 0.16), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 4.4rem); color: var(--navy); margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--olive); font-size: 0.95rem; }
.hero-proof span::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 6px; }

/* Celular com o vídeo do app */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 540 / 1168; margin: 0 auto;
  border-radius: 42px; padding: 10px; background: #0b1422;
  box-shadow: 0 40px 80px -30px rgb(18 32 51 / 0.6), inset 0 0 0 2px rgb(255 255 255 / 0.08);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: var(--cream); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .dish {
  position: absolute; width: 38%; max-width: 190px; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 18px; box-shadow: var(--shadow); border: 5px solid #fff;
  animation: float 7s ease-in-out infinite;
}
.hero-visual .dish-a { left: 0; top: 10%; transform: rotate(-6deg); }
.hero-visual .dish-b { right: 0; bottom: 8%; transform: rotate(5deg); animation-delay: -3.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ─── O ciclo ───────────────────────────────────────────── */
.cycle { display: grid; gap: 28px; }
.step {
  display: grid; gap: 22px; align-items: center; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step-num { font: 700 0.85rem var(--sans); letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.step h3 { font-size: 1.85rem; color: var(--navy); margin: 10px 0 12px; }
.step p { color: var(--olive); }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { padding-left: 26px; position: relative; }
.step li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 14px; height: 4px; border-radius: 1px; background: linear-gradient(90deg, var(--navy) 0 62%, var(--gold-soft) 62%); }
.step .phone { width: min(260px, 70vw); }

/* ─── Comunidade ────────────────────────────────────────── */
.community { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.community .section-head h2 { color: #fff; }
.community .lead { color: rgb(255 255 255 / 0.78); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: #0b1422; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: 0.86rem; font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.72));
}
.community-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; }
.community-foot p { color: rgb(255 255 255 / 0.7); font-size: 0.95rem; max-width: 36rem; }

/* ─── Por que não o ChatGPT / módulos ───────────────────── */
.cards { display: grid; gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.card h3 { font-size: 1.35rem; color: var(--navy); margin: 14px 0 8px; }
.card p { color: var(--olive); font-size: 0.98rem; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold-soft); }
.card-icon svg { width: 24px; height: 24px; }

/* ─── Preços ────────────────────────────────────────────── */
.period { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); margin-bottom: 28px; }
.period button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
.period button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.period small { color: var(--gold-soft); font-weight: 700; margin-left: 4px; }
.plans { display: grid; gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow); position: relative; }
.plan.featured .ribbon-tag { position: absolute; top: -14px; left: 24px; }
.plan h3 { font-size: 1.6rem; color: var(--navy); }
.plan .price { margin: 14px 0 4px; font: 700 2.2rem var(--sans); color: var(--navy); letter-spacing: -0.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--olive); }
.plan .price-note { min-height: 1.5em; font-size: 0.9rem; color: #247857; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: 0.98rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.school {
  margin-top: 26px; display: grid; gap: 20px; align-items: center; padding: 30px; border-radius: var(--radius);
}
.school h3 { font-size: 1.7rem; color: #fff; margin: 10px 0 8px; }
.school p { color: rgb(255 255 255 / 0.8); }

/* ─── FAQ ───────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--olive); }

/* ─── CTA final e rodapé ────────────────────────────────── */
.final { padding: 80px 0; text-align: center; }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin: 14px auto 16px; max-width: 18ch; }
.final p { color: rgb(255 255 255 / 0.8); margin-bottom: 28px; }
.footer { padding: 44px 0 56px; font-size: 0.92rem; color: var(--olive); }
.footer-inner { display: grid; gap: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }

/* ─── Entrada suave ao rolar ────────────────────────────── */
/* Só o que estava abaixo da dobra ao carregar ganha .will-reveal (site-v2.js); sem JS, tudo aparece */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .dish { animation: none; }
}

/* ─── Telas maiores ─────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta .login { display: inline; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .step { grid-template-columns: 1fr 1fr; padding: 44px 52px; gap: 48px; }
  .step:nth-child(even) .step-media { order: -1; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-row: span 2; aspect-ratio: auto; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .school { grid-template-columns: 1.4fr auto; padding: 40px 48px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ─── Rodapé do site (landing, páginas legais e parcerias) ───
   Na faixa azul (cordon bleu), com filete dourado em cima. */
.site-footer { border-top: 3px solid rgb(196 147 58 / 0.6); font-size: 0.95rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer button:hover { color: #fff; text-decoration: underline; }
.site-footer-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.site-footer-brand .logo { color: #fff; }
.site-footer-brand p { margin: 14px 0 16px; max-width: 34ch; color: rgb(255 255 255 / 0.78); line-height: 1.6; }
.site-footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff !important; overflow-wrap: anywhere; }
.site-footer-mail svg { width: 18px; height: 18px; flex: none; color: var(--gold-soft); }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer h2 { margin: 4px 0 4px; font: 600 0.78rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer nav a, .site-footer nav button { padding: 0; border: 0; background: none; font: inherit; color: rgb(255 255 255 / 0.82); cursor: pointer; text-align: left; }
.site-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.66); font-size: 0.88rem; }
@media (min-width: 640px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } .site-footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .site-footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; } .site-footer-brand { grid-column: auto; } }

/* ─── Páginas legais ─── */
.legal { padding: 40px 0 72px; }
.legal .container { max-width: 820px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.legal-tabs a { padding: 8px 14px; border: 1px solid rgb(18 54 93 / 0.2); border-radius: 999px; color: var(--navy); font-size: 0.92rem; font-weight: 600; text-decoration: none; background: #fff; }
.legal-tabs a[aria-current="page"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); color: var(--navy); }
.legal-version { margin: 8px 0 24px; color: var(--olive); font-size: 0.95rem; }
.legal article { font-size: 1.02rem; line-height: 1.7; overflow-wrap: break-word; }
.legal article > p, .legal article li { color: #26364a; }
.legal article p + p { margin-top: 12px; }
.legal h2 { margin: 40px 0 12px; font-size: 1.45rem; color: var(--navy); }
.legal h3 { margin: 22px 0 6px; font: 600 1.05rem var(--sans); color: var(--ink); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal article a { color: var(--navy); font-weight: 600; }
.legal-id { margin: 20px 0 8px; padding: 18px 20px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--navy); border-radius: var(--radius-sm); }
.legal-id div { display: grid; gap: 2px; }
.legal-id dt { color: var(--olive); font-size: 0.9rem; }
.legal-id dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.legal-table { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; font-size: 0.95rem; }
.legal-table > div { display: grid; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line); }
.legal-table > div:first-child { border-top: 0; }
.legal-table > div > span:first-child { font-weight: 700; color: var(--ink); }
.legal-table-head { display: none !important; }
.legal-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--olive); }
@media (min-width: 720px) {
  .legal-id div { grid-template-columns: 210px 1fr; gap: 12px; }
  .legal-table-head { display: grid !important; background: var(--cream); color: var(--navy); font-weight: 700; }
  .legal-table > div { grid-template-columns: 1.2fr 1.5fr 1fr; gap: 14px; }
  .legal-table > div > span:first-child { font-weight: 600; }
}
