/* =============================================================
   renobackpain.com — EDUCATION INDEX (candidate rebuild)
   Pure patient education. Hero (reassurance + recovery arc) ->
   mid-page "browse the directory" CTA -> horizontal reels carousel of
   treatment types, each with one "find a provider" CTA that deep-links
   to the separate directory site.
   Warm & Human tokens, self-hosted Source Serif 4 + Public Sans.
   UNBRANDED on purpose. Zero vector/line-art illustration.
   ============================================================= */

/* ---- self-hosted fonts (no runtime Google Fonts) ----
   Original renobackpain "Warm & Human" pairing: Source Serif 4 display +
   Public Sans body. Variable woff2, one file per family covers all weights.
   Latin subset only; the page makes zero third-party font requests. */
@font-face{
  font-family:"Public Sans";font-style:normal;font-weight:100 900;font-display:swap;
  src:url("fonts/public-sans-var.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;
  src:url("fonts/source-serif-4-var.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*{box-sizing:border-box;}
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font);font-size:1.06rem;line-height:1.6;
  overflow-x:clip; /* clip, never a scroll container */
}
img,svg{max-width:100%;display:block;}
a{color:var(--accent-2);text-underline-offset:2px;}
h1,h2,h3{font-family:var(--font-serif);font-weight:600;line-height:1.14;letter-spacing:-.01em;color:var(--text);margin:0;}

.wrap{width:100%;max-width:1120px;margin-inline:auto;padding-inline:clamp(16px,5vw,40px);}

/* ---------- top strips ---------- */
.preview-ribbon{
  background:var(--surface-2);color:var(--text-faint);border-bottom:1px solid var(--border);
  text-align:center;font-size:var(--fs-xs);padding:5px 12px;letter-spacing:.02em;
}
.safety-strip{background:var(--danger-bg);border-bottom:1px solid var(--danger-line);}
.safety-strip .wrap{display:flex;gap:12px;align-items:flex-start;padding-top:10px;padding-bottom:10px;}
.safety-strip svg{flex:0 0 auto;width:20px;height:20px;margin-top:2px;color:var(--danger);}
.safety-strip p{margin:0;color:var(--danger);font-size:var(--fs-sm);line-height:1.45;}

/* ---------- header ---------- */
.site-head{background:var(--bg);border-bottom:1px solid var(--border-soft);position:sticky;top:0;z-index:20;}
.site-head .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;}
.wordmark{display:inline-flex;align-items:center;gap:11px;text-decoration:none;font-family:"Source Serif 4",Georgia,"Times New Roman",serif;font-weight:600;font-size:20px;letter-spacing:-.01em;color:var(--text);}
.wordmark:hover{text-decoration:none;color:var(--text);}
.brand-mark{height:34px;width:auto;display:block;border-radius:6px;}
.wordmark-name{color:var(--text);}
.wordmark-tld{color:var(--text-faint);font-weight:500;}
@media (max-width:600px){ .wordmark{font-size:17px;} .brand-mark{height:28px;} }
@media (max-width:430px){ .wordmark-tld{display:none;} }
.site-head .bar{flex-wrap:wrap;row-gap:10px;}
.site-nav{display:flex;align-items:center;gap:clamp(12px,2vw,22px);margin-left:auto;}
.site-nav-link{font-family:var(--font);font-weight:600;font-size:var(--fs-sm);color:var(--text-dim);text-decoration:none;white-space:nowrap;}
.site-nav-link:hover{color:var(--accent-2);}
.head-cta{font-family:var(--font);font-weight:700;font-size:var(--fs-sm);color:var(--accent-ink);background:var(--accent);text-decoration:none;padding:9px 16px;border-radius:999px;white-space:nowrap;}
.head-cta:hover{background:var(--accent-2);}
@media (max-width:560px){ .site-nav{width:100%;margin-left:0;justify-content:space-between;gap:12px;} }

/* =============================================================
   HERO — reassurance + recovery arc (the first thing on screen)
   ============================================================= */
.hero{padding:clamp(30px,6vw,64px) 0 clamp(24px,4vw,40px);}
.hero h1{font-size:clamp(2.2rem,6.4vw,3.7rem);font-weight:700;max-width:22ch;margin:0 auto;text-align:center;}
.hero h1 em{font-style:normal;color:var(--accent-2);}

/* Hero infographic: 5 figures, 4 highlighted = "4 out of 5 people" */
.hero-fig{display:flex;justify-content:center;align-items:flex-end;gap:clamp(12px,2.2vw,22px);margin:clamp(22px,3.5vw,32px) 0 0;}
.hero-fig svg{width:clamp(40px,6.4vw,58px);height:auto;display:block;}
.hero-fig .fig{color:var(--accent);}
.hero-fig .fig--well{color:var(--figure-muted);}

.hero-sub{font-size:clamp(1.1rem,2.5vw,1.35rem);color:var(--text-dim);max-width:46ch;margin:20px auto 0;line-height:1.5;text-align:center;}
.hero-note{font-size:clamp(1.05rem,2.4vw,1.28rem);color:var(--text-dim);max-width:42ch;margin:0;line-height:1.5;}

.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(24px,5vw,56px);align-items:center;margin-top:clamp(24px,4vw,40px);}
@media (max-width:840px){ .hero-grid{grid-template-columns:1fr;gap:var(--space-4);} }

