/* ==========================================================================
   HorseFill — horsefill.net
   Design system: the supplement facts panel.
   Every structural device on this site — the heavy top rule, the hairline
   dividers, the label/value rows, the tabular alignment — is borrowed from
   the printed panel on the back of the bottle. Colours are sampled from the
   product: ink #14161A, gold #B8862A, label red #C8102E.
   ========================================================================== */

:root {
  --ink:        #14161A;
  --ink-90:     #23272E;
  --ink-70:     #3D444B;
  --paper:      #FFFFFF;
  --sand:       #F4F2ED;
  --mist:       #F6F7F8;
  --gold:       #B8862A;   /* 5.8:1 on paper — usable as text */
  --gold-lift:  #D4A03C;   /* on ink only */
  --gold-wash:  #F7EEDA;
  --red:        #C8102E;
  --green:      #14653A;
  --rule:       #DCDFE3;
  --rule-heavy: #14161A;

  --text:       #14161A;   /* 17:1 on paper */
  --text-inv:   #FFFFFF;

  --r:      6px;
  --r-pill: 999px;
  --shell:  1240px;
  --sect:   96px;

  --display: Archivo, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .5em; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.015em; }
h4 { font-size: 1.15rem; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.65; }
.fine { font-size: 17px; }

/* The panel label: uppercase, tracked, sitting under a hairline —
   the same treatment a facts panel gives "Amount Per Serving". */
.plabel {
  font-family: var(--display);
  font-size: 17px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 20px; line-height: 1.4;
  display: flex; align-items: center; gap: 14px;
}
.plabel::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.plabel--center { justify-content: center; }
.plabel--center::before { content: ""; flex: 1; height: 1px; background: var(--rule); }
.on-ink .plabel { color: var(--gold-lift); }
.on-ink .plabel::after, .on-ink .plabel::before { background: rgba(255,255,255,.22); }

/* ---------- Shell ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.shell--narrow { max-width: 900px; }
.sect { padding: var(--sect) 0; }
.sect--sand { background: var(--sand); }
.sect--mist { background: var(--mist); }
.sect--ink { background: var(--ink); color: var(--text-inv); }
.sect--ink h2, .sect--ink h3, .sect--ink p, .sect--ink li { color: var(--text-inv); }
.sect--rule { border-top: 1px solid var(--rule); }
.head { max-width: 780px; margin: 0 0 56px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }

.cols { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- Focus / skip ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}
.sect--ink a:focus-visible, .foot a:focus-visible { outline-color: var(--gold-lift); }
.skip {
  position: absolute; left: 20px; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--r);
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip:focus { top: 16px; color: #fff; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink); color: var(--text-inv);
  font-size: 17px; font-weight: 500; padding: 11px 0;
}
.announce ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; }
.announce li { margin: 0; display: flex; align-items: center; gap: 9px; }
.announce svg { color: var(--gold-lift); flex: none; }

/* ---------- Masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.mast-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.mark {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 23px;
  letter-spacing: -.03em; color: var(--ink); text-decoration: none;
}
.mark img { width: 38px; height: 38px; border-radius: var(--r); }
.mark i { font-style: normal; color: var(--gold); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; }
.menu li { margin: 0; }
.menu a {
  display: flex; align-items: center; min-height: 44px;
  padding: 10px 14px; font-size: 17px; font-weight: 500;
  color: var(--text); text-decoration: none; border-radius: var(--r);
}
.menu a:hover { background: var(--mist); color: var(--ink); }
.mast .btn { flex: none; margin-left: 12px; }
.burger {
  display: none; margin-left: auto; width: 48px; height: 48px;
  align-items: center; justify-content: center; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); cursor: pointer;
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 28px 20px;
  }
  .menu.open { display: flex; }
  .menu a { border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 18px; padding: 15px 6px; }
  .menu li:last-child a { border-bottom: 0; }
  .mast .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.3;
  padding: 18px 32px; min-height: 60px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--ink { background: var(--ink); color: #FFFFFF; }        /* 17:1 */
