/* Kaer Math marketing site — dark app palette, warm gold, stepping-stone motif */

:root {
  --bg: #0f1923;
  --bg-2: #14202c;
  --bg-3: #1a2836;
  --bg-parent: #101b26;
  --gold: #f5a623;
  --gold-2: #ffc857;
  --text: #f4f7fb;
  --muted: #8ba4be;
  --muted-2: #4a6580;
  --line: rgba(139, 164, 190, 0.18);
  --gem-a: #5eead4;
  --gem-b: #f472b6;
  --gem-c: #f5a623;
  --gem-d: #60a5fa;
  --radius: 18px;
  --shell: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::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;
  }
}

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

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-2);
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--gold);
  color: #0f1923;
  padding: 8px 12px;
  font-weight: 800;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
h3 {
  font-size: 1.35rem;
}

.lede,
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

/* Sticky premiere + nav */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}

.premiere-banner {
  background:
    linear-gradient(90deg, #1a0f08 0%, #3d1f0a 25%, #f5a623 50%, #3d1f0a 75%, #1a0f08 100%);
  background-size: 200% 100%;
  animation: premiere-shine 8s linear infinite;
  border-bottom: 1px solid rgba(255, 200, 100, 0.35);
  color: #0f1923;
  text-align: center;
  padding: 10px 16px 12px;
}
.premiere-inner {
  max-width: 920px;
  margin: 0 auto;
}
.premiere-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 25, 35, 0.75);
}
.premiere-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0f1923;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.premiere-title em {
  font-style: normal;
  color: #5c2100;
  padding: 0 0.12em;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}
.premiere-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(15, 25, 35, 0.82);
}

@keyframes premiere-shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premiere-banner {
    animation: none;
    background: #f5a623;
  }
}

/* Header */
.site-header {
  background: rgba(15, 25, 35, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: #0f1923 !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 12px;
}
.nav-cta:hover {
  background: var(--gold-2);
  color: #0f1923 !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    /* sit under sticky chrome (premiere + header) */
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-cta {
    justify-content: center;
  }
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(ellipse 80% 50% at 90% 10%, rgba(245, 166, 35, 0.12), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .lede {
  margin: 0 0 24px;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-kaer {
  width: min(420px, 100%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: kaer-float 4.5s ease-in-out infinite;
}

@keyframes kaer-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-path {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.stone {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  transform: rotate(45deg);
}
.stone.s1 {
  background: var(--gem-a);
}
.stone.s2 {
  background: var(--gem-b);
}
.stone.s3 {
  background: var(--gem-c);
}
.stone.s4 {
  background: var(--gem-d);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-art {
    order: -1;
  }
  .hero-kaer {
    width: min(280px, 70vw);
  }
}

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}
.store-badge:hover {
  border-color: var(--gold);
  color: #fff !important;
}
.store-badge-kicker {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 600;
}
.store-badge-name {
  font-size: 1.15rem;
  font-family: var(--font-display);
}
.store-badge-todo {
  font-size: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
}
.section-head .section-sub {
  margin: 0;
}

.how-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 48px;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.how-step-flip .how-copy {
  order: 2;
}
.how-step-flip .phone-mock {
  order: 1;
}

.how-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  color: #0f1923;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.how-copy p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 860px) {
  .how-step,
  .how-step-flip {
    grid-template-columns: 1fr;
  }
  .how-step-flip .how-copy,
  .how-step-flip .phone-mock {
    order: initial;
  }
}

/* Phone mock — screenshots shown fully (contain), tap to expand */
.phone-mock {
  margin: 0;
  justify-self: center;
}
.phone-mock figcaption {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
}

.phone-open {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  text-align: center;
  color: inherit;
  font: inherit;
}
.phone-open:focus-visible .phone-bezel {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.phone-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-bezel {
  position: relative;
  display: block;
  width: min(270px, 72vw);
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3a4a5c 0%, #151d26 45%, #0c1218 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone-open:hover .phone-bezel {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.48);
}

.phone-notch {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.phone-screen {
  display: block;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1923;
  position: relative;
  isolation: isolate;
}

.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #0f1923;
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.feature-flip .feature-text {
  order: 2;
}
.feature-flip .feature-visual {
  order: 1;
}
.feature-text p {
  color: var(--muted);
  margin: 0;
}

.feature-visual-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.reco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}
.reco-list li {
  margin: 0;
  padding: 0;
}
.reco-list button {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
}
.reco-list button:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.collection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
}
.animal-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.animal-card:hover,
.animal-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.animal-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.animal-card-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.animal-card-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .collection-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .feature,
  .feature-flip {
    grid-template-columns: 1fr;
  }
  .feature-flip .feature-text,
  .feature-flip .feature-visual {
    order: initial;
  }
}

/* Parents */
.parents {
  background: var(--bg-parent);
}
.parents-eyebrow {
  color: #9ec1e6;
}
.parents-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.parents-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.parents-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}
.parents-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.parents-visual {
  display: grid;
  gap: 16px;
  justify-items: center;
}
.parents-kaer {
  width: min(240px, 60vw);
}

@media (max-width: 860px) {
  .parents-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.price-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
}
.price-card-pro {
  border-color: rgba(245, 166, 35, 0.55);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.1), var(--bg-3) 40%);
  position: relative;
}
.price-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #0f1923;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 8px;
  font-weight: 800;
}
.price-amount small {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
}
.price-or {
  color: var(--muted);
  margin: 0 0 16px;
}
.price-save {
  color: var(--gold-2);
  font-weight: 800;
}
.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

