/* ============================================================
   The Girlfriend User Manual � field-guide sales site
   ============================================================ */

:root {
  --red: #c43c32;
  --red-dark: #a3322a;
  --red-soft: #d75a50;
  --cream: #f5efe1;
  --cream-dark: #ebe3d0;
  --cream-deep: #e2d8c2;
  --ink: #243447;
  --ink-soft: #3a4d63;
  --white: #fffdf8;
  --muted: rgba(36, 52, 71, 0.62);
  --line: rgba(36, 52, 71, 0.14);
  --ok: #2f6b4f;
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --nav-h: 72px;
  --sticky-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --paper:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(196, 60, 50, 0.04), transparent 35%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(36, 52, 71, 0.012) 3px,
      rgba(36, 52, 71, 0.012) 4px
    );
}

/* Self-hosted fonts + metric-matched fallbacks (reduces CLS on load) */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 98%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 95%;
  descent-override: 28%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 480px) {
  .container {
    width: min(100% - 2rem, var(--max));
  }
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.55rem;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  max-width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn--cream {
  background: linear-gradient(180deg, #fffdf8 0%, #f0e6d2 100%);
  color: var(--ink);
  border-color: rgba(36, 52, 71, 0.08);
  box-shadow: 0 10px 24px rgba(36, 52, 71, 0.18);
}

.btn--cream:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36, 52, 71, 0.22);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--red);
  border-color: var(--red);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(196, 60, 50, 0.28);
}

.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
}

.btn--outline-red:hover {
  background: var(--red);
  color: var(--white);
}

.btn--outline-navy,
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(36, 52, 71, 0.25);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(245, 239, 225, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  min-height: var(--nav-h);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav__logo-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.nav__logo-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav__logo-text strong {
  font-weight: 700;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--red);
}

.nav__cta {
  display: none;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 0.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(36, 52, 71, 0.08);
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1rem 0;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav__links,
  .nav__cta {
    display: inline-flex;
  }
  .nav__burger {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 1.25rem 0 0.5rem;
  background: transparent;
  color: var(--ink);
  min-height: auto;
  overflow: visible;
}

.hero::before,
.hero::after {
  display: none;
}

.hero__frame {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #d14a3f 0%, var(--red) 45%, #b4332a 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(255, 253, 248, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(196, 60, 50, 0.22);
  overflow: hidden;
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 239, 225, 0.28);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 55%, var(--cream) 0 35%, transparent 36%),
    radial-gradient(circle at 50% 45%, var(--cream) 0 28%, transparent 29%);
  opacity: 0.9;
}

.hero__corner--tl { top: 18px; left: 18px; }
.hero__corner--tr { top: 18px; right: 18px; }
.hero__corner--bl { bottom: 18px; left: 18px; }
.hero__corner--br { bottom: 18px; right: 18px; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.88);
  margin-bottom: 1.15rem;
}

.hero__eyebrow-line {
  flex: 1;
  max-width: 48px;
  border-top: 1px dashed rgba(245, 239, 225, 0.55);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 0.7rem;
  max-width: 11ch;
  font-weight: 600;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(245, 239, 225, 0.95);
  margin-bottom: 1rem;
}

.hero__copy {
  max-width: 32em;
  color: rgba(245, 239, 225, 0.88);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245, 239, 225, 0.75);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__book {
  width: min(100%, 320px);
  position: relative;
  margin-inline: auto;
}

.hero__book img {
  width: 100%;
  border-radius: 6px;
  box-shadow:
    0 24px 48px rgba(36, 52, 71, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.15) inset;
  transform: rotate(-2.5deg);
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hero__book:hover img {
    transform: rotate(-1deg) translateY(-4px);
  }
}

