/* ComeçAI landing page.
   Layout: mobile-first single column; from 900px the hero splits into
   message + a phone showing the panel, and sections use two-column grids. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.band { padding-block: 64px; }
.band--sunken { background: var(--surface-sunken); }
.band--teal { background: var(--brand-teal); color: var(--on-teal); }
@media (min-width: 900px) { .band { padding-block: 96px; } }

.section-head { display: grid; gap: var(--space-3); max-width: 640px; margin-bottom: 40px; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 800; letter-spacing: .4px; color: var(--accent-text); }
.band--teal .eyebrow { color: #ffb8a6; }

/* ---------- Type ---------- */
.display { font-size: clamp(36px, 7vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; text-wrap: balance; }
.h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.18; font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 34em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.ai { color: var(--accent-text); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.logo { display: inline-flex; color: inherit; }
.logo svg { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a:not(.ca-btn) { display: none; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:not(.ca-btn):hover { color: var(--primary); }
@media (min-width: 900px) { .nav a:not(.ca-btn) { display: inline; } .logo svg { width: 148px; } }

/* ---------- Buttons (componentes.md) ---------- */
.ca-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-3) 20px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.ca-btn svg { width: 20px; height: 20px; flex: none; }
.ca-btn--primary { background: var(--primary); color: var(--on-primary); }
.ca-btn--primary:hover { background: var(--primary-hover); }
.ca-btn--accent { background: var(--accent); color: var(--on-accent); }
.ca-btn--accent:hover { filter: brightness(1.04); }
.ca-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--border-strong); }
.ca-btn--secondary:hover { background: var(--surface-sunken); }
.ca-btn--ghost { background: transparent; color: var(--primary); }
.ca-btn--ghost:hover { background: var(--surface-sunken); }
.ca-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ca-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: var(--radius-sm); }
.ca-btn:active:not([disabled]) { transform: translateY(1px); }

/* ---------- Badges (componentes.md) ---------- */
.ca-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap;
}
.ca-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ca-badge--paid { color: var(--status-paid); background: var(--status-paid-bg); }
.ca-badge--pending { color: var(--status-pending); background: var(--status-pending-bg); }
.ca-badge--overdue { color: var(--status-overdue); background: var(--status-overdue-bg); }
.ca-badge--canceled { color: var(--status-canceled); background: var(--status-canceled-bg); }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.pill--now { background: var(--accent-soft); color: var(--ink); }
.pill--soon { background: var(--surface-sunken); color: var(--ink-muted); }

