/* System fonts only; no @font-face or remote fonts */
:root {
  --midnight: #f6f9ff;
  --midnight-soft: #e7efff;
  --electric-blue: #1d4ed8;
  --neon-violet: #3b82f6;
  --warm-yellow: #1e40af;
  --mint: #0ea5e9;
  --white-smoke: #0f172a;
  --text-muted: #4b587c;
  --border: rgba(15, 23, 42, 0.12);
  --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--midnight);
  color: var(--white-smoke);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 248, 255, 0.95) 40%, rgba(231, 239, 255, 0.95) 100%),
              radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 55%),
              radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 60%),
              var(--midnight);
}

a {
  color: var(--electric-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding-block: 0.6rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header__brand-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--white-smoke);
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 20% 36% 32% 44%;
  font-size: 1.2rem;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0f2ff 60%, rgba(37, 99, 235, 0.28) 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16), inset 0 0 0 1px rgba(30, 64, 175, 0.32);
  color: #1e3a8a;
}

.brand__icon.is-spinning {
  animation: brand-spin 0.65s ease;
}

.brand__text {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes brand-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--electric-blue);
}

.nav a:hover::after,
.nav a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header__action {
  white-space: nowrap;
}

.header__action--why {
  order: 1;
}

.header__action--login {
  order: 2;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--white-smoke);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: 0;
  cursor: pointer;
}

.btn--primary {
  background-image: var(--gradient);
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: var(--electric-blue);
  padding: 0.7rem 1.4rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.btn--mini {
  background-image: var(--gradient);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.btn--ghost-mini {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: var(--electric-blue);
  padding: 0.45rem 1.05rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn--ghost-mini:hover,
.btn--ghost-mini:focus {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(37, 99, 235, 0.38);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: 0.95;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav__backdrop {
  order: 2;
  flex: 1 1 auto;
  background: rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  order: 1;
  width: min(360px, 86vw);
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.12);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  padding: 2rem 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-nav__logo {
  font-size: 1.75rem;
}

.mobile-nav__title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.mobile-nav__close {
  background: none;
  border: none;
  color: #1e3a8a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus {
  color: var(--electric-blue);
}

.mobile-nav__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mobile-nav__links a {
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 600;
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mobile-nav__lang {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav__lang select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--white-smoke);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.mobile-nav__lang-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.mobile-nav__cta {
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

main.container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero {
  margin-top: 2.5rem;
  padding: 3rem 0 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.hero h1,
.hero h2 {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
  margin: 1rem 0 0.75rem;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 1rem;
}

.hero__caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.hero__card {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.hero__card-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero__wheel-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 17, 22, 0.8);
  font-weight: 700;
}

.hero__wheel-gradient {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-image: var(--gradient);
  position: relative;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.hero__card-note {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: rgba(15, 23, 42, 0.75);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.section {
  margin: 4rem 0;
}

.section--coming-soon {
  margin: 6rem auto;
  padding: 3rem 2.75rem 3.5rem;
  max-width: 760px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.section__header {
  max-width: 620px;
  margin-bottom: 2rem;
}

.section__header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: rgba(15, 23, 42, 0.65);
}

.section--highlight {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.section--outline {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.92);
}

.section--intake {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 2.4rem 2.5rem 2.8rem;
  margin: 0 0 3.5rem;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.12);
}

.coming-soon__body {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.8);
}

.coming-soon__body .btn {
  align-self: center;
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  background-image: var(--gradient);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.25);
}

.coming-soon__body .btn:hover,
.coming-soon__body .btn:focus {
  opacity: 1;
}

main.container > .section--intake:first-of-type {
  margin-top: 0;
}

.intake__header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.intake__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.intake__title {
  margin: 1rem 0 0;
  font-size: clamp(2.6rem, 4.5vw + 1rem, 3.9rem);
  line-height: 1.1;
}

.intake__subtitle {
  margin: 0.75rem 0 0;
  color: rgba(15, 23, 42, 0.65);
  font-size: 1.05rem;
  max-width: 60ch;
}

.section--intake::before {
  content: '';
  position: absolute;
  inset: -35% -20% auto -20%;
  height: 60%;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 60%);
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.65;
}

.intake {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
  z-index: 1;
}

.intake__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intake__label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.intake__textarea-wrap {
  position: relative;
}

.intake__textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  color: var(--white-smoke);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1), 0 18px 45px rgba(15, 23, 42, 0.08);
}

.intake__textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35), 0 22px 48px rgba(37, 99, 235, 0.18);
}

