/* ════════════════════════════════════════════════════════════════════
   VOLARA — Stone & Ink design system
   Type: Archivo (engineered grotesk, wide for display) + Newsreader
         (quiet serif for editorial narrative)
   Radius rule: interactive elements are pills, surfaces are 20px,
                inputs are 12px. Applied everywhere, no exceptions.
   Themes: light (default) and dark, switched via [data-theme] with
           prefers-color-scheme as the initial value.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f2efe8;
  --bg-raised: #faf8f2;
  --bg-sunken: #e9e5db;
  --ink: #1c1b14;
  --text: #23221a;
  --muted: #6e6a5c;
  --faint: #93907f;
  --hairline: rgba(28, 27, 20, 0.12);
  --hairline-soft: rgba(28, 27, 20, 0.07);
  --accent: #8a6b3f;
  --accent-soft: rgba(138, 107, 63, 0.14);
  --cta-bg: #1c1b14;
  --cta-text: #f5f2ea;
  --cta-circle: rgba(245, 242, 234, 0.14);
  --shadow-ambient: 0 24px 70px -30px rgba(28, 27, 20, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swift: cubic-bezier(0.32, 0.72, 0, 1);
  --r-surface: 20px;
  --r-input: 12px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #14130f;
  --bg-raised: #1c1b16;
  --bg-sunken: #0f0e0b;
  --ink: #ece8db;
  --text: #e7e3d6;
  --muted: #9d998a;
  --faint: #767263;
  --hairline: rgba(236, 232, 219, 0.14);
  --hairline-soft: rgba(236, 232, 219, 0.08);
  --accent: #b3915a;
  --accent-soft: rgba(179, 145, 90, 0.16);
  --cta-bg: #ece8db;
  --cta-text: #17160f;
  --cta-circle: rgba(23, 22, 15, 0.12);
  --shadow-ambient: 0 24px 70px -30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

::selection { background: var(--accent); color: var(--bg); }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: inherit; }

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Film-grain, fixed so it never repaints on scroll */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography ───────────────────────────────────────────────────── */

.display {
  font-family: "Archivo", sans-serif;
  font-stretch: 118%;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}

h2.display { font-size: clamp(2rem, 4.6vw, 3.4rem); }

.editorial {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.sub {
  color: var(--muted);
  max-width: 34rem;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  cursor: pointer;
  font: 600 1rem/1 "Archivo", sans-serif;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1.6rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-swift), box-shadow 0.45s var(--ease-swift);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-ambient); }
.btn:active { transform: scale(0.98); }
.btn .circ {
  width: 2.3rem; height: 2.3rem;
  border-radius: 999px;
  background: var(--cta-circle);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transition: transform 0.45s var(--ease-swift);
}
.btn:hover .circ { transform: translate(3px, -1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 1rem/1 "Archivo", sans-serif;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.4s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--accent); }

.price-tag {
  font-feature-settings: "tnum";
  color: var(--muted);
  font-size: 1rem;
}
.price-tag s { color: var(--faint); text-decoration-thickness: 1px; margin-right: 0.15rem; }

/* ── Nav ──────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
    backdrop-filter 0.5s var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--hairline-soft);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { height: 26px; width: auto; }
.brand .wordmark {
  font: 700 1.15rem/1 "Archivo", sans-serif;
  font-stretch: 125%;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav .btn { padding: 0.45rem 0.5rem 0.45rem 1.25rem; font-size: 0.95rem; }
.nav .btn .circ { width: 2rem; height: 2rem; }

/* Theme toggle: a half-shaded disc, pure CSS */
.theme-toggle {
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%);
  cursor: pointer;
  transition: transform 0.6s var(--ease-swift), border-color 0.3s;
  flex: none;
}
.theme-toggle:hover { border-color: var(--accent); }
[data-theme="dark"] .theme-toggle { transform: rotate(180deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.1rem);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero .sub { margin-bottom: 2.2rem; font-size: 1.125rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero-media { position: relative; }

.hero-media .frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-surface);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

/* Load-in cascade */
.rise {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; filter: none; }
}

/* ── Figures & asset placeholders ─────────────────────────────────── */

.frame { position: relative; background: var(--bg-sunken); }
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.frame.is-missing img { display: none; }
.frame.is-missing::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--hairline-soft) 0.5px, transparent 0.5px) 0 0 / 14px 14px,
    var(--bg-sunken);
}
.frame.is-missing::after {
  content: attr(data-note);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1.5rem;
  text-align: center;
  font: 500 0.85rem/1.7 "Archivo", sans-serif;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: pre-line;
}

/* ── Stat band ────────────────────────────────────────────────────── */

