@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

.mockup-page, #quick-view {
  color-scheme: dark;
  --ink: #f4f7fc;
  --muted: #bfcee0;
  --background: #041525;
  --panel: #0a2238;
  --line: #28465f;
  --cyan: #91def4;
  --gold: #ffc678;
  font: 16px/1.55 'DM Sans', system-ui, sans-serif;
}

.mockup-page *, #quick-view * { box-sizing: border-box; }
.mockup-page { margin: 0; background: var(--background); color: var(--ink); }
.mockup-page a, #quick-view a { text-decoration: none; }
.mockup-page .wordmark { color: inherit; }
.mockup-page button, #quick-view button { font: inherit; }
.mockup-page :focus-visible, #quick-view :focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.masthead {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(32px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: #051a2d;
}

.wordmark {
  display: inline-grid;
  grid-template-columns: 48px auto;
  grid-template-rows: auto auto;
  align-items: end;
  gap: 2px 12px;
  letter-spacing: .15em;
  font-size: .92rem;
  line-height: 1.2;
}

.wordmark img { grid-row: span 2; align-self: center; width: 100%; height: 48px; object-fit: contain; }
.wordmark span { align-self: start; color: var(--cyan); font-size: .64rem; letter-spacing: .49em; }
.header-link { color: var(--cyan); font-size: .9rem; font-weight: 700; }
.header-link:hover { text-decoration: underline; }

