/* HeelKind — warm, trustworthy, easy to read for 40–70 year-olds.
   Cream paper, deep slate ink, clay for actions, sage for reassurance. */

:root {
  --cream: #FBF6EF;
  --paper: #FFFFFF;
  --ink: #22303A;
  --ink-soft: #4C5A63;
  --line: #E7DED2;
  --clay: #B9502F;
  --clay-dark: #963D20;
  --clay-wash: #F8E6DE;
  --sage: #E3ECE5;
  --sage-ink: #2F5D46;
  --sun: #F4C95D;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --max: 1120px;
  --read: 680px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 0.875rem; text-align: center; padding: 8px var(--gutter); }
.topbar span + span::before { content: "·"; margin: 0 10px; opacity: 0.6; }
@media (max-width: 560px) { .topbar span:nth-child(n+2) { display: none; } }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.02em; }
.logo b { color: var(--clay); }
.logo svg { width: 26px; height: 26px; }
.header__cta { font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--clay); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 28px; font: 700 1.1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--clay-dark); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--clay-dark); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--clay-dark); }
.btn--block { display: flex; width: 100%; }
.btn--small { padding: 10px 18px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--clay-dark); }
.btn[aria-disabled="true"] { background: #9aa3a8; box-shadow: 0 4px 0 #7d868b; cursor: not-allowed; }

/* ---------- Image placeholders (replace with real photos) ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 1 / 1; border-radius: var(--radius); padding: 24px;
  background: repeating-linear-gradient(135deg, #F1E8DC 0 14px, #EDE2D4 14px 28px);
  color: var(--ink-soft); font-size: 0.9rem; border: 1px dashed #CDBFAE;
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph::before { content: "PHOTO NEEDED"; position: absolute; top: 10px; left: 12px; font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700; color: var(--clay-dark); }

/* ---------- Hero / buy box ---------- */
.hero { padding: 28px 0 48px; background: var(--paper); }
.hero__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .gallery { position: sticky; top: 16px; } }
.gallery__main { margin-bottom: 10px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery__thumbs .ph { padding: 6px; font-size: 0.7rem; }
.gallery__thumbs .ph::before { display: none; }

.eyebrow { display: inline-block; background: var(--sage); color: var(--sage-ink); font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.hero h1 { margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: var(--sage-ink); }

.picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.picker legend { font-weight: 700; margin-bottom: 8px; padding: 0; display: flex; justify-content: space-between; width: 100%; gap: 12px; }
.picker legend a { font-weight: 400; font-size: 0.95rem; }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 10px; padding: 10px 6px; background: var(--paper); line-height: 1.3; }
.size b { display: block; font-size: 1.1rem; }
.size small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.size input:checked + span { border-color: var(--ink); background: #F4F6F7; box-shadow: inset 0 0 0 1px var(--ink); }
.size input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }

.bundles { display: grid; gap: 10px; }
.bundle { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); cursor: pointer; }
.bundle input { position: absolute; opacity: 0; }
.bundle__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #A9B1B6; display: grid; place-items: center; }
.bundle__name { font-weight: 700; display: block; }
.bundle__note { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.bundle__price { text-align: right; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.bundle__per { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.bundle__save { display: block; font-size: 0.8rem; color: var(--sage-ink); font-weight: 700; }
.bundle__badge { position: absolute; top: -11px; right: 14px; background: var(--sun); color: var(--ink); font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.bundle:has(input:checked) { border-color: var(--clay); background: #FFFBF8; box-shadow: inset 0 0 0 1px var(--clay); }
.bundle:has(input:checked) .bundle__dot { border-color: var(--clay); }
.bundle:has(input:checked) .bundle__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); }
.bundle:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }

.buy-note { font-size: 0.9rem; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }
.buy-error { color: #A3271F; font-size: 0.95rem; text-align: center; margin: 8px 0 0; min-height: 1em; }

.assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .assure { grid-template-columns: repeat(3, 1fr); } }
.assure li { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; line-height: 1.35; }
.assure svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--clay); }

