/* Layout: cabeçalho fixo, conteúdo em coluna central; página inicial em duas colunas
   (apresentação + agendamento), painéis em abas com tabelas e fichas. */
:root {
  --bg: #F1F4F1; --surface: #FFFFFF; --ink: #16201B; --muted: #5A6761; --line: #D7DED9;
  --accent: #0D6B59; --accent-ink: #FFFFFF; --soft: #E2EDE8; --sun: #F2B33D; --sun-ink: #3A2A05;
  --danger: #A23B2A; --danger-soft: #F6E4E0; --ok: #1F7A3A; --ok-soft: #E1F1E5;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1513; --surface: #17201C; --ink: #E7EEEA; --muted: #9AA8A1; --line: #2A3531;
    --accent: #4CC3A6; --accent-ink: #05231C; --soft: #1B2D27; --sun: #F2B33D; --sun-ink: #2A1E03;
    --danger: #E58B79; --danger-soft: #3A211C; --ok: #7BD394; --ok-soft: #1A3022;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { padding-block: 28px 80px; }

/* cabeçalho */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; }
.flag { display: inline-flex; gap: 3px; }
.flag i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--accent); }
.flag i + i { background: var(--sun); }
#nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
#nav a, #nav button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; }
#nav a[aria-current="page"] { background: var(--soft); color: var(--accent); }

/* tipografia */
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; font-family: var(--body); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.note { color: var(--muted); font-size: 15px; margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* página inicial */
.home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .home { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.intro { position: sticky; top: 88px; display: grid; gap: 22px; }
@media (max-width: 860px) { .intro { position: static; } }
.hello { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 76px); line-height: .95; letter-spacing: -.03em; margin: 0; }
.hello span { display: block; }
.hello .es { color: var(--accent); }
.hello .pt { color: var(--muted); font-weight: 500; }
.prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prices b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.how { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); font-size: 15px; }
.how li::before { content: counter(how); font-family: var(--mono); font-size: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; }

/* cartões e passos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 24px; min-width: 0; }
@media (max-width: 520px) { .card { padding: 18px; border-radius: 14px; } }
.step { display: grid; gap: 12px; min-width: 0; }
.step h2 { font-size: 19px; display: flex; gap: 10px; align-items: baseline; }
.step h2 small { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.opt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; display: grid; gap: 2px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.opt b { font-weight: 600; }
.opt span { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 64px; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 0; cursor: pointer; display: grid; justify-items: center; }
.day small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.day em { font-style: normal; font-size: 11px; color: var(--muted); }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: inherit; opacity: .85; }
.day:disabled { opacity: .4; cursor: default; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time { font-family: var(--mono); border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 0; cursor: pointer; font-size: 15px; }
.time[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.time:disabled { text-decoration: line-through; color: var(--muted); cursor: default; opacity: .6; }
.ticket { border-radius: 14px; background: var(--soft); padding: 18px; display: grid; gap: 14px; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* formulários */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .inp { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.okmsg { color: var(--ok); font-size: 14px; margin: 0; }
.auth { max-width: 440px; margin: 0 auto; }

/* painéis */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--accent); white-space: nowrap; }
.chip.warn { background: #FCEFD2; color: #7A5300; }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.good { background: var(--ok-soft); color: var(--ok); }
.chip.mute { background: var(--line); color: var(--muted); }
@media (prefers-color-scheme: dark) { .chip.warn { background: #3A2E12; color: #F2C66B; } }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.lesson .when { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.daygroup { display: grid; gap: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; background: var(--bg); border-radius: 10px; padding: 10px; }
.inline-form .field { min-width: 120px; flex: 1; }
.weekwrap { overflow-x: auto; }
.week { border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.week th { font-weight: 600; color: var(--muted); padding: 2px 4px; }
.week th.h { font-family: var(--mono); text-align: right; }
.week td button { width: 44px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 12px; color: var(--muted); }
.week td button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.prose { max-width: 760px; margin: 0 auto; gap: 14px; }
.prose p, .prose li { max-width: 68ch; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose h2 { margin-top: 10px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .pill, .opt, .day, .time, .btn { transition: background-color .15s, border-color .15s, color .15s; } }
