/* ==========================================================================
   Jolly Curator — design system
   Palette: evergreen, cream, cranberry, brass. Modern Pinterest aesthetic:
   generous white space, rounded cards, soft shadows, tall imagery.
   ========================================================================== */

:root {
  --evergreen: #14342b;
  --evergreen-soft: #1f4a3d;
  --pine: #2c6e54;
  --cream: #fbf7f0;
  --cream-deep: #f3ece0;
  --paper: #ffffff;
  --cranberry: #b3202f;
  --cranberry-soft: #d24b58;
  --brass: #c9a227;
  --brass-soft: #e6c96a;
  --ink: #1b1f1d;
  --ink-soft: #55605b;
  --line: #e6ded2;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(20, 52, 43, .06);
  --shadow: 0 10px 30px rgba(20, 52, 43, .10);
  --shadow-lg: 0 22px 55px rgba(20, 52, 43, .16);
  --max: 1240px;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--evergreen);
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 74px 0; }
.section--tight { padding: 52px 0; }
.section--cream { background: var(--cream-deep); }
.section--evergreen { background: var(--evergreen); color: #eef4f0; }
.section--evergreen h2, .section--evergreen h3 { color: #fff; }

/* ---- Utility ------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cranberry);
  margin: 0 0 .85rem;
}
.section--evergreen .eyebrow { color: var(--brass-soft); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }
.section--evergreen .section-head p { color: #bcd2c8; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--evergreen); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  text-align: center; line-height: 1.2;
}
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cranberry); color: #fff; box-shadow: 0 8px 20px rgba(179, 32, 47, .26); }
.btn--primary:hover { background: #9d1a28; box-shadow: 0 12px 26px rgba(179, 32, 47, .32); }
.btn--evergreen { background: var(--evergreen); color: #fff; box-shadow: 0 8px 20px rgba(20, 52, 43, .22); }
.btn--evergreen:hover { background: var(--evergreen-soft); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--evergreen); }
.btn--ghost:hover { background: rgba(20, 52, 43, .06); }
.section--evergreen .btn--ghost { color: #fff; }
.section--evergreen .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--light { background: #fff; color: var(--evergreen); }
.btn--light:hover { background: var(--cream-deep); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---- Amazon CTA badge ---------------------------------------------------- */
.amazon-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: 13px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd863, #f0a800);
  color: #241a00; font-weight: 700; font-size: .95rem;
  border: 1px solid #d99400; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.amazon-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217, 148, 0, .35); filter: brightness(1.04); }
.amazon-cta:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.amazon-cta .fa-amazon { font-size: 1.1rem; }

.affiliate-note {
  font-size: .78rem; color: var(--ink-soft); margin: .6rem 0 0; line-height: 1.5;
}
.section--evergreen .affiliate-note { color: #9fbcb0; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 13px 0;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, var(--brass-soft), var(--brass) 55%, #8a6d0d);
  display: grid; place-items: center; color: #241a00; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .38);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--evergreen); }
.brand__tag { font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: var(--cranberry); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 13px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--ink); transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: rgba(20, 52, 43, .07); }
.nav__links a.is-active { color: var(--cranberry); background: rgba(179, 32, 47, .08); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 12px;
  width: 44px; height: 42px; font-size: 1.1rem; color: var(--evergreen); cursor: pointer;
}
.nav-toggle:hover { background: rgba(20, 52, 43, .06); }

/* ---- Hero ----------------------------------------------------------------
   The photograph is fully visible (opacity 1, boosted contrast) and a
   directional scrim keeps the copy readable: dark behind the text on the
   left, fading to near-transparent on the right so the image reads clearly. */
.hero {
  position: relative; overflow: hidden;
  background: var(--evergreen); color: #fff;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  filter: saturate(1.28) contrast(1.14) brightness(1.02);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(7, 24, 19, .95) 0%,
      rgba(10, 32, 25, .88) 32%,
      rgba(14, 42, 34, .60) 60%,
      rgba(18, 48, 39, .24) 100%),
    linear-gradient(to bottom, rgba(7, 24, 19, .35) 0%, rgba(7, 24, 19, 0) 26%, rgba(7, 24, 19, .40) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
  padding: 92px 0 96px;
}
.hero__title {
  color: #fff; margin-bottom: .35em;
  text-shadow: 0 2px 18px rgba(5, 18, 14, .55), 0 1px 3px rgba(5, 18, 14, .5);
}
.hero__title em { font-style: italic; color: var(--brass-soft); }
.hero__lede {
  font-size: 1.1rem; color: #e2efe8; max-width: 33em; margin-bottom: 1.7rem;
  text-shadow: 0 1px 12px rgba(5, 18, 14, .6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: #d8e8e1; text-shadow: 0 1px 10px rgba(5, 18, 14, .7); }
.hero__badge i { color: var(--brass-soft); }

.hero__card {
  background: rgba(9, 30, 23, .55); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(5, 18, 14, .38);
}
.hero__card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.hero__card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero__card-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #e4f0ea; }
.hero__card-list i { color: var(--brass-soft); margin-top: .25em; flex-shrink: 0; }
.hero__card-list strong { color: #fff; font-weight: 600; }

/* On phones the copy sits over the full image, so deepen the scrim slightly */
@media (max-width: 1024px) {
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(7, 24, 19, .82) 0%, rgba(9, 30, 23, .74) 55%, rgba(7, 24, 19, .88) 100%);
  }
}

/* ---- Category tiles ------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 18px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass-soft); }
.cat-tile__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(44, 110, 84, .14), rgba(201, 162, 39, .2));
  color: var(--pine); font-size: 1.15rem;
}
.cat-tile h3 { margin: 0; font-size: 1.08rem; }
.cat-tile p { margin: 0; font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }
.cat-tile__more { font-size: .82rem; font-weight: 600; color: var(--cranberry); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.cat-tile:hover .cat-tile__more i { transform: translateX(3px); }
.cat-tile__more i { transition: transform .18s ease; }

/* ---- Product grid & cards ------------------------------------------------ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-deep); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--evergreen); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.badge--brass { background: var(--brass); color: #241a00; }
.product-card__cat {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, .92); color: var(--evergreen);
  font-size: .68rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__title { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; line-height: 1.3; margin: 0; color: var(--evergreen); }
.product-card__tagline { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.stars { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); }
.stars__icons { color: var(--brass); letter-spacing: .5px; }
.product-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--cranberry); }
.price small { font-family: var(--font-body); font-size: .72rem; font-weight: 500; color: var(--ink-soft); }

/* ---- Filters ------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 17px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  cursor: pointer; transition: all .15s ease; font-family: var(--font-body);
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.is-active { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.search-wrap { position: relative; margin-left: auto; min-width: 240px; }
.search-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: .85rem; }
.search-wrap input {
  width: 100%; padding: 11px 16px 11px 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-family: var(--font-body);
  font-size: .88rem; color: var(--ink);
}
.search-wrap input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(44, 110, 84, .14); }
.result-count { font-size: .85rem; color: var(--ink-soft); margin: 0 0 20px; }

/* ---- Product detail sections -------------------------------------------- */
.product-block {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 44px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 30px;
}
.product-block:nth-child(even) .product-block__media { order: 2; }
.product-block__media { border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); aspect-ratio: 4 / 3; }
.product-block__media img { width: 100%; height: 100%; object-fit: cover; }
.product-block__index {
  display: inline-flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cranberry); margin-bottom: 12px;
}
.product-block h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: .3em; }
.product-block__tagline { font-size: 1rem; color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }
.product-block__why { font-size: .95rem; color: var(--ink-soft); }
.spec-list { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 9px; }
.spec-list li { display: flex; gap: 11px; font-size: .88rem; align-items: flex-start; }
.spec-list i { color: var(--pine); margin-top: .3em; flex-shrink: 0; }
.best-for {
  background: var(--cream); border-left: 3px solid var(--brass); border-radius: 0 12px 12px 0;
  padding: 12px 16px; font-size: .87rem; margin-bottom: 20px;
}
.best-for strong { color: var(--evergreen); }
.product-block__buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.product-block__buy .price { font-size: 1.5rem; }
.product-block__buy .amazon-cta { width: auto; min-width: 260px; }

