/*
Theme Name: Richie's Collagen
Theme URI: https://richies-collagen-v2.vercel.app
Author: Richie's Collagen
Description: Bright, joyful WooCommerce theme for Richie's Collagen — a premium daily collagen topper for dogs. Fresh green, sunny gold and clean typography, built around the real tin and the Richie's rescue story.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: richies
*/

/* ============================================================
   Richie's Collagen — bright edition (v4)
   Palette: fresh green / sunny gold / clean cream (light only)
   Type: Poppins (UI) + Caveat (handwritten accents)
   Motifs: paw print + outline heart (from the tin artwork)
   ============================================================ */

:root {
  --paper: #fffcf6;
  --paper-2: #f2f9ed;
  --paper-3: #e4f2df;
  --white: #ffffff;
  --ink: #17251b;
  --muted: #5b6b5d;
  --line: rgba(23, 37, 27, 0.12);
  --line-2: rgba(23, 37, 27, 0.22);

  --bark: #14532a;
  --bark-2: #1c6b36;
  --bone: #fffcf6;
  --bone-muted: #c9e3c7;

  --honey: #ffb627;
  --honey-deep: #d99500;
  --accent: #237a38;
  --green: #237a38;
  --green-bright: #2e9445;
  --green-soft: #9fd3a6;
  --coral: #c7431f;
  --steel-hi: #f3f5f7;
  --steel: #c9ced5;
  --steel-low: #aeb5bd;

  --on-honey: #17251b;
  --on-bone: #17251b;
  --ring: rgba(35, 122, 56, 0.2);
  --shadow: 0 24px 60px -28px rgba(20, 83, 42, 0.35);
  --shadow-soft: 0 14px 34px -20px rgba(20, 83, 42, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --radius: 22px;
}

/* ---------- Reset / base ---------- */

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

* { margin: 0; }

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

::selection { background: var(--honey); color: var(--on-honey); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: 96px; }

.shell {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .shell { width: min(1240px, 100% - 34px); }
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* Soft paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Marks (paw / heart) ---------- */

.paw,
.heart { display: block; }

.paw--mark {
  width: 22px;
  height: 22px;
  color: #fff;
}

.heart { width: 18px; height: 18px; }

/* ---------- Type ---------- */

.display,
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
}

.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.display-2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

.display em,
.display-2 em {
  font-style: normal;
  color: var(--green);
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 44ch;
}

.section-copy {
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 56ch;
}

.section-copy--dark { color: var(--bone-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow .paw {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.eyebrow--bone { color: var(--bone-muted); }
.eyebrow--bone .paw { color: var(--honey); }

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--solid {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(35, 122, 56, 0.6);
}

.btn--solid:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(35, 122, 56, 0.65);
}

.btn--sun {
  background: var(--honey);
  color: var(--on-honey);
  box-shadow: 0 12px 26px -14px rgba(217, 149, 0, 0.55);
}

.btn--sun:hover {
  background: #ffc44a;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn--bone {
  background: #fff;
  color: var(--ink);
}

.btn--bone:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.4);
}

.btn--small { padding: 12px 22px; font-size: 0.88rem; }
.btn--wide { width: 100%; }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--green);
  color: #fff;
  overflow: hidden;
  padding: 9px 0;
  position: relative;
  z-index: 101;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.ticker__list {
  display: flex;
  align-items: center;
}

.ticker__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  padding: 0 18px 0 0;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.ticker__list li::after {
  content: "🐾";
  font-size: 0.7rem;
  filter: grayscale(1) brightness(3);
  opacity: 0.75;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}

/* ---------- Header ---------- */

#top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header--over { background: transparent; }

@supports (backdrop-filter: blur(8px)) {
  .site-header--over.is-scrolled,
  .site-header:not(.site-header--over) {
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
  }
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 8px 18px -10px rgba(35, 122, 56, 0.7);
  flex: none;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand-copy small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1px;
}

.main-nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list li { list-style: none; }

.main-nav a,
.footer-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
}