.intake__shadow {
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  background: radial-gradient(circle at 25% 15%, rgba(37, 99, 235, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.intake__hint {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.6);
}

.intake__insights {
  display: grid;
  gap: 1.5rem;
}

.intake-feedback {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
}

.intake-feedback__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.intake-feedback__status {
  margin: 0 0 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.intake-feedback__level {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intake-feedback__score {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.perk-intake__alerts {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.perk-intake__alert {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.perk-intake__alert--success {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(22, 101, 52, 0.22);
  color: #065f46;
}

.perk-intake__alert--error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #7f1d1d;
}

.perk-intake__form {
  display: grid;
  gap: 1.75rem;
}

.perk-intake__grid {
  display: grid;
  gap: 1.4rem;
}

.perk-intake__grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.perk-intake__field {
  display: grid;
  gap: 0.5rem;
}

.perk-intake__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.perk-intake__required {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(59, 130, 246, 0.85);
}

.perk-intake__input,
.perk-intake__select,
.perk-intake__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--white-smoke);
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.perk-intake__input:focus,
.perk-intake__select:focus,
.perk-intake__textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28), 0 18px 40px rgba(37, 99, 235, 0.2);
}

.perk-intake__textarea {
  min-height: 150px;
  resize: vertical;
}

.perk-intake__hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.55);
}

.perk-intake__error {
  margin: 0;
  font-size: 0.85rem;
  color: #991b1b;
  font-weight: 600;
}

.perk-intake__field.is-error .perk-intake__input,
.perk-intake__field.is-error .perk-intake__select,
.perk-intake__field.is-error .perk-intake__textarea {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45), 0 18px 40px rgba(248, 113, 113, 0.18);
}

.perk-intake__submit {
  align-self: flex-start;
}

@media (max-width: 640px) {
  .perk-intake__submit {
    width: 100%;
    justify-content: center;
  }
}

.intake-feedback__meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.intake-feedback__meter-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background-image: var(--gradient);
  transition: width 0.35s ease;
}

.intake-feedback__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.75rem;
  background: rgba(246, 249, 255, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
  pointer-events: none;
}

.intake-feedback__loader-text {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: rgba(15, 23, 42, 0.75);
}

.intake-feedback__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: rgba(14, 165, 233, 0.8);
  animation: intake-spin 0.9s linear infinite;
}

.intake-feedback.is-loading .intake-feedback__loader {
  opacity: 1;
  transform: translateY(0);
}

.intake-feedback > *:not(.intake-feedback__loader) {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.intake-feedback.is-loading > *:not(.intake-feedback__loader) {
  opacity: 0.35;
  filter: blur(1px);
}

@keyframes intake-spin {
  to {
    transform: rotate(360deg);
  }
}

.intake-feedback__message {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
}

.intake-feedback__tips {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(15, 23, 42, 0.6);
  display: grid;
  gap: 0.4rem;
}

.intake-feedback__tips li::marker {
  color: rgba(37, 99, 235, 0.6);
}

.intake-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.intake-stat {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
}

.intake-bid {
  display: grid;
  gap: 0.85rem;
}

.intake-bid__value {
  display: block;
}

.intake-bid__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  cursor: pointer;
  accent-color: var(--electric-blue);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.intake-bid__slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.intake-bid__slider:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: rgba(15, 23, 42, 0.08);
}

.intake-bid__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.intake-bid__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--electric-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: -6px;
}

.intake-bid__slider::-webkit-slider-thumb:hover,
.intake-bid__slider::-webkit-slider-thumb:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.intake-bid__slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.intake-bid__slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.7);
}

