/* Lexpresso — site estático. Cores iguais às do app (Theme.swift). Sem fontes nem scripts de terceiros. */

:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --sunken: #f1eee6;
  --ink: #121821;
  --muted: #566173;
  --line: #e3ded2;
  --focal: #c8284a;
  --focal-soft: rgba(200, 40, 74, 0.10);
  --night: #121821;
  --night-ink: #e4e9f0;
  --night-muted: #8c97a7;
  --radius: 18px;
  --wide: 1040px;
  --narrow: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1217;
    --surface: #161b22;
    --sunken: #1d232c;
    --ink: #e4e9f0;
    --muted: #8c97a7;
    --line: #2b333e;
    --focal: #ff5b79;
    --focal-soft: rgba(255, 91, 121, 0.14);
    --night: #161b22;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--focal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focal); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--narrow); }

/* Topo */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Abertura */
.hero { padding-top: 40px; padding-bottom: 56px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; padding-bottom: 80px; } }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--focal); margin: 0 0 12px; }
h1 { font-size: clamp(36px, 7vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 16px;
}
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focal); }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Demonstração da leitura dinâmica */
.stage {
  margin: 0;
  background: var(--night); color: var(--night-ink);
  border-radius: 28px; padding: 28px 24px 22px;
  box-shadow: 0 30px 60px -30px rgba(18, 24, 33, 0.45);
}
.stage-label { font-size: 13px; color: var(--night-muted); display: flex; justify-content: space-between; margin-bottom: 18px; }
.rsvp {
  position: relative; height: 120px; display: flex; align-items: center; justify-content: center;
  border-top: 1px solid rgba(228, 233, 240, 0.12); border-bottom: 1px solid rgba(228, 233, 240, 0.12);
  font-size: clamp(34px, 6vw, 44px); font-weight: 600; letter-spacing: -0.01em;
  font-variant-ligatures: none; white-space: pre;
}
.rsvp::before, .rsvp::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 14px; background: #ff5b79; transform: translateX(-1px);
}
.rsvp::before { top: 0; }
.rsvp::after { bottom: 0; }
.rsvp .word { display: grid; grid-template-columns: 1fr auto 1fr; width: 100%; }
.rsvp .pre { text-align: right; }
.rsvp .orp { color: #ff5b79; }
.rsvp .post { text-align: left; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; color: var(--night-muted); }
.stage button {
  font: inherit; font-size: 13px; color: var(--night-ink); background: rgba(228, 233, 240, 0.1);
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}

/* Seções */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 38em; }

.modes { display: grid; gap: 16px; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--focal); background: var(--focal-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px; }

.facts { display: grid; gap: 28px 40px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact h3 { margin: 0 0 6px; font-size: 18px; }
.fact p { margin: 0; color: var(--muted); font-size: 16px; }

.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.plan li + li { margin-top: 6px; }
.plan.plus { border-color: var(--focal); box-shadow: 0 0 0 1px var(--focal) inset; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Páginas de texto */
.doc { padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--focal); border-radius: 12px; padding: 18px 20px; margin: 0 0 36px; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.lang { font-size: 14px; margin: 0 0 20px; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--focal); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin: 10px 0 0; color: var(--muted); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 36px; }
.contact p { margin: 0; }
.contact .mail { font-size: 20px; font-weight: 600; }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
