/* =========================================================
   PlantonIA - landing page estática
   Direção: editorial "calor humano brasileiro + saúde premium"
   Fraunces (display, serifada com personalidade) + Manrope (corpo)
   ========================================================= */

:root {
  /* --- paleta --- */
  --cream:        #FBF3E4;
  --cream-deep:   #F2E7D2;
  --cream-line:   rgba(31, 46, 36, 0.14);

  --ink:          #1C2B22;
  --ink-soft:     #3C4A40;

  --green-950:    #0C241A;
  --green-900:    #0F2E22;
  --green-800:    #163F2D;
  --green-700:    #1F5C42;
  --green-050:    #E7EFE7;

  --amber-700:    #8F4E14; /* uso em texto corrido sobre creme, AA 5.8:1 */
  --amber-600:    #B5691A;
  --amber-500:    #D9891F;
  --amber-300:    #E2A33B;
  --amber-100:    #F5DDAF;

  --paper:        #FFFDF7;

  /* --- tipografia --- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, sans-serif;

  --text-xs:    0.8rem;
  --text-sm:    0.95rem;
  --text-base:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:    clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --text-h2:    clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --text-hero:  clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.75rem;
  --space-lg:   clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --space-xl:   clamp(4rem, 3rem + 4vw, 7.5rem);

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-normal: 340ms;

  color-scheme: light;
}

/* --- reset enxuto --- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 3px solid var(--amber-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}
.wrap-narrow { width: min(760px, 100% - 3rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--green-900);
  color: var(--amber-300);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-word em {
  font-style: italic;
  font-weight: 700;
  color: var(--amber-600);
}
.main-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  padding-block: 0.2rem;
  color: var(--ink-soft);
  transition: color var(--dur-fast) ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--amber-500);
  transition: right var(--dur-normal) var(--ease-out-expo);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  /* sem white-space:nowrap: em telas muito estreitas o rotulo do botao
     precisa poder quebrar em duas linhas, senao forca overflow horizontal */
  transition: transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) ease;
}
.btn-primary {
  background: var(--green-900);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 10px 24px -12px rgba(15, 46, 34, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--green-800);
  box-shadow: 0 14px 28px -12px rgba(15, 46, 34, 0.6);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 0.65rem 1.3rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-text {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber-500);
  text-underline-offset: 5px;
  padding: 0.85rem 0.25rem;
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
/* sem flex-shrink:0 aqui: em telas muito estreitas o botao precisa poder
   encolher e quebrar linha, senao forca overflow horizontal no header */

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-block: var(--space-xl) var(--space-lg);
  background:
    radial-gradient(60% 55% at 82% 8%, color-mix(in oklab, var(--amber-100) 55%, transparent), transparent),
    radial-gradient(40% 40% at 4% 90%, color-mix(in oklab, var(--green-050) 70%, transparent), transparent),
    var(--cream);
  overflow: clip;
}
.hero::before {
  /* textura sutil de papel via ruído SVG embutido */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.06  0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--green-800);
  background: var(--paper);
  border: 1px solid var(--cream-line);
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow em { font-style: italic; color: var(--amber-700); }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 0 rgba(31, 92, 66, 0.55);
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 92, 66, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(31, 92, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 92, 66, 0); }
}

h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
h1 .hl {
  font-style: italic;
  color: var(--green-800);
  position: relative;
  white-space: nowrap;
}
h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--amber-100);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  margin-top: var(--space-md);
  max-width: 42ch;
  font-size: var(--text-lg);
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: var(--space-md);
}
.hero-footnote {
  margin-top: var(--space-md);
  max-width: 38ch;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  border-left: 2px solid var(--amber-300);
  padding-left: 0.9rem;
}

/* --- reveal de entrada (respeita prefers-reduced-motion mais abaixo) --- */
.reveal {
  animation: reveal-up var(--dur-normal) var(--ease-out-expo) both;
  animation-delay: calc(var(--d, 0) * 110ms);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Mockup de conversa (WhatsApp estilizado)
   ========================================================= */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.phone-glow {
  position: absolute;
  inset: -6% -14% -10%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--green-700) 30%, transparent), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.chat-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-line);
  box-shadow: 0 30px 60px -25px rgba(12, 36, 26, 0.45), 0 2px 0 rgba(255,255,255,0.6) inset;
  overflow: hidden;
  transform: rotate(1.2deg);
}
.chat-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: var(--green-900);
  color: var(--cream);
}
.chat-icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--amber-300);
  flex-shrink: 0;
}
.chat-card-title { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chat-card-title strong { font-size: 0.9rem; font-family: var(--font-body); }
.chat-card-title span { font-size: 0.72rem; opacity: 0.7; }
.chat-status {
  font-size: 0.68rem;
  color: var(--amber-300);
  border: 1px solid color-mix(in oklab, var(--amber-300) 50%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.chat-body {
  padding: 1.1rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--green-050) 55%, transparent) 0 2px, transparent 2px 26px),
    var(--cream-deep);
  min-height: 380px;
}

