/*
  "Apple" design language: photography-first, edge-to-edge alternating tiles,
  SF Pro (Inter substitute), one accent color (Action Blue), pill CTAs, no
  chrome shadows — the single product-shadow is reserved for the voucher
  visual. Raw palette tokens below; everything components actually use is a
  *semantic* token (--bg, --surface, --ink, etc.) that light/dark mode each
  redefine, so a new component can never "forget" to handle dark mode the
  way the admin's SweetAlert2 override once did.
*/
:root {
  /* ---- raw Apple palette ---- */
  --c-primary: #0066cc;
  --c-primary-focus: #0071e3;
  --c-primary-on-dark: #2997ff;
  --c-ink: #1d1d1f;
  --c-body-on-dark: #ffffff;
  --c-body-muted: #cccccc;
  --c-ink-muted-80: #333333;
  --c-ink-muted-48: #7a7a7a;
  --c-divider-soft: rgba(0, 0, 0, 0.08);
  --c-hairline: #e0e0e0;
  --c-canvas: #ffffff;
  --c-parchment: #f5f5f7;
  --c-pearl: #fafafc;
  --c-tile-1: #272729;
  --c-tile-2: #2a2a2c;
  --c-tile-3: #252527;
  --c-black: #000000;
  --c-chip: rgba(210, 210, 215, 0.64);

  /* ---- type ---- */
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- radius ---- */
  --r-none: 0px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* ---- spacing ---- */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 17px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 64px;

  /* the one shadow in the whole system — product visuals only */
  --shadow-product: 3px 5px 30px rgba(0, 0, 0, 0.22);

  /* ---- semantic tokens (dark mode / site default) ---- */
  --bg: var(--c-black);
  --surface: var(--c-tile-1);
  --surface-alt: var(--c-tile-3);
  --surface-pearl: var(--c-tile-2);
  --ink: var(--c-body-on-dark);
  --ink-soft: var(--c-body-muted);
  --ink-faint: #8e8e93;
  --hairline: rgba(255, 255, 255, 0.12);
  --accent: var(--c-primary-on-dark);
  --accent-focus: var(--c-primary-on-dark);
  --footer-bg: var(--c-tile-3);
  --footer-ink: var(--c-body-muted);
  --footer-ink-faint: #8e8e93;
}

/*
  Dark is the storefront's default regardless of the visitor's OS preference
  (see :root above) — light only shows up once someone explicitly picks it
  with the theme toggle, which is what sets this attribute and persists it.
*/
:root[data-theme='light'] {
  --bg: var(--c-canvas);
  --surface: var(--c-canvas);
  --surface-alt: var(--c-parchment);
  --surface-pearl: var(--c-pearl);
  --ink: var(--c-ink);
  --ink-soft: var(--c-ink-muted-80);
  --ink-faint: var(--c-ink-muted-48);
  --hairline: var(--c-hairline);
  --accent: var(--c-primary);
  --accent-focus: var(--c-primary-focus);
  --footer-bg: var(--c-parchment);
  --footer-ink: var(--c-ink-muted-80);
  --footer-ink-faint: var(--c-ink-muted-48);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ---- global nav: always black, per spec ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-black);
  height: 44px;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: #fff;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--c-primary-on-dark);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #f5f5f7;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: -0.12px;
}
.nav-links a:hover {
  color: var(--c-primary-on-dark);
  text-decoration: none;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: #f5f5f7;
  cursor: pointer;
}
.nav-icon-btn svg {
  width: 18px;
  height: 18px;
}
.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .brand span.brand-label {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-black);
    padding: var(--sp-xs) var(--sp-lg) var(--sp-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: var(--sp-sm) 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* ---- full-bleed tiles ---- */
.tile {
  padding: var(--sp-section) 0;
  text-align: center;
}
.tile-light {
  background: var(--surface);
  color: var(--ink);
}
.tile-parchment {
  background: var(--surface-alt);
  color: var(--ink);
}
.tile-dark {
  background: var(--c-tile-1);
  color: #fff;
}
.tile-dark .ink-soft,
.tile-dark p {
  color: var(--c-body-muted);
}
.tile-dark a:not(.btn) {
  color: var(--c-primary-on-dark);
}
.tile h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.25rem + 1.75vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 var(--sp-sm);
}
.tile .lead {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.196px;
  line-height: 1.4;
  max-width: 620px;
  margin: 0 auto var(--sp-xl);
  color: var(--ink-soft);
}
.tile-dark .lead {
  color: var(--c-body-muted);
}