.catalog-hero {
  padding: clamp(54px, 8vw, 110px) 0 clamp(54px, 8vw, 104px);
  background:
    linear-gradient(90deg, #041525f2, #041525ac 52%, #04152522),
    linear-gradient(0deg, var(--background), transparent 60%),
    url('../assets/hero-dusk.webp') center 55% / cover;
}

.product-eyebrow {
  color: var(--accent, var(--cyan));
  margin: 0 0 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog-hero h1,
#product-title {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
}

.catalog-hero p:last-child { color: var(--muted); margin: 18px 0 0; max-width: 36rem; font-size: 1.075rem; }
.theme-readiness { --accent: #ffc678; --scene-position: 0 0; }
.theme-lystshared { --accent: #98ecde; --scene-position: 50% 0; }
.theme-pill-prompter { --accent: #d6c7ff; --scene-position: 100% 0; }
.theme-forever-ripples { --accent: #a9ceed; --scene-position: 0 100%; }
.theme-magic-mover-quest { --accent: #ffd082; --scene-position: 50% 100%; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 60px; }
.catalog-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }

.card-art {
  height: 132px;
  background-image: linear-gradient(0deg, #0a2238, transparent 70%), url('../assets/app-scenes.webp');
  background-position: center, var(--scene-position);
  background-size: 100% 100%, 300% 260%;
}

.card-content { padding: 18px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-content h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; }
.card-content p { margin: 8px 0 20px; color: var(--muted); font-size: .95rem; }
.card-actions { margin-top: auto; }
.card-actions, .product-intro .product-button { display: flex; flex-wrap: wrap; gap: 9px; }

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: .875rem;
  font-weight: 800;
  cursor: pointer;
}

.product-button.primary { background: var(--accent, var(--gold)); color: #0d2133; }
.product-button.secondary { background: transparent; color: var(--ink); border-color: #607c94; }
.product-button:hover { filter: brightness(1.12); }

.product-hero {
  padding: clamp(36px, 6vw, 80px) 0;
  background:
    linear-gradient(90deg, #041525ed, #041525c7 48%, #04152599),
    linear-gradient(0deg, var(--background), transparent 70%),
    url('../assets/app-scenes.webp') var(--scene-position) / 300% 220% no-repeat;
}

.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 6vw, 84px); }
.product-headline { margin: 18px 0 10px; font-size: clamp(1.25rem, 2.3vw, 2.05rem); font-weight: 700; line-height: 1.17; letter-spacing: -.035em; }
.product-summary { color: var(--muted); margin: 0; max-width: 36rem; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.product-intro .product-button { width: fit-content; margin-top: 20px; }
.product-screen { width: min(100%, 375px); margin: 0 auto; }

.screen-app {
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #4e6c86;
  border-radius: 22px;
  background: #07192c;
  box-shadow: 0 20px 40px #020a1480;
}

.screen-app header { display: grid; gap: 3px; padding: 0 2px 13px; }
.screen-app header strong { font-size: 1.15rem; line-height: 1.2; }
.screen-app header span, .screen-highlight small { color: var(--muted); font-size: .8rem; }

.screen-highlight {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #102c44;
  font-size: .88rem;
}

.screen-highlight strong { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: clamp(1.25rem, 3.2vw, 2rem); letter-spacing: -.04em; line-height: 1; }
.screen-highlight small { grid-column: 1; }
.screen-rows { margin: 10px 0 0; padding: 0; list-style: none; }
.screen-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #28465f; padding: 9px 2px; font-size: .83rem; }
.screen-rows li:last-child { border-bottom: 0; padding-bottom: 2px; }
.screen-rows li span:last-child { color: var(--muted); text-align: right; }
.product-screen figcaption { text-align: center; margin-top: 9px; color: var(--muted); font-size: .76rem; }
.product-details { padding-bottom: 52px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 19px 20px 21px; border: 1px solid var(--line); background: var(--panel); border-radius: 15px; }
.feature h3, .product-example h3 { margin: 0 0 5px; font-size: 1.09rem; line-height: 1.3; }
.feature p, .product-example p { margin: 0; color: var(--muted); font-size: .94rem; }
.product-example { margin-top: 24px; padding: 5px 0 5px 18px; border-left: 2px solid var(--accent); max-width: 48rem; }
.back-link { display: inline-block; margin-top: 30px; }

.readiness-availability { margin-top: 24px; }
.readiness-availability h4 { margin: 14px 0 4px; }

.readiness-country {
  margin-top: 32px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.country-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 28px;
}

.country-heading h3, .country-details h4 { margin: 0 0 6px; }
.country-heading p, .country-details dd { margin: 0; color: var(--muted); font-size: .92rem; }
.country-heading label { display: grid; gap: 5px; font-weight: 700; }

.country-heading select {
  max-width: 100%;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #607c94;
  border-radius: 8px;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}

.country-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.country-details:has(.country-screenshot), .country-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
}

.country-details:has(.country-screenshot) { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
.country-details:has(.country-screenshot) .country-information { grid-template-columns: 1fr; }
.country-screenshot { margin: 0; max-width: 280px; }
.country-screenshot figcaption { margin-bottom: 8px; color: var(--muted); font-size: .8rem; }
.country-screenshot a { display: block; border-radius: 13px; }
.country-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: inherit; }

.country-alert-links { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.country-alert-links a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.country-details dl { margin: 0; }
.country-details dt { font-weight: 700; }
.country-details dd + dt { margin-top: 10px; }

#quick-view {
  width: min(90vw, 1280px);
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #5483a2;
  border-radius: 22px;
  background: var(--background);
  color: var(--ink);
  box-shadow: 0 24px 80px #000c;
}

#quick-view[open] { display: flex; flex-direction: column; }
#quick-view::backdrop { background: #020a16c4; backdrop-filter: blur(5px); }
body:has(#quick-view[open]) { overflow: hidden; }
.dialog-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 4px 22px; border-bottom: 1px solid var(--line); background: #0a2238; color: var(--muted); font-size: .85rem; font-weight: 700; }
.close-button { box-sizing: border-box; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.close-button:hover { background: #1d3b54; }
.dialog-scroll { overflow-y: auto; overscroll-behavior: contain; }

.support-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: 88dvh;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
}
.support-dialog::backdrop { background: #020a16c4; }
.support-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-dialog-heading h2 { margin: 0; font-size: 1.5rem; }
.support-product { margin: 2px 0 16px; color: var(--muted); }
.support-form { display: grid; gap: 14px; }
.support-form label { display: grid; gap: 4px; font-weight: 700; }
.support-form input:not([hidden]), .support-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #607c94;
  border-radius: 8px;
  background: var(--background);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.support-form textarea { resize: vertical; }
.support-form button { justify-self: start; }
.support-form button:disabled { cursor: not-allowed; opacity: .65; }
.support-form [readonly] { cursor: wait; }
.support-status, .support-fallback { font-size: .875rem; color: var(--muted); }
.support-status:empty { margin: 0; }
.support-fallback { margin-bottom: 0; overflow-wrap: anywhere; }
.support-fallback span:last-child { display: block; color: var(--cyan); }

@media (max-width: 800px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-screen { margin-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { padding-inline: 18px; }
  .wordmark { grid-template-columns: 36px auto; column-gap: 8px; font-size: .76rem; }
  .wordmark img { height: 42px; }
  .header-link { font-size: .8rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  #quick-view { border-radius: 15px; }
  #quick-view .wrap { width: calc(100% - 28px); }
  .country-details:has(.country-screenshot), .country-information { grid-template-columns: 1fr; }
}