/* ---------- Generic sections ---------- */
.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2 { color: #fff; }
.section__intro { max-width: 640px; margin: 0 auto 32px; text-align: center; color: var(--ink-soft); }
.section--ink .section__intro { color: #D5DCE0; }

.pains { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 12px; }
.pains li { background: var(--paper); border-left: 4px solid var(--clay); border-radius: 8px; padding: 14px 18px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--flip > :first-child { order: 2; } }

.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--clay-wash); color: var(--clay); display: grid; place-items: center; margin-bottom: 14px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature p { margin: 0; color: var(--ink-soft); }

.moments { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .moments { grid-template-columns: repeat(4, 1fr); } }
.moment { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.moment .ph { border-radius: 0; border: 0; aspect-ratio: 4 / 3; font-size: 0.8rem; }
.moment div { padding: 14px 16px; }
.moment h3 { margin: 0 0 4px; font-size: 1.1rem; }
.moment p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Size chart */
.chart { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.chart th, .chart td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.chart thead th { background: var(--ink); color: #fff; font-weight: 700; }
.chart tbody tr:last-child td { border-bottom: 0; }
.chart td:first-child { font-weight: 700; }
.fit-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.fit-points li { display: flex; gap: 10px; }
.fit-points svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--sage-ink); margin-top: 3px; }

/* Compare */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); position: relative; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--paper); font-size: 0.98rem; }
.compare th, .compare td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 0.9rem; color: var(--ink-soft); font-weight: 700; }
.compare thead th.us { color: var(--clay); font-size: 1rem; }
.compare td.us { background: #FFF8F4; }
.yes { color: var(--sage-ink); font-weight: 700; }
.no { color: #A9B1B6; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Guarantee */
.guarantee { display: grid; gap: 24px; align-items: center; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .guarantee { grid-template-columns: 160px 1fr; } }
.seal { width: 150px; height: 150px; border-radius: 50%; border: 3px dashed var(--sun); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.1; margin: 0 auto; color: #fff; }
.seal small { display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--clay); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* Final CTA */
.final { text-align: center; }
.final p { max-width: 560px; margin: 0 auto 24px; color: var(--ink-soft); }

/* Sticky mobile bar */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border-top: 1px solid var(--line); padding: 10px var(--gutter);
  box-shadow: 0 -6px 20px rgba(34, 48, 58, 0.08);
  transform: translateY(110%); transition: transform .25s;
}
.sticky.is-visible { transform: none; }
.sticky__label { font-size: 0.9rem; line-height: 1.3; }
.sticky__label b { display: block; font-size: 1.05rem; }
@media (min-width: 900px) { .sticky { display: none; } }

/* Footer */
.footer { background: var(--ink); color: #C9D1D6; padding: 48px 0 96px; font-size: 0.95rem; }
.footer a { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer__grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h2 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.disclaimer { border-top: 1px solid #3A4954; margin-top: 32px; padding-top: 20px; font-size: 0.82rem; color: #A9B4BA; }

/* ---------- Advertorial ---------- */
.adv-bar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); text-align: center; padding: 6px var(--gutter); letter-spacing: 0.02em; }
.article { background: var(--paper); padding: 32px 0 64px; }
.article .kicker { color: var(--clay); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.article h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.95rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 18px 0 24px; }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--clay-wash); color: var(--clay); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.article p, .article li { font-size: 1.1rem; }
.article h2 { font-size: 1.6rem; margin-top: 40px; }
.reason { display: flex; gap: 14px; align-items: baseline; }
.reason__num { flex: 0 0 auto; font-family: var(--serif); font-weight: 700; color: var(--clay); font-size: 2rem; line-height: 1; }
.article figure { margin: 24px 0; }
.article figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }
.callout { background: var(--sage); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.callout p:last-child { margin: 0; }
.offer-box { border: 3px solid var(--clay); border-radius: 16px; padding: 24px; margin: 40px 0 0; text-align: center; background: #FFFBF8; }
.offer-box h2 { margin-top: 0; }
.offer-box ul { text-align: left; max-width: 420px; margin: 0 auto 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.offer-box li { display: flex; gap: 10px; }
.offer-box li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--sage-ink); margin-top: 4px; }
.inline-cta { text-align: center; margin: 28px 0; }

.tm { font-size: 0.45em; vertical-align: super; line-height: 0; margin-left: 1px; font-weight: 600; }