.main-nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after,
.footer-links a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-cart__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--white);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a:not(.btn) {
  padding: 12px 0;
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn { margin-top: 18px; }

@media (min-width: 1100px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 1099px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .header-cart__label { display: none; }
  .header-row { height: 66px; }
}

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

.hero {
  position: relative;
  padding: clamp(40px, 5vh, 64px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(1200px 520px at 88% -10%, #e7f5e2 0%, transparent 60%),
    radial-gradient(900px 420px at -10% 110%, #fff2d8 0%, transparent 55%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-copy .display { margin-top: 20px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-signoff {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-signoff .paw {
  width: 16px;
  height: 16px;
  color: var(--honey-deep);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-note .heart { color: var(--coral); width: 15px; height: 15px; }

.hero-media { position: relative; }

.photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow);
}

.photo img { transition: transform 0.9s var(--ease); }
.photo:hover img { transform: scale(1.03); }

.hero-photo { height: clamp(380px, 60vh, 620px); }

/* Story badge (the "Coming Soon" script from the promo) */
.story-badge {
  position: absolute;
  top: -22px;
  right: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 14px 24px 16px;
  border-radius: 22px;
  background: var(--honey);
  color: var(--on-honey);
  box-shadow: var(--shadow-soft);
  rotate: -6deg;
  text-align: center;
  line-height: 1;
}

.story-badge b {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.story-badge small {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100dvh - 120px);
  }
}

/* ---------- The tin ---------- */

.tin {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 22px 26px rgba(23, 37, 27, 0.3));
}

.tin::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -16px;
  height: 20px;
  border-radius: 50%;
  background: rgba(23, 37, 27, 0.18);
  filter: blur(12px);
  z-index: 0;
}

.tin__body {
  position: relative;
  z-index: 1;
  padding: 22px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfcfd 0%, #e2e7ec 34%, #c4cbd3 68%, #a9b1bb 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -14px 22px -14px rgba(23, 37, 27, 0.4),
    0 22px 32px -20px rgba(23, 37, 27, 0.5);
  overflow: hidden;
}

.tin__body::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 9px;
  height: 1px;
  background: rgba(23, 37, 27, 0.16);
}

.tin__body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.55) 0%, transparent 40%, rgba(255, 255, 255, 0.2) 100%);
}

.tin__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tin__lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.paw--tin {
  width: 20px;
  height: 20px;
  color: #1c1c1c;
  flex: none;
}

.tin__wordmark {
  display: block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 0.9;
  color: #1c1c1c;
  white-space: nowrap;
}

.tin__wordmark sup {
  font-size: 0.5em;
  vertical-align: super;
  font-family: var(--font-body);
  font-weight: 500;
}

.tin__wordmark small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c1c1c;
}

.tin__rule {
  width: 1px;
  align-self: stretch;
  background: rgba(28, 28, 28, 0.45);
  flex: none;
}

.tin__desc {
  font-size: 0.68rem;
  line-height: 1.4;
  color: #1c1c1c;
  max-width: 20ch;
}

.heart--tin {
  width: 20px;
  height: 20px;
  color: #1c1c1c;
  flex: none;
  margin-left: auto;
}

.tin__name {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(28, 28, 28, 0.35);
  font-family: var(--font-script);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1c1c;
  text-align: center;
}

.hero-tin {
  position: absolute;
  left: -30px;
  bottom: -36px;
  width: clamp(290px, 30vw, 400px);
  rotate: -3deg;
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { height: clamp(320px, 52vh, 520px); }
  .hero-tin {
    left: auto;
    right: 8px;
    bottom: -32px;
    width: min(300px, 78%);
  }
  .story-badge { top: -16px; right: 14px; }
}

@media (max-width: 480px) {
  .tin__row { flex-wrap: wrap; }
  .tin__rule { display: none; }
  .tin__desc { font-size: 0.62rem; }
}

/* ---------- Stats strip ---------- */

.stats {
  background: var(--green);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 26px 34px 0;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 30px;
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--honey);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 20px 24px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.22); padding-left: 22px; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.22); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(70px, 9vh, 120px) 0; }

.section--tint { background: var(--paper-2); }

.section--bark {
  background: var(--bark);
  color: var(--bone);
}

.section--bark .section-title,
.section--bark .display-2 { color: #fff; }

.section--bark .section-copy { color: var(--bone-muted); }

.section--bark em { color: var(--honey); }

.section-head { max-width: 820px; }

.section-head .display-2 { margin-top: 18px; }

.section-head .section-copy { margin-top: 18px; }

/* ============================================================
   The story — Richie's chapters
   ============================================================ */

.story {
  position: relative;
  background: var(--paper);
  padding-top: clamp(64px, 8vh, 100px);
}

.story__intro {
  max-width: 820px;
  margin-bottom: clamp(44px, 6vh, 76px);
}

.story__intro .display-2 { margin-top: 18px; }

.chapter {
  position: relative;
  padding: clamp(52px, 7vh, 88px) 0;
  background: var(--paper);
  transition: background-color 0.6s var(--ease);
}

.chapter:nth-child(even) { background: var(--paper-2); }

.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.chapter--right .chapter__media { order: 2; }
.chapter--right .chapter__body { order: 1; }

.chapter__media { position: relative; }

.chapter__photo {
  height: clamp(340px, 56vh, 560px);
  border: 6px solid #fff;
}

.chapter__heart {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 54px;
  height: 54px;
  padding: 13px;
  border-radius: 50%;
  background: var(--honey);
  color: var(--on-honey);
  box-shadow: var(--shadow-soft);
}

.chapter--right .chapter__heart { right: auto; left: -16px; }

.chapter__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

.chapter__kicker .paw {
  width: 15px;
  height: 15px;
  color: var(--honey-deep);
}

.chapter__title {
  margin-top: 16px;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  max-width: 20ch;
}

.chapter__text {
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 46ch;
}

.chapter__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}

