/* MarIA — site público (consultora.site). Mesma linguagem do painel: ameixa, rosa de ação, marfim.
   Newsreader para a voz editorial, Caveat para as anotações "de caderno". Sem marca de terceiros. */

@font-face {
  font-family: "Newsreader";
  src: url("/cadastro/assets/newsreader-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/cadastro/assets/newsreader-italic-500.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/cadastro/assets/caveat-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --plum-950: #2a0b21;
  --plum-900: #3b102f;
  --plum-800: #581844;
  --plum-100: #f3e6ee;
  --accent: #c51663;
  --accent-strong: #a8104f;
  --accent-soft: #fbe5ee;
  --bg: #fbf7f4;
  --surface: #ffffff;
  --surface-2: #f6efec;
  --ink: #241b22;
  --ink-2: #453943;
  --muted: #6c606b;
  --line: #eadfe2;
  --ok: #176746;
  --risk: #a2354b;
  --risk-soft: #fbe7ea;
  --chat-bg: #efe6e1;
  --bubble-me: #f9dbe7;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 2px 8px rgba(62, 19, 49, 0.06), 0 18px 40px -18px rgba(62, 19, 49, 0.22);
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160c13;
    --surface: #20141c;
    --surface-2: #2a1b25;
    --ink: #f6eef3;
    --ink-2: #dccdd6;
    --muted: #b8a7b2;
    --line: #3b2a35;
    --accent: #e0467f;
    --accent-strong: #f0659a;
    --accent-soft: #3d1628;
    --plum-100: #2d1a26;
    --risk: #f29aab;
    --risk-soft: #3d1a22;
    --chat-bg: #1b1117;
    --bubble-me: #4a1b33;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 44px -20px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 650; }
.small { font-size: 14px; color: var(--muted); }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--accent); transform: rotate(-2deg); transform-origin: left; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--plum-900); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ topo */

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); font-style: italic; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.top nav .top-cta { color: #fff; background: var(--plum-900); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.top nav .top-cta:hover { background: var(--plum-800); color: #fff; }
@media (max-width: 560px) { .top nav a:not(.top-cta) { display: none; } }

/* ------------------------------------------------------------ botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-strong); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; min-height: 44px; }
.btn.ghost:hover { color: var(--accent); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ------------------------------------------------------------ hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: clamp(40px, 8vw, 110px) var(--gutter) clamp(56px, 9vw, 120px);
  max-width: 1320px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); letter-spacing: -0.035em; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--accent); }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.price-note { color: var(--muted); font-size: 15px; }
.price-note strong { color: var(--ink); }
.invite { display: inline-block; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; font-weight: 600; }

.phone {
  position: relative; margin: 0; justify-self: center; width: min(100%, 380px);
  background: var(--plum-950); border-radius: 38px; padding: 12px; box-shadow: var(--shadow), 0 40px 80px -40px rgba(42, 11, 33, 0.55);
  transform: rotate(1.5deg);
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; color: #f4e9f0; }
.phone-bar .who { display: flex; flex-direction: column; line-height: 1.15; }
.phone-bar small { color: #cbb3c2; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 15px var(--serif); }
.chat { background: var(--chat-bg); border-radius: 28px; padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.4; min-height: 440px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.msg p + p { margin-top: 6px; }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: var(--ink); border-bottom-right-radius: 5px; }
.msg.her { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 5px; }
.receipt { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.receipt span:first-child { font-weight: 650; }
.card { border: 1px solid var(--line); }
.card-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 10px -12px -9px; border-top: 1px solid var(--line); }
.card-buttons span { text-align: center; padding: 9px 0; font-weight: 650; color: var(--accent); }
.card-buttons span + span { border-left: 1px solid var(--line); color: var(--muted); }
.note {
  position: absolute; right: -8px; bottom: -76px; width: 230px; transform: rotate(-3deg);
  font-family: var(--hand); font-weight: 600; font-size: 1.4rem; line-height: 1.05; color: var(--accent); text-align: right;
}
.note::before {
  content: ""; position: absolute; right: 118px; top: -34px; width: 34px; height: 30px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor; border-radius: 26px 0 0 0; transform: rotate(18deg);
}

/* Momento único: a conversa acontece. */
@media (prefers-reduced-motion: no-preference) {
  .chat .msg { animation: bubble 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .chat .msg:nth-child(1) { animation-delay: 0.25s; }
  .chat .msg:nth-child(2) { animation-delay: 0.9s; }
  .chat .msg:nth-child(3) { animation-delay: 1.6s; }
  .chat .msg:nth-child(4) { animation-delay: 2.1s; }
  .chat .msg:nth-child(5) { animation-delay: 2.8s; }
  @keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(3px); } }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: none; margin-bottom: 12px; }
  .note { position: static; width: auto; margin-top: 16px; transform: rotate(-1.5deg); text-align: center; color: #f08bb3; }
  .note::before { display: none; }
}

