/* ============================================================================
   Xá Comigo — design system
   One typeface (Plus Jakarta Sans), hierarchy by weight. Emerald-teal trust +
   honey warmth on warm paper. The signature is the WhatsApp conversation, so
   everything around it stays quiet.
   ========================================================================= */

:root {
  /* palette */
  --paper:       #FBFAF6;
  --paper-2:     #F4F1E9;
  --card:        #FFFFFF;
  --ink:         #14211D;
  --ink-soft:    #45514B;
  --muted:       #6B746E;
  --green:       #0E7C66;
  --green-700:   #0B6353;
  --green-deep:  #0B3D2E;
  --mint:        #15B881;
  --mint-soft:   #DCF3E9;
  --honey:       #F4A23B;
  --honey-deep:  #B26E12;
  --border:      #E7E3DA;
  --border-soft: #EFECE4;
  --danger:      #C2410C;

  /* type scale */
  --f-xs: .8125rem;   /* 13 */
  --f-sm: .9375rem;   /* 15 */
  --f-base: 1.0625rem;/* 17 */
  --f-md: 1.1875rem;  /* 19 */
  --f-lg: 1.5rem;     /* 24 */
  --f-xl: 2rem;       /* 32 */
  --f-2xl: 2.75rem;   /* 44 */
  --f-3xl: 3.5rem;    /* 56 */

  /* shape & depth */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(20,33,29,.05), 0 2px 8px rgba(20,33,29,.04);
  --shadow:    0 8px 24px rgba(20,33,29,.07), 0 2px 6px rgba(20,33,29,.05);
  --shadow-lg: 0 24px 60px rgba(11,61,46,.16), 0 8px 24px rgba(20,33,29,.08);

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--f-base);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration-color: color-mix(in srgb, var(--green-700) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- a11y helpers ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--f-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--honey); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--f-2xl); margin: 14px 0 12px; }
.section-head p { font-size: var(--f-md); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: var(--f-sm);
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--green); box-shadow: 0 8px 22px rgba(14,124,102,.28); }
.btn-primary:hover { --bg: var(--green-700); }
.btn-honey { --bg: var(--honey); --fg: #3a2406; box-shadow: 0 8px 22px rgba(244,162,59,.32); }
.btn-honey:hover { --bg: #ef9621; }
.btn-ghost {
  --bg: transparent; --fg: var(--ink); border-color: var(--border);
  box-shadow: none; background: var(--card);
}
.btn-ghost:hover { --fg: var(--ink); border-color: var(--green); background: var(--card); }
.btn svg { width: 19px; height: 19px; }

/* ============================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--mint), var(--green));
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(14,124,102,.3);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand b { color: var(--honey-deep); }
.nav-links { display: none; margin-left: auto; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; color: var(--ink-soft);
  text-decoration: none; font-weight: 600; font-size: var(--f-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
}

/* ============================================================================
   Hero — the signature WhatsApp conversation
   ========================================================================= */
.hero { position: relative; padding-top: clamp(36px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(21,184,129,.16), transparent 70%),
    radial-gradient(50% 40% at 12% 0%, rgba(244,162,59,.12), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-copy h1 {
  font-size: var(--f-3xl); letter-spacing: -.035em; line-height: 1.02; margin: 18px 0 18px;
}
.hero-copy h1 .hl { color: var(--green); position: relative; white-space: nowrap; }
.hero-copy h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .32em;
  background: var(--honey); opacity: .35; border-radius: 6px; z-index: -1;
}
.lede { font-size: var(--f-md); color: var(--ink-soft); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: var(--f-sm); }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* phone / chat */
.chat-stage { justify-self: center; position: relative; width: 100%; max-width: 380px; }
.chat {
  background: #EAE6DD;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(20,33,29,.06);
  transform: rotate(-1.4deg);
}
@media (prefers-reduced-motion: reduce) { .chat { transform: none; } }
.chat-top {
  display: flex; align-items: center; gap: 11px;
  background: var(--green-deep); color: #fff; padding: 13px 16px;
}
.chat-top .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--mint), var(--honey));
  display: grid; place-items: center; color: #06281d; font-weight: 800;
}
.chat-top .who { font-weight: 700; font-size: var(--f-sm); line-height: 1.2; }
.chat-top .stat { font-size: var(--f-xs); color: #9fe6cf; display: flex; align-items: center; gap: 5px; }
.chat-top .stat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #56e0a6; }
.chat-body {
  padding: 18px 14px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.5), transparent 40%),
    #ECE7DE;
  display: flex; flex-direction: column; gap: 10px; min-height: 360px;
}
.bubble {
  max-width: 80%; padding: 9px 13px; border-radius: 14px;
  font-size: var(--f-sm); line-height: 1.45; color: #14211d;
  box-shadow: 0 1px 1px rgba(20,33,29,.08); position: relative;
}
.bubble .t { display: block; font-size: 11px; color: #5b6b63; text-align: right; margin-top: 3px; }
.bubble.in  { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: #D6F4E2; align-self: flex-end; border-top-right-radius: 4px; }
.bubble.out .t { color: #2e7d57; }
.bubble.card-msg { background: #fff; align-self: flex-start; border-top-left-radius: 4px; max-width: 86%; padding: 11px 13px; }
.evt { display: flex; gap: 10px; align-items: flex-start; }
.evt .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--mint-soft); color: var(--green-700); display: grid; place-items: center; flex: none; }
.evt .ic svg { width: 18px; height: 18px; }
.evt b { display: block; color: var(--ink); font-size: var(--f-sm); }
.evt span { font-size: var(--f-xs); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--green-700); background: var(--mint-soft); padding: 4px 9px; border-radius: 999px; }
.tag svg { width: 13px; height: 13px; }

/* float badge */
.chat-badge {
  position: absolute; right: -14px; bottom: 36px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 13px; display: flex; align-items: center; gap: 9px;
  transform: rotate(2deg);
}
.chat-badge svg { width: 22px; height: 22px; color: var(--honey); }
.chat-badge b { font-size: var(--f-sm); color: var(--ink); }
.chat-badge span { font-size: var(--f-xs); color: var(--muted); display: block; }
@media (max-width: 480px) { .chat-badge { display: none; } }

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .lede { font-size: 1.25rem; }
}

