/* ============================================================================
   site.css - shared chrome and components for recordreflectrecover.com

   Layering:
     global.css  Tailwind-built token + base layer (--color-* tokens, .lead,
                 .pill, .btn-cta, .toggle, .glass-effect, focus rings).
                 NOT modified by this file.
     site.css    this file: page chrome (header, nav, footer), layout helpers
                 and shared components, previously duplicated inline in every
                 page. Loaded AFTER global.css so equal-specificity rules win.

   Colours are aliases over global.css tokens, so the palette matches the
   existing site exactly and dark mode is inherited rather than maintained
   here - global.css already flips every token used below under .dark.
   ========================================================================= */

:root{
  --max: 1120px;

  --shadow:   0 20px 60px rgba(0,0,0,.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,.06);

  /* Semantic aliases over the existing design system */
  --page:        var(--color-background-light);
  --surface-bg:  rgba(255,255,255,.50);   /* cards - translucent so the page
                                             gradient reads through */
  --band-bg:     rgba(255,255,255,.35);   /* alternating section band */
  --accent:      14 159 239;              /* site blue, as used inline already */
  --accent-600:  3 120 166;
  --accent-soft: var(--color-primary-50);
  --sage:        var(--color-secondary-500);
  --sage-soft:   var(--color-secondary-100);
  --ink:         var(--color-typography-900);
  --ink-h1:      var(--color-typography-800);
  --ink-2:       var(--color-typography-600);
  --ink-3:       var(--color-typography-500);
  --line:        var(--color-border-100);

  /* iphone16.png bezel geometry (image 906x1824, screen inset 60px) */
  --bezel-inset-x: 6.62%;
  --bezel-inset-y: 3.29%;
  --screen-radius: clamp(18px, 2.1vw, 34px);
}

.dark{
  --surface-bg: rgba(255,255,255,.04);
  --band-bg:    rgba(255,255,255,.02);
  --shadow:     0 20px 60px rgba(0,0,0,.45);
  --shadow-2:   0 10px 30px rgba(0,0,0,.35);
}

/* ---------- Page ---------- */
body,
body.blog-page{
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  color: rgb(var(--ink-2));
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(14,159,239,.14), transparent 60%),
    radial-gradient(900px 500px at 88% 18%, rgba(124,142,64,.14), transparent 60%),
    radial-gradient(900px 500px at 60% 88%, rgba(120,73,140,.10), transparent 60%),
    radial-gradient(800px 400px at 25% 25%, rgba(186,142,35,.08), transparent 65%),
    radial-gradient(700px 350px at 75% 30%, rgba(119,133,60,.10), transparent 60%),
    radial-gradient(900px 450px at 15% 50%, rgba(14,159,239,.08), transparent 70%),
    radial-gradient(850px 425px at 85% 55%, rgba(120,73,140,.12), transparent 65%),
    radial-gradient(800px 400px at 30% 70%, rgba(124,142,64,.10), transparent 60%),
    radial-gradient(750px 375px at 70% 75%, rgba(186,142,35,.09), transparent 65%),
    radial-gradient(900px 500px at 60% 88%, rgba(120,73,140,.10), transparent 60%),
    radial-gradient(700px 350px at 20% 92%, rgba(14,159,239,.06), transparent 70%),
    radial-gradient(800px 400px at 90% 95%, rgba(124,142,64,.08), transparent 65%),
    rgb(var(--page));
}

html{ scroll-behavior: smooth; overflow-x: hidden; }

.wrap,
.blog-wrap{ max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 20px); }
.section{ padding: clamp(38px, 4.8vw, 80px) 0; }
.section-tight{ padding: clamp(28px, 3.8vw, 56px) 0; }
.band{ background: var(--band-bg); border-block: 1px solid rgb(var(--line)); }

/* ---------- Skip links ---------- */
.skip,
.skip-link{
  position: absolute; left: -999px; top: 10px;
  background: #fff; color: #000;
  padding: 10px 12px; border-radius: 12px;
  z-index: 9999; text-decoration: none; font-weight: 600;
}
.skip:focus,
.skip-link:focus{ left: 10px; transform: none; outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Header ---------- */
header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(var(--line));
  background: rgba(255,255,255,.72);
}
.dark header{ background: rgba(24,23,25,.72); }