/* ---- Gift guides --------------------------------------------------------- */
.gift-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.gift-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: .87rem; font-weight: 500;
  transition: all .15s ease;
}
.gift-nav a:hover { border-color: var(--brass); background: #fffaf0; transform: translateY(-2px); }
.gift-nav a i { color: var(--cranberry); }

.gift-guide {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 34px;
  scroll-margin-top: 90px;
}
.gift-guide__head {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
}
.gift-guide__media { position: relative; min-height: 260px; }
.gift-guide__media img { width: 100%; height: 100%; object-fit: cover; }
.gift-guide__intro { padding: 32px 34px; }
.gift-guide__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(179, 32, 47, .12), rgba(201, 162, 39, .22));
  color: var(--cranberry); font-size: 1.15rem; margin-bottom: 14px;
}
.gift-guide__intro h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .25em; }
.gift-guide__intro p { color: var(--ink-soft); margin-bottom: .9rem; }
.gift-note {
  background: var(--cream); border-radius: 12px; padding: 12px 16px;
  font-size: .86rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start;
}
.gift-note i { color: var(--brass); margin-top: .3em; }

.gift-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 0 34px 34px; }
.gift-pick {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 9px;
}
.gift-pick__rank {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine);
}
.gift-pick h4 { font-family: var(--font-display); font-size: 1.04rem; margin: 0; color: var(--evergreen); }
.gift-pick p { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.gift-pick__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 9px; }
.gift-pick__disclaimer {
  display: flex; gap: 7px; align-items: flex-start; margin: 2px 0 0;
  font-size: .68rem; line-height: 1.5; color: var(--ink-soft);
}
.gift-pick__disclaimer i { color: var(--brass); margin-top: .25em; flex-shrink: 0; }
.gift-pick__price { font-family: var(--font-display); font-weight: 700; color: var(--cranberry); font-size: 1.1rem; }