.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 2.2rem;
}
.stat b {
  display: block;
  font: 600 clamp(1.35rem, 2.2vw, 1.9rem)/1.1 "Archivo", sans-serif;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.stat span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding-block: clamp(5rem, 10vw, 8.5rem); }
section.tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { margin-top: 1.2rem; color: var(--muted); max-width: 36rem; }

/* Fold sequence: editorial filmstrip */
.fold-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.fold-step .frame { aspect-ratio: 4 / 5; border-radius: var(--r-surface); overflow: hidden; }
.fold-step figcaption {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.fold-step .n {
  font: 600 0.8rem/1 "Archivo", sans-serif;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.fold-step .cap { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .fold-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    scrollbar-width: none;
  }
  .fold-strip::-webkit-scrollbar { display: none; }
  .fold-step { flex: 0 0 74%; scroll-snap-align: start; }
}

/* Editorial split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split .frame { aspect-ratio: 4 / 3; border-radius: var(--r-surface); overflow: hidden; }
.split .editorial { margin-top: 1.4rem; }
.split ul.quiet {
  list-style: none;
  margin-top: 2rem;
}
.split ul.quiet li {
  padding-block: 0.85rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.split ul.quiet li strong { color: var(--ink); font-weight: 500; }

/* Full-bleed band */
.band {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  border-radius: 0;
  overflow: hidden;
}
.band .frame { position: absolute; inset: 0; }
.band .frame img { height: 100%; }
.band-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4.5rem);
  max-width: 40rem;
}
.band-copy .display {
  color: #f5f2ea;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 10, 0.62), rgba(15, 14, 10, 0.05) 55%);
  z-index: 1;
}
.band .frame.is-missing::after { z-index: 2; color: color-mix(in srgb, var(--faint) 75%, transparent); }

/* ── Cabin fit diagram ────────────────────────────────────────────── */