.intake-bid__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--electric-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intake-bid__slider::-moz-range-thumb:hover,
.intake-bid__slider::-moz-range-thumb:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.intake-payment {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.75rem;
}

.intake-payment__button {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.intake-payment__note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.6);
}

.intake-stat__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.35rem;
}

.intake-stat__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white-smoke);
}

@media (min-width: 960px) {
  .intake {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .section--intake {
    padding: 1.75rem 1.35rem 2rem;
    margin-bottom: 2.5rem;
  }

  .intake__title {
    font-size: clamp(2.1rem, 7vw, 2.7rem);
  }

  .intake__subtitle {
    font-size: 1rem;
  }

  .intake__textarea {
    min-height: 200px;
  }
}

@media (max-width: 520px) {
  .section--intake {
    padding: 1.5rem 1.1rem 1.75rem;
  }

  .intake__header {
    margin-bottom: 1.85rem;
  }

  .intake {
    gap: 2rem;
  }
}

.section--cta {
  text-align: center;
  background-image: var(--gradient);
  color: #ffffff;
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 32px 64px rgba(37, 99, 235, 0.25);
}

.section--cta h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section--cta p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.section--cta .hero__cta {
  justify-content: center;
}

.step-grid,
.lever-grid,
.role-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card,
.lever-card,
.role-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.step-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.step-card h3,
.lever-card h3,
.role-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

/* --- Civic refresh: header & footer --- */
html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header__inner {
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
  flex-wrap: nowrap;
}

.header__brand-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand {
  color: #1E40AF;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.brand:hover,
.brand:focus {
  color: #2563EB;
}

.brand__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 18% 36% 30% 42%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E0F2FE 60%, rgba(37, 99, 235, 0.25) 100%);
  color: #1E40AF;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2), inset 0 0 0 1px rgba(30, 64, 175, 0.36);
}

.brand__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.brand__text {
  letter-spacing: 0.01em;
  text-transform: none;
}

.header__tagline {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  gap: 1rem;
}

.nav a {
  color: rgba(15, 23, 42, 0.8);
  font-weight: 600;
  position: relative;
  font-size: 0.9rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--electric-blue);
}

.nav a:hover::after,
.nav a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.header__controls {
  margin-left: auto;
  gap: 0.5rem;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.6);
  color: #1F2937;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.lang-switcher select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn--mini {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
}

.mobile-nav__backdrop {
  background: rgba(30, 64, 175, 0.25);
}

.mobile-nav__panel {
  background: rgba(246, 248, 252, 0.98);
  color: #1F2937;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.28);
}

.mobile-nav__logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 18% 36% 30% 42%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E0F2FE 55%, rgba(37, 99, 235, 0.2) 100%);
  color: #1E3A8A;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25), inset 0 0 0 1px rgba(30, 64, 175, 0.38);
}

.mobile-nav__logo svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-nav__titles {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-nav__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1E3A8A;
}

.mobile-nav__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #1F2937;
}

.mobile-nav__close {
  color: #1E3A8A;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus {
  color: #2563EB;
}

.mobile-nav__links a {
  color: #1E3A8A;
}

.mobile-nav__lang select {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #1F2937;
}

.mobile-nav__lang-label {
  color: #1F2937;
}

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.96) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.8);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 18% 36% 30% 42%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E0F2FE 60%, rgba(37, 99, 235, 0.2) 100%);
  color: #1E3A8A;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25), inset 0 0 0 1px rgba(30, 64, 175, 0.4);
}

.footer__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.footer__tagline,
.footer__commitment {
  margin: 0;
  max-width: 48ch;
}

.footer__tagline {
  font-size: 1.05rem;
  font-weight: 500;
}

