/* Merge Car Master — Android landing: sky-blue rally HUD + gold CTAs + track motifs */

:root {
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --ink-900: #0c4a6e;
  --ink-800: #075985;
  --ink-700: #0369a1;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --orange-500: #f97316;
  --lime-400: #a3e635;
  --lime-500: #84cc16;
  --track-700: #713f12;
  --track-500: #a16207;
  --surface: #f8fafc;
  --surface-card: #ffffff;
  --shadow-lg: 0 22px 50px rgba(8, 47, 73, 0.18);
  --shadow-chip: 0 10px 26px rgba(14, 165, 233, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1120px;
  --max-wide: 1180px;
  --checkered: repeating-conic-gradient(#0f172a 0% 25%, #f8fafc 0% 50%) 50% / 12px 12px;
  /* Portrait screenshots: capped width keeps on-page shots visually lighter */
  --shot-portrait-max: 200px;
  --shot-download-max: 160px;
}

@media (min-width: 480px) {
  :root {
    --shot-portrait-max: 216px;
    --shot-download-max: 172px;
  }
}

@media (min-width: 900px) {
  :root {
    --shot-portrait-max: 232px;
    --shot-download-max: 184px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-scene__track-ring {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: linear-gradient(180deg, #bae6fd 0%, var(--sky-100) 42%, var(--surface) 100%);
  min-height: 100vh;
  line-height: 1.6;
  overscroll-behavior-y: contain;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold-400);
  color: var(--ink-900);
  font-weight: 800;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --- Decorative background --- */
.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-scene__sky {
  position: absolute;
  inset: -20% -10% 35% -10%;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(56, 189, 248, 0.55), transparent 70%),
    linear-gradient(180deg, #7dd3fc 0%, #bae6fd 55%, transparent 100%);
}

.bg-scene__track-ring {
  position: absolute;
  width: min(140vw, 820px);
  height: min(140vw, 820px);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px dashed rgba(113, 63, 18, 0.35);
  box-shadow: inset 0 0 0 10px rgba(161, 98, 7, 0.08);
  opacity: 0.55;
  animation: track-drift 28s linear infinite;
}

@keyframes track-drift {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.bg-scene__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 20%, transparent 75%);
  opacity: 0.35;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(8, 47, 73, 0.12);
}

.navbar {
  padding: 0.65rem 1rem;
}

.navbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand__logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.15);
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
}

.brand__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-700);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-chip);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  background: #fff;
}

.nav-toggle:active {
  transform: scale(0.97);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink-900);
}

.nav-panel {
  position: fixed;
  inset: 0;
  top: 72px;
  padding: 1rem 1.25rem 2rem;
  background: rgba(240, 249, 255, 0.97);
  backdrop-filter: blur(14px);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-links__a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  color: var(--ink-800);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links__a:hover {
  background: rgba(14, 165, 233, 0.12);
  color: var(--sky-600);
}

.nav-cta {
  margin-top: 1rem;
  width: 100%;
}

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

  .nav-panel {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-links__a {
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
  }

  .nav-cta {
    margin-top: 0;
    width: auto;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn__icon {
  flex-shrink: 0;
}

.btn--play {
  color: var(--ink-900);
  background: linear-gradient(180deg, #fde047 0%, #facc15 45%, #f59e0b 100%);
  box-shadow: 0 14px 28px rgba(234, 179, 8, 0.45), inset 0 -2px 0 rgba(180, 83, 9, 0.35);
}

.btn--play:hover {
  box-shadow: 0 16px 34px rgba(234, 179, 8, 0.55), inset 0 -2px 0 rgba(180, 83, 9, 0.35);
}

.btn--play-lg {
  padding: 0.95rem 1.35rem;
  font-size: 1.02rem;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-800);
  border: 2px solid rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-chip);
}

.btn--outline:hover {
  border-color: var(--sky-500);
  background: #fff;
}

/* --- Hero --- */
.hero {
  padding: calc(1.25rem + 100px) 1rem 100px;
  overflow: hidden;
}

.hero__wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__wrap {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-600);
}

.hero__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-chip);
}

