:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --fg: #f7f7f2;
  --muted: #a8a89e;
  --muted-soft: #8a8a80;
  --yellow: #FFD400;
  --yellow-hover: #ffe566;
  --yellow-glow: rgba(255, 212, 0, 0.35);
  --border: #2a2a2e;
  --card: rgba(255, 255, 255, 0.04);
  --focus: #FFD400;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 5.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--fg);
  outline-offset: 2px;
}


/* Page-specific hero illustration */
.hero-media {
  margin: 0 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #101012;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

/* Ambient background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(255, 212, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 100, 50, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 60% at 70% 100%, rgba(80, 120, 255, 0.07), transparent 55%),
    linear-gradient(180deg, #0c0c0e 0%, #0a0a0b 50%, #080809 100%);
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.bg-layer::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: 12%;
  right: -80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 212, 0, 0.12);
  box-shadow: 0 0 0 40px rgba(255, 212, 0, 0.03);
}

.wrap,
footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: 3rem 0 2rem;
  flex: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: 999px;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 6.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.body {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
}

/* Two-beat story */
.story {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}

.story-beat {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.story-beat--cynic {
  border-color: #3a3a42;
  background: rgba(255, 255, 255, 0.025);
}

.story-beat--kind {
  border-color: rgba(255, 212, 0, 0.28);
  background: rgba(255, 212, 0, 0.05);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.06);
}

.story-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.story-beat--kind .story-label {
  color: var(--yellow);
}

.story-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.45;
}

.story-beat--kind .story-text {
  color: var(--fg);
}

.story-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--yellow);
  font-weight: 700;
}

/* Progress card */
.progress {
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-count {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.progress-count span {
  color: var(--yellow);
}

.progress-track {
  height: 0.55rem;
  background: #1c1c20;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a800, var(--yellow));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--yellow-glow);
  transition: width 0.6s ease;
}

.progress-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

/* How it works */
.how {
  margin: 0 0 2rem;
}

.how-title {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid rgba(255, 212, 0, 0.35);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.how-step strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  color: var(--fg);
}

.how-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* CTA block */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.75rem;
  min-width: min(100%, 18rem);
  padding: 1rem 2rem;
  background: var(--yellow);
  color: #111;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 0 0 0 var(--yellow-glow),
    0 10px 30px rgba(255, 212, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 var(--yellow-glow),
      0 10px 30px rgba(255, 212, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(255, 212, 0, 0),
      0 10px 30px rgba(255, 212, 0, 0.28);
  }
}

.cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 14px 36px rgba(255, 212, 0, 0.35);
}

.cta:focus-visible {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 14px 36px rgba(255, 212, 0, 0.35);
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(0);
}

.cta-micro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.trust .icon {
  color: var(--yellow);
  font-size: 0.9rem;
  line-height: 1;
}

.aside {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.text-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.text-link:hover {
  color: var(--yellow);
}

.text-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-soft);
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 11, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sticky-cta__btn {
  min-width: 0;
  flex: 1;
  min-height: 3.1rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  animation: none;
  box-shadow: 0 6px 20px rgba(255, 212, 0, 0.22);
}

.sticky-cta__micro {
  display: none;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Thank-you */
.thank-you {
  text-align: left;
}

.thank-you h1 {
  font-size: clamp(1.85rem, 6.5vw, 2.65rem);
}

.thank-you .body {
  max-width: 36ch;
}

.celebrate {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
}

.share-grid {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 0 0.35rem;
}

.share-grid .cta,
.share-grid .btn-secondary {
  min-width: 0;
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, 0.06);
  color: var(--yellow);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-color: var(--yellow);
}

.btn-secondary.is-copied {
  border-color: rgba(255, 212, 0, 0.5);
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
}

.copy-feedback {
  margin: 0.35rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: 600;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.85;
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .eyebrow-dot,
  .confetti i {
    animation: none !important;
  }

  .cta:hover,
  .cta:focus-visible {
    transform: none;
  }
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }

  .wrap {
    padding-top: 4.5rem;
  }

  .body {
    font-size: 1.15rem;
  }

  .cta {
    min-width: 20rem;
    font-size: 1.3rem;
  }

  .story {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.85rem;
  }

  .story-arrow {
    display: flex;
  }

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 420px) {
  .sticky-cta__micro {
    display: inline;
  }
}


/* Pet Bomb — roast gallery */
.roast-gallery {
  margin: 0 0 2rem;
}

.roast-grid {
  display: grid;
  gap: 0.85rem;
}

.roast-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.roast-card--accent {
  border-color: rgba(255, 212, 0, 0.35);
  background: rgba(255, 212, 0, 0.06);
  box-shadow: 0 0 28px rgba(255, 212, 0, 0.08);
}

.roast-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.roast-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.roast-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}

.roast-fields {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.roast-fields dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.roast-fields dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.roast-card--accent .roast-fields dd {
  color: var(--fg);
}

@media (min-width: 720px) {
  .roast-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

  .wrap {
    width: min(100% - 2rem, 56rem);
  }

  footer {
    width: min(100% - 2rem, 56rem);
  }
}

/* ——— Free SAMPLE preview (conversion) ——— */
.sample-lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sample-feature {
  margin: 0 0 0.85rem;
}

.roast-card--sample {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 212, 0, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.sample-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 212, 0, 0.35);
}

.sample-stamp {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: clamp(2.8rem, 14vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(255, 212, 0, 0.22);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(-18deg);
  user-select: none;
}

.sample-stamp--sm {
  font-size: clamp(2rem, 10vw, 2.8rem);
  color: rgba(255, 212, 0, 0.28);
}

.sample-stamp--lock {
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  color: rgba(255, 212, 0, 0.18);
  letter-spacing: 0.12em;
}

.roast-fields--sample dd {
  position: relative;
  z-index: 1;
}

.sample-lock-note {
  position: relative;
  z-index: 3;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 212, 0, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
}

.roast-card--blurred .roast-fields--sample {
  filter: blur(2.5px);
  opacity: 0.72;
  user-select: none;
}

.roast-card--blurred .roast-card__top {
  filter: blur(0.6px);
  opacity: 0.85;
}

.roast-grid--tease {
  display: grid;
  gap: 0.85rem;
}

.roast-card--locked {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 212, 0, 0.45);
  background: rgba(255, 212, 0, 0.07);
  box-shadow: 0 0 28px rgba(255, 212, 0, 0.1);
}

.roast-card--locked .roast-fields dd {
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}

.locked-cta-hint {
  position: relative;
  z-index: 3;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 212, 0, 0.28);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--yellow);
}

@media (min-width: 720px) {
  .roast-grid--tease {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roast-card--blurred .roast-fields--sample,
  .roast-card--blurred .roast-card__top {
    filter: none;
    opacity: 0.55;
  }
}