/* ------------------------------------------------------------ o que faz */

.does { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.does h2 { max-width: 17em; }
.does-grid { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 96px); }
.does-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 26em; }
.does-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.does-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.does-list dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--plum-800); }
.does-list dd { margin: 8px 0 0; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .does-list dt { color: var(--accent-strong); } }
@media (max-width: 880px) { .does-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .does-list { grid-template-columns: 1fr; gap: 26px; } }

/* ------------------------------------------------------------ confiança (faixa ameixa) */

.trust { background: var(--plum-900); color: #f6ecf2; }
.trust-inner { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.trust h2 { color: #fff; }
.trust-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.trust-points li { color: #e3cfdb; font-size: 1.05rem; padding-left: 28px; position: relative; }
.trust-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #f08bb3; }
.trust-points strong { color: #fff; }
@media (max-width: 880px) { .trust-inner { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ painel */

.panel-strip { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(24px, 4vw, 48px); }
.panel-strip h2 { max-width: 18em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.panel-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.panel-list li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 14px; align-items: baseline; }
.tag { flex: none; min-width: 7.5em; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--accent); }
@media (max-width: 720px) { .panel-list { grid-template-columns: 1fr; } .panel-list li { flex-direction: column; gap: 4px; } }

/* ------------------------------------------------------------ preço e indicação */

.pricing { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 100px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.price-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.amount { font-family: var(--serif); font-size: clamp(4.4rem, 10vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; color: var(--ink); font-variant-numeric: lining-nums; }
.amount .currency { font-size: 0.34em; vertical-align: 1.35em; margin-right: 6px; letter-spacing: 0; color: var(--muted); }
.amount .per { font-size: 0.26em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.trial { color: var(--ink-2); max-width: 30em; }
.referral { padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); background: var(--accent-soft); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.referral p { color: var(--ink-2); max-width: 30em; }
.dots { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; max-width: 340px; }
.dots li { aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.dots li.on { background: var(--accent); border-color: var(--accent); }
@media (max-width: 880px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ cadastro */

.signup { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.signup-intro { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.signup-intro > p:not(.hand) { color: var(--ink-2); max-width: 28em; }
.signup-intro .hand { margin-top: 18px; }
.after { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 12px; }
.after li { counter-increment: passo; display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.after li::before { content: counter(passo); flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 13px var(--sans); color: var(--accent); border: 1.5px solid currentColor; font-variant-numeric: tabular-nums; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.step { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--line) 60%, var(--muted)); background: var(--bg); color: var(--ink);
  font: 400 17px var(--sans); caret-color: var(--accent);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form input[aria-invalid="true"] { border-color: var(--risk); }
.form input[name="codigo"] { font: 600 28px/1 var(--sans); letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400 !important; color: var(--ink-2) !important; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.progress { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: step; }
.progress li { flex: 1; display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); counter-increment: step; }
.progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.progress li.on { color: var(--accent-strong); }
.progress li.on::before, .progress li.done::before { background: var(--accent); }
.reassure { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-soft);
  color: var(--accent-strong); font-size: 15px; }
.reassure strong { font-size: 17px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.hint.center { text-align: center; }
.bait { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-strong); font-size: 15px; }
.docs { display: grid; gap: 8px; }
.docs details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.docs summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.docs .doc-body { max-height: 260px; overflow: auto; padding: 0 14px 14px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--risk-soft); color: var(--risk); font-size: 15px; }
.form-status { margin-top: 12px; color: var(--muted); font-size: 14px; min-height: 1.2em; }
@media (max-width: 880px) { .signup { grid-template-columns: minmax(0, 1fr); } .signup-intro { position: static; } }

/* ------------------------------------------------------------ perguntas e rodapé */

.faq { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(64px, 9vw, 120px); }
.faq h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 22px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

.foot { border-top: 1px solid var(--line); padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--muted); font-size: 14px; }
.small-mark { font-size: 1.2rem; }
.foot a { margin-left: auto; }
@media (max-width: 560px) { .foot a { margin-left: 0; } }
.signup, .pricing, .does { scroll-margin-top: 84px; }

.terms { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 64px; display: grid; gap: 18px; }
.terms h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); margin: 0; }
.terms .doc-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.terms .doc-page h2 { margin: 0 0 4px; font-family: var(--serif); }
.terms .doc-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