.cabin { background: var(--bg-raised); border-block: 1px solid var(--hairline-soft); }
.diagram-card {
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.diagram-card svg { width: 100%; height: auto; display: block; }
.dg-line { stroke: var(--hairline); stroke-width: 1.5; fill: none; }
.dg-bin { stroke: var(--muted); stroke-dasharray: 6 6; stroke-width: 1.5; fill: none; }
.dg-volara { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.dg-label { font: 500 13px "Archivo", sans-serif; fill: var(--muted); }
.dg-label-strong { font: 600 13.5px "Archivo", sans-serif; fill: var(--ink); }
.dg-dim { stroke: var(--faint); stroke-width: 1; }
.cabin-note { margin-top: 1.2rem; color: var(--faint); font-size: 0.88rem; max-width: 30rem; }

/* ── Specs clusters ───────────────────────────────────────────────── */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.spec-cluster {
  background: var(--bg-raised);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-surface);
  padding: 1.9rem;
}
.spec-cluster h3 {
  font: 600 1.05rem/1.3 "Archivo", sans-serif;
  font-stretch: 112%;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.spec-cluster dl { display: grid; gap: 0.85rem; }
.spec-cluster div { display: flex; justify-content: space-between; gap: 1.25rem; }
.spec-cluster dt { color: var(--muted); font-size: 0.95rem; }
.spec-cluster dd {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: right;
  font-feature-settings: "tnum";
}
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-foot { margin-top: 1.5rem; color: var(--faint); font-size: 0.88rem; }

/* ── Reviews ──────────────────────────────────────────────────────── */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.review-card {
  background: var(--bg-raised);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-surface);
  overflow: hidden;
}
.review-card:nth-child(2) { margin-top: clamp(0rem, 4vw, 3rem); }
.review-card:nth-child(3) { margin-top: clamp(0rem, 2vw, 1.5rem); }
.review-card .frame { aspect-ratio: 4 / 5; }
.review-body { padding: 1.5rem 1.6rem 1.7rem; }
.review-body .stars { color: var(--accent); letter-spacing: 0.18em; font-size: 0.85rem; }
.review-body blockquote {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.5;
  margin-block: 0.8rem 1rem;
  color: var(--text);
}
.review-body cite {
  font: 500 0.9rem "Archivo", sans-serif;
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 860px) {
  .review-grid { grid-template-columns: 1fr; }
  .review-card:nth-child(n) { margin-top: 0; }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq-list { max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--hairline-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 1.4rem;
  font: 500 1.08rem/1.4 "Archivo", sans-serif;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--faint);
  transition: transform 0.45s var(--ease-swift);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .a {
  padding-bottom: 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ── Closing CTA ──────────────────────────────────────────────────── */

.closer {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-surface);
  padding: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.closer .display { color: var(--bg); font-size: clamp(2rem, 4.5vw, 3.4rem); }
.closer p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin: 1.2rem auto 2.2rem; max-width: 30rem; }
.closer .btn {
  background: var(--bg);
  color: var(--ink);
}
.closer .btn .circ { background: rgba(28, 27, 20, 0.1); }
[data-theme="dark"] .closer .btn .circ { background: rgba(236, 232, 219, 0.14); }
.closer .fine { font-size: 0.85rem; margin-top: 1.4rem; color: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.foot-grid h4 {
  font: 600 0.8rem/1 "Archivo", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.1rem;
}
.foot-grid ul { list-style: none; display: grid; gap: 0.65rem; }
.foot-grid a, .foot-grid button.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 400 0.98rem/1.5 "Archivo", sans-serif;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.foot-grid a:hover, .foot-grid button.linklike:hover { color: var(--ink); }

.newsletter p { color: var(--muted); margin-block: 0.75rem 1.25rem; max-width: 26rem; }
.newsletter form { display: flex; gap: 0.6rem; max-width: 26rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  border-radius: var(--r-input);
  padding: 0.8rem 1rem;
  font: 400 0.98rem "Archivo", sans-serif;
  color: var(--text);
  transition: border-color 0.3s;
}
.newsletter input::placeholder { color: var(--faint); }
.newsletter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.newsletter button {
  border: 0;
  border-radius: var(--r-input);
  padding: 0.8rem 1.3rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font: 600 0.95rem "Archivo", sans-serif;
  cursor: pointer;
  transition: transform 0.3s var(--ease-swift);
}
.newsletter button:active { transform: scale(0.97); }
.newsletter .msg { font-size: 0.9rem; margin-top: 0.6rem; color: var(--accent); min-height: 1.2em; }

.foot-base {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.88rem;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Scroll reveal ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(5px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ── Checkout overlay ─────────────────────────────────────────────── */

.checkout-layer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  /* hidden but kept in the layout so the payment iframe can preload */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.checkout-layer.open { opacity: 1; visibility: visible; pointer-events: auto; }
.checkout-body > [data-whop-checkout-plan-id] { min-height: 480px; }
.checkout-body iframe { border: 0; width: 100%; }
.checkout-panel {
  width: min(560px, 100%);
  max-height: min(92dvh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-surface);
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  animation: panelIn 0.6s var(--ease-out);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.checkout-head .t { font: 600 1rem "Archivo", sans-serif; color: var(--ink); }
.checkout-head .p { color: var(--muted); font-size: 0.92rem; }
.checkout-close {
  border: 1px solid var(--hairline);
  background: none;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.3s, border-color 0.3s;
  flex: none;
}
.checkout-close:hover { color: var(--ink); border-color: var(--accent); }
.checkout-body {
  overflow-y: auto;
  flex: 1;
  min-height: 320px;
  padding: 0.5rem;
}
.checkout-status {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thanks {
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.thanks .mark {
  width: 3.4rem; height: 3.4rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.thanks h3 { font: 600 1.5rem "Archivo", sans-serif; font-stretch: 112%; color: var(--ink); margin-bottom: 0.8rem; }
.thanks p { color: var(--muted); max-width: 24rem; margin: 0 auto 1.75rem; }

/* ── Policy dialogs ───────────────────────────────────────────────── */

dialog.policy {
  width: min(640px, calc(100vw - 2rem));
  max-height: 84dvh;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-surface);
  background: var(--bg-raised);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow-ambient);
}
dialog.policy::backdrop {
  background: rgba(15, 14, 10, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.policy-inner { padding: 2.25rem 2.25rem 2.5rem; overflow-y: auto; }
.policy-inner h3 { font: 600 1.35rem "Archivo", sans-serif; font-stretch: 112%; color: var(--ink); margin-bottom: 1.25rem; }
.policy-inner h4 { font: 600 1rem "Archivo", sans-serif; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.policy-inner p, .policy-inner li { color: var(--muted); font-size: 0.98rem; }
.policy-inner ul { padding-left: 1.2rem; margin-block: 0.5rem; }
.policy-close-row { display: flex; justify-content: flex-end; padding: 0 2.25rem 1.5rem; }

/* ── Hero parallax (progressive enhancement) ──────────────────────── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media .frame img {
      animation: heroDrift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes heroDrift {
      from { transform: translateY(-3.5%) scale(1.07); }
      to { transform: translateY(3.5%) scale(1.07); }
    }
    .band .frame img {
      animation: bandDrift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes bandDrift {
      from { transform: translateY(-5%) scale(1.12); }
      to { transform: translateY(5%) scale(1.12); }
    }
  }
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { padding-top: 84px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 4 / 4.4; }
  .split { grid-template-columns: 1fr; }
  .split.flip .frame { order: -1; }
}

/* ── Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .btn, .btn .circ, .theme-toggle { transition: none; }
  .checkout-panel { animation: none; }
}

/* ════ PRODUCT PAGE (PDP) ════════════════════════════════════════════ */

.pdp { padding-top: 104px; padding-bottom: clamp(2rem, 4vw, 4rem); }
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

/* Gallery */
.gallery { position: sticky; top: 96px; }
.g-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-surface);
  scrollbar-width: none;
  box-shadow: var(--shadow-ambient);
}
.g-track::-webkit-scrollbar { display: none; }
.g-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.g-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.9rem; }
.g-dots button {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0;
  background: var(--hairline); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.g-dots button.on { background: var(--accent); transform: scale(1.35); }
.g-thumbs { display: none; gap: 0.6rem; margin-top: 0.9rem; }
.g-thumbs button {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  border: 1.5px solid transparent; padding: 0; cursor: pointer;
  background: var(--bg-sunken);
  transition: border-color 0.3s;
}
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 861px) { .g-thumbs { display: flex; } .g-dots { display: none; } }

/* Buy box */
.chip {
  display: inline-block;
  font: 600 0.7rem/1 "Archivo", sans-serif;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1rem;
}
.buybox h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); margin-bottom: 0.5rem; }
.tagline { color: var(--muted); margin-bottom: 1.25rem; }
.price-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.price-row .price-tag { font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.price-row .price-tag s { color: var(--faint); font-weight: 400; font-size: 1.05rem; }
.save {
  font: 600 0.75rem/1 "Archivo", sans-serif;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
}
.benefits { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.6rem; }
.benefits li { padding-left: 1.5rem; position: relative; color: var(--text); font-size: 0.98rem; }
.benefits li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.qty-label { font: 500 0.9rem "Archivo", sans-serif; color: var(--muted); }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-raised);
}
.qty button {
  width: 2.5rem; height: 2.5rem; border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; color: var(--muted);
  transition: color 0.2s;
}
.qty button:hover { color: var(--ink); }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty span { min-width: 2rem; text-align: center; font: 600 1rem "Archivo", sans-serif; color: var(--ink); font-feature-settings: "tnum"; }
.qty-sm button { width: 2rem; height: 2rem; font-size: 1rem; }
.qty-sm span { min-width: 1.5rem; font-size: 0.95rem; }

.buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.9rem; }
.btn-wide { justify-content: space-between; width: 100%; }
.btn-outline {
  border: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  font: 600 1rem/1 "Archivo", sans-serif;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.3s var(--ease-swift), color 0.3s var(--ease-swift), transform 0.3s var(--ease-swift);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline:active { transform: scale(0.98); }
.secure-note { color: var(--faint); font-size: 0.85rem; margin-bottom: 1.4rem; }

.acc { border-top: 1px solid var(--hairline-soft); }
.acc:last-of-type { border-bottom: 1px solid var(--hairline-soft); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1rem;
  font: 500 1rem "Archivo", sans-serif; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--faint); font-size: 1.25rem; font-weight: 300; transition: transform 0.4s var(--ease-swift); }
.acc[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.acc-body { padding-bottom: 1.1rem; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .pdp { padding-top: 88px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery { position: static; }
  .buy-btns { grid-template-columns: 1fr; }
}

/* ════ CART DRAWER ═══════════════════════════════════════════════════ */

.cart-layer {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15, 14, 10, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.cart-layer.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-raised);
  border-left: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column;
  transform: translateX(24px);
  transition: transform 0.45s var(--ease-swift);
}
.cart-layer.open .cart-drawer { transform: none; }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.cart-head .t { font: 600 1.05rem "Archivo", sans-serif; color: var(--ink); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.cart-item { display: flex; gap: 1rem; align-items: flex-start; }
.cart-item img { width: 76px; height: 95px; object-fit: cover; border-radius: 12px; }
.ci-info { flex: 1; display: grid; gap: 0.45rem; }
.ci-info b { font: 600 1rem "Archivo", sans-serif; color: var(--ink); }
.ci-unit { color: var(--muted); font-size: 0.9rem; }
.ci-line { color: var(--ink); font-feature-settings: "tnum"; }
.cart-empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }
.cart-foot { border-top: 1px solid var(--hairline-soft); padding: 1.2rem 1.4rem 1.4rem; }
.subtotal { display: flex; justify-content: space-between; font: 600 1.05rem "Archivo", sans-serif; color: var(--ink); margin-bottom: 0.35rem; }
.sub-note { color: var(--faint); font-size: 0.85rem; min-height: 1.2em; margin-bottom: 0.9rem; }
.cart-foot .btn { width: 100%; justify-content: space-between; }
.cart-foot .secure-note { margin: 0.8rem 0 0; text-align: center; }

.alt-pay {
  display: block;
  text-align: center;
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.alt-pay:hover { color: var(--accent); }

.legal-fine { font-size: 0.72rem; color: var(--faint); }