.bubble {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.42;
  opacity: 0;
  animation: bubble-in var(--dur-normal) var(--ease-out-expo) both;
  animation-delay: calc(var(--d, 0) * 480ms + 250ms);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-in {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-bottom-left-radius: 3px;
  color: var(--ink);
}
.bubble-out {
  align-self: flex-end;
  background: var(--green-800);
  color: var(--cream);
  border-bottom-right-radius: 3px;
  position: relative;
}
.bubble-human {
  background: var(--amber-500);
  color: var(--green-950);
}
.assistant-tag, .human-tag {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* cores solidas (sem opacity) para manter contraste AA sobre cada fundo de bolha */
.assistant-tag { color: var(--amber-300); }
.human-tag { margin-top: 0; margin-bottom: 0.3rem; color: var(--green-950); }

.bubble-audio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
}
.waveform { display: flex; align-items: center; gap: 3px; height: 20px; }
.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--green-700);
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 40%; animation-delay: 0ms; }
.waveform span:nth-child(2) { height: 80%; animation-delay: 90ms; }
.waveform span:nth-child(3) { height: 55%; animation-delay: 180ms; }
.waveform span:nth-child(4) { height: 100%; animation-delay: 270ms; }
.waveform span:nth-child(5) { height: 65%; animation-delay: 360ms; }
.waveform span:nth-child(6) { height: 85%; animation-delay: 450ms; }
.waveform span:nth-child(7) { height: 45%; animation-delay: 540ms; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.audio-time { font-size: 0.72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.transcribing {
  align-self: flex-start;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0;
  animation: bubble-in var(--dur-normal) ease both;
  animation-delay: calc(var(--d, 0) * 480ms + 250ms);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 0.2rem;
}
.dots { display: inline-flex; gap: 2px; }
.dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: bounce 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.handoff {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  opacity: 0;
  animation: bubble-in var(--dur-normal) ease both;
  animation-delay: calc(var(--d, 0) * 480ms + 250ms);
}

/* =========================================================
   Como funciona
   ========================================================= */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 0.6rem;
}
.section-eyebrow-inverse { color: var(--amber-300); }
.how { padding-block: var(--space-xl); }
.how h2, .para-quem h2, .faq h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: var(--space-lg);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--space-md);
  border-top: 2px solid var(--cream-line);
}
.step-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--amber-600);
  margin-bottom: 0.4rem;
  line-height: 1;
}
.step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); }

/* =========================================================
   Diferenciais (fundo verde profundo, bento assimétrico)
   ========================================================= */
.diferenciais {
  background: var(--green-900);
  color: var(--cream);
  padding-block: var(--space-xl);
  position: relative;
}
.heading-inverse { color: var(--cream); }
.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}
.dif-card {
  background: color-mix(in oklab, var(--green-800) 88%, transparent);
  border: 1px solid rgba(226, 163, 59, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--dur-normal) var(--ease-out-expo),
              border-color var(--dur-normal) ease,
              background var(--dur-normal) ease;
}
.dif-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber-300);
  background: color-mix(in oklab, var(--green-800) 70%, var(--green-700));
}
.dif-card-lg { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.dif-card-lg h3 { font-size: 1.6rem; }
.dif-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: color-mix(in oklab, var(--amber-300) 16%, transparent);
  color: var(--amber-300);
  margin-bottom: 1rem;
}
.dif-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.dif-card p { color: color-mix(in oklab, var(--cream) 78%, transparent); }

/* =========================================================
   Para quem
   ========================================================= */
.para-quem { padding-block: var(--space-xl); }
.quem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}
.quem-card {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--cream-line);
}
.quem-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.8rem; }
.quem-card p { color: var(--ink-soft); }
.quem-card-accent {
  background: var(--green-900);
  border-color: var(--green-900);
}
.quem-card-accent h3, .quem-card-accent p { color: var(--cream); }
.quem-card-accent p { color: color-mix(in oklab, var(--cream) 78%, transparent); }
.quem-cta { display: inline-flex; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-block: var(--space-xl); background: var(--cream-deep); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-sm);
  padding: 0.3rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1rem;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-700);
  transition: transform var(--dur-normal) var(--ease-out-expo);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.1rem; max-width: 62ch; }

/* =========================================================
   CTA final
   ========================================================= */
.cta-final {
  padding-block: var(--space-xl);
  background: var(--amber-500);
  color: var(--green-950);
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-final h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--green-950);
  max-width: 16ch;
}
.cta-final p { font-size: var(--text-lg); margin-bottom: 0.6rem; }
.cta-final .btn-primary { background: var(--green-950); }
.cta-final .btn-primary:hover { background: var(--green-900); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding-block: var(--space-lg); border-top: 1px solid var(--cream-line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-meta { font-size: 0.9rem; color: var(--ink-soft); }
.footer-meta a { text-decoration: underline; text-decoration-color: var(--amber-500); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr 1fr; }
  .dif-card-lg { grid-row: auto; grid-column: span 2; }
  .quem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { gap: 0.75rem; }
  .header-cta { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .dif-grid { grid-template-columns: 1fr; }
  .dif-card-lg { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .chat-card { transform: none; }
}

/* =========================================================
   Acessibilidade de movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .bubble, .transcribing, .handoff { opacity: 1; transform: none; }
}