.chapter__cue i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 0.8rem;
  font-style: normal;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.chapter:hover .chapter__cue i {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(3px);
}

/* Progress indicator */
.story-progress {
  position: fixed;
  top: 50%;
  right: 32px;
  translate: 0 -50%;
  z-index: 95;
  display: none;
  width: 3px;
  height: 220px;
  border-radius: 3px;
  background: var(--line-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.story-progress.is-visible { opacity: 1; visibility: visible; }

.story-progress__fill {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 3px;
  background: var(--green);
  transition: height 0.25s var(--ease);
}

@media (min-width: 1200px) {
  .story-progress { display: block; }
}

.story__outro {
  padding: clamp(56px, 8vh, 96px) 0 clamp(70px, 9vh, 110px);
}

.story__outro-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.story__outro-inner .paw {
  width: 30px;
  height: 30px;
  color: var(--honey-deep);
}

.story__outro-inner p {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: var(--green);
}

@media (max-width: 1023px) {
  .chapter__grid { grid-template-columns: 1fr; }
  .chapter--right .chapter__media,
  .chapter--right .chapter__body { order: 0; }
  .chapter__media { margin-bottom: 28px; }
  .chapter__photo { height: clamp(300px, 48vh, 480px); }
}

/* ---------- Split (topper) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(38px, 5.5vw, 84px);
  align-items: center;
}

.split__media { position: relative; }

.split__photo { height: clamp(340px, 54vh, 540px); }

.split__tin {
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: clamp(270px, 26vw, 370px);
  rotate: 3deg;
}

.feature-list { margin-top: 32px; }

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list .paw {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 4px;
}

.feature-list span {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.feature-list small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.split__copy .btn { margin-top: 32px; }

@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .split__media { margin-bottom: 30px; }
  .split__photo { height: clamp(300px, 48vh, 480px); }
  .split__tin { right: 8px; bottom: -26px; width: 230px; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 5vh, 58px);
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  box-shadow: var(--shadow-soft);
}

.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.step__num .paw { width: 20px; height: 20px; }
.step__num .heart { width: 20px; height: 20px; }

.step h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

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

/* ---------- Benefits (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vh, 58px);
}

.tile {
  border-radius: var(--radius);
  padding: 26px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tile p {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--muted);
}

.tile--honey {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--honey);
  border-color: transparent;
  gap: 4px;
  box-shadow: 0 22px 44px -22px rgba(217, 149, 0, 0.7);
}

.tile--honey h3 { color: var(--on-honey); font-size: 1.12rem; }
.tile--honey p { color: rgba(23, 37, 27, 0.82); }

.tile__big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 5.6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tile--photo {
  grid-column: span 4;
  padding: 0;
  min-height: 270px;
  border: 6px solid #fff;
}

.tile--text { grid-column: span 2; }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--honey { grid-column: span 2; grid-row: auto; }
  .tile--photo { grid-column: span 2; min-height: 230px; }
  .tile--text { grid-column: span 1; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--honey,
  .tile--photo,
  .tile--text { grid-column: span 1; }
  .tile { min-height: 150px; }
  .tile--photo { min-height: 210px; }
}

/* ---------- Legacy / rescue ---------- */

.legacy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(38px, 5.5vw, 84px);
  align-items: center;
}

.legacy__copy .display-2 { margin-top: 18px; }

.quote {
  margin: 30px 0 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--paper-2);
  border-left: 4px solid var(--honey);
}

.quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.legacy__panel {
  position: relative;
  padding: clamp(30px, 3.4vw, 42px);
  border-radius: 26px;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.legacy__panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -54px;
  top: -54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.legacy__panel .paw {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--honey);
}

.legacy__figure {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--honey);
  font-variant-numeric: tabular-nums;
}

.legacy__panel h3 {
  position: relative;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
}

.legacy__panel p {
  position: relative;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

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

/* ---------- Journal ---------- */

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 5vh, 58px);
}

.article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.article__photo {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 10;
}

