/* Base do site (tokens: marca/MASTER.md). Extraído do site anterior; seções novas em site.css */

/* Tokens: marca/MASTER.md */
:root {
  --bg: #F6F1E8;
  --surface: #FFFCF7;
  --surface-tint: #EFE6D8;
  --line: #E5DAC8;
  --sand: #C6B397;
  --ink: #1C1712;
  --ink-soft: #6B5C49;
  --accent: #A9701F;
  --accent-strong: #8A5A17;
  --on-accent: #FFFCF7;
  --glow: #D79A58;
  --glow-soft: rgba(215,154,88,0.28);
  --glow-halo: rgba(215,154,88,0.30);
  --glow-strong: rgba(215,154,88,0.5);
  --glow-fill: rgba(215,154,88,0.16);
  --accent-shadow: rgba(138,90,23,0.25);
  --error-soft: rgba(168,67,47,0.15);
  --error: #A8432F;
  --shadow-rgb: 85,64,41;
  --sh-low: 0 1px 2px rgba(var(--shadow-rgb),0.06), 0 2px 8px rgba(var(--shadow-rgb),0.05);
  --sh-med: 0 6px 16px rgba(var(--shadow-rgb),0.08), 0 16px 36px rgba(var(--shadow-rgb),0.08);
  --sh-high: 0 12px 28px rgba(var(--shadow-rgb),0.12), 0 32px 64px rgba(var(--shadow-rgb),0.12);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 0.16s;
  --t-std: 0.32s;
  --t-slow: 0.7s;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --geo-us: #1F5C9E; --geo-br: #2B6E3A;   /* região: azul = Estados Unidos, verde = Brasil (sobre claro, >= 5:1) */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16120E; --surface: #211B15; --surface-tint: #2A231C; --line: #3A3027; --sand: #5A4B3C;
    --ink: #F3ECE1; --ink-soft: #B5A792; --accent: #E3A857; --accent-strong: #E3A857; --on-accent: #1C1712;
    --shadow-rgb: 0,0,0;
    --geo-us: #86B8EC; --geo-br: #86CC95;
  }
}
:root[data-theme="dark"] {
  --bg: #16120E; --surface: #211B15; --surface-tint: #2A231C; --line: #3A3027; --sand: #5A4B3C;
  --ink: #F3ECE1; --ink-soft: #B5A792; --accent: #E3A857; --accent-strong: #E3A857; --on-accent: #1C1712;
  --shadow-rgb: 0,0,0;
    --geo-us: #86B8EC; --geo-br: #86CC95;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .25 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  text-wrap: balance;
  margin: 0;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 1rem;
}

.section-head { max-width: 58rem; margin: 0 auto; padding: 0 16px; }
.section-head h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.3rem); line-height: 1.14; letter-spacing: -0.01em; }
.section-head p.sub { color: var(--ink-soft); margin: 0.75rem 0 0; max-width: 40rem; }
@media (min-width: 680px) { .section-head { padding: 0 24px; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; translate: 0 16px; transition: opacity var(--t-slow) var(--ease), translate var(--t-slow) var(--ease); }
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn-main { background: var(--accent-strong); color: var(--on-accent); }
.btn-main:hover { box-shadow: 0 0 0 6px var(--glow-soft), 0 10px 24px var(--accent-shadow); transform: translateY(-2px); }
.btn-main:active { transform: translateY(0); box-shadow: 0 0 0 3px var(--glow-soft); transition-duration: 0.12s; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); transition-duration: 0.12s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 16px 0.5rem;
}
@media (min-width: 680px) { .site-header { padding: 1.75rem 24px 0.5rem; } }
.wordmark { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.2rem; }
.wordmark span { color: var(--ink-soft); font-weight: 400; }
.whats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--sh-low);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.whats-pill:hover { border-color: var(--accent); color: var(--accent-strong); box-shadow: 0 0 0 5px var(--glow-soft); transform: translateY(-1px); }
.whats-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- calculator ---------- */
.calc-wrap { max-width: 58rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 680px) { .calc-wrap { padding: 0 24px; } }
.calc {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--sh-med);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
@media (min-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-form { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1.2rem; align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.98rem; }
.field .hint { font-size: 0.84rem; color: var(--ink-soft); font-weight: 400; }
.field input {
  height: 52px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder { color: var(--ink-soft); opacity: 0.75; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow-soft); }
.field .prefix { position: relative; }
.field .prefix span { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-soft); pointer-events: none; }
.field .prefix input { padding-left: 2.6rem; }
.field.invalid input { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-soft); }
.field .err { display: none; color: var(--error); font-size: 0.86rem; }
.field.invalid .err { display: block; }
.field.shake input { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
@media (prefers-reduced-motion: reduce) { .field.shake input { animation: none; } }

.calc-result {
  background: var(--surface-tint);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}
.calc-result .eyebrow { margin: 0; }
.calc-big { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(2.2rem, 3vw + 1rem, 3rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-big small { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-top: 0.35rem; }
#calc-filled { display: grid; gap: 0.45rem; }
#calc-filled[hidden], .calc-line[hidden] { display: none; }
.calc-line { margin: 0; font-size: 1rem; }
.calc-line strong { font-weight: 600; }
.calc-empty { color: var(--ink-soft); margin: 0; }
.calc-result .btn { margin-top: auto; align-self: flex-start; }
.calc-result .btn.pulse-once { animation: pulse-once var(--t-slow) var(--ease) 0.6s; }
@keyframes pulse-once { from { box-shadow: 0 0 0 0 var(--glow-strong); } to { box-shadow: 0 0 0 12px transparent; } }
.calc-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

/* ---------- founder ---------- */
.founder { max-width: 58rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 680px) { .founder { padding: 0 24px; } }
.founder-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--sh-med);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 620px) { .founder-inner { flex-direction: row; align-items: center; } }
.founder-photo { flex-shrink: 0; width: 150px; }
@media (min-width: 620px) { .founder-photo { width: 200px; } }
.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-m);
  box-shadow: var(--sh-med);
  filter: sepia(0.06) saturate(0.97);
}
.founder-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.founder-text .eyebrow { margin: 0; }
.founder-text h2 { font-size: clamp(1.25rem, 1.4vw + 0.9rem, 1.6rem); line-height: 1.28; max-width: 36ch; }
.founder-text p { margin: 0; color: var(--ink-soft); max-width: 38ch; }

.app-icon { width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0; box-shadow: var(--sh-med); display: block; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 0.25rem;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status--build { color: var(--ink-soft); }
.status--build i { background: transparent; border: 1.5px solid var(--ink-soft); }
.status--soon { color: var(--ink-soft); }
.status--soon i { background: transparent; border: 1.5px dashed var(--ink-soft); }

/* ---------- sections spacing ---------- */
.block { padding-top: clamp(4.5rem, 9vw, 7.5rem); }

/* ---------- botão fixo de WhatsApp (só celular) ---------- */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--sh-high);
  opacity: 0;
  translate: 0 16px;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-exit), translate 0.2s var(--ease-exit), visibility 0s linear 0.2s;
}
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float.show {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  transition: opacity var(--t-std) var(--ease), translate var(--t-std) var(--ease), visibility 0s;
}
.wa-float:active { translate: 0 1px; }
@media (max-width: 819px) { .wa-float { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float.show { translate: none; transition: none; } }

/* ---------- footer ---------- */
footer {
  max-width: 72rem;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  padding: 2rem 16px 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (min-width: 680px) { footer { padding-left: 24px; padding-right: 24px; } }
footer p { margin: 0; }
footer a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
footer a:hover { color: var(--accent-strong); }