/* A pick that carries a product video gets a media block above the title.
   The frame ratio is declared per clip via the `--vid-ratio` custom property
   (set inline from data, then refined from the clip's real metadata once it
   loads) and the player fills that frame with `contain`.
   Two traps this avoids:
     1. Sizing from the video element's own intrinsic ratio is unreliable —
        a square poster makes the element measure square even when the clip is
        portrait, which would letterbox the picture.
     2. Never cap the height of a replaced element here: clamping height does
        NOT narrow the width, so a portrait clip keeps the full card width and
        gains dark bars at the sides. `--vid-ratio` sizes the box instead. */
.gift-pick__media {
  position: relative; width: 100%;
  aspect-ratio: var(--vid-ratio, 16 / 9);
  border-radius: 12px; overflow: hidden; background: #0b1f19;
}
.gift-pick__media video {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.gift-pick--video { gap: 11px; }

/* Per-guide affiliate / safety disclaimer */
.gift-disclaimer {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 0 34px 34px; padding: 14px 18px;
  background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .82rem; color: var(--ink-soft); line-height: 1.6;
}
.gift-disclaimer i { color: var(--brass); margin-top: .25em; flex-shrink: 0; }

/* ---- Email capture ------------------------------------------------------ */
.capture {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center;
}
.capture__form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.capture__form input[type="text"],
.capture__form input[type="email"] {
  flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1); color: #fff; font-family: var(--font-body); font-size: .93rem;
}
.capture__form input::placeholder { color: #a9c5ba; }
.capture__form input:focus { outline: none; border-color: var(--brass-soft); background: rgba(255, 255, 255, .16); }
.capture__form .btn { flex: 0 0 auto; }
.form-msg { font-size: .87rem; margin: 14px 0 0; min-height: 1.3em; }
.form-msg.is-ok { color: #a8e6c4; }
.form-msg.is-err { color: #ffb3b8; }

.planner-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg); padding: 28px;
}
.planner-card h3 { color: #fff; margin-bottom: .6rem; }
.planner-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 13px; }
.planner-card li { display: flex; gap: 12px; font-size: .89rem; color: #cfe0d8; align-items: flex-start; }
.planner-card li i { color: var(--brass-soft); margin-top: .28em; flex-shrink: 0; }
.planner-card li strong { color: #fff; }

/* ---- Newsletter / steps ------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--brass);
  line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---- Trust strip -------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item i { font-size: 1.35rem; color: var(--brass); margin-top: .15em; }
.trust__item h3 { font-size: 1rem; margin-bottom: .25em; }
.trust__item p { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.section--evergreen .trust__item p { color: #bcd2c8; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--evergreen); color: #c6d8d0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { font-size: .89rem; color: #c6d8d0; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .89rem; color: #a9c5ba; margin-top: 14px; max-width: 30em; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .09); color: #fff; transition: background .15s ease;
}
.footer-social a:hover { background: var(--cranberry); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 42px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .78rem; color: #8fb0a4;
}
.footer-bottom a { font-size: .78rem; }
.footer-disclosure { color: var(--brass-soft); font-weight: 600; }

/* ---- Amazon finds (ASIN-linked listings) -------------------------------- */
.find-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.find-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.find-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.find-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-deep); }
.find-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.find-card:hover .find-card__media img { transform: scale(1.06); }
.find-card__body { padding: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.find-card__cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--pine);
}
.find-card__title { font-family: var(--font-display); font-size: 1.04rem; margin: 0; color: var(--evergreen); line-height: 1.3; }
.find-card__asin {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem;
  color: var(--ink-soft); margin: 0; letter-spacing: .02em;
}
.find-card__note { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.find-card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.find-card__sources { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.find-card__source {
  font-size: .76rem; color: var(--pine); display: inline-flex; align-items: center; gap: 5px;
  border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.find-card__source:hover { color: var(--cranberry); border-bottom-color: currentColor; }
.find-card__source i { font-size: .66rem; }

/* ---- Planner PDF downloads ("Inside the planner") ----------------------- */
.pdf-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px;
}
.pdf-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pdf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass-soft); }
.pdf-card__top { display: flex; align-items: center; justify-content: space-between; }
.pdf-card__num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--brass); line-height: 1;
}
.pdf-card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(44, 110, 84, .14), rgba(201, 162, 39, .2));
  color: var(--pine); font-size: 1.15rem;
}
.pdf-card h3 { margin: 0; font-size: 1.18rem; }
.pdf-card > p { margin: 0; font-size: .89rem; color: var(--ink-soft); line-height: 1.6; }
.pdf-card__list { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 8px; }
.pdf-card__list li {
  display: flex; gap: 10px; font-size: .83rem; color: var(--ink-soft); align-items: flex-start;
}
.pdf-card__list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--pine); font-size: .72rem; margin-top: .28em; flex-shrink: 0;
}
.pdf-card .btn { margin-top: auto; }
.pdf-card .btn i { font-size: 1rem; }

