/* ==========================================================================
   Shot of Joy — brand.css
   Shared design system: brand tokens (CSS variables) + reusable component
   classes. Loaded on EVERY page via <link>. These are plain CSS (no build
   step), so above-the-fold UI is styled instantly even before the Tailwind
   CDN finishes. Pair with /assets/js/brand-config.js for Tailwind utilities.

   Copywriters: prefer these semantic classes (.btn-cta, .reason, .tier ...)
   for consistency; use Tailwind utilities for one-off tweaks.
   ========================================================================== */

:root {
  --brand: #ff4b00;
  --brand-dark: #b33500;
  --amber: #fd9400;
  --amber-dark: #d97e00;
  --ink: #1d2523;
  --ink-soft: #4a534f;
  --green: #3f9f85;
  --green-dark: #1e735c;
  --sun: #ffd200;
  --sunsoft: #fce94e;
  --cream: #fcfaf7;
  --terracotta: #d2815f;
  --gold: #ffb800;
  --line: #ece8e1;

  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fredoka", "Poppins", ui-sans-serif, sans-serif;
  --font-serif: "Petrona", Georgia, "Times New Roman", serif; /* store-style homepage headings */
  --font-store: "Figtree", ui-sans-serif, system-ui, sans-serif; /* store-style body */

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --maxw-article: 720px;
  --maxw-wide: 1080px;
  --shadow-card: 0 12px 34px -14px rgba(29, 37, 35, 0.2);
  --shadow-cta: 0 10px 22px -8px rgba(255, 75, 0, 0.55);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw-article); margin: 0 auto; padding: 0 20px; }
