/* JointBrex official store - Pine & Honey apothecary sheet */
:root {
  --paper: #f7f3e9;
  --card: #fffdf8;
  --pine: #1e4d34;
  --pine-deep: #143726;
  --leaf: #2f8a55;
  --honey: #e8a821;
  --honey-ink: #241c07;
  --ink: #22302a;
  --muted: #5b6a60;
  --line: #ddd3bd;
  --tint: #e9efe4;
  --bad: #a33b2e;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(30, 61, 42, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}
body.has-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; color: var(--pine-deep); line-height: 1.22; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p, li { max-width: 72ch; }
/* width-capped paragraphs must self-center inside center-aligned bands */
.storefront p, .cta-band p, .pledge p, .center p { margin-left: auto; margin-right: auto; }
a { color: var(--pine); }
a:hover { color: var(--leaf); }
strong { color: inherit; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
main { display: block; }
section { padding: 2.6rem 0; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 60;
  background: var(--pine-deep); color: #fff; padding: .55rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-block; font-weight: 800; text-decoration: none; text-align: center;
  border-radius: 10px; padding: .85rem 1.6rem; border: 2px solid transparent;
  font-family: "Public Sans", Arial, sans-serif;
}
.btn-honey { background: var(--honey); color: var(--honey-ink); }
.btn-honey:hover { background: #f4b93e; color: var(--honey-ink); }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-big { font-size: 1.15rem; padding: 1.05rem 2.2rem; }

/* notice bar + header */
.notice-bar {
  background: var(--pine-deep); color: #f3ead1; text-align: center;
  font-size: .86rem; font-weight: 600; padding: .45rem .8rem;
}
.site-head {
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.head-row { display: flex; align-items: center; gap: 1.1rem; min-height: 64px; position: relative; }
.brand {
  display: flex; align-items: center; gap: .45rem; text-decoration: none;
  font-family: "Literata", Georgia, serif; font-weight: 700; font-size: 1.3rem; color: var(--pine-deep);
}
.leaf-mark { flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; }
.head-cta { padding: .55rem 1.2rem; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--pine); color: var(--pine);
  border-radius: 8px; padding: .4rem .7rem; font-weight: 700; cursor: pointer;
  align-items: center; gap: .4rem;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-head.menu-open .site-nav {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .site-nav a { display: block; padding: .8rem 5vw; }
  .head-cta { display: none; }
}

/* buy box, layout B: stacked and centered */
.storefront { padding-top: 1.8rem; text-align: center; }
.rating-line { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.stars { color: var(--honey); letter-spacing: .12em; font-size: 1.05rem; }
.hero-media { margin: 1.2rem auto .4rem; width: min(340px, 72vw); position: relative; }
.hero-media::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 26px;
  background: radial-gradient(closest-side, rgba(30, 61, 42, .22), transparent 70%); z-index: -1;
}
.hero-media .img-fallback { display: none; }
.hero-media.no-img img { display: none; }
.hero-media.no-img .img-fallback {
  display: flex; align-items: center; justify-content: center; height: 320px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--muted); font-weight: 600;
}
.hero-def { margin: 1rem auto; max-width: 62ch; font-size: 1.06rem; }
.hero-def strong { color: var(--pine-deep); }

.pack-picker { border: 0; margin: 1.6rem auto .6rem; }
.pack-picker legend { font-weight: 800; margin: 0 auto .9rem; font-size: 1.05rem; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; text-align: left; }
.pack-tile { position: relative; }
.pack-tile input { position: absolute; opacity: 0; inset: 0; }
.pack-tile label {
  display: block; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem .95rem 1.1rem; cursor: pointer; height: 100%; min-height: 44px;
}
.pack-tile input:focus-visible + label { outline: 3px solid var(--honey); outline-offset: 2px; }
.pack-tile input:checked + label {
  border-color: var(--pine); box-shadow: var(--shadow); background: #fff;
}
.pack-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--pine); color: #f3ead1; font-size: .72rem; font-weight: 800;
  padding: .18rem .7rem; border-radius: 99px; white-space: nowrap;
}
.pack-name { font-weight: 800; font-size: 1.02rem; color: var(--pine-deep); }
.pack-supply { color: var(--muted); font-size: .85rem; }
.pack-per { font-size: 1.35rem; font-weight: 800; margin-top: .35rem; }
.pack-per span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.pack-total { font-size: .88rem; margin-top: .15rem; }
.pack-total s { color: var(--muted); }
.pack-save {
  display: inline-block; background: var(--tint); color: var(--pine-deep);
  font-size: .78rem; font-weight: 700; border-radius: 6px; padding: .1rem .5rem; margin-top: .35rem;
}
.pack-ship { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.pack-bonus { font-size: .8rem; color: var(--pine); font-weight: 600; }

.price-board { margin: 1.4rem auto .4rem; }
.price-board .price-now {
  font-family: "Literata", Georgia, serif; font-size: 2.5rem; font-weight: 700;
  color: var(--pine-deep); line-height: 1.15;
}
.price-board .price-now .unit {
  font-family: "Public Sans", Arial, sans-serif; font-size: 1rem; font-weight: 600; color: var(--muted);
}
.price-meta { font-size: .98rem; }
.price-meta s { color: var(--muted); }
.price-meta em { font-style: normal; color: var(--pine); font-weight: 700; }
.buy-cta { margin-top: 1rem; }
.stock-line { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.assure { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; margin-top: 1rem; }
.assure li {
  font-size: .8rem; font-weight: 700; color: var(--pine-deep);
  background: var(--tint); border-radius: 99px; padding: .3rem .85rem;
}
@media (max-width: 720px) { .pack-grid { grid-template-columns: 1fr; } }

/* trust strip */
.standards { background: var(--pine-deep); color: #f3ead1; padding: 1.4rem 0; }
.standards ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.standards li { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .45rem; }
.standards svg { flex: none; }

/* generic cards and tables */
.card-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
}
@media (max-width: 760px) { .card-trio { grid-template-columns: 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.2rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table th[scope="row"] { width: 38%; color: var(--pine-deep); background: #fbf8ef; }
.table-scroll { overflow-x: auto; }

.tldr {
  background: var(--tint); border-left: 5px solid var(--leaf); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem; margin-top: 1.2rem;
}
.takeaways { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.takeaways ul { margin: .6rem 0 0 1.2rem; }
.takeaways li + li { margin-top: .45rem; }

.cite { text-decoration: none; font-size: .78rem; vertical-align: super; color: var(--pine); font-weight: 700; }
.refs { font-size: .9rem; }
.refs ol { margin: .8rem 0 0 1.3rem; }
.refs li + li { margin-top: .4rem; }

/* how-to steps */
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.3rem; }
.steps li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.steps li::before {
  content: counter(st); display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pine); color: #f3ead1; font-weight: 800; align-items: center; justify-content: center; margin-bottom: .5rem;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; }
.review-card .stars { font-size: .92rem; }
.review-who { font-size: .84rem; color: var(--muted); margin-top: .5rem; }
.vbadge {
  display: inline-block; background: var(--tint); color: var(--pine-deep); border-radius: 5px;
  font-size: .72rem; font-weight: 700; padding: .08rem .45rem; margin-left: .35rem;
}
.dist-list { list-style: none; margin-top: 1.2rem; max-width: 560px; }
.dist-list li { display: grid; grid-template-columns: 64px 1fr 48px; gap: .7rem; align-items: center; margin-bottom: .45rem; font-size: .92rem; font-weight: 600; }
.dist-bar { background: var(--tint); border-radius: 99px; height: 12px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--leaf); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.3rem; min-width: 150px; }
.stat b { display: block; font-size: 1.5rem; font-family: "Literata", Georgia, serif; color: var(--pine-deep); }
.stat span { font-size: .84rem; color: var(--muted); }

/* guarantee band */
.pledge { background: var(--pine); color: #f3ead1; text-align: center; }
.pledge h2, .pledge strong { color: #fff; }
.pledge .big-days { font-family: "Literata", Georgia, serif; font-size: 3.2rem; font-weight: 700; color: var(--honey); }
.pledge p { margin: .5rem auto 0; max-width: 60ch; }

/* q&a on pages */
.qa-block h3 { margin-top: 1.4rem; }
.qa-block h3:first-of-type { margin-top: 1rem; }

/* faq accordion */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: .6rem; }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--pine-deep);
  padding: .95rem 2.4rem .95rem 1.1rem; position: relative; min-height: 44px;
}
.acc-btn::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--leaf); font-weight: 600;
}
.acc-btn[aria-expanded="true"]::after { content: "\2212"; }
.acc-panel { padding: 0 1.1rem 1rem; }

/* supplement facts label */
.facts-panel {
  background: #fff; border: 2px solid var(--ink); max-width: 560px; padding: 1rem 1.1rem; margin-top: 1.3rem;
  font-family: "Public Sans", Arial, sans-serif;
}
.facts-panel h3 { font-family: "Public Sans", Arial, sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); border-bottom: 10px solid var(--ink); padding-bottom: .3rem; }
.facts-meta { font-size: .95rem; border-bottom: 4px solid var(--ink); padding: .3rem 0; }
.facts-panel table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.facts-panel th, .facts-panel td { text-align: left; padding: .3rem 0; border-bottom: 1px solid var(--ink); }
.facts-panel td:last-child, .facts-panel th:last-child { text-align: right; }
.facts-note { font-size: .8rem; padding-top: .4rem; }

/* cta band */
.cta-band { background: var(--tint); text-align: center; }
.cta-band .btn { margin-top: 1rem; }
.micro { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

/* compare table accent */
.win { color: var(--pine); font-weight: 700; }
.lose { color: var(--bad); }

/* sticky dock: revealed pill */
.cart-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 30;
  display: flex; align-items: center; gap: .9rem;
  background: var(--pine-deep); color: #f3ead1; border-radius: 99px;
  padding: .5rem .6rem .5rem 1.3rem; box-shadow: 0 12px 30px rgba(16, 37, 26, .35);
  width: max-content; max-width: 94vw;
}
.cart-dock[hidden] { display: none; }
.dock-copy { font-size: .92rem; white-space: nowrap; }
.dock-btn { padding: .55rem 1.2rem; border-radius: 99px; font-size: .95rem; }

/* footer */
.site-foot { background: var(--pine-deep); color: #e8e2cf; margin-top: 3rem; padding: 2.6rem 0 1.6rem; }
.site-foot a { color: #f3ead1; }
.site-foot h2 { color: #fff; font-size: 1rem; font-family: "Public Sans", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid ul { list-style: none; margin-top: .7rem; }
.foot-grid li + li { margin-top: .45rem; }
.foot-brand .brand-line { display: flex; gap: .45rem; align-items: center; font-family: "Literata", Georgia, serif; font-size: 1.25rem; color: #fff; font-weight: 700; }
.foot-brand p + p { margin-top: .8rem; }
.foot-contact { font-size: .9rem; }
.foot-legal { border-top: 1px solid rgba(243, 234, 209, .25); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; }
.foot-legal p + p { margin-top: .6rem; }
.disc { color: #cfc7ae; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

/* small helpers */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--leaf); }
.center { text-align: center; }
.lede { font-size: 1.08rem; }
.byline { font-size: .88rem; color: var(--muted); }
.updated-line { font-size: .85rem; color: var(--muted); }
.glossary dt { font-weight: 800; color: var(--pine-deep); margin-top: .9rem; }
.glossary dd { margin-left: 0; }
.crumbs { font-size: .84rem; padding-top: 1.1rem; }
.crumbs a { text-decoration: none; }
.crumbs .wrap { display: flex; gap: .4rem; }
