/* Panda Spell: the home page (Nov 2026). Builds on site.css (tokens, fonts, header,
   footer, buttons). Phone first; two columns from 900 px. No third-party anything. */

.home main { overflow-x: clip; }

/* ── Shared bits ─────────────────────────────────────────────── */
.h-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.h-title-sm { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.h-sub { font-size: 1.12rem; color: var(--soft); max-width: 46em; margin: 0 0 28px; }
.h-note { margin: 28px 0 0; color: var(--soft); text-align: center; }
.h-small { color: var(--soft); font-size: 0.95rem; }
.h-red { color: var(--accent); }
.h-band { background: color-mix(in srgb, var(--cream) 70%, transparent); }

.h-two { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .h-two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .h-two-rev > :first-child { order: 2; }
}

.h-checks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.h-checks li { position: relative; padding-left: 30px; line-height: 1.45; }
.h-checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--jade-l); color: var(--good);
  font-weight: 700; font-size: 0.8rem; display: grid; place-items: center;
}

/* Phone frame around a real screenshot */
.h-phone {
  margin: 0; background: var(--ink); padding: 7px; border-radius: 30px;
  box-shadow: 0 18px 40px -18px rgb(43 36 32 / 0.55), 0 2px 0 rgb(43 36 32 / 0.6);
  max-width: 260px; width: 100%;
}
.h-phone img { display: block; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 508 / 1100; object-fit: cover; }
.h-phone figcaption { color: var(--cream); text-align: center; font-size: 0.88rem; padding: 6px 4px 2px; }

/* ── Hero ────────────────────────────────────────────────────── */
.h-hero { padding: 36px 0 20px; position: relative; }
.h-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background: url("../img/ui/mountains.svg") bottom center / 1600px auto no-repeat;
  opacity: 0.35;
}
.h-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .h-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } .h-hero { padding-top: 56px; } }

.h-kicker { display: flex; align-items: center; gap: 10px; color: var(--soft); font-weight: 600; margin: 0 0 10px; }
.h-seal {
  font-family: var(--seal); color: var(--cream); background: var(--accent);
  border-radius: 8px; padding: 4px 6px; font-size: 1rem; line-height: 1; writing-mode: horizontal-tb;
  transform: rotate(-4deg);
}
.h-hero h1 {
  font-family: var(--display); font-weight: 400; margin: 0 0 16px;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); line-height: 0.98; color: var(--ink);
}
.h-lede { font-size: 1.15rem; line-height: 1.55; margin: 0 0 22px; max-width: 34em; }

.h-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.h-cta-center { justify-content: center; }
.h-store { display: inline-flex; }
.h-soon { cursor: default; }
.h-soon:hover, .h-soon:active { transform: none; }

.h-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-trust li {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 12px 5px 10px; font-weight: 600; font-size: 0.92rem;
}
.h-trust li::before { content: "✓ "; color: var(--good); }
.h-trust .h-price-wrap { background: var(--sun-l); }
.h-trust .h-price-wrap::before { content: ""; }

.h-hero-art { display: flex; justify-content: center; gap: 4%; padding: 10px 0; }
.h-hero-art .h-phone { max-width: 230px; }
.h-phone-tilt-l { transform: rotate(-4deg) translateY(10px); }
.h-phone-tilt-r { transform: rotate(3deg) translateY(-8px); }
@media (max-width: 420px) { .h-hero-art .h-phone { max-width: 46%; } }

.h-lineup { display: block; width: 100%; max-width: 1100px; height: auto; margin: 26px auto 0; }

/* ── Steps ───────────────────────────────────────────────────── */
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 34px; }
@media (min-width: 820px) { .h-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.h-step .h-phone { margin: 0 auto 16px; max-width: 220px; }
.h-step h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.h-step p { margin: 0; line-height: 1.5; }
.h-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--cream); font-family: var(--body); font-weight: 700; font-size: 1.1rem;
}

/* ── Quiz card ───────────────────────────────────────────────── */
.h-quiz { background: var(--cream); border: 3px solid var(--ink); border-radius: var(--r-panel); padding: 18px; box-shadow: 0 6px 0 var(--ink); }
.h-quiz-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.h-quiz-tabs button {
  font: inherit; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg);
  padding: 6px 12px; cursor: pointer; color: var(--ink); min-height: 40px;
}
.h-quiz-tabs button[aria-selected="true"] { background: var(--sun); }
.h-card + .h-card { margin-top: 26px; }
.js .h-card + .h-card { margin-top: 0; }
.h-card-cat { margin: 0 0 6px; color: var(--accent-t); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.h-card h3 { font-family: var(--body); font-weight: 600; font-size: 1.2rem; line-height: 1.35; margin: 0 0 14px; }
.h-opts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.h-opts button {
  width: 100%; min-height: 56px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  border: 2px solid var(--ink); border-radius: 18px 14px 18px 14px; padding: 8px 10px;
  background: var(--peach); box-shadow: 0 3px 0 var(--ink);
}
.h-opts li:nth-child(2) button { background: var(--jade-l); }
.h-opts li:nth-child(3) button { background: var(--sky-l); }
.h-opts li:nth-child(4) button { background: color-mix(in srgb, var(--lilac) 55%, white); }
.h-opts button:disabled { cursor: default; opacity: 0.45; }
.h-opts button.is-right { opacity: 1; background: var(--jade); outline: 3px solid var(--good); }
.h-opts button.is-right::after { content: " ✓"; }
.h-opts button.is-wrong { opacity: 1; text-decoration: line-through; }
.h-opts button.is-wrong::after { content: " ✗"; }
.h-why summary { cursor: pointer; font-weight: 600; color: var(--sky-t); }
.h-why p { margin: 8px 0 0; }
.js .h-why summary { display: none; }
.h-quiz-foot { margin: 14px 0 0; font-size: 0.85rem; color: var(--faint); }
@media (max-width: 380px) { .h-opts { grid-template-columns: 1fr; } }

/* Paintings & landmarks */
.h-art { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .h-art { grid-template-columns: repeat(4, 1fr); } }
.h-art img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 14px; border: 3px solid var(--cream); box-shadow: 0 2px 0 var(--ink); }
@media (min-width: 900px) { .h-art img { height: 170px; } }