@media (max-width: 700px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-shell {
  max-width: 760px;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px 4px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Final CTA */
.cta-final {
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(245, 166, 35, 0.1), transparent 60%),
    var(--bg-2);
}
.cta-final-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.cta-final-inner p {
  color: var(--muted);
  margin: 0 0 12px;
}

/* Docs / legal */
.doc {
  padding: 40px 0 72px;
}
.doc-hero {
  margin-bottom: 28px;
  max-width: 40rem;
}
.doc-updated {
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.doc-lede {
  margin: 0;
}
.doc-body {
  max-width: 42rem;
}
.doc-body h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}
.doc-body p,
.doc-body li {
  color: var(--muted);
}
.doc-body ul {
  padding-left: 1.2rem;
}

/* Unsubscribe */
.unsub {
  padding: 48px 0 80px;
}
.unsub-card {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.unsub-kaer {
  width: 180px;
  margin-bottom: 8px;
}
.unsub-msg {
  color: var(--muted);
}
.unsub-form {
  margin-top: 20px;
}
.btn-primary {
  background: var(--gold);
  color: #0f1923;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  max-width: 280px;
}
.btn-primary:hover {
  background: var(--gold-2);
}
.unsub-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}
.unsub-links {
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: #0c141c;
}
.footer-inner {
  display: grid;
  gap: 28px;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.footer-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.footer-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
}
.footer-cols a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-cols a:hover {
  color: var(--text);
}
.footer-copy {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Interactive bits */
body.modal-open {
  overflow: hidden;
}

.info-chip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.info-chip:hover {
  background: rgba(245, 166, 35, 0.2);
}

.hero-kaer-btn {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.tap-badge {
  position: absolute;
  right: 8%;
  bottom: 10%;
  background: var(--gold);
  color: #0f1923;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.parents-item-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.parents-item-btn span {
  display: block;
  color: var(--muted);
}
.parents-item-btn:hover strong {
  color: var(--gold-2);
}

.price-card-btn {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.price-card-btn ul {
  text-align: left;
}
.price-tap {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Portrait phone lightbox */
.lightbox[hidden],
.info-sheet[hidden] {
  display: none !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.86);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  max-height: 100%;
}
.lightbox-close,
.info-sheet-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}
.lightbox-label {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}
.lightbox-phone {
  max-height: min(88vh, 820px);
}
.lightbox-bezel {
  height: min(88vh, 820px);
  width: calc(min(88vh, 820px) * 9 / 19.5);
  max-width: min(92vw, 380px);
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(145deg, #3a4a5c 0%, #151d26 45%, #0c1218 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lightbox-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1923;
}
.lightbox-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #0f1923;
}

/* Bottom info sheet */
.info-sheet {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  align-items: end;
  justify-items: center;
}
.info-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.72);
  border: none;
  cursor: pointer;
}
.info-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  padding: 28px 22px 32px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: sheet-up 0.28s ease;
}
.info-sheet-panel h3 {
  margin-top: 4px;
}
.info-sheet-panel p:last-child {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.info-sheet-close {
  top: 12px;
  right: 12px;
}

@keyframes sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-sheet-panel {
    animation: none;
  }
  .phone-bezel {
    transition: none;
  }
}
