/* MatchLar landing — tokens from assets/design-tokens.css (docs/brand-guidelines.md) */

:root {
  --ml-noite: #16213A;
  --ml-noite-dark: #0E1422;
  --ml-noite-light: #24345A;
  --ml-luz: #FFB23F;
  --ml-luz-dark: #9A5D00;
  --ml-brasa: #F2663B;
  --ml-jardim: #3F6B55;
  --ml-jardim-light: #86B39A;
  --ml-cal: #F3F4F1;

  --color-bg: #F3F4F1;
  --color-surface: #FFFFFF;
  --color-sunken: #E9EBE5;
  --color-border: #DADDD5;
  --color-text: #16213A;
  --color-text-muted: #5A6378;
  --color-primary: var(--ml-noite);
  --color-on-primary: #FFFFFF;
  --color-accent: var(--ml-luz);
  --color-on-accent: var(--ml-noite);
  --color-accent-text: var(--ml-luz-dark);
  --color-secondary: var(--ml-jardim);
  --color-secondary-soft: #E1EBE4;
  --color-error: #C23B3B;
  --color-focus: var(--ml-noite);
  --gradient-ai: linear-gradient(120deg, var(--ml-luz) 0%, var(--ml-brasa) 100%);

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --radius-control: 14px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 2px rgb(22 33 58 / 0.06), 0 8px 24px rgb(22 33 58 / 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 200ms;
  --duration-match: 400ms;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0E1422;
    --color-surface: #161E30;
    --color-sunken: #0A0F1A;
    --color-border: #2A3550;
    --color-text: #EEF0F4;
    --color-text-muted: #9AA3B8;
    --color-primary: #EEF0F4;
    --color-on-primary: #0E1422;
    --color-accent-text: var(--ml-luz);
    --color-secondary: var(--ml-jardim-light);
    --color-secondary-soft: #1D2F2A;
    --color-error: #FF7A7A;
    --color-focus: var(--ml-luz);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #0E1422;
  --color-surface: #161E30;
  --color-sunken: #0A0F1A;
  --color-border: #2A3550;
  --color-text: #EEF0F4;
  --color-text-muted: #9AA3B8;
  --color-primary: #EEF0F4;
  --color-on-primary: #0E1422;
  --color-accent-text: var(--ml-luz);
  --color-secondary: var(--ml-jardim-light);
  --color-secondary-soft: #1D2F2A;
  --color-error: #FF7A7A;
  --color-focus: var(--ml-luz);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; --duration-match: 0ms; }
  html { scroll-behavior: auto !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 700 clamp(26px, 3.2vw, 32px)/1.15 var(--font-display); letter-spacing: -0.02em; }
h3 { font: 700 clamp(18px, 2vw, 20px)/1.3 var(--font-body); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.muted { color: var(--color-text-muted); }
.small { font-size: 14px; line-height: 1.45; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ml-noite); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow, .label {
  font: 600 12px/1.3 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0 0 12px;
}
.eyebrow { color: var(--color-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-control);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--ml-luz); color: var(--ml-noite); }
.btn-primary:hover { background: #FFC061; }
.btn-solid { background: var(--color-primary); color: var(--color-on-primary); }
.btn-solid:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-text-muted); }
.btn-solid-invert { background: var(--ml-cal); color: var(--ml-noite); }
.btn-solid-invert:hover { background: #fff; }
.btn-text { color: var(--color-text); padding-inline: 8px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--color-text); }
.wordmark { font: 800 24px/1 var(--font-display); letter-spacing: -0.03em; }
.wordmark span { color: var(--color-accent-text); }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--color-text-muted); }
.main-nav a:hover { color: var(--color-text); background: var(--color-sunken); }
.header-row > .btn { margin-left: auto; }
@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-row > .btn { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: start; }
.display {
  font: 800 clamp(40px, 6.4vw, 72px)/1.0 var(--font-display);
  letter-spacing: -0.035em; margin-bottom: 24px;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 36em; color: var(--color-text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: 14px; color: var(--color-text-muted); max-width: 32em; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .hero-copy { padding-top: 24px; }
}

/* Demo panel */
.demo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sheet);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-title { font: 700 18px/1.3 var(--font-body); }
.demo-flag {
  font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius-pill); border: 1px dashed var(--color-text-muted); color: var(--color-text-muted);
}
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.45 var(--font-body); color: var(--color-text);
  background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-control);
  padding: 12px 14px; resize: vertical;
  transition: border-color var(--duration) var(--ease);
}
.field textarea { font-size: 17px; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 25%, transparent); }
.field textarea::placeholder { color: var(--color-text-muted); opacity: 1; transition: opacity 250ms var(--ease); }
.field textarea.is-swapping::placeholder { opacity: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip {
  font: 500 14px/1 var(--font-body); color: var(--color-text);
  background: transparent; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
  padding: 9px 14px; min-height: 36px; cursor: pointer;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.chip:hover { border-color: var(--color-secondary); }
.chip[aria-pressed="true"] { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-bg); }

/* "IA trabalhando": the only place the Luz→Brasa gradient appears */
.ai-bar { height: 3px; border-radius: 3px; overflow: hidden; background: transparent; margin-bottom: 12px; }
.ai-bar span { display: block; height: 100%; width: 40%; background: var(--gradient-ai); border-radius: 3px; transform: translateX(-110%); opacity: 0; }
.demo.is-thinking .ai-bar span { opacity: 1; animation: ai-sweep 700ms var(--ease) infinite; }
@keyframes ai-sweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

.result {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden;
  background: var(--color-surface);
  transition: opacity var(--duration) var(--ease);
}
.demo.is-thinking .result { opacity: .72; }
.result-art { background: var(--ml-noite); aspect-ratio: 5 / 2; }
.result-art { position: relative; }
.result-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.result-art .lit { fill: #2A3550; transition: fill var(--duration-match) var(--ease); }
.result.is-lit .result-art .lit { fill: var(--ml-luz); }
.result-art .glow { opacity: 0; transition: opacity var(--duration-match) var(--ease); }
.result.is-lit .result-art .glow { opacity: 1; }
.result-body { padding: 16px 18px 18px; min-width: 0; }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.result-type { font-size: 14px; color: var(--color-text-muted); margin-bottom: 2px; }
.result-price { font: 700 26px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.result-facts { font-size: 13px; color: var(--color-text-muted); margin: 8px 0 14px; }
.result-why-label { font: 600 12px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 8px; }
.ring {
  --score: 90;
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--color-surface) 76%, transparent 78%),
    conic-gradient(var(--ml-luz) calc(var(--score) * 1%), var(--color-sunken) 0);
}
.ring span { font: 500 18px/1 var(--font-mono); }
.ring span::after { content: '%'; font-size: 11px; margin-left: 1px; color: var(--color-text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font: 500 14px/1.2 var(--font-body); padding: 6px 11px; border-radius: var(--radius-pill);
  background: var(--color-secondary-soft); color: var(--color-secondary);
}
.tags-out li { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.result-avoid { font-size: 14px; color: var(--color-text-muted); margin: 10px 0 0; }
.result-avoid s { text-decoration-thickness: 1.5px; }
.result-source { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.link-fake { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: default; }
.demo-disclaimer { font-size: 13px; color: var(--color-text-muted); margin: 12px 2px 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-sunken { background: var(--color-sunken); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 + p { margin-top: 12px; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head-row > div { max-width: 34em; }

/* Steps */
.steps { display: grid; gap: 0; counter-reset: none; }
.step { padding: 24px 0; border-top: 1px solid var(--color-border); display: grid; gap: 8px; }
.step:last-child { border-bottom: 1px solid var(--color-border); }
.step-n { font-size: 14px; color: var(--color-accent-text); }
.step p { color: var(--color-text-muted); max-width: 34em; }
.step h3 { font: 700 clamp(22px, 2.4vw, 26px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.step-sample { margin-top: 6px; color: var(--color-text) !important; font-size: 14px; }
.step-sample.quote { font: 500 17px/1.4 var(--font-display); letter-spacing: -0.01em; }
.step-sample.mono { font-size: 13px; line-height: 1.6; }
.step-sample strong { color: var(--color-accent-text); }
.pill { display: inline-block; font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-border); margin: 0 4px 6px 0; }
@media (min-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr 1.25fr; gap: 40px; }
  .step, .step:last-child { border-bottom: 0; padding-top: 28px; align-content: start; }
}

/* Vibe */
.vibe-grid { display: grid; gap: 40px; }
.vibe-copy p { color: var(--color-text-muted); max-width: 34em; }
.vibe-copy h2 { margin-bottom: 20px; }
.converge { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.phrases { display: grid; gap: 10px; }
.phrases li {
  font: 600 16px/1.35 var(--font-display); letter-spacing: -0.01em;
  background: var(--color-surface); border: 1px solid var(--color-border); padding: 12px 16px;
  border-radius: 18px 18px 18px 4px; max-width: 30em;
}
.phrases li:nth-child(2) { margin-left: 16px; }
.phrases li:nth-child(3) { margin-left: 6px; }
.converge-lines { display: none; color: var(--color-text-muted); }
.mini-list { display: grid; gap: 0; background: var(--color-surface); border-radius: var(--radius-card); border: 1px solid var(--color-border); padding: 4px 16px; }
.mini-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-weight: 600; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list small { display: block; font-weight: 500; font-size: 13px; color: var(--color-secondary); margin-top: 2px; }
.score { font-size: 15px; min-width: 2.6em; height: 2.6em; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ml-luz); flex: none; }
.exclude { border-top: 1px solid var(--color-border); padding-top: 32px; }
.exclude h3 { font: 700 clamp(22px, 2.4vw, 26px)/1.2 var(--font-display); letter-spacing: -0.01em; margin-bottom: 14px; }
.exclude-input { font: 600 18px/1.4 var(--font-display); }
.exclude-input mark { background: transparent; color: inherit; box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--ml-luz) 45%, transparent); }
.exclude-cols { display: grid; gap: 20px; margin: 20px 0; }
@media (min-width: 560px) { .exclude-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .vibe-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 64px; row-gap: 56px; }
  .converge { grid-template-columns: minmax(0, 1.2fr) 44px minmax(0, 1fr); align-items: center; gap: 0; }
  .converge-lines { display: block; width: 44px; height: 180px; }
  .exclude { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 64px; }
  .exclude h3, .exclude-input { grid-column: 1; }
  .exclude-cols { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .exclude > .muted { grid-column: 1; }
}

/* ---------- Farol (always night) ---------- */
.farol {
  --color-focus: var(--ml-luz);
  background: var(--ml-noite);
  color: #EEF0F4;
  padding: clamp(56px, 9vw, 112px) 0 0;
  overflow: hidden;
}
.farol-grid { display: grid; gap: 32px; }
.farol-copy { max-width: 36em; }
.farol h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; margin-bottom: 20px; }
.farol p { color: #C4CAD8; }
.eyebrow-luz { color: var(--ml-luz); }
.farol-points { display: grid; gap: 10px; margin-top: 20px; color: #C4CAD8; }
.farol-points li { padding-left: 22px; position: relative; }
.farol-points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #9AA3B8; }
.farol-points strong { color: #EEF0F4; }
.farol-scene { --edge: max(var(--gutter), calc(50vw - var(--maxw) / 2)); position: relative; margin-inline: calc(50% - 50vw); }
.street { width: 100%; height: clamp(220px, 34vw, 340px); }
.street .b { fill: #121A2B; stroke: #3A4A6E; stroke-width: 2; stroke-linejoin: round; }
.street .w { fill: #1B2438; }
.street .d { fill: #1B2438; }
.street .s { fill: #9AA3B8; opacity: .5; }
.street .ground { stroke: #3A4A6E; stroke-width: 2; }
.street .beam { opacity: 0; }
/* final (static) state: the one window is lit */
.street .alvo { fill: var(--ml-luz); }
.street .halo { opacity: 1; }
.farol-log { position: absolute; left: var(--edge); top: 8px; display: grid; gap: 4px; font-size: 12px; color: #9AA3B8; }
.notif {
  position: absolute; right: var(--edge); bottom: 20px; max-width: min(320px, calc(100% - var(--gutter) * 2));
  display: flex; gap: 12px; align-items: flex-start;
  background: rgb(22 30 48 / .92); border: 1px solid #2A3550; border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .35);
}
.notif svg { flex: none; margin-top: 2px; }
.notif p { margin: 0; }
.notif-title { font: 600 12px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #9AA3B8 !important; }
.notif-body { font-size: 15px; color: #EEF0F4 !important; line-height: 1.4; }
.notif-body .mono { color: var(--ml-luz); }
.replay {
  position: absolute; left: var(--edge); bottom: 24px;
  background: transparent; color: #C4CAD8; border: 1px solid #3A4A6E; border-radius: var(--radius-pill);
  font: 500 13px/1 var(--font-body); padding: 8px 12px; cursor: pointer;
}
.replay:hover { color: #fff; border-color: #9AA3B8; }
@media (max-width: 559px) {
  .notif { position: relative; right: auto; bottom: auto; margin: -8px var(--gutter) 24px; max-width: none; }
  .farol-log { display: none; }
  .replay { position: static; margin: 0 var(--gutter) 28px; }
}
@media (min-width: 960px) {
  .farol-grid { grid-template-columns: minmax(0, 1fr); }
  .farol-copy { max-width: 40em; }
}

/* armed + playing: the brand's single orchestrated animation */
.farol-scene.is-armed .alvo { fill: #1B2438; }
.farol-scene.is-armed .halo { opacity: 0; }
.farol-scene.is-armed .notif { opacity: 0; transform: translateY(12px); }
.farol-scene.is-playing .beam { animation: beam 2.4s cubic-bezier(.45,.05,.35,1) both; }
.farol-scene.is-playing .alvo { animation: lightup var(--duration-match) var(--ease) 2.1s both; }
.farol-scene.is-playing .halo { animation: fadein 900ms var(--ease) 2.2s both; }
.farol-scene.is-playing .notif { animation: notif 500ms var(--ease) 2.9s both; }
@keyframes beam { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(1380px); } }
@keyframes lightup { from { fill: #1B2438; } to { fill: #FFB23F; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes notif { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .farol-scene.is-armed .alvo, .farol-scene.is-armed .halo, .farol-scene.is-armed .notif { animation: none !important; }
}

/* ---------- Plans ---------- */
.billing { border: 0; padding: 4px; margin: 0; display: inline-flex; background: var(--color-sunken); border-radius: var(--radius-pill); }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--color-text-muted); min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.billing input:checked + label { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-card); }
.billing input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.save { font: 500 12px/1 var(--font-mono); color: var(--color-secondary); }
.plans { display: grid; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-card); position: relative; }
.plan h3 { font: 700 30px/1.1 var(--font-display); letter-spacing: -0.02em; margin-bottom: 14px; }
.plan-tier { font: 600 12px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; opacity: .8; }
.plan-price { margin: 0 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font: 500 30px/1.1 var(--font-mono); letter-spacing: -0.02em; }
.plan-price .unit { font-size: 15px; opacity: .75; }
.plan-sub { font-size: 14px; min-height: 2.9em; opacity: .85; }
.plan-list { display: grid; gap: 10px; align-content: start; margin: 8px 0 28px; flex: 1; }
.plan-list li { padding-left: 26px; position: relative; }
.plan-list li::before { content: ''; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.plan .btn { width: 100%; }
.plan-visita { background: transparent; border: 1.5px dashed var(--color-border); }
.plan-farol { background: var(--color-surface); border: 2px solid var(--ml-luz); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ml-luz) 14%, transparent), var(--shadow-card); }
.plan-farol .plan-list li::before { border-color: var(--color-accent-text); opacity: 1; }
.plan-pro { background: var(--ml-noite); color: #EEF0F4; overflow: hidden; }
.plan-pro::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient-ai); }
.plan-pro { border: 1px solid #2A3550; }
.plans-note { margin-top: 20px; max-width: 48em; }
@media (min-width: 900px) {
  .plans { grid-template-columns: .9fr 1.05fr 1.05fr; }
  .plan-farol { transform: translateY(-8px); }
}

/* ---------- B2B ---------- */
.b2b-grid { display: grid; gap: 40px; }
.b2b-grid h2 { margin-bottom: 16px; }
.b2b-grid > div > p { color: var(--color-text-muted); max-width: 32em; }
.contact-box { margin-top: 28px; padding: 20px; border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-border); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.email { font-size: clamp(16px, 2vw, 20px); user-select: all; -webkit-user-select: all; color: var(--color-text); text-decoration: none; border-bottom: 1.5px solid var(--color-border); overflow-wrap: anywhere; }
.email:hover { border-color: var(--color-text); }
.btn-copy { font: 600 13px/1 var(--font-body); color: var(--color-text); background: transparent; border: 1.5px solid var(--color-border); border-radius: 10px; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.btn-copy:hover { border-color: var(--color-text-muted); }
.promises { display: grid; gap: 0; }
.promises li { padding: 20px 0; border-top: 1px solid var(--color-border); }
.promises li:first-child { border-top: 0; padding-top: 0; }
.promises h3 { margin-bottom: 6px; }
.promises p { color: var(--color-text-muted); margin: 0; }
.url-sample { font-size: 12.5px; margin-top: 10px !important; color: var(--color-text) !important; overflow-wrap: anywhere; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 10px; }
@media (min-width: 900px) {
  .b2b-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .promises { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .promises li, .promises li:first-child { border-top: 1px solid var(--color-border); padding: 20px 0; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 600 17px/1.4 var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform var(--duration) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--color-text-muted); padding: 0 0 20px; max-width: 42em; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 40px 0 48px; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Document pages (bot, privacidade, termos, 404) ---------- */
.doc { padding: clamp(40px, 7vw, 88px) 0; }
.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.doc h1 { font: 700 clamp(32px, 4.6vw, 44px)/1.1 var(--font-display); letter-spacing: -0.025em; margin-bottom: 16px; }
.doc .doc-lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--color-text-muted); margin-bottom: 32px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 26px); margin: 44px 0 12px; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; }
.doc p, .doc li { max-width: 40em; }
.doc ul.bullets, .doc ol.bullets { padding-left: 1.2em; margin: 0 0 1em; }
.doc ul.bullets { list-style: disc; }
.doc ol.bullets { list-style: decimal; }
.doc .bullets li { margin-bottom: 6px; }
.doc .bullets li::marker { color: var(--color-text-muted); }
.doc-meta { font-size: 14px; color: var(--color-text-muted); }
.code {
  font: 500 14px/1.6 var(--font-mono); background: var(--ml-noite-dark); color: #EEF0F4;
  border-radius: var(--radius-control); padding: 16px 18px; overflow-x: auto; margin: 0 0 1em; white-space: pre;
}
.code .c { color: #9AA3B8; }
code { font: 500 .92em/1 var(--font-mono); background: var(--color-sunken); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.ua { display: block; font: 500 clamp(14px, 2vw, 17px)/1.5 var(--font-mono); padding: 14px 16px; border-radius: var(--radius-control); background: var(--color-surface); border: 1px solid var(--color-border); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; margin: 0 0 1em; }
.facts { display: grid; gap: 0; margin: 8px 0 24px; border-top: 1px solid var(--color-border); }
.facts div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--color-text-muted); }
@media (min-width: 640px) { .facts div { grid-template-columns: 200px 1fr; gap: 16px; } }
.toc { margin: 0 0 32px; padding: 16px 20px; border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-border); }
.toc ol { list-style: decimal; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound svg { margin-bottom: 24px; }