.btn--ink:hover { background: var(--ink-90); color: #FFFFFF; }
.btn--gold { background: var(--gold-lift); color: #14161A; } /* 7.9:1 */
.btn--gold:hover { background: var(--gold); color: #FFFFFF; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #FFFFFF; }
.btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #FFFFFF; }
.btn--sm { min-height: 48px; padding: 12px 24px; font-size: 17px; }
.btn--lg { min-height: 66px; padding: 20px 42px; font-size: 19px; }
.btn--wide { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); padding: 70px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lead { max-width: 40ch; color: var(--ink-70); }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.hero-sub { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 17px; font-weight: 500; }
.hero-sub svg { color: var(--gold); flex: none; }

.hero-shot { position: relative; padding: 40px 0 56px; text-align: center; }
.hero-shot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 58% at 52% 46%, var(--gold-wash) 0%, rgba(247,238,218,0) 72%);
  z-index: 0;
}
.hero-shot img { position: relative; z-index: 1; margin: 0 auto; }
.hero-shot figcaption {
  position: relative; z-index: 1; margin-top: 24px;
  font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70);
}
@media (max-width: 940px) {
  .hero { padding-top: 44px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-shot { order: -1; padding: 10px 0 30px; }
}

/* ---------- Numbers strip ---------- */
.figures { background: var(--ink); color: var(--text-inv); }
.figures ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.figures li { margin: 0; padding: 40px 24px; border-left: 1px solid rgba(255,255,255,.14); text-align: center; }
.figures li:first-child { border-left: 0; }
.figures b {
  display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--gold-lift);
}
.figures span { display: block; margin-top: 12px; font-size: 17px; font-weight: 500; line-height: 1.5; color: #FFFFFF; }
@media (max-width: 780px) {
  .figures ul { grid-template-columns: repeat(2, 1fr); }
  .figures li:nth-child(3) { border-left: 0; }
  .figures li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Facts panel (the signature element) ---------- */
.panel {
  border-top: 8px solid var(--rule-heavy);
  border-bottom: 8px solid var(--rule-heavy);
  background: var(--paper);
  padding: 30px;
}
.panel-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 3px solid var(--rule-heavy);
  font-family: var(--display); font-weight: 700;
}
.panel-cap b { font-size: 21px; letter-spacing: -.01em; }
.panel-cap span { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.panel-row { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.panel-row:last-child { border-bottom: 0; }
.panel-row dt { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.panel-row dt small { display: block; font-family: var(--body); font-weight: 500; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.panel-row dd { margin: 0; }
.panel-foot { border-top: 3px solid var(--rule-heavy); padding: 20px 0 0; font-size: 17px; }
@media (max-width: 700px) { .panel-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Bare cards (no shadow — this system uses rules, not elevation) ---------- */
.tile { border: 1px solid var(--rule); border-radius: var(--r); padding: 32px 30px; background: var(--paper); }
.sect--sand .tile, .sect--mist .tile { background: var(--paper); }
.tile h3 { margin-bottom: 10px; }
.tile-tag {
  font-family: var(--display); font-size: 17px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.tile-ic { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: var(--r); background: var(--gold-wash); color: var(--gold); margin-bottom: 18px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--flip .split-fig { order: -1; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 40px; } .split--flip .split-fig { order: 0; } }
.split-fig { background: var(--sand); border-radius: var(--r); padding: 44px 28px; text-align: center; }
.sect--sand .split-fig { background: var(--paper); border: 1px solid var(--rule); }
.split-fig img { margin: 0 auto; }
.split-fig figcaption { margin-top: 20px; font-size: 17px; font-weight: 500; }

/* ---------- Steps (a typed sequence, so numbering carries real information) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.flow > div { padding: 34px 26px 0; border-left: 1px solid var(--rule); }
.flow > div:first-child { border-left: 0; padding-left: 0; }
.flow > div:last-child { padding-right: 0; }
.flow .n {
  font-family: var(--display); font-size: 17px; font-weight: 700;
  letter-spacing: .12em; color: var(--gold); display: block; margin-bottom: 16px;
}
.flow h3 { font-size: 1.25rem; margin-bottom: 10px; }
@media (max-width: 940px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .flow > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 30px; }
}
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; }
  .flow > div { border-left: 0; padding: 30px 0 0; border-top: 1px solid var(--rule); margin-top: 0; }
  .flow > div:first-child { border-top: 0; padding-top: 34px; }
}

/* ---------- Lists ---------- */
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 15px; }
.ticks svg { color: var(--green); flex: none; margin-top: 5px; }
.crosses svg { color: var(--red); flex: none; margin-top: 5px; }
.sect--ink .ticks svg { color: var(--gold-lift); }

/* ---------- Notes ---------- */
.note { border: 1px solid var(--rule); border-left: 5px solid var(--gold); border-radius: var(--r); padding: 28px 30px; background: var(--mist); }
.note--warn { border-left-color: var(--red); background: #FDF5F6; border-color: #F0D8DC; }
.note h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.25rem; }
.note--warn h3 { color: #9B0C23; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; padding: 38px 30px 34px; border-left: 1px solid var(--rule); background: var(--paper); position: relative; }
.tier:first-child { border-left: 0; }
@media (max-width: 940px) { .tier { border-left: 0; border-top: 1px solid var(--rule); } .tier:first-child { border-top: 0; } }
.tier--pick { background: var(--sand); }
.tier--pick::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gold-lift); }
.tier-flag {
  display: inline-block; align-self: flex-start; background: var(--red); color: #FFFFFF;
  font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.tier-tag { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.tier h3 { font-size: 1.9rem; margin-bottom: 2px; }
.tier-supply { font-size: 17px; font-weight: 500; color: var(--ink-70); margin: 0 0 22px; }
.tier img { margin: 0 auto 22px; }
.tier-rate { display: flex; align-items: baseline; gap: 8px; }
.tier-rate b { font-family: var(--display); font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.tier-rate span { font-size: 18px; font-weight: 500; }
.tier-sum { font-size: 18px; margin: 8px 0 24px; font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 0 0 28px; }
.tier ul li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; font-size: 18px; }
.tier ul svg { color: var(--green); flex: none; margin-top: 5px; }
.tier .btn { margin-top: auto; }

/* ---------- Guarantee ---------- */
.promise { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 30px; text-align: center; } }
.stamp {
  width: 210px; height: 210px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--gold-lift); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 14px;
}
.stamp b { font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--gold-lift); letter-spacing: -.04em; }
.stamp span { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; line-height: 1.4; }

/* ---------- Two-column honesty block ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (max-width: 820px) { .honest { grid-template-columns: 1fr; } }
.honest > div { padding: 34px 32px; }
.honest > div + div { border-left: 1px solid var(--rule); }
@media (max-width: 820px) { .honest > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.honest h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.honest .yes h3 { color: var(--green); }
.honest .no h3 { color: #9B0C23; }

/* ---------- FAQ ---------- */
.qa { max-width: 900px; margin: 0 auto; border-top: 2px solid var(--rule-heavy); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 22px; padding: 26px 2px;
  font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.4;
  color: var(--ink); min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold); }
.qa .sign { flex: none; width: 28px; height: 28px; position: relative; margin-top: 4px; }
.qa .sign::before, .qa .sign::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.qa .sign::before { left: 3px; right: 3px; top: 12px; height: 4px; }
.qa .sign::after { top: 3px; bottom: 3px; left: 12px; width: 4px; }
.qa details[open] .sign::after { transform: rotate(90deg); opacity: 0; }
.qa-body { padding: 0 2px 28px; max-width: 62ch; }

/* ---------- Article links ---------- */
.reads { border-top: 1px solid var(--rule); }
.read-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text);
}
.read-row:hover { color: var(--gold); }
.read-row h3 { margin: 0 0 6px; font-size: 1.3rem; }
.read-row p { margin: 0; font-size: 17px; color: var(--ink-70); }
.read-row .go { flex: none; color: var(--gold); }
.read-row:hover .go { transform: translateX(4px); }
.read-row .go { transition: transform .15s ease; }

/* ---------- Closing CTA ---------- */
.closer { background: var(--ink); color: #FFFFFF; text-align: center; padding: 90px 0; }
.closer img { margin: 0 auto 32px; }
.closer h2 { color: #FFFFFF; max-width: 18ch; margin: 0 auto .45em; }
.closer .lead { max-width: 56ch; margin: 0 auto 36px; color: #FFFFFF; }
.closer .marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; list-style: none; padding: 0; margin: 36px 0 0; }
.closer .marks li { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.closer .marks svg { color: var(--gold-lift); flex: none; }
.pays { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 30px 0 0; }
.pays li { margin: 0; border: 1px solid rgba(255,255,255,.26); border-radius: var(--r); padding: 8px 18px; font-size: 17px; font-weight: 500; }

/* ---------- Footer ---------- */
.foot { background: var(--paper); border-top: 8px solid var(--rule-heavy); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--text); text-decoration: none; display: inline-block; padding: 5px 0; min-height: 30px; }
.foot a:hover { color: var(--gold); text-decoration: underline; }
.foot-mark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.foot-mark img { width: 42px; height: 42px; border-radius: var(--r); }
.foot-legal { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 30px; }
.foot-legal p { font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.fda-box { border: 2px solid var(--ink); border-radius: var(--r); padding: 20px 24px; margin-bottom: 22px; }
.fda-box b { text-transform: uppercase; letter-spacing: .1em; font-size: 17px; }

/* ---------- Floating UI ---------- */
.top-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #FFFFFF;
  border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.top-btn.on { opacity: 1; visibility: visible; }
@media (max-width: 900px) { .top-btn { bottom: 96px; right: 16px; } }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bar .btn { width: 100%; }
@media (max-width: 900px) { .bar { display: block; } body { padding-bottom: 88px; } }

.veil { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,26,.74); display: none; align-items: center; justify-content: center; padding: 20px; }
.veil.on { display: flex; }
.sheet {
  background: var(--paper); border-radius: var(--r); border-top: 8px solid var(--rule-heavy);
  max-width: 540px; width: 100%; padding: 40px 34px 34px; position: relative;
  text-align: center; max-height: 92vh; overflow-y: auto;
}
.sheet h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); }
.sheet p { font-size: 19px; }
.sheet img { margin: 0 auto 22px; }
.x-btn { position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: var(--r); background: var(--mist); border: 1px solid var(--rule); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet ul { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: inline-block; }
.sheet ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; margin-bottom: 12px; }
.sheet ul svg { color: var(--green); flex: none; margin-top: 6px; }
.pass { background: none; border: 0; font-family: inherit; font-size: 18px; font-weight: 500; color: var(--text); text-decoration: underline; cursor: pointer; margin-top: 16px; padding: 12px; min-height: 44px; }

/* ---------- Utility ---------- */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.center { text-align: center; }
.seals { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.seals img { width: 84px; height: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 620px) { :root { --sect: 64px; } .tile { padding: 26px 24px; } }