.footer__commitment {
  color: rgba(15, 23, 42, 0.65);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
  .footer__column {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .footer__column {
    padding: 1.5rem 1.25rem;
  }
}

.footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer__nav a {
  color: rgba(15, 23, 42, 0.75);
  font-weight: 600;
}

.footer__nav a:hover,
.footer__nav a:focus {
  color: var(--electric-blue);
}

.footer__description {
  margin: 0 0 1rem;
}

.footer__cta {
  margin-bottom: 0.75rem;
}

.footer__email {
  color: var(--electric-blue);
  font-weight: 600;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.75rem;
}

.footer__legal-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer__legal-links a {
  color: rgba(15, 23, 42, 0.75);
}

.footer__legal-links a:hover,
.footer__legal-links a:focus {
  color: var(--electric-blue);
}

.footer__dev-tools {
  display: flex;
  align-items: center;
}

.footer__dev-button {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.18));
  color: #1e3a8a;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.footer__dev-button:hover,
.footer__dev-button:focus {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.55);
}

.copy {
  color: rgba(15, 23, 42, 0.6);
}

@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    align-items: center;
  }

  .header__controls {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav {
    display: none;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.step-card p,
.lever-card p,
.role-card p {
  margin: 0;
  color: var(--text-muted);
}

.rounds {
  list-style: none;
  counter-reset: rounds;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rounds li {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
}

.rounds li::before {
  counter-increment: rounds;
  content: counter(rounds);
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--mint);
  color: var(--midnight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 200, 150, 0.28);
}

.rounds h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

.rounds p {
  margin: 0;
  color: var(--text-muted);
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tech-list li {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.2rem 1.4rem;
  color: var(--white-smoke);
  font-weight: 500;
}

/* Forms & panels */
.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  margin: 1.5rem 0;
}

label { display: block; margin: 0.75rem 0 0.35rem; }

input, select, button, textarea {
  background: rgba(255, 255, 255, 0.96);
  color: var(--white-smoke);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  width: 100%;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

button {
  background-image: var(--gradient);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  width: auto;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

button:hover,
button:focus {
  transform: translateY(-1px);
}

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.alert.info {
  background: rgba(51, 103, 214, 0.15);
  border: 1px solid rgba(51, 103, 214, 0.35);
}

.alert.error {
  background: rgba(176, 32, 80, 0.18);
  border: 1px solid rgba(176, 32, 80, 0.35);
}

.notice { white-space: pre-wrap; }

.login {
  margin-top: 2rem;
  display: grid;
  gap: 1.75rem;
  max-width: 520px;
}

.login__intro {
  max-width: 44ch;
}

.login-panel {
  display: grid;
  gap: 1.25rem;
}

.login-panel__copy {
  color: var(--text-muted);
  margin: 0;
}

.login-panel__form {
  display: grid;
  gap: 1.25rem;
}

.login-panel__label {
  display: grid;
  gap: 0.5rem;
}

.login-panel__label-text {
  font-weight: 600;
}

.login-panel__alert {
  margin: 0;
}

.login-panel__next {
  background: rgba(51, 103, 214, 0.1);
  border: 1px solid rgba(51, 103, 214, 0.35);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-panel__next p {
  margin: 0;
  color: var(--text-muted);
}

.login-panel__open {
  align-self: flex-start;
}

.modal {
  position: fixed;
  inset: 0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__inner {
  position: relative;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2.25rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(18px);
  transition: transform 0.2s ease;
}

.modal.is-open .modal__inner {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  background-image: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  padding: 0;
  width: auto;
  box-shadow: none;
  line-height: 1;
}

.modal__close:hover,
.modal__close:focus {
  color: var(--white-smoke);
  transform: none;
}

.modal__subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.modal__form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.modal__label {
  display: grid;
  gap: 0.5rem;
}

.modal__label-text {
  font-weight: 600;
}

.modal__alert {
  margin-top: 1.5rem;
}

.modal__footnote {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal__dev-code {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  color: var(--white-smoke);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modal__dev-code code {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

.migration-callout {
  margin: 4rem auto;
  padding: 2.75rem;
  max-width: 760px;
  background: linear-gradient(135deg, #101935 0%, #1e2a55 55%, #2b3f73 100%);
  color: #f5f7ff;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(17, 28, 63, 0.35);
}

.migration-callout h1,
.migration-callout h2,
.migration-callout p {
  color: inherit;
}

.migration-callout h1 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  margin: 0;
}

.migration-callout h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 2.25rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.migration-callout__header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.migration-callout__icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.migration-callout__lede {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  opacity: 0.85;
}

.migration-callout__body p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.migration-callout__instructions {
  font-weight: 600;
}

.migration-callout__command {
  background: rgba(8, 15, 33, 0.55);
  border: 1px solid rgba(91, 122, 206, 0.45);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin: 0 0 2rem;
  font-size: 1rem;
  color: inherit;
}

.migration-callout__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0 0 2rem;
}

.migration-callout__run-button {
  box-shadow: 0 14px 30px rgba(17, 28, 63, 0.35);
}

.migration-callout__dev-hint {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.migration-callout__alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: 18px;
  background: rgba(248, 81, 73, 0.16);
  border: 1px solid rgba(248, 81, 73, 0.45);
  box-shadow: 0 18px 36px rgba(17, 28, 63, 0.35);
}

.migration-callout__alert-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.migration-callout__alert-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.migration-callout__alert-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.migration-callout__command code {
  font-family: "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.05rem;
}

.migration-callout__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
  counter-reset: migration-steps;
}

.migration-callout__list li {
  background: rgba(12, 22, 48, 0.55);
  border: 1px solid rgba(110, 142, 217, 0.35);
  border-radius: 16px;
  padding: 1rem 1.25rem 1rem 3.25rem;
  position: relative;
  line-height: 1.6;
}

.migration-callout__list li::before {
  counter-increment: migration-steps;
  content: counter(migration-steps);
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(143, 169, 255, 0.9);
  color: #0b1431;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(24, 34, 73, 0.45);
}

.migration-callout__footer {
  margin-top: 2rem;
  font-weight: 600;
}

.sql-error-details {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.sql-error-details h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.sql-error-details__item + .sql-error-details__item {
  margin-top: 1.25rem;
}

.sql-error-details__item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sql-error-details pre {
  margin: 0;
  background: rgba(37, 99, 235, 0.08);
  color: var(--white-smoke);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .migration-callout {
    padding: 2.25rem 1.75rem;
  }

  .migration-callout__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .migration-callout__list li {
    padding-left: 3rem;
  }

  .migration-callout__list li::before {
    left: 0.9rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* RTL tweaks */
html[dir="rtl"] .nav { flex-direction: row-reverse; }
html[dir="rtl"] .hero__cta { justify-content: flex-start; }
html[dir="rtl"] .rounds li::before { left: auto; right: 1.25rem; }
html[dir="rtl"] .footer__links { align-items: flex-end; }

.database-explorer {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .database-explorer {
    grid-template-columns: minmax(0, 260px) 1fr;
  }
}

.database-explorer__sidebar {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e1e4eb);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.database-explorer__sidebar h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.database-explorer__sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.database-explorer__sidebar li a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.database-explorer__sidebar li a:hover,
.database-explorer__sidebar li.is-active a {
  background: rgba(38, 99, 255, 0.12);
  color: #1a2b6b;
}

.database-explorer__content {
  min-height: 12rem;
}

.database-explorer__ordering-info {
  font-size: 0.9rem;
  color: #4b5264;
  margin: 0.35rem 0;
}

.database-explorer__table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.database-explorer__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.database-explorer__table th,
.database-explorer__table td {
  border: 1px solid var(--color-border, #e1e4eb);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.database-explorer__table th {
  background: var(--color-muted-surface, #f6f8fb);
  font-weight: 600;
  white-space: nowrap;
}

.database-explorer__table td {
  white-space: pre-wrap;
  word-break: break-word;
}

.database-explorer__table td em {
  color: #7a8299;
}

.database-explorer__content .panel {
  margin: 0;
}

.database-explorer__content .panel h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .header__inner {
    padding-block: 0.5rem;
    gap: 0.65rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav { display: none; }

  .lang-switcher { display: none; }

  .header__controls {
    margin-left: auto;
    width: auto;
    gap: 0.5rem;
  }

  .header__actions {
    gap: 0.4rem;
  }

  .header__action--login {
    display: none;
  }

  .header__controls .btn--mini {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
  }

  .brand__text {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .header__tagline { display: none; }

  main.container { padding-top: 2.5rem; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