/* ---------- Cards (componentes.md) ---------- */
.ca-card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--space-4);
}
@media (min-width: 720px) { .ca-card { padding: var(--space-6); } }
.ca-charge { display: grid; gap: var(--space-3); }
.ca-charge__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.ca-charge__who { font-size: 16px; line-height: 24px; font-weight: 700; }
.ca-charge__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ca-charge__value { font-size: 24px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ca-charge__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero__copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero__copy .display .ai { white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__note { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.hero__note svg { width: 18px; height: 18px; color: var(--status-paid); flex: none; }
@media (min-width: 900px) {
  .hero { padding-block: 64px 96px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* Phone showing the panel */
.stage { position: relative; display: grid; justify-items: center; padding-block: 8px; }
.phone {
  position: relative; z-index: 1; width: min(340px, 100%);
  background: var(--surface); border: 8px solid var(--ink); border-radius: 40px;
  box-shadow: 0 24px 60px rgba(15,76,92,.22);
  overflow: hidden;
}
:root[data-theme="dark"] .phone { border-color: #2a3a40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { border-color: #2a3a40; } }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.phone__notch { width: 72px; height: 18px; border-radius: 0 0 12px 12px; background: var(--ink); position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
:root[data-theme="dark"] .phone__notch { background: #2a3a40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone__notch { background: #2a3a40; } }
.phone__screen { display: grid; gap: var(--space-3); padding: 8px 14px 18px; }
.phone__title { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.3px; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.summary__item { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.summary__label { font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 700; }
.summary__value { font-size: 18px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary__value--due { color: var(--status-overdue); }
.phone .ca-card { padding: 12px 14px; border-radius: 16px; }
.phone .ca-charge { gap: 8px; }
.phone .ca-charge__who { font-size: 15px; line-height: 20px; }
.phone .ca-charge__meta { font-size: 12px; line-height: 16px; }
.phone .ca-charge__value { font-size: 20px; line-height: 24px; }
.ai-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 10px 12px;
  font-size: 12px; line-height: 16px;
}
.ai-tag { flex: none; font-size: 11px; line-height: 16px; font-weight: 800; color: var(--accent-text); background: var(--surface-raised); border-radius: var(--radius-pill); padding: 0 7px; }

/* ---------- Scattered money (problem) ---------- */
.scatter { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .scatter { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .scatter { grid-template-columns: repeat(4, 1fr); } }
.scatter__item { display: grid; gap: var(--space-2); align-content: start; background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); }
.scatter__item svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 4px; }
.scatter__close { margin-top: 32px; font-size: 20px; line-height: 30px; font-weight: 700; max-width: 34em; }

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.benefit { display: grid; gap: var(--space-3); align-content: start; }
.benefit__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--primary); }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit__demo { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: 4px; }
.benefit__demo svg { width: 16px; height: 16px; color: var(--ink-muted); }

/* ---------- Questions → answers ---------- */
.qa { display: grid; gap: var(--space-3); }
.qa__row {
  display: grid; gap: var(--space-3); align-items: center;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
}
@media (min-width: 760px) { .qa__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-8); } }
.qa__q { font-size: 20px; line-height: 28px; font-weight: 800; color: var(--primary); }
.qa__a { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: 15px; line-height: 22px; min-width: 0; }
.qa__money { font-weight: 800; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 6px; width: 100%; }
.bars__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; font-size: 13px; line-height: 18px; }
.bars__track { height: 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.bars__fill { height: 100%; border-radius: inherit; background: var(--primary); }
.bars__row:nth-child(2) .bars__fill { background: var(--brand-coral); }
.bars__row:nth-child(3) .bars__fill { background: var(--border-strong); }
.bars__val { font-variant-numeric: tabular-nums; color: var(--ink-muted); text-align: right; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 3px solid var(--border); }
.step:first-child { border-top-color: var(--brand-coral); }
.step__n { font-size: 14px; line-height: 20px; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }

.trust {
  margin-top: 40px; display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: var(--space-6);
}
.trust svg { width: 28px; height: 28px; color: var(--primary); flex: none; margin-top: 2px; }
.trust p { max-width: 52em; }

/* ---------- Audience ---------- */
.audience { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .audience { grid-template-columns: 1.2fr 1fr; } }
.aud-main { display: grid; gap: var(--space-4); align-content: start; background: var(--brand-teal); color: var(--on-teal); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); }
.aud-main .muted { color: var(--on-teal-muted); }
.aud-main svg { width: 40px; height: 40px; color: #ffb8a6; }
.aud-main ul { display: grid; gap: var(--space-2); }
.aud-main li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--on-teal); }
.aud-main li svg { width: 20px; height: 20px; margin-top: 2px; color: #ffb8a6; flex: none; }
.aud-list { display: grid; gap: var(--space-3); align-content: start; }
.aud-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); }
.aud-item svg { width: 24px; height: 24px; color: var(--primary); }

/* ---------- Principles ---------- */
.principles { display: grid; gap: var(--space-8) var(--space-12); }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.principle svg { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.principle div { display: grid; gap: var(--space-1); }

/* ---------- Waitlist ---------- */
.waitlist { display: grid; gap: 40px; }
@media (min-width: 900px) { .waitlist { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.waitlist__intro { display: grid; gap: var(--space-4); }
.waitlist__intro .lead { color: var(--on-teal-muted); }
.waitlist__perks { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.waitlist__perks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.waitlist__perks svg { width: 22px; height: 22px; color: #ffb8a6; flex: none; margin-top: 1px; }

.form-card { background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
@media (min-width: 720px) { .form-card { padding: var(--space-8); } }
.form { display: grid; gap: var(--space-4); }
.form__grid { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; line-height: 20px; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-raised); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237e8e94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input::placeholder { color: var(--ink-muted); opacity: .8; }
.field input:focus, .field select:focus { border-color: var(--primary); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--status-overdue); }
.field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.field__error { font-size: 13px; line-height: 18px; color: var(--status-overdue); font-weight: 700; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.consent[data-invalid] { color: var(--status-overdue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .ca-btn { width: 100%; min-height: 52px; font-size: 17px; }
@media (min-width: 560px) { .form .ca-btn { width: auto; justify-self: start; } }
.alert { border-radius: var(--radius-md); padding: var(--space-4); font-size: 15px; line-height: 22px; }
.alert--error { background: var(--status-overdue-bg); color: var(--status-overdue); font-weight: 700; }
.done { display: grid; gap: var(--space-4); justify-items: start; }
.done svg { width: 48px; height: 48px; color: var(--status-paid); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 780px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); cursor: pointer; font-weight: 700; font-size: 17px; line-height: 24px; list-style: none; border-radius: var(--radius-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--ink-muted); flex: none; transition: transform 160ms ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); max-width: 40em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-sunken); padding-block: 48px 40px; }
.site-footer .wrap { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .logo svg { width: 140px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); font-size: 14px; }
.footer__links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer__links a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Simple pages (privacy, 404) ---------- */
.prose { max-width: 680px; display: grid; gap: var(--space-4); padding-block: 48px 80px; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.prose h2 { font-size: 20px; line-height: 28px; font-weight: 800; margin-top: var(--space-4); }
.prose ul { list-style: disc; padding-left: 1.25em; display: grid; gap: var(--space-1); }
.prose p, .prose li { color: var(--ink); }