.wrap-wide { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.bg-cream { background: var(--cream); }
.bg-sun { background: var(--sunsoft); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 12px;
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  margin: 0 0 16px;
  color: var(--ink);
}
.subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.lead { font-size: 1.15rem; }
.muted { color: var(--ink-soft); }
.highlight { background: linear-gradient(transparent 60%, var(--sunsoft) 60%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Orange text-color highlight for headline phrases (as used in the funnel) */
.hl { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-cta { background: var(--brand); color: #fff; box-shadow: var(--shadow-cta); }
.btn-cta:hover { background: var(--brand-dark); color: #fff; }
/* Amber CTA with black text — the store/homepage button (pill shape) */
.btn-amber { background: var(--amber); color: #111; box-shadow: 0 10px 22px -8px rgba(253,148,0,0.55); }
.btn-amber:hover { background: var(--amber-dark); color: #111; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-lg { padding: 19px 40px; font-size: 1.2rem; }
.btn-block { display: flex; width: 100%; }
.btn-pulse { animation: soj-pulse 2.2s infinite; }
@keyframes soj-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 0, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(255, 75, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--sunsoft);
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
}

/* ---------- Sticky bottom CTA bar (optional, proven on the funnel) ----------
   The WHOLE bar is one clickable button. Usage: add class="has-sticky-cta" to
   <body>, then at the end of <body>:
   <a href="#offer" class="sticky-cta">SAVE 39% TODAY · Ends tonight →</a>  */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--amber);
  color: #111;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 15px 16px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.12s ease;
}
.sticky-cta:hover { background: var(--amber-dark); color: #111; text-decoration: none; }
body.has-sticky-cta { padding-bottom: 70px; }
@media (max-width: 480px) { .sticky-cta { font-size: 0.9rem; padding: 13px 14px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; gap: 8px; }
.site-header__logo:hover, .site-header__logo:hover .site-header__wordmark { text-decoration: none; }
.site-header__logo img { height: 42px; width: auto; }
.site-header__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.site-header .btn { padding: 11px 20px; font-size: 0.95rem; }
@media (max-width: 480px) {
  .site-header__inner { padding: 10px 14px; }
  .site-header__logo img { height: 34px; }
  .site-header__wordmark { font-size: 1.05rem; }
  .site-header .btn { padding: 10px 15px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.hero__media { margin: 26px auto 0; max-width: 560px; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin: 0 auto; }

/* ---------- Review stars / trust line ---------- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.trustline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trustline .dot { opacity: 0.4; }

/* ---------- Trust badges row ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.trust-badge svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- Numbered "reason" content block ---------- */
.reason { padding: 30px 0; border-top: 1px solid var(--line); }
.reason:first-of-type { border-top: 0; }
.reason__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.reason__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.2;
  margin: 0 0 12px;
}
.reason p { margin: 0 0 14px; }
.reason__media { margin: 18px 0; }
.reason__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- Stat callout ---------- */
.stat {
  background: var(--sunsoft);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  text-align: center;
  margin: 22px 0;
}
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--brand); line-height: 1; }
.stat__label { font-weight: 600; margin-top: 6px; }

/* ---------- Testimonial card ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  margin: 18px 0;
}
.testimonial__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__name { font-weight: 700; line-height: 1.1; }
.testimonial__meta { font-size: 0.82rem; color: var(--green-dark); font-weight: 600; }
.testimonial p { margin: 0; }

/* ---------- Product / pricing ---------- */
.product { background: var(--cream); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.benefit { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.benefit svg { width: 26px; height: 26px; color: var(--brand); flex: none; }

.price-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.tier {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
}
.tier__radio { display: block; width: 18px; height: 18px; margin: 0 auto 10px; border: 2px solid #cfcabf; border-radius: 50%; position: relative; transition: border-color 0.12s ease; }
.tier.selected { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 75, 0, 0.12); }
.tier.selected .tier__radio { border-color: var(--brand); }
.tier.selected .tier__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.tier__original { text-decoration: line-through; color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; }
.tier__ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier__qty { font-weight: 700; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.tier__per { font-size: 0.8rem; color: var(--ink-soft); }
.tier__save { display: inline-block; margin-top: 6px; font-size: 0.78rem; font-weight: 700; color: var(--green-dark); }

/* ---------- FAQ / disclosure (CSS-only, no JS) ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 10px 0; background: #fff; }
.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.faq[open] > summary::after { content: "\2013"; }
.faq__body { padding: 0 18px 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 40px 0 28px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.site-footer__logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.site-footer__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; line-height: 1; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.disclaimer { font-size: 0.78rem; line-height: 1.6; color: rgba(255, 255, 255, 0.55); margin: 16px 0 0; }
.footer-copy { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-top: 16px; }

/* ---------- Legal / long-form prose ---------- */
.legal-prose { max-width: var(--maxw-article); margin: 0 auto; }
.legal-prose h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 34px 0 12px; }
.legal-prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-prose p, .legal-prose li { color: var(--ink-soft); }
.legal-prose ul { padding-left: 22px; }
.legal-prose li { margin: 6px 0; }
.legal-prose a { color: var(--green-dark); text-decoration: underline; }
/* Buttons inside prose keep their own look, not the green underlined link style */
.legal-prose a.btn { text-decoration: none; }
.legal-prose a.btn-amber, .legal-prose a.btn-amber:hover { color: #111; }
.legal-prose a.btn-cta, .legal-prose a.btn-cta:hover { color: #fff; }
.legal-prose a.btn-secondary, .legal-prose a.btn-secondary:hover { color: #fff; }
.legal-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }
/* Marks unfinished business details for the team to fill before launch */
.ph {
  background: #fff3cd;
  border-bottom: 2px dashed var(--brand);
  padding: 0 3px;
  font-weight: 600;
  color: #8a4b00;
}

/* ---------- Hub / index cards ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease;
  color: inherit;
}
.hub-card:hover { transform: translateY(-3px); text-decoration: none; }
.hub-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--sunsoft); }
.hub-card__body { padding: 18px 20px; }
.hub-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; color: var(--ink); }
.hub-card__excerpt { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 10px; }
.hub-card__more { color: var(--brand); font-weight: 700; font-size: 0.9rem; }

/* ==========================================================================
   Store-style HOMEPAGE (add class="home" to <body>). Uses Petrona serif
   headings + Figtree body to mirror shotofjoy.com — distinct from the
   advertorial/listicle look. Scoped under .home so it never affects listicles.
   ========================================================================== */
.home { font-family: var(--font-store); }
.home h1, .home h2, .home .serif, .home .range-card__name { font-family: var(--font-serif); }
.home .btn, .home .site-header__wordmark, .home .eyebrow, .home .site-nav { font-family: var(--font-store); }

/* primary store CTA: amber, black text, lightly rounded */
.home .btn-cta { background: var(--amber); color: #111; box-shadow: 0 10px 22px -8px rgba(253,148,0,0.5); }
.home .btn-cta:hover { background: var(--amber-dark); color: #111; }

/* Nav */
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 920px) { .site-nav { display: none; } }

/* Split hero */
.hero-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.hero-split__copy { padding: 10px 0; }
.hero-serif { font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.hero-split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; gap: 24px; } .hero-split__media { order: -1; } }

/* Feature row */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.feature__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--sunsoft); display: flex; align-items: center; justify-content: center; flex: none; }
.feature__icon svg { width: 26px; height: 26px; color: var(--ink); }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr 1fr; } }

/* Product range */
.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.range-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-card); transition: transform 0.12s ease; }
.range-card:hover { transform: translateY(-3px); }
.range-card img { height: 190px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.range-card__name { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.range-card__desc { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 14px; }
@media (max-width: 760px) { .range-grid { grid-template-columns: 1fr; } }

/* Steps / how-it-works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step__time { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--brand); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-band__num { font-family: var(--font-serif); font-weight: 700; font-size: 2.2rem; color: var(--brand); line-height: 1; }
.stat-band__label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 640px) { .stat-band { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 8rem); color: var(--brand); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .benefits { grid-template-columns: 1fr; }
  .price-tiers { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