.hero__seal {
  position: absolute;
  right: max(-12px, -4vw);
  bottom: 14%;
  width: clamp(68px, 18vw, 84px);
  height: clamp(68px, 18vw, 84px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9ee, #f0e2c8 60%, #e4d3b4);
  border: 2px dashed var(--red);
  color: var(--red);
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 8px 18px rgba(36, 52, 71, 0.18);
  transform: rotate(8deg);
}

.hero__seal span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__seal strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

/* ---------- Assessment ---------- */

.joke {
  background: transparent;
  padding-top: clamp(2.75rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.joke__intro {
  text-align: center;
  max-width: 24em;
  margin: 0 auto 1.75rem;
}

.joke__intro h2 {
  margin-bottom: 0;
}

.assess {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(36, 52, 71, 0.06);
}

.assess__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assess__dots {
  display: flex;
  gap: 5px;
}

.assess__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 239, 225, 0.35);
}

.assess__dots i:first-child { background: #e85a4c; }
.assess__dots i:nth-child(2) { background: #e8c84c; }
.assess__dots i:nth-child(3) { background: #3ddc84; }

.assess__file {
  flex: 1;
  opacity: 0.75;
}

.assess__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.assess__list {
  margin: 0;
  padding: 0.25rem 0;
}

.assess__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.assess__row:last-child {
  border-bottom: none;
}

.assess__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.assess__badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
}

.assess__badge--warn {
  color: var(--red);
  background: rgba(196, 60, 50, 0.08);
  border-color: rgba(196, 60, 50, 0.28);
}

.assess__badge--fail {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.assess__badge--ok {
  color: var(--ok);
  background: rgba(47, 107, 79, 0.1);
  border-color: rgba(47, 107, 79, 0.3);
}

.assess__footer {
  padding: 1rem 1.15rem;
  background: var(--cream-dark);
  border-top: 1px solid var(--line);
}

.assess__result {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.assess__result strong {
  color: var(--red);
}

.joke__outro {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.joke__outro p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  max-width: 22em;
  margin: 0;
}

@media (max-width: 520px) {
  .assess__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .assess__badge {
    justify-self: start;
  }
}

/* ---------- Preview ---------- */

.preview {
  background: var(--ink);
  color: var(--cream);
}

.preview .section-label {
  color: var(--red-soft);
}

.preview h2 {
  color: var(--cream);
}

.preview__lead {
  color: rgba(245, 239, 225, 0.7);
  max-width: 36rem;
}

.preview__tap {
  display: none;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.55);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.preview-card {
  width: 100%;
  background: transparent;
  text-align: left;
  border: none;
  padding: 0;
  cursor: default;
  transition: transform 0.25s var(--ease);
}

@media (max-width: 899px) {
  .preview__tap {
    display: block;
  }

  .preview-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (hover: hover) and (pointer: fine) {
  .preview-card:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .preview-card:hover .preview-card__frame {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  }
}

.preview-card__frame {
  border: 1px solid rgba(245, 239, 225, 0.2);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.25s var(--ease);
}

.preview-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.familiar {
  background: transparent;
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.alert-list {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
}

.alert-item__icon {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--red);
  line-height: 1.4;
}

.familiar__punch {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(36, 52, 71, 0.05);
}

.familiar__punch h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.familiar__punch p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ---------- Why ---------- */

.why {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #d14a3f, var(--red) 50%, #b4332a);
  color: var(--cream);
  text-align: center;
}

.why h2 {
  color: var(--white);
  max-width: 16ch;
  margin-inline: auto;
}

.why__copy {
  max-width: 28em;
  margin: 1rem auto 1.75rem;
  color: rgba(245, 239, 225, 0.9);
}

.why__copy p + p {
  margin-top: 0.25rem;
}

/* ---------- Gift ---------- */

.gift {
  background: transparent;
}

.gift__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .gift__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gift__copy p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.gift__copy p strong {
  color: var(--ink);
  font-weight: 600;
}

.gift__art img,
.gift__cover {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(36, 52, 71, 0.12);
}

/* ---------- Purchase ---------- */

.purchase {
  background: var(--ink);
  color: var(--cream);
}

.purchase .section-label { color: var(--red-soft); }
.purchase h2 { color: var(--cream); }

.purchase__card {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(245, 239, 225, 0.04);
  border: 1px solid rgba(245, 239, 225, 0.18);
  border-radius: var(--radius);
}

@media (min-width: 800px) {
  .purchase__card {
    grid-template-columns: 240px 1fr;
  }
}

.purchase__cover {
  width: min(100%, 240px);
  margin-inline: auto;
}

.purchase__cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.purchase__meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.55);
  margin-bottom: 0.5rem;
}

.purchase__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.purchase__edition {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(245, 239, 225, 0.7);
  margin-bottom: 1.25rem;
}

.purchase__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.purchase__note {
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.5);
}

.physical {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1.5px dashed rgba(245, 239, 225, 0.28);
  border-radius: var(--radius-sm);
}

.physical.is-hidden {
  display: none;
}

.physical__badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(196, 60, 50, 0.95);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.physical h3 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.physical p {
  color: rgba(245, 239, 225, 0.7);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  background: transparent;
}

.faq-list {
  margin-top: 2rem;
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.15rem 0;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--red);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- Final CTA ---------- */

.final {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #d14a3f, var(--red) 55%, #b4332a);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(245, 239, 225, 0.28);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.final__inner {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
}

.final h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.final__install {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(36, 52, 71, 0.35);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.final__sub {
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 1.75rem;
  color: rgba(245, 239, 225, 0.9);
}

.final__meta {
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(245, 239, 225, 0.55);
  padding: 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer a:hover {
  color: var(--cream);
}

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(36, 52, 71, 0.96);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  padding: 0.9rem;
}

/* ---------- Lightbox (mobile preview enlarge) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  background: rgba(36, 52, 71, 0.94);
  -webkit-overflow-scrolling: touch;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  width: min(100%, 420px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__inner img {
  width: 100%;
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
  border: 2px solid var(--cream);
  border-radius: 8px;
  background: var(--cream);
}

.lightbox__close {
  align-self: flex-end;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
}

.lightbox__caption {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.75);
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }

  .lightbox {
    display: none !important;
  }
}

body.has-sticky-cta {
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reveal: visible by default; hide below-fold only after JS is ready */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
  }

  .js-ready .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
}

/* Legacy panel helpers still used elsewhere */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 899px) {
  body.nav-open {
    overflow: hidden;
  }
}

/* ---------- Mobile polish ---------- */

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: clamp(2.75rem, 10vw, 4rem) 0;
  }

  .hero {
    padding: 0.85rem 0 0.25rem;
  }

  .hero__frame {
    padding: 1.5rem 1.1rem 1.75rem;
    border-radius: 14px;
  }

  .hero__frame::before {
    inset: 8px;
    border-radius: 10px;
  }

  .hero__corner--tl { top: 12px; left: 12px; }
  .hero__corner--tr { top: 12px; right: 12px; }
  .hero__corner--bl { bottom: 12px; left: 12px; }
  .hero__corner--br { bottom: 12px; right: 12px; }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    max-width: none;
  }

  .hero__eyebrow {
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
  }

  .hero__content .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__visual {
    padding-inline: 0.5rem 1rem;
  }

  .joke__outro .btn,
  .familiar__punch .btn,
  .why .btn,
  .gift .btn,
  .final .btn {
    width: 100%;
    max-width: 22rem;
    white-space: normal;
  }

  .preview-grid {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .preview-card:hover {
    transform: none;
  }

  .preview-card:active {
    transform: scale(0.98);
  }

  .familiar__punch {
    padding: 1.5rem 1.15rem;
  }

  .alert-item {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .purchase__card {
    padding: 1.25rem;
  }

  .purchase__price {
    font-size: 2.1rem;
  }

  .final::before {
    inset: 10px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 380px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .nav__logo-text {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .assess__file {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (hover: none) {
  .preview-card:hover {
    transform: none;
  }

  .preview-card:hover .preview-card__frame {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }
}

/* ---------- Checkout busy state ---------- */

.btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
  cursor: wait;
}

/* ---------- Success / cancel pages ---------- */

.status-page .status-main {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}

.status-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.65), transparent 45%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 239, 225, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(36, 52, 71, 0.08);
}

.status-card--muted {
  background: rgba(255, 253, 248, 0.72);
}

.status-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.status-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.status-card__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.status-card__copy {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.status-card .btn {
  margin-top: 0.25rem;
}

.status-card__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.status-card__email {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .status-card {
    padding: 2.75rem 2.5rem;
  }
}