/* ---- hero ---- */
.hero-tile {
  padding-top: calc(var(--sp-section) + var(--sp-md));
}
.hero-tile h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.28px;
  line-height: 1.12;
  margin: 0 0 var(--sp-md);
}
.hero-tile .lead {
  margin-bottom: var(--sp-lg);
}
.hero-ctas {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-xl);
}
.hero-ussd {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}
.hero-ussd strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---- the one illustration + the one shadow ---- */
.voucher-art {
  max-width: 420px;
  margin: 0 auto;
}
.voucher-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-product));
}

/* ---- hero split: copy on the left, the live form on the right ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-xxl);
  align-items: center;
  text-align: left;
}
.hero-grid .hero-copy {
  text-align: left;
}
.hero-grid .hero-copy h1 {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.5rem);
  line-height: 1.15;
}
.hero-grid .hero-copy .lead {
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.0625rem);
  line-height: 1.5;
  margin: 0 0 var(--sp-lg);
  text-align: left;
  max-width: none;
}
.hero-grid .hero-ctas {
  justify-content: flex-start;
}
.hero-grid .purchase-card,
.hero-grid .voucher-art {
  margin: 0;
  max-width: 100%;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-xl);
  }
  .hero-grid .hero-copy,
  .hero-grid .hero-copy .lead {
    text-align: center;
  }
  .hero-grid .hero-ctas {
    justify-content: center;
  }
  .hero-grid .purchase-card {
    margin: 0 auto;
    max-width: 440px;
  }
  .tile {
    padding: var(--sp-xxl) 0;
  }
  .hero-tile {
    padding-top: calc(var(--sp-xxl) + var(--sp-xs));
  }
}

/* ---- buttons: two grammars only ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  font-family: var(--font-text);
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active {
  transform: scale(0.95);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  border-radius: var(--r-pill);
  padding: 11px 22px;
}
.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 17px;
  border-radius: var(--r-pill);
  padding: 10px 21px;
}
.btn-secondary:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.btn-block {
  width: 100%;
}
.btn-utility {
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: -0.224px;
  border-radius: var(--r-sm);
  padding: 8px 15px;
}

/* ---- store utility cards (form, feature grid, guides) ---- */
.utility-grid {
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.utility-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  text-align: left;
}
.tile-parchment .utility-card,
.tile-dark .utility-card {
  background: var(--surface-pearl);
}

.purchase-card {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.purchase-card h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  margin: 0 0 var(--sp-xxs);
}
.purchase-card .subtitle {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-lg);
}

/* ---- form ---- */
.field {
  margin-bottom: var(--sp-lg);
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  margin-bottom: var(--sp-xxs);
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: var(--sp-xxs);
}
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xxs);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-top: var(--sp-xs);
}
select,
input[type='text'],
input[type='tel'],
input[type='number'] {
  width: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  padding: 12px 16px;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  appearance: none;
}
:root[data-theme='light'] select,
:root[data-theme='light'] input[type='text'],
:root[data-theme='light'] input[type='tel'],
:root[data-theme='light'] input[type='number'] {
  box-shadow: inset 0 0 0 1px var(--c-divider-soft);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}
select:focus,
input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.field-error {
  color: #ff3b30;
  font-size: 12px;
  margin-top: var(--sp-xxs);
}

/* ---- alerts ---- */
.alert {
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 14px;
  margin-bottom: var(--sp-lg);
  text-align: left;
}
.alert-error {
  background: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
}
.alert-success {
  background: rgba(52, 199, 89, 0.14);
  color: #30d158;
}
.alert-pending {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
:root[data-theme='light'] .alert-success {
  color: #248a3d;
}

/* ---- how-it-works steps (inside a dark tile) ---- */
.steps {
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: var(--sp-xl);
  text-align: center;
}
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-primary-on-dark) 18%, transparent);
  color: var(--c-primary-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto var(--sp-sm);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 var(--sp-xxs);
}
.step p {
  font-size: 14px;
  margin: 0;
}

