/* Landing v0. Mesmo vocabulário visual do app: papel de planta com grade de pontos, azul de destaque.
   Tema: segue o sistema; o botão grava a escolha em data-theme (ver site.js). */
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#e9edf2, #0e141b);
  --dot: light-dark(#c3ccd8, #232d3a);
  --surface: light-dark(#ffffff, #18212c);
  --surface2: light-dark(#f3f5f9, #1f2a37);
  --ink: light-dark(#131b26, #e8edf4);
  --ink2: light-dark(#4a566c, #a3b0c4);
  --line: light-dark(#cbd3de, #2e3a4a);
  --accent: light-dark(#2447f9, #8ea0ff);
  --accent-soft: light-dark(#e2e8ff, #1d2750);
  --on-accent: light-dark(#ffffff, #0e141b);
  --ok: light-dark(#1f7a45, #5cc98a);
  --warn: light-dark(#8a6400, #e8bc3a);
  --crit: light-dark(#c0213f, #ff6b85);
  --shadow: 0 1px 2px light-dark(rgb(19 27 38 / 0.06), rgb(0 0 0 / 0.3)),
    0 12px 32px light-dark(rgb(19 27 38 / 0.1), rgb(0 0 0 / 0.35));
  --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 72rem;
  --radius: 14px;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

/* Capturas: uma por tema. */
.only-dark { display: none; }
:root[data-theme='dark'] .only-dark { display: block; }
:root[data-theme='dark'] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark { display: block; }
  :root:not([data-theme='light']) .only-light { display: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Topo */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font: 700 1.125rem/1 var(--display); color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand svg { flex: none; }
.top nav { display: flex; align-items: center; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem;
  padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 0.9375rem var(--body);
  text-decoration: none; cursor: pointer;
}
.pill:hover { border-color: var(--accent); }
.theme-toggle[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }

/* Seções */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px dashed var(--line); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 750; max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 650; }
.kicker {
  display: inline-block; margin: 0 0 1rem; font: 600 0.8125rem/1 var(--body);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--ink2); max-width: 40rem; margin: 1.25rem 0 0; }
.muted { color: var(--ink2); }

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); border-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0 1.4rem; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font: 600 1rem var(--body);
  text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.status-note { font-size: 0.9375rem; color: var(--ink2); }

.shot {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 0.75rem 1rem; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--ink2); background: var(--surface2);
}
.hero .shot { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* Problema */
.symptoms { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.symptoms li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.4rem; border-left: 4px solid var(--crit);
}
.symptoms li p { margin: 0.5rem 0 0; color: var(--ink2); }

/* O que o app mostra */
/* Captura em largura total, abaixo do texto: um print do app lado a lado fica ilegível. */
.feature { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.feature .copy { max-width: 52rem; }
.feature .copy p { color: var(--ink2); margin: 0.75rem 0 0; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem 2rem; }
@media (min-width: 48rem) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 1.6rem; color: var(--ink2); }
.checks li::before {
  content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.6rem;
  border-radius: 3px; background: var(--warn);
}

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font: 700 1rem var(--display); margin-bottom: 0.9rem;
}
.steps li p { margin: 0.5rem 0 0; color: var(--ink2); }

/* Já existe / em breve */
.status-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .status-grid { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel.later { background: transparent; border-style: dashed; }
.panel h3 { display: flex; align-items: center; gap: 0.6rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ok); flex: none; }
.later .dot { background: transparent; border: 2px solid var(--ink2); }
.panel ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.panel li { color: var(--ink2); }
.panel li strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.75rem; max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; min-height: 3rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.4rem/1 var(--display); color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--ink2); }

/* Interesse */
.interest-box {
  margin-top: 2rem; max-width: 40rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.interest-box label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.field { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field input {
  flex: 1 1 14rem; min-height: 3rem; padding: 0 0.9rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font: inherit;
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.not-wired {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.75rem 0.9rem;
  border-radius: 10px; background: var(--accent-soft); font-size: 0.9375rem;
}
.not-wired strong { white-space: nowrap; }
.feedback { min-height: 1.6em; margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--ink2); }

footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); color: var(--ink2); font-size: 0.9375rem; }
footer p { margin: 0.25rem 0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .top .brand span { font-size: 1rem; }
  .pill { padding: 0 0.7rem; }
  .theme-toggle .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