.header-bar{
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0; position: relative;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; z-index: 60; text-decoration: none; color: inherit;
}
.brand img{ display: block; opacity: .95; }
.brand strong{
  color: rgb(var(--ink)); letter-spacing: -0.01em;
  font-size: clamp(14px, 2vw, 16px);
}

/* Burger menu */
.menu-toggle{ display: none; }
.menu-icon{
  display: none; flex-direction: column; justify-content: space-around;
  width: 28px; height: 24px; cursor: pointer; z-index: 70; position: relative;
}
.menu-icon span{
  display: block; width: 100%; height: 3px;
  background-color: rgb(var(--ink)); border-radius: 2px; transition: all .3s ease;
}
.menu-toggle:checked ~ .menu-icon span:nth-child(1){ transform: rotate(45deg) translate(8px, 8px); }
.menu-toggle:checked ~ .menu-icon span:nth-child(2){ opacity: 0; }
.menu-toggle:checked ~ .menu-icon span:nth-child(3){ transform: rotate(-45deg) translate(7px, -7px); }

.nav-menu{ display: flex; align-items: center; gap: 18px; }
.nav-menu ul{ display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-menu li{ margin: 0; padding: 0; }
.nav-menu a{
  white-space: nowrap; font-size: 14px; font-weight: 600;
  color: rgb(var(--ink-2)); text-decoration: none; transition: color .18s ease;
}
.nav-menu a:hover{ color: rgb(var(--accent)); }
.nav-menu a[aria-current="page"]{ color: rgb(var(--ink)); font-weight: 700; }

.header-actions{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; z-index: 60; }

@media (max-width: 900px){
  .nav-menu ul{ gap: 14px; }
  .nav-menu a{ font-size: 13.5px; }
  /* The desktop nav still shows down to 768px; the header CTA would push the
     row past the viewport, so it drops out here. The hero and closing CTAs
     cover the same action. */
  .header-actions .btn-primary{ display: none; }
}

@media (max-width: 767px){
  .menu-icon{ display: flex; }
  .nav-menu{
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    padding: 0; gap: 0;
    transition: opacity .3s ease, visibility .3s ease;
    opacity: 0; visibility: hidden; z-index: 55;
    overflow-y: auto; overflow-x: hidden;
  }
  .dark .nav-menu{ background: rgba(24,23,25,.95); }
  .nav-menu ul{ flex-direction: column; width: 100%; gap: 0; }
  .nav-menu li{ width: 100%; max-width: 400px; }
  .nav-menu a{
    display: block; width: 100%; max-width: 400px; padding: 16px 0;
    border-bottom: 1px solid rgb(var(--line));
    font-size: 18px; white-space: normal; text-align: center;
  }
  .menu-toggle:checked ~ .nav-menu{ opacity: 1; visibility: visible; }
  .menu-overlay{
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.3); z-index: 54; opacity: 0; transition: opacity .3s ease;
  }
  .menu-toggle:checked ~ .menu-overlay{ display: block; opacity: 1; }
  .header-actions{ display: none !important; }

  .mobile-menu-toggle-wrapper{
    display: flex; justify-content: center; width: 100%; max-width: 400px;
    padding-bottom: 24px; margin-bottom: 24px;
    border-bottom: 1px solid rgb(var(--line));
  }
  .mobile-menu-toggle-wrapper .toggle{
    width: auto; max-width: 150px; display: flex; justify-content: space-between;
    padding: 12px 16px; border-radius: 999px;
    border: 1px solid rgb(var(--line));
    background: var(--surface-bg); color: rgb(var(--ink-2)); font-size: 15px;
  }
  .mobile-menu-toggle-wrapper .toggle:hover{ transform: translateY(-1px); box-shadow: var(--shadow-2); }
}
@media (min-width: 768px){ .mobile-menu-toggle-wrapper{ display: none; } }