.article__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.article__meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.article h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.article p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
}

.article__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.article__link .arr { transition: transform 0.35s var(--ease); }
.article:hover .article__link .arr { transform: translateX(4px); }

@media (max-width: 980px) {
  .journal { grid-template-columns: 1fr; }
  .article { flex-direction: row; }
  .article__photo { width: 40%; aspect-ratio: auto; min-height: 200px; }
}

@media (max-width: 640px) {
  .article { flex-direction: column; }
  .article__photo { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

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

.faq {
  margin-top: clamp(36px, 5vh, 52px);
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 22px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  letter-spacing: -0.01em;
}

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

.faq summary i {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-3);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--green);
  transition: background 0.3s var(--ease);
}

.faq summary i::before { width: 11px; height: 2px; }
.faq summary i::after { width: 2px; height: 11px; }

.faq details[open] summary i {
  transform: rotate(45deg);
  background: var(--green);
}

.faq details[open] summary i::before,
.faq details[open] summary i::after { background: #fff; }

.faq__body p {
  padding: 0 40px 22px 2px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Build CTA ---------- */

.build__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(38px, 5.5vw, 84px);
  align-items: center;
}

.build__grid .display-2 { margin-top: 18px; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }

.build__panel {
  padding: clamp(26px, 3vw, 36px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.build__list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.build__list b {
  min-width: 74px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--honey);
  font-variant-numeric: tabular-nums;
}

.build__list span {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.9);
}

.build__panel .btn { margin-top: 26px; }

.build__note {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  text-align: center;
  color: var(--bone-muted);
}

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

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

.site-footer {
  position: relative;
  background: var(--bark);
  color: var(--bone);
  overflow: hidden;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
  color: var(--bark);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.25fr;
  gap: clamp(34px, 5vw, 68px);
  padding: clamp(46px, 6vh, 68px) 0 clamp(36px, 5vh, 52px);
}

.footer-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 16px;
}

.footer-brand p,
.footer-join > p {
  margin-top: 4px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--bone-muted);
  max-width: 36ch;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: var(--bone-muted); }
.brand--footer .brand-mark { background: var(--honey); }
.brand--footer .brand-mark .paw { color: var(--on-honey); }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  font-size: 0.94rem;
  color: #fff;
}

.footer-links a::after { background: var(--honey); }

.signup {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.94rem;
  transition: border-color 0.3s var(--ease);
}

.signup input::placeholder { color: rgba(255, 255, 255, 0.6); }

.signup input:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
  border-color: var(--honey);
}

.signup .btn--solid {
  background: var(--honey);
  color: var(--on-honey);
  box-shadow: none;
}

.signup .btn--solid:hover { background: #ffc44a; }

.signup__status {
  margin-top: 12px;
  min-height: 1.3em;
  font-size: 0.85rem;
  color: var(--honey);
}

.signup__status.is-error { color: #ffb4a2; }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: var(--bone-muted);
}

.footer-memory {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--honey);
}

.footer-memory .paw { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-join { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
}

/* ---------- Print ---------- */

@media print {
  .grain,
  .ticker,
  .site-header,
  .story-progress,
  .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   WordPress / WooCommerce additions
   ============================================================ */

body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

#join { scroll-margin-top: 96px; }

.journal .article__body h3 a,
.article h3 a { text-decoration: none; color: inherit; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.entry-shell { max-width: 780px; margin-inline: auto; }

.entry-content {
  margin-top: 30px;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink);
}

.entry-content > * + * { margin-top: 1.2em; }

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2em;
}

.entry-content h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.entry-content h3 { font-size: 1.28rem; }

.entry-content a { color: var(--green); text-underline-offset: 3px; }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li { margin-top: 0.4em; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--paper-2);
  border-left: 4px solid var(--honey);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.5;
}

.entry-content img { border-radius: 18px; }

.wp-caption-text,
.wp-block-image figcaption {
  margin-top: 0.6em;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.post-hero { margin: 34px 0 0; height: clamp(260px, 44vh, 440px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--green);
  border-bottom: 1px solid var(--green-soft);
  padding-bottom: 2px;
}

.woo-shell { min-height: 40vh; }

.richies-personalise {
  margin: 24px 0 6px;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.richies-personalise h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.richies-personalise label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 14px 0 8px;
}

.richies-personalise label:first-of-type { margin-top: 0; }

.richies-personalise input[type="text"],
.richies-personalise input[type="file"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.richies-personalise input[type="file"] { padding: 11px 14px; }

.richies-personalise input[type="text"]:focus-visible,
.richies-personalise input[type="file"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.richies-personalise small {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.richies-personalise .req { color: var(--coral); }
