/* ============================================================
   Waratah BizWorks — design system
   Palette + type sampled / chosen from the Option 1 mockups
   ============================================================ */

:root {
  --red:        #E21625;
  --red-deep:   #C2101D;
  --charcoal:   #2A353D;
  --charcoal-2: #354149;
  --gold:       #F5B826;
  --gold-deep:  #E0A510;
  --bg:         #F6F8FA;
  --card:       #FFFFFF;
  --ink:        #2A353D;
  --muted:      #68727A;
  --line:       #E3E7EB;
  --line-soft:  #EDF0F2;
  --node:       #C7CDD3;
  --tag-bg:     #F1F3F5;

  --radius-card: 18px;
  --radius-tile: 14px;
  --shadow-sm: 0 1px 2px rgba(42,53,61,.04);
  --shadow-md: 0 10px 30px -12px rgba(42,53,61,.18);
  --shadow-lg: 0 24px 60px -20px rgba(42,53,61,.28);

  --maxw: 1180px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,250,.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand .brand-text b { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .brand-text .n1 { color: var(--red); }
.brand .brand-text .n2 { color: var(--charcoal); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: 18px; }
.nav a {
  font-weight: 600;
  font-size: .98rem;
  color: var(--charcoal);
  position: relative;
  padding: 6px 2px;
  transition: color .18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--red); }
.nav a.active::after { transform: scaleX(1); }

.header-cta { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.005em;
  line-height: 1;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red    { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(226,22,37,.6); }
.btn-red:hover    { background: var(--red-deep); box-shadow: 0 12px 26px -10px rgba(226,22,37,.7); }
.btn-gold   { background: var(--gold); color: var(--charcoal); box-shadow: 0 8px 20px -10px rgba(245,184,38,.7); }
.btn-gold:hover   { background: var(--gold-deep); }
.btn-ghost  { background: #fff; color: var(--charcoal); border-color: var(--line); }
.btn-ghost:hover  { border-color: var(--charcoal); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 68px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 .ink { color: var(--charcoal); }
.hero h1 .red { color: var(--red); }
.hero .lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 30em;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* featured card (top-right of hero) */
.featured {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.featured .badge-frame {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  padding: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.featured .badge-frame img { width: 168px; height: 168px; }
.featured .eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.featured h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.featured .path-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* dark hero variant (subscriptions) */
.hero-dark { padding: 40px 0 28px; }
.hero-dark .panel {
  background: var(--charcoal);
  border-radius: 24px;
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.hero-dark h1 { color: #fff; }
.hero-dark h1 .red { color: var(--gold); }
.hero-dark .lead { color: #C8CFD4; }
.hero-dark .badge-frame {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  place-items: center;
}
.hero-dark .badge-frame img { width: 200px; height: 200px; }

/* ---------- connector motif (signature) ---------- */
.featured-wrap { position: relative; }
.connector {
  position: absolute;
  top: -44px; right: 46px;
  width: 150px; height: 66px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.connector path { fill: none; stroke: var(--node); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.connector circle { fill: #fff; stroke: var(--node); stroke-width: 2; }
.connector .dot { fill: var(--node); stroke: none; }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .82rem;
  font-weight: 700;
  background: var(--tag-bg);
  color: var(--charcoal);
}
.pill.free      { color: var(--gold-deep); }
.pill.red       { color: var(--red); background: #FCE9EB; }
.pill.gold-bg   { color: var(--gold-deep); background: #FCF3DD; }
.pill.dark      { color: var(--charcoal); }

/* ---------- card grid ---------- */
.section { padding: 40px 0; }
.section.tight { padding: 24px 0 56px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 196px;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6DCE1; }

.card-head { display: flex; align-items: flex-start; gap: 16px; }
.tile {
  width: 54px; height: 54px;
  border-radius: var(--radius-tile);
  flex-shrink: 0;
}
.tile.gold { background: var(--gold); }
.tile.red  { background: var(--red); }
.tile.dark { background: var(--charcoal); }
.tile.grey { background: #6B7680; }

.card h3 { margin: 0 0 4px; font-size: 1.22rem; font-weight: 800; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .card-foot { margin-top: auto; padding-top: 20px; }

/* stacked card variant (four-up, icon on top) */
.card.stack { min-height: 210px; }
.card.stack .card-head { flex-direction: column; gap: 18px; }
.card.stack h3 { font-size: 1.3rem; }

/* ---------- collections row ---------- */
.collections {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0 4px;
}
.collections .label { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; margin-right: 6px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
  transition: border-color .18s ease, color .18s ease, transform .12s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ---------- live product store ---------- */
.store-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.chip.is-active:hover { color: #fff; transform: none; }
.store-status { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.store-status code { background: var(--tag-bg); padding: 2px 7px; border-radius: 6px; font-size: .86em; }
.store-empty { color: var(--muted); padding: 28px 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6DCE1; }

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px;
}
.product-media img { max-height: 100%; max-width: 82%; object-fit: contain; }
.product-media .tile { width: 64px; height: 64px; }

.product-body { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px 22px; flex: 1; }
.product-tags { min-height: 4px; }
.product-name { font-size: 1.18rem; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.product-desc { color: var(--muted); font-size: .96rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.product-price { font-weight: 800; color: var(--ink); }
.product-cta { font-weight: 700; font-size: .92rem; color: var(--red); }

@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- demos listing (demos/index.html + the #demos band on the home page) ---------- */
.demo-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.demo-row > .product-card { flex: 1 1 340px; max-width: 420px; }
.demo-note { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.demo-note .eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--red); margin: 0;
}
.demo-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.demo-note li { display: flex; gap: 12px; }
.demo-note li .pill { flex: none; }
.demo-more { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- section heading ---------- */
.sec-head { margin: 0 0 26px; max-width: 40em; }
.sec-head .eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--red); margin: 0 0 8px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- simple content blocks (about / courses) ---------- */
.prose { max-width: 44em; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose p strong { color: var(--ink); }

.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { background:#fff; border:1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm); }
.value h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 800; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }
.value .num {
  font-family: var(--font); font-weight: 800; font-size: .9rem;
  color: var(--red); letter-spacing: .04em; margin-bottom: 10px; display:block;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  margin: 48px 0 0;
  background: var(--charcoal);
  border-radius: 24px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 { color: #fff; font-size: clamp(1.5rem,2.6vw,2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.cta-strip p { color: #C8CFD4; margin: 0; max-width: 34em; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand b { font-weight: 800; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--red); }
.footer-legal { width: 100%; color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* ---------- mobile nav ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .connector { display: none; }
  .hero-dark .panel { grid-template-columns: 1fr; padding: 40px 32px; }
  .hero-dark .badge-frame { max-width: 260px; }
  .cards, .cards.four, .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; position: absolute; top: 20px; right: 24px; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .site-header.menu-open .header-inner { height: auto; padding-bottom: 18px; }
  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-basis: 100%;
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .site-header.menu-open .nav a { width: 100%; padding: 12px 0; }
  .site-header.menu-open .header-cta { display: block; flex-basis: 100%; margin: 8px 0 0; }
  .site-header.menu-open .header-cta .btn { width: 100%; }
  .hero { padding: 44px 0 20px; }
  .cards, .cards.four, .value-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 36px 28px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .chip:hover { transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible {
  outline: 3px solid rgba(226,22,37,.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Blog additions (simplified starter)
   ============================================================ */
.blog-intro { padding: 60px 0 12px; }
.blog-intro .eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red); margin: 0 0 12px;
}
.blog-intro h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.08; margin: 0 0 16px; max-width: 16em;
}
.blog-intro p { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0; }

/* post list */
.post-list { display: flex; flex-direction: column; gap: 18px; padding: 36px 0 8px; max-width: 820px; }
.post-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D6DCE1; }
.post-card.featured { padding: 34px 32px; border-color: #E7C9CC; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.post-tag {
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--red); background: #FCE9EB; border-radius: 999px; padding: 5px 12px;
}
.post-date { font-size: .86rem; color: var(--muted); font-weight: 600; }
.post-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.post-card.featured h2 { font-size: 1.9rem; }
.post-card p { color: var(--muted); margin: 0 0 14px; font-size: 1.02rem; }
.read-more { font-weight: 700; color: var(--red); font-size: .95rem; }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: 44px 0 8px; }
.back-link { display: inline-block; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 22px; }
.back-link:hover { color: var(--red); }
.article h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.1; margin: 10px 0 18px; color: var(--ink);
}
.article-lead { font-size: 1.24rem; line-height: 1.6; color: var(--charcoal); margin: 0 0 30px; font-weight: 500; }
.article-body { font-size: 1.09rem; line-height: 1.75; color: #3C4650; }
.article-body > p { margin: 0 0 22px; }
.article-body h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 14px; color: var(--ink); }
.article-body h3 { font-size: 1.25rem; font-weight: 800; margin: 30px 0 10px; color: var(--ink); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin: 0 0 8px; }
.article-body blockquote {
  margin: 26px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--gold);
  color: var(--charcoal); font-size: 1.15rem; font-style: italic;
}
.article-body img { border-radius: 14px; margin: 26px 0; border: 1px solid var(--line); }
.article-body code { background: var(--tag-bg); padding: 2px 7px; border-radius: 6px; font-size: .9em; }

/* FAQ accordion (publish.py --faq-file; also carries FAQPage schema) */
.article-body details.faq {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 0 0 12px; background: #fff;
}
.article-body details.faq summary {
  cursor: pointer; list-style: none; font-size: 1.02rem; color: var(--ink);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.article-body details.faq summary::-webkit-details-marker { display: none; }
.article-body details.faq summary::after {
  content: "+"; font-weight: 800; color: var(--red); font-size: 1.3rem; line-height: 1;
}
.article-body details.faq[open] summary::after { content: "–"; }
.article-body details.faq[open] summary { margin-bottom: 10px; }
.article-body details.faq > p { margin: 0; }

/* "Last updated" line in the article footer */
.post-updated { font-size: .92rem; color: var(--charcoal); opacity: .75; margin-top: 4px; }

/* buttons inside an article keep their button styling
   (otherwise .article-body a turns their text red and underlines it) */
.article-body a.btn { text-decoration: none; }
.article-body a.btn-red { color: #fff; }
.article-body a.btn-gold { color: var(--charcoal); }
.article-body a.btn-ghost { color: var(--charcoal); }

/* in-article product call-out */
.product-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: #FCF1F2; border: 1px solid #F0D2D6; border-radius: 18px;
  padding: 26px 28px; margin: 32px 0;
}
.product-callout .eyebrow {
  font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--red); margin: 0 0 4px;
}
.product-callout h3 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; }
.product-callout p { margin: 0; color: var(--muted); font-size: .98rem; }
.product-callout .btn { flex-shrink: 0; }

.article-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 620px) {
  .product-callout { flex-direction: column; align-items: flex-start; }
  .product-callout .btn { width: 100%; }
}

/* ============================================================
   Landing hero (photo variant) + photo product media
   ============================================================ */
/* let grid children shrink below an image's intrinsic width (prevents
   horizontal overflow on small screens) */
.hero-grid > *, .product-grid > *, .cards > *, .value-grid > * { min-width: 0; }

/* keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 96px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }

.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--charcoal);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  max-width: 78%;
}
.hero-badge b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.hero-badge span { display: block; font-size: .84rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* full-bleed photo inside a product card */
.product-media.photo { padding: 0; background: var(--charcoal); }
.product-media.photo img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: cover;
}

/* honesty note under the product grid */
.fine-note { color: var(--muted); font-size: .9rem; margin: 18px 0 0; max-width: 46em; }

@media (max-width: 980px) {
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ============================================================
   Shelf display — the "retail display" for Products & Demos
   Everything here is scoped to a .shelf-display wrapper that we
   add ONLY on products.html and demos/index.html, so the home
   page (which reuses .product-card / .product-grid) is untouched.
   ============================================================ */

/* the dark "display case" band the products sit inside */
.shelf-display {
  position: relative;
  background: linear-gradient(180deg, #34414B 0%, var(--charcoal) 48%, #1C242A 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 26px;
  padding: 48px 40px 60px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
}

/* fill the width, then wrap onto the next shelf below */
.shelf-display .product-grid,
.shelf-display .demo-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  column-gap: 26px;
  row-gap: 58px;                 /* leaves room for the shelf ledge */
  margin: 0;
}
.shelf-display .software-row { align-items: stretch; }

/* the card resting on its shelf */
.shelf-display .product-card,
.shelf-display .demo-app {
  position: relative;
  z-index: 0;
  overflow: visible;             /* let the ledge show below the card */
  background: var(--card);
  box-shadow: 0 8px 20px -14px rgba(0,0,0,.7);
  transition: transform .22s cubic-bezier(.2,.7,.2,1),
              box-shadow .26s ease, border-color .2s ease;
}
/* card had overflow:hidden to round its media — re-round the media itself */
.shelf-display .product-media {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
}

/* the shelf ledge: a lip beneath every card. Rows are equal height
   (align-items:stretch), so the ledges line up into one continuous
   shelf per row. */
.shelf-display .product-card::after,
.shelf-display .demo-app::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px;
  bottom: -18px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #CE9A31 0%, #9C6E1E 55%, #6B4B14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),   /* top highlight lip */
    0 10px 16px -8px rgba(0,0,0,.72),       /* ledge cast shadow */
    0 -9px 18px -12px rgba(0,0,0,.55);      /* card's contact shadow */
  z-index: -1;
  transition: box-shadow .26s ease;
}

/* --- bold pop + gold glow, on hover AND keyboard focus --- */
.shelf-display .product-card:hover,
.shelf-display .product-card:focus-visible,
.shelf-display .demo-app:hover,
.shelf-display .demo-app:focus-visible {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 16px 38px -12px rgba(245,184,38,.45),
    0 34px 60px -22px rgba(0,0,0,.55);
  z-index: 3;
  outline: none;
}
/* as the card lifts off, the shelf shadow deepens */
.shelf-display .product-card:hover::after,
.shelf-display .product-card:focus-visible::after,
.shelf-display .demo-app:hover::after,
.shelf-display .demo-app:focus-visible::after {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 16px 26px -8px rgba(0,0,0,.82),
    0 -3px 22px -10px rgba(0,0,0,.5);
}

/* SparkQuote's feature bullets share the dark band → light text */
.shelf-display .software-row li { color: rgba(255,255,255,.82); }
.shelf-display .software-row li b { color: #fff; }

/* --- placeholders ("Coming soon" / "More coming"): quieter --- */
.shelf-display .product-card.soon,
.shelf-display .demo-app.soon {
  background: rgba(255,255,255,.045);
  border: 1px dashed rgba(255,255,255,.24);
  box-shadow: none;
}
.shelf-display .product-card.soon .product-name,
.shelf-display .demo-app.soon h3 { color: #fff; }
.shelf-display .product-card.soon .product-desc,
.shelf-display .demo-app.soon .sub { color: rgba(255,255,255,.72); }
.shelf-display .product-card.soon .product-cta { color: var(--gold); }
.shelf-display .product-card.soon:hover,
.shelf-display .product-card.soon:focus-visible,
.shelf-display .demo-app.soon:hover,
.shelf-display .demo-app.soon:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(245,184,38,.75);
  box-shadow: 0 0 0 1px rgba(245,184,38,.4), 0 18px 36px -16px rgba(0,0,0,.5);
  z-index: 2;
}

@media (max-width: 700px) {
  .shelf-display { padding: 30px 18px 40px; border-radius: 20px; }
  .shelf-display .product-grid,
  .shelf-display .demo-apps { column-gap: 18px; row-gap: 48px; }
}

/* respect reduced-motion: keep the glow, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .shelf-display .product-card,
  .shelf-display .demo-app { transition: box-shadow .2s ease, border-color .2s ease; }
  .shelf-display .product-card:hover,
  .shelf-display .product-card:focus-visible,
  .shelf-display .demo-app:hover,
  .shelf-display .demo-app:focus-visible,
  .shelf-display .product-card.soon:hover,
  .shelf-display .demo-app.soon:hover { transform: none; }
}
