/* ==========================================================================
   Fogaça Digital — landing page
   Tokens: papel quente + tinta azul-escura + brasa (laranja) + verde só no WhatsApp
   ========================================================================== */

:root {
  --paper: #FBFAF7;
  --paper-alt: #F3F1EA;
  --card: #FFFFFF;
  --ink: #191F2E;
  --ink-soft: #4B5265;
  --ember: #E8541E;
  --ember-deep: #C2410C;
  --ember-soft: #FCEDE5;
  --wa: #15803D;
  --wa-dark: #136B34;
  --line: #E4E0D5;
  --dark: #171C2A;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(25, 31, 46, 0.08);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow { width: min(760px, 100% - 2.5rem); }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.ember { color: var(--ember); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-deep);
  background: var(--ember-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

.lead, .section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn .ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.28);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.btn-plan {
  background: var(--ink);
  color: var(--paper);
}
.btn-plan:hover { background: var(--ember-deep); }

.btn-sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 2rem; font-size: 1.1rem; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand em { font-style: normal; color: var(--ember); }
.brand-flame { width: 1.35rem; height: 1.35rem; color: var(--ember); }

.topnav { display: flex; gap: 1.4rem; }
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0;
  transition: color 180ms ease;
}
.topnav a:hover { color: var(--ember-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 { margin: 0 0 1.1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Navegador de demonstração (elemento assinatura) */

.hero-demo { min-width: 0; }

.demo-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.demo-tab {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.demo-tab:hover { border-color: var(--ember); color: var(--ember-deep); }
.demo-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.browser-bar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.browser-bar .addr {
  margin-left: 0.6rem;
  flex: 1;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
}

/* Mini-sites dentro do navegador */

.demo-panel { padding: 1.1rem 1.2rem 1.3rem; min-height: 300px; }

.mini-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.mini-nav b { font-family: var(--font-display); font-size: 0.95rem; }
.mini-nav span { opacity: 0.65; font-size: 0.72rem; }

.mini-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 16em;
  margin-bottom: 0.8rem;
}

.mini-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
}
.mini-btn-line {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: inherit;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.mini-card {
  border-radius: 10px;
  padding: 0.6rem;
  font-size: 0.72rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
}
.mini-card i {
  display: block;
  height: 34px;
  border-radius: 7px;
  margin-bottom: 0.45rem;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.mini-list span {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Temas dos mini-sites */

.demo-rest {
  background: linear-gradient(160deg, #FFF4E8, #FBE3C8);
  color: #571F0C;
}
.demo-rest .ph-a { background: #E0703A; }
.demo-rest .ph-b { background: #B24A25; }
.demo-rest .ph-c { background: #8A3117; }

.demo-adv {
  background: linear-gradient(160deg, #1B2740, #10192E);
  color: #EDEAE2;
}
.demo-adv .mini-title { color: #fff; }
.demo-adv .mini-nav span { opacity: 0.55; }

.demo-cli {
  background: linear-gradient(160deg, #EAF6F3, #D3EBE4);
  color: #14453A;
}
.demo-cli .ph-d { background: #4FA893; }
.demo-cli .ph-e { background: #2E8471; }
.demo-cli .ph-f { background: #1C6355; }

.demo-caption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Faixa de confiança ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--card);
  padding: 1.4rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.strip-item .ico {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  color: var(--ember);
}
.strip-item p { display: flex; flex-direction: column; line-height: 1.35; }
.strip-item b { font-size: 0.95rem; }
.strip-item span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Seções ---------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { margin-bottom: 0.9rem; }

/* ---------- Como funciona ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ember-soft);
  color: var(--ember-deep);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.step h3 { margin-bottom: 0.5rem; font-size: 1.08rem; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Pacotes ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}

.plan-featured {
  border: 2px solid var(--ember);
  box-shadow: 0 16px 40px rgba(232, 84, 30, 0.15);
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 1.3rem; }
.plan-desc { margin-top: 0.5rem; font-size: 0.94rem; color: var(--ink-soft); min-height: 3.6em; }

.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin: 1.1rem 0 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.plan-price .cur { font-size: 1.1rem; font-weight: 600; color: var(--ink-soft); }
.plan-price .freq {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  width: 100%;
}

.plan-list {
  list-style: none;
  margin-bottom: 1.6rem;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  font-size: 0.95rem;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ember-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 16.2 5.8 12.5l-1.3 1.3 5 5 10-10-1.3-1.3z" fill="%23C2410C"/></svg>') center/70% no-repeat;
}

.plans-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--ink-soft);
}
.plans-note a { color: var(--ember-deep); font-weight: 600; }

/* ---------- Exemplos ---------- */

.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.example {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-shot {
  padding: 1.1rem 1.2rem 1.4rem;
  min-height: 165px;
}
.example-shot .mini-title { font-size: 1.05rem; }

.example-rest { background: linear-gradient(160deg, #FFF4E8, #FBE3C8); color: #571F0C; }
.example-adv  { background: linear-gradient(160deg, #1B2740, #10192E); color: #EDEAE2; }
.example-adv .mini-title { color: #fff; }
.example-cli  { background: linear-gradient(160deg, #EAF6F3, #D3EBE4); color: #14453A; }

.example h3 { margin: 1.2rem 1.3rem 0.4rem; }
.example p { margin: 0 1.3rem 1.4rem; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: color 180ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ember);
  transition: transform 200ms ease;
}
.faq details[open] summary { color: var(--ember-deep); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ember-deep); }
.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- CTA final ---------- */

.final {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.final-flame { width: 2.4rem; height: 2.4rem; color: var(--ember); }
.final h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.final p { color: #B9BECB; max-width: 32em; }
.final-note { font-size: 0.88rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #8A90A0;
}

.footer a { color: #B9BECB; text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Botão flutuante ---------- */

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.4);
  transition: transform 200ms ease, background-color 200ms ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dark); transform: scale(1.07); }

/* ---------- Animações de entrada ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .demo-tabs { justify-content: center; }

  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
  .plan-featured { order: -1; }
  .examples { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .topnav a:last-child { border-bottom: 0; }

  .nav-toggle { display: flex; }
  .topbar-cta { margin-left: auto; }
  .brand { margin-right: 0; }
  .topbar-inner { gap: 0.8rem; }

  .strip-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