/* ============================================================================
   Logos / trust strip
   ========================================================================= */
.strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 20px; }
.strip p { font-size: var(--f-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.strip ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.strip li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: var(--f-sm); }
.strip li svg { width: 18px; height: 18px; color: var(--green); }

/* ============================================================================
   Bento features
   ========================================================================= */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.tile .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--mint-soft); color: var(--green-700);
}
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: var(--f-md); margin-bottom: 7px; }
.tile p { font-size: var(--f-sm); color: var(--muted); }
.tile.feature {
  grid-column: 1 / -1;
  background: linear-gradient(155deg, var(--green-deep), #0f5743);
  color: #d9f3e8; border: none;
}
.tile.feature h3 { color: #fff; font-size: var(--f-xl); }
.tile.feature p { color: #aee0cc; font-size: var(--f-base); max-width: 42ch; }
.tile.feature .ic { background: rgba(255,255,255,.12); color: #bff0d8; }
.tile.honey .ic { background: #fbecd2; color: var(--honey-deep); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feature { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
  .tile.wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile.feature { grid-column: span 2; }
  .tile.tall { grid-row: span 2; }
}

/* ============================================================================
   How it works — a real 3-step sequence (numbering earns its place)
   ========================================================================= */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px;
}
.step .n {
  counter-increment: step; flex: none;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(150deg, var(--mint), var(--green));
}
.step .n::before { content: counter(step); }
.step h3 { font-size: var(--f-md); margin-bottom: 5px; }
.step p { font-size: var(--f-sm); color: var(--muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================================
   Beta — honesty band
   ========================================================================= */
.beta {
  background: #fbecd2; border: 1px solid #f3d9a8; border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 32px); display: grid; gap: 16px; grid-template-columns: 1fr;
}
.beta .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--honey); color: #3a2406; display: grid; place-items: center; flex: none; }
.beta .ic svg { width: 24px; height: 24px; }
.beta h3 { font-size: var(--f-lg); color: #5a3a08; margin-bottom: 6px; }
.beta p { color: #6b4a1a; font-size: var(--f-sm); }
.beta a { color: #8a5a10; }
@media (min-width: 720px) { .beta { grid-template-columns: auto 1fr; align-items: center; } }

/* ============================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: linear-gradient(150deg, var(--green-deep), var(--green-700));
  color: #d9f3e8; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(40% 60% at 80% 20%, rgba(21,184,129,.5), transparent 70%),
              radial-gradient(40% 60% at 15% 90%, rgba(244,162,59,.28), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--f-2xl); margin-bottom: 12px; }
.cta-band p { color: #b6e3d2; font-size: var(--f-md); max-width: 48ch; margin: 0 auto 26px; }

/* ============================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--green-deep); color: #a9c7bb; padding-block: 48px 30px; margin-top: 8px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand b { color: var(--honey); }
.foot-brand p { color: #8db1a3; font-size: var(--f-sm); margin-top: 12px; max-width: 34ch; }
.foot-col h4 { color: #fff; font-size: var(--f-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: #a9c7bb; text-decoration: none; font-size: var(--f-sm); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
  font-size: var(--f-xs); color: #80a497;
}
.foot-note { max-width: var(--maxw); margin: 14px auto 0; padding-inline: 22px; font-size: var(--f-xs); color: #6f978a; line-height: 1.6; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* ============================================================================
   Legal / document pages
   ========================================================================= */
.doc-hero { background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); border-bottom: 1px solid var(--border-soft); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.doc-hero h1 { font-size: var(--f-2xl); margin: 14px 0 10px; }
.doc-hero p { color: var(--muted); font-size: var(--f-sm); }
.doc { max-width: 760px; margin-inline: auto; padding: clamp(36px, 6vw, 64px) 22px; }
.doc h2 { font-size: var(--f-lg); margin: 40px 0 12px; padding-top: 8px; }
.doc h3 { font-size: var(--f-md); margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: var(--f-base); }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--green); }
.doc .lead { font-size: var(--f-md); color: var(--ink); }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.callout {
  background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: var(--r); padding: 18px 20px; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--green-deep); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; margin-bottom: 32px; }
.toc h2 { font-size: var(--f-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; padding: 0; }
.toc ol { padding-left: 20px; gap: 6px; margin: 0; }
.toc a { font-size: var(--f-sm); font-weight: 600; }
.scope-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: var(--f-sm); }
.scope-table th, .scope-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.scope-table th { color: var(--ink); font-weight: 700; background: var(--paper-2); }
.scope-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ============================================================================
   Support page
   ========================================================================= */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 40px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--mint-soft); color: var(--green-700); }
.contact-card.honey .ic { background: #fbecd2; color: var(--honey-deep); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: var(--f-md); margin-bottom: 4px; }
.contact-card p { font-size: var(--f-sm); color: var(--muted); }
.contact-card .val { display: block; margin-top: 8px; font-weight: 700; color: var(--green-700); font-size: var(--f-sm); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 4px 6px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--f-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--green); transition: transform .2s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 18px 18px; color: var(--ink-soft); font-size: var(--f-sm); }
.faq .ans p { margin-bottom: 10px; }
.faq .ans p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .chev { transition: none; } }

/* ============================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile { transition: none; }
}

/* chat entrance */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat .bubble, .chat .chat-badge { animation: pop .5s var(--ease) both; }
.chat .bubble:nth-child(1) { animation-delay: .15s; }
.chat .bubble:nth-child(2) { animation-delay: .55s; }
.chat .bubble:nth-child(3) { animation-delay: .95s; }
.chat .bubble:nth-child(4) { animation-delay: 1.35s; }
.chat-badge { animation-delay: 1.7s; }
@media (prefers-reduced-motion: reduce) {
  .chat .bubble, .chat .chat-badge { animation: none; }
}