/* ---- feature / guide cards ---- */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}
.features .utility-card {
  text-align: center;
}
.features .icon-circle {
  margin-left: auto;
  margin-right: auto;
}
.icon-circle svg {
  width: 22px;
  height: 22px;
}
.utility-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 var(--sp-xxs);
}
.utility-card p {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}
p.price {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  font-weight: 600;
  margin: var(--sp-xs) 0;
  color: var(--ink);
}
.price .ghs {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
}

/* ---- USSD short code callout ---- */
.ussd-card {
  text-align: center;
}
.ussd-card .ussd-label {
  font-size: 13px;
  color: var(--c-body-muted);
  margin: 0;
}
.ussd-card .ussd-code {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--c-primary-on-dark);
  margin: var(--sp-xxs) 0 var(--sp-md);
}
.ussd-card .ussd-code:last-child {
  margin-bottom: 0;
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-sm);
  font-size: 14px;
}
.tier-table th,
.tier-table td {
  text-align: left;
  padding: var(--sp-xxs) 0;
  border-bottom: 1px solid var(--hairline);
}
.save-badge {
  display: inline-block;
  background: rgba(52, 199, 89, 0.14);
  color: #30d158;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
:root[data-theme='light'] .save-badge {
  color: #248a3d;
}
.check-link {
  display: inline-block;
  margin-top: var(--sp-sm);
  font-weight: 600;
  font-size: 14px;
}

/* ---- voucher result ---- */
.voucher-list-header {
  display: flex;
  justify-content: space-between;
  gap: 4px var(--sp-lg);
  padding: 0 0 var(--sp-xxs);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.voucher-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.voucher-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px var(--sp-lg);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 15px;
}
.voucher-list li:last-child {
  border-bottom: none;
}

/* ---- footer: semantic tokens only, so dark mode is correct by construction ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: var(--sp-xxl) 0 var(--sp-lg);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
}
.site-footer h4 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  margin: 0 0 var(--sp-sm);
}
.site-footer p {
  font-size: 12px;
  color: var(--footer-ink);
  line-height: 1.43;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: var(--sp-xs);
}
.site-footer a {
  color: var(--footer-ink);
  font-size: 12px;
}
.site-footer a:hover {
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  text-align: center;
  font-size: 10px;
  color: var(--footer-ink-faint);
}
@media (max-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

/* ---- error page ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-xxl) var(--sp-lg);
  background: var(--bg);
  color: var(--ink);
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 600;
  margin: var(--sp-sm) 0;
}

@media (max-width: 640px) {
  .tile {
    padding: var(--sp-xl) 0;
  }
  .hero-tile {
    padding-top: calc(var(--sp-xl) + var(--sp-xs));
  }
}

/* ---- motion ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy h1,
.hero-copy .lead,
.hero-copy .hero-ctas,
.hero-copy .hero-ussd,
.hero-grid .purchase-card {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.hero-copy .lead {
  animation-delay: 0.08s;
}
.hero-copy .hero-ctas {
  animation-delay: 0.14s;
}
.hero-copy .hero-ussd {
  animation-delay: 0.2s;
}
.hero-grid .purchase-card {
  animation-delay: 0.12s;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.utility-grid .utility-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.utility-grid .utility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-product);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-ctas,
  .hero-copy .hero-ussd,
  .hero-grid .purchase-card {
    animation: none;
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .utility-grid .utility-card {
    transition: none;
  }
  .utility-grid .utility-card:hover {
    transform: none;
  }
}

/* ---- legal / long-form prose (Terms and Conditions, etc.) ---- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin: var(--sp-xl) 0 var(--sp-sm);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: var(--sp-lg) 0 var(--sp-xxs);
}
.legal-content p {
  margin: 0 0 var(--sp-md);
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--sp-md);
  padding-left: 1.3em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal-content li {
  margin-bottom: var(--sp-xxs);
}
.legal-content a {
  color: var(--accent);
}
.legal-content strong {
  color: var(--ink);
}
.legal-content hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--sp-xl) 0 var(--sp-lg);
}
.legal-copyright {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---- modal (voucher retrieval result) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  z-index: 50;
}
.modal-box {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.modal-close {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
