/* ===================== TOKENS ===================== */
:root {
  --color-primary: #004aad;
  --color-primary-dark: #013b84;
  --color-primary-darker: #012a5e;
  --color-primary-light: #1f66c4;
  --color-primary-tint: #e8f0fe;
  --color-on-primary: #ffffff;

  --color-bg: #ffffff;
  --color-bg-alt: #f3f6fc;
  --color-surface: #ffffff;
  --color-border: #e1e8f5;

  --color-text: #0b1b33;
  --color-text-muted: #52607a;

  --color-accent-gold: #f5a623;
  --color-success: #1fae6b;
  --color-danger: #e5484d;

  --font-base: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(1, 24, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(1, 24, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(1, 24, 64, 0.16);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --container-w: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== RESET ===================== */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 16px 28px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn-white {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: #f0f4fd; box-shadow: var(--shadow-md); }

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline-primary:hover { background: var(--color-primary-tint); }

.btn-sm { padding: 11px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.logo-dot { color: var(--color-primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: color 160ms var(--ease);
}
.main-nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
  z-index: 90;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-6); }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-sm { display: none; }
  .burger { display: inline-flex; }
}

/* ===================== SECTION shells ===================== */
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--color-bg-alt); }

.section-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.section-eyebrow-onblue {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.section-title-onblue { color: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: var(--space-7);
}
.section-lead-onblue { color: rgba(255, 255, 255, 0.85); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-darker) 100%);
  color: #fff;
  overflow: hidden;
  padding: calc(var(--space-9) + var(--space-4)) 0 var(--space-9);
}
.hero-watermark {
  position: absolute;
  right: -4%;
  top: 8%;
  font-size: clamp(4rem, 16vw, 13rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.hero-inner { max-width: 600px; }

.hero-photo {
  display: flex;
  justify-content: flex-end;
  order: -1;
}
.hero-photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 12, 40, 0.35));
}

@media (min-width: 860px) {
  .hero-grid { display: block; }
  .hero-inner { max-width: 560px; }
  .hero-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    order: 0;
    pointer-events: none;
  }
  .hero-photo img { max-width: 380px; }
}

.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--space-5);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-weight: 800; font-size: 1.3rem; }
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ===================== CARDS GRID ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Audience cards */
.audience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.audience-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.audience-icon svg { width: 26px; height: 26px; }
.audience-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-3); }
.audience-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.about-copy p { color: var(--color-text-muted); margin-bottom: var(--space-6); max-width: 56ch; }

.check-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-7); }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.about-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.about-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-stat-card .badge-num { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); }
.about-stat-card-accent {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.about-stat-card-accent .badge-num { color: #fff; }

/* ===================== PRICING ===================== */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
  max-width: 480px;
}
.pricing-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.pricing-from { font-weight: 600; color: var(--color-text-muted); }
.pricing-value { font-size: 2.8rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.pricing-currency { font-size: 1.4rem; }
.pricing-unit { font-weight: 600; color: var(--color-text-muted); }
.pricing-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-4); }

/* ===================== TESTIMONIALS CAROUSEL ===================== */
.carousel {
  position: relative;
  padding-top: var(--space-6);
}

.carousel-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-5);
  padding: 4px var(--space-5) var(--space-3);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .carousel-track { padding-inline: max(var(--space-5), calc((100vw - var(--container-w)) / 2 + var(--space-5))); }
}

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  list-style: none;
}
@media (min-width: 560px) { .testimonial-card { flex-basis: 46%; } }
@media (min-width: 900px) { .testimonial-card { flex-basis: 30%; } }

.testimonial-card.testimonial-photo {
  border-style: solid;
  text-align: left;
}
.testimonial-card.testimonial-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.testimonial-thumb {
  position: relative;
  aspect-ratio: 9 / 12;
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-primary-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.testimonial-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { color: var(--color-primary); opacity: 0.55; }
.play-icon svg { width: 52px; height: 52px; }

.testimonial-card.testimonial-video-native {
  aspect-ratio: 3 / 4;
  background: #000;
  border-style: solid;
}
.testimonial-video-native video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-soon {
  padding: var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--color-primary-tint); transform: translateY(-50%) scale(1.06); }
.carousel-btn-prev { left: var(--space-3); }
.carousel-btn-next { right: var(--space-3); }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }

@media (max-width: 700px) {
  .carousel-btn { display: none; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.carousel-dots button[aria-selected="true"] {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ===================== FAQ ===================== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.faq-intro .section-lead { margin-bottom: var(--space-6); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  padding: var(--space-5);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  min-height: 44px;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 220ms var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease);
}
.faq-answer > p {
  overflow: hidden;
  padding: 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: var(--space-5); }
.faq-answer { display: grid; }

/* ===================== LEAD FORM (inline) ===================== */
.section-form { background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-darker) 100%); }
.form-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}
@media (min-width: 860px) {
  .form-panel { grid-template-columns: 1fr 1fr; align-items: center; padding: var(--space-8); }
}
.form-panel-copy .section-title { margin-bottom: var(--space-3); }
.form-panel-copy .section-lead { margin-bottom: 0; }

.lead-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.section-form .form-row label { color: rgba(255, 255, 255, 0.85); }
.form-row input {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  padding: 0 16px;
  font-family: var(--font-base);
  font-size: 0.98rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.form-row input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-tint); }
.form-row input:invalid:not(:placeholder-shown) { border-color: var(--color-danger); }

.form-hint { font-size: 0.8rem; color: var(--color-text-muted); }
.section-form .form-hint { color: rgba(255, 255, 255, 0.65); }
.form-hint-center { text-align: center; }
.form-consent { font-size: 0.78rem; color: var(--color-text-muted); }
.form-consent a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.section-form .form-consent { color: rgba(255, 255, 255, 0.6); }
.form-consent-center { text-align: center; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-success { color: var(--color-success); }
.form-status.is-error { color: var(--color-danger); }
.section-form .form-status.is-success { color: #baf3d6; }
.section-form .form-status.is-error { color: #ffd0d0; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--color-primary-darker); color: rgba(255, 255, 255, 0.75); padding: var(--space-6) 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo-footer { color: #fff; }
.logo-footer .logo-dot { color: #9ec1f2; }
.footer-copy { font-size: 0.85rem; }
.footer-legal-link { text-decoration: underline; text-underline-offset: 3px; transition: color 160ms var(--ease); }
.footer-legal-link:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 22, 56, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 260ms var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); }
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: var(--space-3); }
.modal-lead { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: var(--space-6); }

body.modal-open { overflow: hidden; }