/* recovery arc card (reuses tokens; self-contained copy of the arc styles) */
.arc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:clamp(22px,3vw,30px);box-shadow:var(--shadow-md);}
.arc-title{font-family:var(--font);font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--text-faint);margin:0 0 20px;}
.arc-track{display:flex;flex-direction:column;gap:20px;border-left:2px solid var(--border);padding:2px 0 2px 24px;margin-left:6px;}
.arc-seg{position:relative;display:flex;flex-direction:column;gap:3px;}
.arc-seg::before{content:"";position:absolute;left:-31px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--bg);}
.arc-seg:nth-child(1)::before{background:color-mix(in srgb,var(--danger) 70%, var(--accent));}
.arc-seg:nth-child(3)::before{background:var(--tier-strong);}
.arc-when{text-transform:uppercase;font-size:12.5px;font-weight:700;letter-spacing:.05em;color:var(--accent-2);}
.arc-what{font-family:var(--font-serif);font-size:1.22rem;color:var(--text);line-height:1.2;}
.arc-foot{margin:20px 0 0;font-size:var(--fs-sm);color:var(--text-dim);line-height:1.5;}

/* =============================================================
   BROWSE ALL — mid-page entry point to the whole directory
   ============================================================= */
.browse-all{padding:clamp(4px,2vw,16px) 0 clamp(20px,4vw,36px);}
.browse-all .wrap{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;}
.browse-lead{font-family:var(--font);font-weight:700;font-size:var(--fs-sm);letter-spacing:.02em;color:var(--text-faint);margin:0;text-transform:uppercase;}
.browse-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  font-family:var(--font);font-weight:700;font-size:clamp(1rem,2.4vw,1.15rem);line-height:1.3;
  color:var(--accent-ink);background:var(--accent);text-decoration:none;
  padding:15px 26px;border-radius:999px;border:1px solid var(--accent);
  box-shadow:var(--shadow-md);max-width:100%;text-align:center;
}
.browse-btn:hover{background:var(--accent-2);border-color:var(--accent-2);}
.browse-btn svg{width:18px;height:18px;flex:0 0 auto;}

/* =============================================================
   REELS — horizontal, swipeable treatment carousel (portrait cards)
   ============================================================= */
.reels{padding:clamp(10px,3vw,28px) 0 clamp(40px,6vw,80px);}
.reels-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(18px,3vw,28px);}
.reels-head > div:first-child{max-width:60ch;}
.reels-head h2{font-size:clamp(1.7rem,4.4vw,2.5rem);font-weight:700;}
.reels-head p{color:var(--text-dim);font-size:clamp(1.02rem,2.2vw,1.18rem);margin:12px 0 0;line-height:1.5;}

.reels-arrows{display:none;gap:10px;flex:0 0 auto;}
.reels-arrow{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:var(--surface);border:1.5px solid var(--accent-line);color:var(--accent-2);
}
.reels-arrow:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);}
.reels-arrow svg{width:22px;height:22px;}
@media (min-width:760px){ .reels-arrows{display:flex;} }

/* scroll-snap track — the ONLY horizontal scroll container on the page */
.reels-track{
  display:flex;gap:clamp(16px,2.4vw,22px);
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scroll-padding-left:2px;padding:6px 2px 18px;
  scrollbar-width:thin;scrollbar-color:var(--accent-line) transparent;
}
.reels-track:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius);}
.reels-track::-webkit-scrollbar{height:8px;}
.reels-track::-webkit-scrollbar-thumb{background:var(--accent-line);border-radius:999px;}
.reels-track::-webkit-scrollbar-track{background:transparent;}

.reel{
  flex:0 0 auto;width:clamp(240px,78vw,290px);scroll-snap-align:start;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);
}

/* portrait 9:16 poster — reads like a reels tile; play + title overlaid */
.reel-media{
  position:relative;aspect-ratio:9/16;width:100%;
  background:var(--poster, linear-gradient(160deg,#e9d7c4,#d9b79c));
  display:grid;place-items:center;
}
.reel-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(42,38,32,0) 45%,rgba(42,38,32,.55));pointer-events:none;}
.reel-play{
  position:relative;z-index:1;width:58px;height:58px;border-radius:50%;
  background:rgba(255,253,248,.92);display:grid;place-items:center;
  box-shadow:0 6px 20px -6px rgba(120,70,40,.5);
}
.reel-play svg{width:23px;height:23px;margin-left:3px;color:var(--accent-2);}
.reel-title{
  position:absolute;z-index:1;left:16px;right:16px;bottom:15px;
  font-size:1.32rem;font-weight:700;line-height:1.15;color:#fffdf8;
  text-shadow:0 1px 10px rgba(30,20,12,.5);
}

.reel-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1;}
.reel-body p{margin:0;color:var(--text-dim);line-height:1.55;font-size:var(--fs-base);}
.reel-cta{
  margin-top:16px;align-self:flex-start;display:inline-flex;align-items:center;gap:9px;
  font-family:var(--font);font-weight:700;font-size:var(--fs-sm);
  color:var(--accent-2);text-decoration:none;
  padding:10px 16px;border:1.5px solid var(--accent-line);border-radius:999px;
  background:var(--accent-soft);line-height:1.25;
}
.reel-cta:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);}
.reel-cta svg{width:15px;height:15px;flex:0 0 auto;}

/* =============================================================
   FOOTER
   ============================================================= */
.site-foot{border-top:1px solid var(--border);padding:clamp(28px,4vw,44px) 0;}
.site-foot .disclaimer-line{font-family:var(--font-serif);font-size:var(--fs-md);color:var(--text-dim);margin:0 0 8px;}
.site-foot .foot-note{font-size:var(--fs-sm);color:var(--text-faint);margin:0;max-width:64ch;line-height:1.5;}
