:root {
  --orange: #f48231;
  --orange-2: #f68b20;
  --orange-soft: rgba(244, 130, 49, .12);
  --amber: #ffbc7d;
  --bg: #0b0b0b;
  --bg-2: #141516;
  --card: #1b1c1d;
  --card-2: #242627;
  --line: #2f3133;
  --text: #ffffff;
  --muted: #a4a9ab;
  --dim: #5f6567;
  --ok: #3ecf8e;
  --danger: #ff5c5c;
  --radius: 14px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 11, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.topbar__logo img { height: 46px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  border-radius: 999px; border: 2px solid transparent;
  padding: 13px 26px; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #111; }
.btn--primary:hover { background: var(--orange-2); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn--ghost:hover { background: var(--orange); color: #111; }
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(244, 130, 49, .28), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(244, 130, 49, .12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero__content { position: relative; max-width: 820px; margin-left: max(20px, calc((100% - 1140px) / 2)); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #d7dadb; margin: 22px 0 34px; max-width: 680px; }
.lead strong { color: var(--amber); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.steps li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.steps span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange); font-weight: 800; font-size: 14px;
}

/* ---------- Agenda ---------- */
.agenda { padding: 72px 0 96px; }
.agenda__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.agenda h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase; }
.agenda h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--orange); margin-top: 14px; border-radius: 2px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--livre { background: var(--orange); }
.dot--pre { background: transparent; border: 2px dashed var(--amber); }
.dot--off { background: var(--dim); }

.tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 22px; cursor: pointer; text-align: left;
  transition: all .15s ease;
}
.tab small { display: block; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; margin-top: 2px; }
.tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #111; }
.tab:hover:not([aria-selected="true"]) { border-color: var(--orange); color: var(--text); }

.period { margin: 0 0 12px; font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 36px; }

.slot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 132px; padding: 18px; text-align: left;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.slot__time { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.slot__theme { font-size: 14px; color: #cfd3d4; line-height: 1.35; }
.slot__status {
  margin-top: auto; font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.slot--livre .slot__status { background: var(--orange-soft); color: var(--orange); }
.slot--livre:hover, .slot--livre:focus-visible {
  border-color: var(--orange); transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(244, 130, 49, .55); outline: none;
}
.slot--pre_reservado { cursor: not-allowed; border-style: dashed; border-color: rgba(255, 188, 125, .45); background: var(--bg-2); }
.slot--pre_reservado .slot__time { color: var(--amber); }
.slot--pre_reservado .slot__status { background: rgba(255, 188, 125, .12); color: var(--amber); }
.slot--indisponivel { cursor: not-allowed; background: var(--bg-2); opacity: .55; }
.slot--indisponivel .slot__time { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.slot--indisponivel .slot__status { background: #1f2021; color: var(--dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 34px; width: auto; }
.footer p { margin: 0; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.modal__card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--orange); border-radius: 18px; padding: 30px 28px 24px;
}
.modal__card h3 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.modal__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.modal__close:hover { background: var(--card-2); color: var(--text); }
.modal__card--success { text-align: center; padding: 44px 28px 32px; }
.modal__card--success p { color: #d7dadb; margin: 0 0 24px; }
.check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px; font-weight: 800;
  background: var(--orange); color: #111;
}

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #d7dadb; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 130, 49, .2); }
.field.invalid input { border-color: var(--danger); }
.err { display: block; color: var(--danger); font-size: 12.5px; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-msg { color: var(--danger); font-size: 14px; margin: 4px 0 12px; }
.form-msg:empty { display: none; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }
.fine strong { color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar__inner { height: 64px; }
  .topbar__logo img { height: 38px; }
  .hero { padding: 64px 0 56px; }
  .hero__content { margin-left: 0; }
  .row { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .slot { min-height: 116px; padding: 14px; }
  .slot__time { font-size: 23px; }
  .tab { flex: 1; padding: 12px 14px; }
  .modal__card { padding: 26px 18px 20px; }
}

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