/* =========================================================
   Explicações do Tomi — folha de estilos
   Mobile-first · sem frameworks
   ========================================================= */

:root {
  --navy-950: #071a33;
  --navy-900: #0b2545;
  --navy-800: #0f3460;
  --navy-700: #134b7a;
  --slate-500: #5d7390;
  --slate-300: #9fb4cb;
  --slate-100: #e6edf5;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --ink: #0f1b2d;
  --muted: #475569;
  --bg: #ffffff;
  --bg-tint: #f4f7fb;
  --line: #dde5ef;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow: 0 2px 4px rgba(11, 37, 69, 0.05), 0 12px 32px rgba(11, 37, 69, 0.09);
  --shadow-lg: 0 4px 8px rgba(11, 37, 69, 0.06), 0 24px 56px rgba(11, 37, 69, 0.14);

  --header-h: 68px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 820px; }

.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--amber-300); }

.small-note { font-size: 0.875rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32);
}
.btn-primary:hover {
  background: var(--amber-300);
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.38);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: 140px; height: auto; }

.nav-toggle {
  position: relative;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--navy-900);
}
.nav-toggle:hover { background: var(--slate-100); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 13px;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); background: var(--navy-900); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); background: var(--navy-900); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 12px var(--gutter) 20px;
}
.nav-list a {
  display: block;
  padding: 12px 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--navy-700); background: var(--bg-tint); }
.nav-list .nav-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--navy-900);
  color: #fff;
  border-radius: 999px;
}
.nav-list .nav-cta:hover,
.nav-list .nav-cta.is-active { background: var(--navy-700); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-atom { transform-origin: 960px 330px; }
.hero-inner { position: relative; }
.hero-copy { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-lead {
  font-size: clamp(1.075rem, 2.4vw, 1.25rem);
  color: #dbe5f0;
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #c9d6e5;
  font-size: 0.975rem;
}
.hero-facts strong {
  color: var(--amber-300);
  font-weight: 700;
  min-width: 86px;
}

/* ---------- Vantagens ---------- */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--slate-100);
  color: var(--navy-800);
  margin-bottom: 18px;
}
.icon-badge-lg { width: 64px; height: 64px; border-radius: 18px; }

/* ---------- Planos ---------- */
.plans { display: grid; gap: 24px; align-items: start; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border: 2px solid var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.plan-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--navy-900);
  color: #fff;
}
.plan-tag-alt { background: #fef3c7; color: #78350f; }
.plan h3 { font-size: 1.45rem; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 24px;
  color: var(--navy-900);
}
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
}
.plan-price .unit { font-weight: 600; color: var(--muted); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fef3c7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23b45309' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Método ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.step-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--slate-100);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-photo figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.about-copy > p:not(.eyebrow) { color: #334155; }
.facts {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.facts div {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  background: #fff;
}
.facts dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-700);
}
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Testemunhos ---------- */
.testimonials { display: grid; gap: 24px; }
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.quote-mark { color: var(--amber-500); margin-bottom: 16px; }
.testimonial blockquote { margin: 0 0 24px; flex: 1; }
.testimonial blockquote p { margin: 0; font-size: 1.05rem; color: #1e293b; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial figcaption img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.testimonial figcaption strong { display: block; color: var(--navy-900); }
.testimonial .role { display: block; font-size: 0.9rem; color: var(--muted); }

/* ---------- Material ---------- */
.material-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #dbe5f0;
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: var(--shadow-lg);
}
.material-card h2 { color: #fff; }
.material-card .small-note { color: #b9c8da; }
.material-art { width: 160px; height: 160px; justify-self: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.faq[open] { box-shadow: var(--shadow); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--amber-600);
  border-bottom: 2.5px solid var(--amber-600);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 40px; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 8px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  word-break: break-word;
}
.contact-links a:hover { color: var(--amber-700); text-decoration: underline; }
.contact-links svg { color: var(--amber-600); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.4rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b6c3d3;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(19, 75, 122, 0.18);
}
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
}
.field-error:empty { display: none; }
.field-row { display: grid; gap: 0 16px; }
.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
}
.field-check input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--navy-800);
}
.field-check label { font-weight: 500; font-size: 0.925rem; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.form-note { margin-top: 14px; }
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--navy-700); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #b9c8da;
  padding: 48px 0 32px;
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 24px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-brand p:last-child { margin: 0; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a { color: #e2e8f0; text-decoration: none; }
.footer-links a:hover { color: var(--amber-300); text-decoration: underline; }
.copyright { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }

/* ---------- Página de privacidade ---------- */
.page-legal { padding: calc(var(--header-h) + 48px) 0 72px; }
.page-legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page-legal h2 { font-size: 1.4rem; margin-top: 2em; }
.page-legal p:not(.eyebrow):not(.legal-meta), .page-legal li { color: #334155; }
.page-legal ul { padding-left: 1.25em; }
.page-legal li { margin-bottom: 0.4em; }
.legal-meta { color: var(--muted); font-size: 0.95rem; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 32px; font-weight: 600; }
.header-back {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
}
.header-back:hover { background: var(--navy-700); color: #fff; }

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-atom { animation: spin-slow 90s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-atom { animation: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 36px 32px; }
  .material-card { padding: 48px 44px; }
  .hero-facts { grid-auto-flow: column; grid-auto-columns: max-content; gap: 32px; }
  .hero-facts li { flex-direction: column; gap: 2px; }
  .hero-facts strong { font-size: 1.35rem; min-width: 0; }
  .nowrap-md { white-space: nowrap; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .section { padding: 104px 0; }
  .brand img { width: 160px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
  }
  .nav-list a { padding: 8px 10px; font-size: 0.925rem; }
  .nav-list .nav-cta { margin: 0 0 0 8px; padding: 10px 18px; }
  .hero { padding: calc(var(--header-h) + 104px) 0 128px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; max-width: 920px; }
  .plan { padding: 40px 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonial { padding: 40px 36px; }
  .material-card { grid-template-columns: 1fr auto; padding: 64px; }
  .material-copy { max-width: 620px; }
  .material-art { width: 220px; height: 220px; }
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .nav-list a { padding: 8px 12px; font-size: 0.95rem; }
}