/* ---------- Typography ---------- */
h1{
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.09; letter-spacing: -0.02em; margin: 0;
  font-weight: 700; color: rgb(var(--ink-h1));
}
h2{
  font-size: clamp(22px, 2.9vw, 34px);
  line-height: 1.2; letter-spacing: -0.02em; margin: 0;
  font-weight: 700; color: rgb(var(--ink));
}
h3{ color: rgb(var(--ink)); }

.lead{
  color: rgb(var(--ink-2));
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 1.75; margin: 14px 0 0;
}
.lead strong{ color: rgb(var(--ink)); font-weight: 700; }

.section-head{ max-width: 62ch; }
.section-head.center{ margin-inline: auto; text-align: center; }

/* Small uppercase section label, e.g. "Featured article". */
.eyebrow{
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgb(var(--accent)); margin: 0 0 14px;
}

/* Sentence-case tagline that sits above an h1. Deliberately separate from
   .eyebrow - these are different things, and sharing one class turned the
   hero line into small blue capitals. */
.tagline{
  margin: 12px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  color: rgb(var(--ink-2));
}

.gradient-text{
  background: linear-gradient(96deg, rgb(var(--accent)), rgb(var(--sage)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Breadcrumb ---------- */
.crumbs{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgb(var(--ink-3)); margin: 0 0 18px;
}
.crumbs a{ color: rgb(var(--ink-3)); text-decoration: none; }
.crumbs a:hover{ color: rgb(var(--accent)); }
.crumbs span[aria-current]{ color: rgb(var(--ink)); font-weight: 600; }

/* ---------- Pills, tags, chips ---------- */
.badge-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgb(var(--sage-soft)); border: 1px solid rgb(var(--sage) / .28);
  color: rgb(var(--sage)); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge-pill .dot{ width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--sage)); flex: none; }

.trust-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgb(var(--sage-soft)); border: 1px solid rgb(var(--sage) / .28);
  color: rgb(var(--sage)); font-size: 13px; font-weight: 600;
}