.pdf-all {
  margin-top: 26px; padding: 26px 28px;
  background: linear-gradient(120deg, var(--evergreen), var(--evergreen-soft));
  border-radius: var(--radius-lg); color: #eef4f0;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.pdf-all h3 { color: #fff; margin: 0 0 .35em; font-size: 1.3rem; }
.pdf-all p { margin: 0; font-size: .9rem; color: #c6d8d0; max-width: 40em; }
.pdf-all > div { flex: 1 1 340px; }
.pdf-all .btn { flex: 0 0 auto; }
.pdf-status { text-align: center; margin-top: 16px; }
.planner-pdf-btn[disabled] { opacity: .72; cursor: progress; transform: none; }

/* ---- Product video (product guide) -------------------------------------- */
/* The media column is a fixed-ratio box for stills. When it holds a video the
   ratio comes from `--vid-ratio` (declared from the clip's real pixel size in
   data, then refreshed from metadata) and the player fills that box with
   `contain`: nothing is cropped and no letterbox bars appear. Sizing from the
   video's own intrinsic ratio is not used — a square poster would make it
   measure square — and the height is never clamped, because clamping the
   height of a replaced element does not narrow its width. */
.product-block__media--video {
  aspect-ratio: var(--vid-ratio, 16 / 9); background: #0b1f19;
}
.product-block__media video.product-block__video {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.product-block__video-caption {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .84rem; color: var(--ink-soft); font-style: italic;
  margin: 0 0 18px; padding: 10px 14px;
  background: var(--cream); border-left: 3px solid var(--brass);
  border-radius: 0 12px 12px 0;
}
.product-block__video-caption i { color: var(--brass); margin-top: .15em; flex-shrink: 0; }

/* Small "Video" pill on cards whose product has a clip. */
.video-pill {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(179, 32, 47, .94); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(5, 18, 14, .28);
}
.video-pill i { font-size: .72rem; }

/* ---- Misc --------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 140%);
  background: var(--evergreen); color: #fff; padding: 14px 24px; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: .9rem; z-index: 300;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1); max-width: 90vw; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }
.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-soft); }
.empty-state i { font-size: 2rem; color: var(--brass); margin-bottom: 14px; }
.page-hero { background: var(--evergreen); color: #fff; padding: 62px 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: #c6d8d0; max-width: 44em; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; color: #9fbcb0; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brass-soft); }
.disclosure-box {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: .86rem;
  color: var(--ink-soft); margin-top: 26px;
}
.disclosure-box strong { color: var(--evergreen); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 66px 0 70px; }
  .hero__card { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .product-block { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .product-block:nth-child(even) .product-block__media { order: 0; }
  .gift-guide__head { grid-template-columns: 1fr; }
  .gift-guide__media { min-height: 210px; max-height: 260px; }
  .capture { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 14px; border-radius: 12px; font-size: .95rem; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header { position: sticky; }
  .nav__actions .btn--primary { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .section--tight { padding: 40px 0; }
  .container { padding: 0 18px; }
  .hero__inner { padding: 52px 0 56px; }
  .hero__ctas .btn { width: 100%; }
  .hero__badges { gap: 14px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .product-card__body { padding: 14px; gap: 7px; }
  .product-card__title { font-size: .97rem; }
  .product-card__tagline { font-size: .79rem; }
  .price { font-size: 1.08rem; }
  .product-block { padding: 20px; border-radius: var(--radius); }
  .product-block__buy .amazon-cta { width: 100%; min-width: 0; }
  .gift-picks { padding: 0 20px 26px; grid-template-columns: 1fr; }
  .gift-disclaimer { margin: 0 20px 24px; }
  .gift-guide__intro { padding: 24px 20px; }
  .search-wrap { margin-left: 0; width: 100%; min-width: 0; }
  .filter-bar { gap: 8px; }
  .chip { padding: 8px 14px; font-size: .81rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .capture__form .btn { width: 100%; }
  .planner-card { padding: 22px; }
  .trust { gap: 20px; }
  .pdf-card { padding: 22px 20px; }
  .pdf-all { padding: 22px 20px; }
  .pdf-all .btn { width: 100%; }

  /* --- Mobile refinements for the newly added long-title products --------- */
  /* Keep the product title from dominating a small card. */
  .product-card__title {
    font-size: .95rem; line-height: 1.28;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__tagline {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* Give the primary CTA a comfortable tap target. */
  .amazon-cta { padding: 12px 16px; font-size: .88rem; }
  .find-card__body { padding: 14px; gap: 6px; }
  .find-card__title { font-size: .97rem; }
  .find-card__source { font-size: .74rem; }
  /* The Amazon finds grid reads better as one column on small phones. */
  .find-grid { grid-template-columns: 1fr; gap: 18px; }

  /* --- Product video on phones ------------------------------------------- */
  /* A 4:3 still box is tall on a phone; a video keeps its own declared ratio. */
  .product-block__media { aspect-ratio: 16 / 10; }
  .product-block__media--video { aspect-ratio: var(--vid-ratio, 16 / 9); }
  .product-block__video-caption { font-size: .8rem; padding: 9px 12px; }
  .video-pill { bottom: 9px; right: 9px; font-size: .6rem; padding: 4px 8px; }
  /* The pick video keeps its declared ratio on phones too — no height cap, so
     a portrait clip simply renders tall instead of gaining letterbox bars. */
}
