/* ============================================================
   GoParking — base: tokens, tipografia, componentes e navegação
   ============================================================ */

/* ---------- Reset e tokens ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --pine: #0B3B35;
  --pine-deep: #072B27;
  --pine-soft: #14554C;
  --mint: #12A87E;
  --mint-bright: #22C79A;
  --mint-tint: #E7F6F0;
  --lime: #D9F26B;
  --lime-deep: #C7E84B;
  --sand: #F5F2E9;
  --cream: #FBFAF6;
  --white: #FFFFFF;
  --ink: #11211E;
  --ink-soft: #465853;
  --ink-mute: #64716D;
  --line: #E2DFD4;
  --line-soft: #EDEBE3;
  --amber: #F2B544;
  --red: #D9534F;
  --red-tint: #FCEDEC;
  --shadow-xs: 0 1px 2px rgba(17, 33, 30, .06);
  --shadow-sm: 0 4px 14px -6px rgba(17, 33, 30, .16);
  --shadow-md: 0 18px 40px -22px rgba(17, 33, 30, .32);
  --shadow-lg: 0 36px 80px -38px rgba(7, 43, 39, .45);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --container: 1200px;
  --header-h: 76px;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .32, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-modal,
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
::selection { background: var(--lime); color: var(--pine-deep); }

:focus-visible {
  outline: 3px solid rgba(18, 168, 126, .45);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-xs { width: 15px; height: 15px; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 26px; height: 26px; }
.icon.is-filled { fill: currentColor; stroke: currentColor; }
.icon.is-muted { opacity: .24; }

/* ---------- Layout e tipografia ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 56px);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pine-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
}
.eyebrow--pill {
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: none;
  font-size: .78rem;
  color: var(--pine);
}
.eyebrow--pill::before { width: 7px; height: 7px; background: var(--mint); }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.display {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.display em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.display em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: .05em;
  height: .22em;
  border-radius: 999px;
  background: var(--lime);
}
.display .accent { color: var(--mint); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  margin-top: 12px;
}
.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 560px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center p { margin-inline: auto; }

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.text-center { text-align: center; }
.strong { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.full { width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--pine);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--pine); color: var(--white); box-shadow: 0 10px 22px -16px rgba(7, 43, 39, .9); }
.btn-primary:hover { background: var(--pine-soft); }
.btn-danger { background: var(--red); color: var(--white); box-shadow: 0 10px 22px -16px rgba(217, 83, 79, .9); }
.btn-danger:hover { background: #c74743; }
.btn-accent { background: var(--lime); color: var(--pine-deep); }
.btn-accent:hover { background: var(--lime-deep); }
.btn-outline { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-outline:hover { border-color: var(--pine); background: rgba(11, 59, 53, .04); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(11, 59, 53, .06); }
.btn-white { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--sand); }
.btn-dark { background: var(--pine-deep); color: var(--white); }
.btn-sm { height: 40px; padding: 0 17px; font-size: .86rem; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .45;
  pointer-events: none;
  transform: none;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  color: var(--pine);
  font-size: .92rem;
}
.btn-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.btn-link:hover .icon { transform: translateX(3px); }

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--sand); border-color: var(--ink-mute); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label,
.field-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23465853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}
.field textarea {
  height: auto;
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA5A1; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(18, 168, 126, .12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: 1.4fr .8fr .8fr; }
.field-hint { font-size: .76rem; color: var(--ink-mute); }
.field-error { font-size: .76rem; color: var(--red); font-weight: 500; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.form-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  color: var(--ink-mute);
  line-height: 1.45;
}
.form-note .icon { width: 14px; height: 14px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.4;
}
.check input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: none;
  margin: 1px 0 0;
  border: 1.5px solid #C8CEC9;
  border-radius: 5px;
  background: var(--white);
  transition: background .15s, border-color .15s;
}
.check input:checked {
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5.5 5.5L20 6.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--pine);
}
.check input:focus-visible { outline: 3px solid rgba(18, 168, 126, .35); outline-offset: 2px; }

/* ---------- Badges, status, avatares e estrelas ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mint-tint);
  color: var(--pine-soft);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill--lime { background: var(--lime); color: var(--pine-deep); }
.pill--sand { background: var(--sand); color: var(--ink-soft); }
.pill--outline { background: transparent; border: 1px solid var(--line); }
.pill .icon { width: 14px; height: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--confirmada { background: var(--mint-tint); color: #087056; }
.status--pendente { background: #FFF4DC; color: #9A6100; }
.status--concluida { background: #EEF0F0; color: #53605D; }
.status--cancelada { background: var(--red-tint); color: #A83A36; }

.avatar {
  width: 46px;
  height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint-tint);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 34px; height: 34px; font-size: .72rem; }
.avatar--lg { width: 60px; height: 60px; font-size: 1.05rem; }
.avatar--initials { background: var(--mint-tint); color: var(--pine-soft); }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--amber); }
.stars .icon { width: 13px; height: 13px; }
.stars .icon.is-muted { color: var(--line); opacity: 1; }

.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  font-weight: 600;
}
.rating-inline .icon { width: 14px; height: 14px; color: var(--amber); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 246, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 246, .96);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 30px -28px rgba(17, 33, 30, .5);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--pine);
}
.logo-word span { color: #0E8F6C; }
.logo--inverse .logo-word { color: var(--white); }
.logo--inverse .logo-word span { color: var(--lime); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .18s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--pine); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--mint);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.user-menu { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
}
.user-chip-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 254px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 70;
}
.user-dropdown-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.user-dropdown-head > div { min-width: 0; display: flex; flex-direction: column; }
.user-dropdown-head strong { font-size: .88rem; }
.user-dropdown-head span:not(.avatar) { font-size: .74rem; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; }
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: .85rem;
  text-align: left;
  color: var(--ink-soft);
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--sand); color: var(--ink); }
.user-dropdown .icon { width: 17px; height: 17px; }

/* ---------- Menu móvel ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 43, 39, .46);
  backdrop-filter: blur(3px);
}
.mobile-drawer {
  position: fixed;
  z-index: 100;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--cream);
  box-shadow: -30px 0 80px -40px rgba(7, 43, 39, .5);
  animation: drawer-in .3s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(28px); opacity: .6; } to { transform: none; opacity: 1; } }
.mobile-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem;
  font-weight: 600;
}
.mobile-nav a .icon:first-child { color: var(--mint); }
.mobile-nav a .icon:last-child { margin-left: auto; color: var(--ink-mute); width: 17px; }
.mobile-drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.mobile-drawer-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--ink-mute);
}
.mobile-drawer-foot .icon { width: 16px; height: 16px; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--pine-deep);
  color: rgba(255, 255, 255, .66);
  padding: 74px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.25fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 18px; max-width: 290px; font-size: .9rem; line-height: 1.65; }
.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .34); }
.socials .icon { width: 17px; height: 17px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h3,
.footer-news h3 {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-col a { font-size: .88rem; transition: color .18s; }
.footer-col a:hover { color: var(--lime); }
.footer-news p { font-size: .86rem; line-height: 1.6; margin-bottom: 16px; }
.newsletter {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.newsletter input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: .85rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .42); }
.newsletter input:focus { outline: none; }
.newsletter .btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.newsletter .btn .icon { width: 17px; height: 17px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: .72rem;
  color: rgba(255, 255, 255, .62);
}
.footer-badge .icon { width: 14px; height: 14px; }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .76rem;
  color: rgba(255, 255, 255, .62);
}
.footer-made { margin-left: auto; }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--white); }

/* ---------- Modais ---------- */
dialog.modal {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
dialog.modal::backdrop {
  background: rgba(6, 31, 28, .58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
dialog.modal[open] { animation: modal-in .26s var(--ease); }
@keyframes modal-in { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-panel {
  position: relative;
  padding: 36px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-panel--sm { max-width: 480px; margin-inline: auto; }
dialog.modal--lg { width: min(720px, calc(100% - 32px)); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-soft);
}
.modal-close:hover { background: var(--sand); }
.modal-close .icon { width: 17px; height: 17px; }
.modal-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.mini-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--pine);
  color: var(--lime);
}
.mini-mark .icon { width: 17px; height: 17px; }
.modal-panel h2 { font-size: 1.72rem; line-height: 1.15; }
.modal-lead { margin: 10px 0 24px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Autenticação (entrar / criar conta) ---------- */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.auth-tab {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }
.auth-tab:focus-visible { outline: 3px solid rgba(18, 168, 126, .35); outline-offset: 2px; }

.auth-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-role {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.auth-role input { position: absolute; opacity: 0; pointer-events: none; }
.auth-role-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--pine-soft);
}
.auth-role-icon .icon { width: 17px; height: 17px; }
.auth-role strong { display: block; font-size: .84rem; line-height: 1.2; }
.auth-role small { display: block; margin-top: 2px; font-size: .7rem; color: var(--ink-mute); }
.auth-role:has(input:checked) {
  border-color: var(--pine);
  background: var(--mint-tint);
  box-shadow: 0 0 0 1px var(--pine);
}
.auth-role:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); outline-offset: 2px; }

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--red-tint);
  color: #A83A36;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
}
.auth-inline-link,
.auth-demo-link {
  border: 0;
  background: transparent;
  color: var(--pine);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-inline-link { padding: 0; font-size: inherit; }
.auth-inline-link:hover { color: var(--pine-soft); }
.auth-demo-link {
  align-self: center;
  padding: 2px 4px;
  color: var(--ink-mute);
  font-size: .76rem;
  font-weight: 500;
}
.auth-demo-link:hover { color: var(--ink); }
.auth-switch { text-align: center; font-size: .8rem; color: var(--ink-mute); }

.modal-section-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  margin-bottom: 18px;
}
.modal-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; padding: 4px 0; }
.modal-summary-row span { color: var(--ink-soft); }
.modal-summary-row strong { text-align: right; }
.modal-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  margin-top: 9px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.modal-summary-total strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.03em; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .icon { width: 20px; height: 20px; color: var(--ink-soft); }
.pay-option:has(input:checked) { border-color: var(--pine); background: var(--mint-tint); }
.pay-option:has(input:focus-visible) { outline: 3px solid rgba(18, 168, 126, .3); }