.tag{
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.tag-science{ background: rgb(var(--sage-soft)); color: rgb(var(--sage)); }
.tag-usecase{ background: rgb(var(--accent-soft)); color: rgb(var(--accent-600)); }
.dark .tag-usecase{ color: rgb(var(--accent)); }

.chip-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip{
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface-bg); border: 1px solid rgb(var(--line));
  font-size: 13.5px; font-weight: 600; color: rgb(var(--ink-2));
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary{ background: rgb(var(--accent)); color: #fff; box-shadow: 0 8px 20px rgb(var(--accent) / .28); }
.btn-primary:hover{ background: rgb(var(--accent-600)); transform: translateY(-2px); box-shadow: 0 12px 26px rgb(var(--accent) / .34); }
.btn-ghost{ background: var(--surface-bg); color: rgb(var(--ink)); border-color: rgb(var(--line)); box-shadow: var(--shadow-2); }
.btn-ghost:hover{ transform: translateY(-2px); border-color: rgb(var(--accent) / .45); }
.btn-sm{ padding: 10px 18px; font-size: 14px; }
.btn-primary .lucide-icon, .btn-ghost .lucide-icon{ width: 17px; height: 17px; }
.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.read-link{
  display: inline-flex; align-items: center; gap: 6px;
  color: rgb(var(--accent)); font-weight: 700; font-size: 14px; text-decoration: none;
}
.read-link:hover{ text-decoration: underline; }

/* Official store badges */
.cta-row{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge{ display: inline-block; transition: transform .18s ease; }
.store-badge:hover{ transform: translateY(-2px); }
.store-badge img{ height: 52px; width: auto; display: block; }

.fineprint{ margin-top: 14px; color: rgb(var(--ink-3)); font-size: 13px; line-height: 1.65; }
.availability{ margin-top: 12px; color: rgb(var(--ink-2)); font-size: 14px; }
.availability a{ color: rgb(var(--accent)); text-decoration: underline; font-weight: 600; }

/* ---------- Layout helpers ---------- */
.hero-grid{
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 44px); align-items: center;
}
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.split{ display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(22px, 4vw, 52px); align-items: start; }

@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px){
  .grid-3, .grid-2, .split{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr !important; gap: 24px; }
}

/* ---------- Cards ---------- */
.card{
  border-radius: 20px; background: var(--surface-bg);
  border: 1px solid rgb(var(--line)); box-shadow: var(--shadow-2); overflow: hidden;
}
.card-inner{ padding: clamp(22px, 3.4vw, 40px); }

.feature{
  border-radius: 18px; padding: 22px;
  border: 1px solid rgb(var(--line)); background: var(--surface-bg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgb(var(--accent) / .35); }
.feature h3{ margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.feature p{ color: rgb(var(--ink-2)); font-size: 14.5px; line-height: 1.7; margin: 0; }

.feature-icon{
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--accent-soft)); margin-bottom: 14px;
}
.feature-icon .lucide-icon{ width: 20px; height: 20px; color: rgb(var(--accent)); }
.lucide-icon{ width: 20px; height: 20px; flex-shrink: 0; }

.step-num{
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(var(--sage-soft)); color: rgb(var(--sage));
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}

.check-item{
  display: flex; gap: 13px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid rgb(var(--line)); background: var(--surface-bg);
}
.check-item + .check-item{ margin-top: 12px; }
.check-item .lucide-icon{ width: 19px; height: 19px; color: rgb(var(--sage)); flex: none; margin-top: 2px; }
.check-item h3{ margin: 0 0 5px; font-size: 15.5px; font-weight: 700; }
.check-item p{ margin: 0; font-size: 14px; line-height: 1.7; color: rgb(var(--ink-2)); }

/* ---------- Trust bar ---------- */
.trustbar{ background: var(--surface-bg); border-block: 1px solid rgb(var(--line)); }
.trustbar ul{
  list-style: none; margin: 0; padding: 16px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px clamp(18px, 4vw, 48px);
}
.trustbar li{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: rgb(var(--ink-2));
}
.trustbar .lucide-icon{ width: 16px; height: 16px; color: rgb(var(--sage)); flex: none; }

/* ---------- FAQ accordion ---------- */
.faq-list{ margin-top: 26px; max-width: 820px; margin-inline: auto; }
.faq-item{
  border: 1px solid rgb(var(--line)); border-radius: 14px;
  background: var(--surface-bg); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary{
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 15.5px; font-weight: 700; color: rgb(var(--ink));
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 19px; font-weight: 400; color: rgb(var(--ink-3)); line-height: 1; }
.faq-item[open] summary::after{ content: "\2013"; }
.faq-item[open] summary{ color: rgb(var(--accent)); }
.faq-item .faq-body{ padding: 0 20px 18px; font-size: 14.5px; line-height: 1.75; color: rgb(var(--ink-2)); }
.faq-item .faq-body p{ margin: 0; }

/* ---------- Featured article ---------- */
.featured{
  display: grid; grid-template-columns: 1.35fr .95fr;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgb(var(--line)); box-shadow: var(--shadow-2);
}
@media (max-width: 767px){ .featured{ grid-template-columns: 1fr; } }
.featured-body{ background: var(--surface-bg); padding: clamp(22px, 3.2vw, 36px); }
.featured-body h2{ margin: 14px 0 12px; font-size: clamp(20px, 2.4vw, 27px); }
.featured-body p{ color: rgb(var(--ink-2)); font-size: 14.5px; line-height: 1.75; margin: 0 0 20px; }
.featured-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: rgb(var(--ink-3)); }
.featured-aside{
  background: rgb(var(--sage-soft));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(24px, 3vw, 36px); gap: 8px;
}
.featured-aside strong{ font-size: clamp(17px, 2vw, 21px); color: rgb(var(--ink)); letter-spacing: -0.01em; }
.featured-aside span{ font-size: 12.5px; color: rgb(var(--ink-2)); }

/* ---------- Post grid ---------- */
.grid-head{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters{ display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn{
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit;
  background: var(--surface-bg); color: rgb(var(--ink-2));
  border: 1px solid rgb(var(--line)); transition: all .18s ease;
}
.filter-btn:hover{ border-color: rgb(var(--accent) / .45); }
.filter-btn[aria-pressed="true"]{ background: rgb(var(--sage)); color: #fff; border-color: rgb(var(--sage)); }

.post-grid{
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px){ .post-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .post-grid{ grid-template-columns: 1fr; } }

.post-card{
  height: 100%; display: flex; flex-direction: column;
  background: var(--surface-bg); border: 1px solid rgb(var(--line));
  border-radius: 16px; padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgb(var(--accent) / .35); }
.post-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: rgb(var(--ink-3)); }
.post-card h3{ margin: 12px 0 10px; font-size: 16.5px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.post-card h3 a{ color: inherit; text-decoration: none; }
.post-card h3 a:hover{ color: rgb(var(--accent)); }
.post-card p{ margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: rgb(var(--ink-2)); flex: 1; }

/* ---------- Newsletter ---------- */
.newsletter{
  background: rgb(var(--sage-soft)); border: 1px solid rgb(var(--sage) / .22);
  border-radius: 20px; padding: clamp(24px, 3.4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: center;
}
@media (max-width: 767px){ .newsletter{ grid-template-columns: 1fr; } }
.newsletter h2{ font-size: clamp(19px, 2.3vw, 26px); }
.newsletter p{ margin: 10px 0 0; font-size: 14px; color: rgb(var(--ink-2)); }
.ml-embedded{ margin-top: 18px; }

/* ---------- Device bezel (iphone16.png) ---------- */
.bezel-card{
  border-radius: 22px; border: 1px solid rgb(var(--line));
  background: var(--surface-bg); box-shadow: var(--shadow-2);
  padding: 14px; min-width: 0; width: 100%; box-sizing: border-box;
}
.bezel-wrap{
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 906 / 1824; min-width: 0;
}
.bezel-screen{
  position: absolute;
  top: var(--bezel-inset-y); bottom: var(--bezel-inset-y);
  left: var(--bezel-inset-x); right: var(--bezel-inset-x);
  border-radius: var(--screen-radius); overflow: hidden;
  background: rgba(0,0,0,.06);
}
.dark .bezel-screen{ background: rgba(255,255,255,.04); }
.bezel-screen video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.bezel-img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none; user-select: none;
}
.device-caption{ margin-top: 12px; color: rgb(var(--ink-2)); font-size: 13.5px; line-height: 1.6; }
.device-caption strong{ color: rgb(var(--ink)); }

@media (max-width: 767px){
  .hero-grid .bezel-card{
    order: -1 !important; margin: 0 auto;
    max-width: calc(100% - 32px) !important; width: calc(100% - 32px);
    padding: 12px; box-sizing: border-box;
  }
  .hero-grid > div:not(.bezel-card){ order: 1 !important; }
  .hero-grid .bezel-wrap{ max-width: 100% !important; width: 100% !important; margin: 0 auto; }
  .bezel-card{ padding: 12px; max-width: 100% !important; box-sizing: border-box; }
}
@media (max-width: 480px){
  .hero-grid .bezel-card{ max-width: calc(100% - 32px) !important; width: calc(100% - 32px); padding: 8px; }
  .bezel-card{ padding: 8px; }
  .bezel-wrap{ max-width: 100% !important; }
}

/* ---------- Long-form article + legal prose ---------- */
.blog-main{ padding: clamp(30px, 4vw, 56px) 0; }

.article-shell{
  background: var(--surface-bg);
  border: 1px solid rgb(var(--line));
  border-radius: 20px;
  padding: clamp(22px, 3.6vw, 48px);
  box-shadow: var(--shadow-2);
}

.article-meta{
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 13px; color: rgb(var(--ink-3));
  margin: 16px 0 0; padding-bottom: 18px;
  border-bottom: 1px solid rgb(var(--line));
}
.article-meta strong{ color: rgb(var(--ink-2)); font-weight: 700; }

.prose{ font-size: 16px; line-height: 1.8; color: rgb(var(--ink-2)); }
.prose h2{ margin: 34px 0 12px; font-size: clamp(20px, 2.3vw, 26px); }
.prose h3{ margin: 26px 0 10px; font-size: clamp(17px, 1.9vw, 20px); font-weight: 700; }
.prose p{ margin: 0 0 16px; }
.prose ul, .prose ol{ margin: 0 0 18px; padding-left: 22px; }
.prose li{ margin: 0 0 9px; }
.prose strong{ color: rgb(var(--ink)); }
.prose a{ color: rgb(var(--accent)); }
.prose blockquote{
  margin: 22px 0; padding: 14px 20px;
  border-left: 3px solid rgb(var(--sage)); background: rgb(var(--sage-soft));
  border-radius: 0 12px 12px 0;
}

/* Callout boxes. Token-based, so the dark variants the pages used to declare
   inline are no longer needed - the tokens flip on their own. */
.highlight-box,
.medical-disclaimer{
  background: rgb(var(--sage-soft)); border: 1px solid rgb(var(--sage) / .22);
  border-radius: 14px; padding: 18px 20px; margin: 22px 0;
}
.last-updated{ color: rgb(var(--ink-3)); font-size: 13.5px; margin-top: 8px; }

/* Legal pages share one prose treatment */
.privacy-content,
.terms-content{ font-size: 16px; line-height: 1.8; color: rgb(var(--ink-2)); }
.privacy-content h2,
.terms-content h2{ margin: 34px 0 12px; font-size: clamp(20px, 2.3vw, 26px); }
.privacy-content h3,
.terms-content h3{ margin: 24px 0 10px; font-size: clamp(17px, 1.9vw, 20px); font-weight: 700; }
.privacy-content p,
.terms-content p{ margin: 0 0 16px; }
.privacy-content ul, .privacy-content ol,
.terms-content ul, .terms-content ol{ margin: 0 0 18px; padding-left: 22px; }
.privacy-content li,
.terms-content li{ margin: 0 0 9px; }
.privacy-content strong,
.terms-content strong{ color: rgb(var(--ink)); }
.privacy-content a,
.terms-content a{ color: rgb(var(--accent)); }

.blog-disclaimer{
  font-size: 12.5px; line-height: 1.65;
  color: rgb(var(--ink-2)); margin: 0 0 20px; max-width: 82ch;
}

/* Related articles */
.related-grid{
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 640px){ .related-grid{ grid-template-columns: 1fr; } }
.related-grid a{
  display: block; padding: 16px 18px; border-radius: 14px;
  background: var(--surface-bg); border: 1px solid rgb(var(--line));
  color: rgb(var(--ink)); text-decoration: none; font-weight: 700;
  font-size: 14.5px; line-height: 1.45;
  transition: transform .18s ease, border-color .18s ease;
}
.related-grid a:hover{ transform: translateY(-2px); border-color: rgb(var(--accent) / .4); color: rgb(var(--accent)); }

/* ---------- Final CTA ---------- */
.final-cta{ text-align: center; }
.final-cta .leaf{ width: 42px; height: 42px; opacity: .95; display: inline-block; }
.final-cta .cta-row,
.final-cta .btn-row{ justify-content: center; }

/* ---------- Footer ---------- */
footer,
.blog-footer{
  border-top: 1px solid rgb(var(--line));
  background: var(--band-bg);
  padding: clamp(32px, 4vw, 52px) 0 34px;
  color: rgb(var(--ink-3)); font-size: 13px;
}
.footer-grid{ display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 767px){ .footer-grid{ grid-template-columns: 1fr; gap: 28px; } }

.footer-brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.footer-brand strong{ color: rgb(var(--ink)); font-size: 15px; }
.footer-blurb{ margin: 12px 0 0; max-width: 42ch; line-height: 1.7; color: rgb(var(--ink-3)); }

/* Column labels are paragraphs, not headings: using a heading here skipped a
   level. The nav's aria-label supplies the accessible name. */
.footer-col .col-title{
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--ink-3));
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li + li{ margin-top: 9px; }
.footer-col a{ color: rgb(var(--ink-2)); text-decoration: none; transition: color .18s ease; }
.footer-col a:hover{ color: rgb(var(--accent)); }

.footer-base{
  margin-top: clamp(26px, 3.5vw, 40px); padding-top: 20px;
  border-top: 1px solid rgb(var(--line));
  color: rgb(var(--ink-3)); font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.footer-base a{ color: rgb(var(--ink-2)); text-decoration: none; }
.footer-base a:hover{ color: rgb(var(--accent)); }
.footer-base nav{ display: flex; gap: 18px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto !important; }
  *{ transition: none !important; animation: none !important; }
}