/* ── Cast ────────────────────────────────────────────────────── */
.h-cast { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .h-cast { grid-template-columns: repeat(4, 1fr); } }
.h-cast li { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--r-panel); padding: 10px 12px 14px; text-align: center; }
.h-cast img { width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto; }
.h-cast b { display: block; font-size: 1.05rem; margin-top: 4px; }
.h-cast span { display: block; color: var(--soft); font-size: 0.92rem; line-height: 1.35; margin-top: 3px; }

.h-strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
.h-strip .h-phone { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
@media (min-width: 1100px) { .h-strip { justify-content: center; overflow: visible; } }

/* Two phones side by side */
.h-duo { display: flex; justify-content: center; gap: 5%; }
.h-duo .h-phone { max-width: 240px; }
.h-duo .h-phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 420px) { .h-duo .h-phone { max-width: 47%; } }

/* ── Families ────────────────────────────────────────────────── */
.h-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .h-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .h-tiles { grid-template-columns: repeat(3, 1fr); } }
.h-tiles li { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--r-panel); padding: 18px; box-shadow: 0 4px 0 var(--ink); }
.h-tiles li:nth-child(3n+1) { background: color-mix(in srgb, var(--sun-l) 60%, var(--cream)); }
.h-tiles li:nth-child(3n+2) { background: color-mix(in srgb, var(--jade-l) 45%, var(--cream)); }
.h-tiles li:nth-child(3n) { background: color-mix(in srgb, var(--sky-l) 55%, var(--cream)); }
.h-tiles b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 4px; }
.h-tiles span { line-height: 1.45; }

/* ── Compare + buy ───────────────────────────────────────────── */
.h-compare-wrap { overflow-x: auto; margin: 0 0 32px; }
.h-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--cream); border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; min-width: 300px; }
.h-compare th, .h-compare td { padding: 11px 12px; border-bottom: 1px solid var(--dim); text-align: center; }
.h-compare tbody th { text-align: left; font-weight: 500; }
.h-compare thead th { font-weight: 700; background: var(--bg); }
.h-compare tr:last-child > * { border-bottom: 0; }
.h-col-app { background: color-mix(in srgb, var(--jade-l) 35%, var(--cream)); }
.h-compare thead .h-col-app { background: var(--jade); color: var(--ink); }
.h-yes { color: var(--good); font-weight: 700; font-size: 1.15rem; }
.h-no { color: var(--faint); }
@media (max-width: 520px) { .h-compare th, .h-compare td { padding: 9px 6px; font-size: 0.9rem; } }

.h-buy-card {
  display: grid; gap: 18px; align-items: center; background: var(--sun-l); border: 3px solid var(--ink);
  border-radius: var(--r-panel); padding: 22px; box-shadow: 0 6px 0 var(--ink); max-width: 860px; margin: 0 auto;
}
@media (min-width: 700px) { .h-buy-card { grid-template-columns: 180px 1fr; padding: 28px 32px; } }
.h-buy-panda { width: 100%; max-width: 180px; height: auto; margin: 0 auto; display: block; }
.h-buy-price { margin: 0; font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.h-buy-price span { font-size: 1.6rem; color: var(--soft); }
.h-buy-line { font-size: 1.1rem; margin: 6px 0 16px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.h-faq { max-width: 820px; }
.h-faq details { background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 16px; margin: 0 0 10px; }
.h-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; min-height: 28px; }
.h-faq details p { margin: 10px 0 2px; line-height: 1.55; }

/* ── Final ───────────────────────────────────────────────────── */
.h-final { text-align: center; }
.h-final-dragon { width: 200px; height: auto; display: block; margin: 0 auto 6px; }

/* Price can be switched off in site-config.js */
.no-price [data-price-wrap] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .h-phone-tilt-l, .h-phone-tilt-r, .h-duo .h-phone:nth-child(2) { transform: none; }
}

/* ── The film ────────────────────────────────────────────────── */
.h-film-section { text-align: center; padding-top: 28px; }
.h-film-section .h-sub { margin-inline: auto; }
.h-film {
  position: relative; max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--ink); background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 26px 50px -24px rgb(43 36 32 / 0.6);
}
.h-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }
.h-film-play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent;
  display: grid; place-items: end center; padding-bottom: 6%; /* (low: clear of the title on the poster) */
}
.h-film-play[hidden] { display: none; }
.h-film-play span {
  width: clamp(58px, 9vw, 108px); aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px var(--cream), 0 10px 30px rgb(43 36 32 / 0.45); display: grid; place-items: center;
  transition: transform 0.18s ease;
}
.h-film-play span::before {
  content: ""; width: 34%; aspect-ratio: 0.88; margin-left: 9%; background: var(--cream);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.h-film-play:hover span { transform: scale(1.06); }
.h-film-play:focus-visible { outline: 4px solid var(--sun); outline-offset: -8px; }
.h-film-note { margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .h-film-play span { transition: none; } }