.hero__chip--lime {
  background: linear-gradient(180deg, #d9f99d 0%, var(--lime-400) 100%);
  color: #14532d;
  border: 1px solid rgba(20, 83, 45, 0.15);
}

.hero__chip--orange {
  background: linear-gradient(180deg, #fed7aa 0%, #fb923c 100%);
  color: #7c2d12;
  border: 1px solid rgba(124, 45, 18, 0.12);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.hero__title-line {
  display: block;
}

.hero__title-line--gold {
  background: linear-gradient(90deg, var(--orange-500), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

.hero__lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-800);
  max-width: 34rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  max-width: 36rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero right column: banner only */
.hero__banner {
  margin: 0;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(160deg, #fff 0%, #e0f2fe 100%);
}

@media (min-width: 960px) {
  .hero__banner {
    max-width: none;
  }
}

.hero__banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.phone-card {
  margin: 0;
  width: 100%;
  max-width: var(--shot-portrait-max);
}

.phone-card--inline {
  width: fit-content;
  max-width: min(100%, var(--shot-portrait-max));
  justify-self: center;
}

.phone-card__bezel {
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-card__img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

/* Screenshots row (1.png + 2.png) */
.shots-inline {
  padding-top: 2.5rem;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.35) 0%, transparent 100%);
}

.shots-inline__grid {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  max-width: calc(var(--shot-portrait-max) * 2 + 2.5rem);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .shots-inline__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.35rem;
  }
}

.hero__ribbon {
  margin-top: 8rem;
  border-top: 3px dashed rgba(14, 165, 233, 0.35);
  border-bottom: 3px dashed rgba(14, 165, 233, 0.35);
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.65) 12px,
      rgba(224, 242, 254, 0.85) 12px,
      rgba(224, 242, 254, 0.85) 24px
    );
}

.hero__ribbon-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero__ribbon-item {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-800);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero__ribbon-item--accent {
  background: linear-gradient(180deg, #fef08a, var(--gold-400));
  border-color: rgba(234, 179, 8, 0.45);
}

/* --- Sections --- */
.section {
  padding: 3.5rem 1rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--wide {
  max-width: var(--max-wide);
}

.section__head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.section__title--light {
  color: #fff;
}

.section__sub {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-800);
}

.section__head .section__sub {
  color: var(--ink-700);
}

/* Features grid */
.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-tile {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 16px 36px rgba(8, 47, 73, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(8, 47, 73, 0.12);
}

.feature-tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  color: var(--sky-600);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.feature-tile__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  color: var(--ink-900);
}

.feature-tile__text {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-800);
}

/* Highlights */
.highlights {
  background: linear-gradient(180deg, transparent, rgba(224, 242, 254, 0.55) 30%, rgba(224, 242, 254, 0.55) 70%, transparent);
}

.highlight-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .highlight-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .highlight-split--reverse .highlight-shot {
    order: -1;
  }
}

.highlight-panel {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-lg);
}

.highlight-panel__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.15);
  color: var(--sky-600);
}

.highlight-panel__badge--alt {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.highlight-panel__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink-900);
}

.highlight-panel__text {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--ink-800);
}

.highlight-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list__li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: var(--ink-800);
}

.highlight-list__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime-400);
  color: #14532d;
}

.highlight-shot {
  margin: 0 auto;
  width: 100%;
  max-width: var(--shot-portrait-max);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

.highlight-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Download */
.download {
  padding-bottom: 5rem;
}

.download__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sky-600) 0%, var(--sky-500) 45%, var(--ink-700) 110%);
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.download__stripes {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: var(--checkered);
}

.download__grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 880px) {
  .download__grid {
    grid-template-columns: 1fr minmax(140px, var(--shot-download-max));
    justify-items: stretch;
    gap: 2rem;
  }
}

.download__content {
  position: relative;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 880px) {
  .download__content {
    margin: 0;
    text-align: left;
  }
}

.download__shot {
  margin: 0 auto;
  width: 100%;
  max-width: var(--shot-download-max);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.download__shot img {
  width: 100%;
  display: block;
}

.download__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.download__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* Footer */
.site-footer {
  padding: 2.5rem 1rem 6.5rem;
  background: linear-gradient(180deg, #0c4a6e 0%, #082f49 100%);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.site-footer__mark-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
}

.site-footer__tag {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  color: #e0f2fe;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* Floating Play CTA (Android-style) */
.fab-download-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

.fab-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-download:hover {
  box-shadow: 0 22px 46px rgba(8, 47, 73, 0.42);
}

.fab-download:active {
  transform: scale(0.98);
}

@media (min-width: 880px) {
  .fab-download__text {
    display: inline;
  }
}

@media (max-width: 379px) {
  .fab-download__text {
    display: none;
  }

  .fab-download {
    padding: 0.75rem;
    border-radius: 18px;
  }
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 47, 73, 0.55);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(14, 165, 233, 0.25);
}

.modal__flag {
  height: 10px;
  margin: -0.5rem -1.5rem 1rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: repeating-linear-gradient(90deg, #0f172a 0 14px, #f8fafc 14px 28px);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(224, 242, 254, 0.85);
  color: var(--ink-800);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: #e0f2fe;
}

.modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--ink-900);
}

.modal__text {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--ink-800);
}

.modal__ok {
  width: 100%;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 2px;
}