.success-panel { text-align: center; padding: 44px 36px 36px; }
.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint);
}
.success-icon .icon { width: 38px; height: 38px; stroke-width: 2.4; }
.success-panel h2 { font-size: 1.9rem; }
.success-panel p { margin-top: 10px; color: var(--ink-soft); font-size: .92rem; }
.success-code {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 0 24px;
  padding: 12px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
}
.success-code span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); }
.success-code strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .08em; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(370px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 14px 15px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .25s;
  overflow: hidden;
  pointer-events: auto;
}
.toast.is-visible { transform: none; opacity: 1; }
.toast-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint);
}
.toast-icon .icon { width: 17px; height: 17px; }
.toast--error .toast-icon { background: var(--red-tint); color: var(--red); }
.toast-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; }
.toast-copy strong { font-size: .85rem; font-weight: 600; }
.toast-copy span { font-size: .76rem; color: var(--ink-mute); }
.toast-close {
  margin-left: auto;
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-mute);
}
.toast-close:hover { background: var(--sand); }
.toast-close .icon { width: 14px; height: 14px; }
.toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--mint);
  transform-origin: left;
  animation: toast-timer 4.2s linear forwards;
}
.toast--error .toast-timer { background: var(--red); }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Utilidades de estado ---------- */
.empty-state {
  padding: 54px 28px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-tint);
  color: var(--mint);
}
.empty-state-icon .icon { width: 28px; height: 28px; }
.empty-state h3 { font-size: 1.2rem; }
.empty-state p { margin: 8px auto 20px; max-width: 380px; color: var(--ink-soft); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo base ---------- */
@media (max-width: 1120px) {
  .main-nav { gap: 18px; }
  .nav-link { font-size: .84rem; }
  .header-inner { gap: 22px; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { gap: 6px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; row-gap: 10px; }
  .footer-made { margin-left: 0; }
  .modal-panel { padding: 28px 22px; }
  .display { font-size: clamp(2.3rem, 9vw, 3rem); }
  .field-row { grid-template-columns: 1fr; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .header-signup { display: none; }
}

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .logo-word { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-news { grid-column: auto; }
  .toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .modal-panel { padding: 26px 18px; }
  .pay-options { grid-template-columns: 1fr; }
  .auth-roles { grid-template-columns: 1fr; }
}
