/* ==========================================================================
   Kaolane storefront — stylesheet
   Colour and font tokens are injected by build.mjs from site.config.js.
   Everything below consumes those tokens; edit the config, not the hex codes.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 28px;
}

.wrap--narrow { max-width: 760px; }

section { padding-block: clamp(72px, 10vw, 132px); }

.band { background: var(--paper-deep); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* --- typography ----------------------------------------------------------- */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  max-width: 19ch;
  text-wrap: balance;
}

.headline--wide { max-width: 26ch; }

.subhead {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 20px;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 66ch;
}

.prose p + p { margin-top: 1.35em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .16s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-cta { padding: 10px 20px; font-size: 11px; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 116px);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero__body {
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__summary {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* --- CSS product visual ---------------------------------------------------
   A drawn twist-up stick so the site ships without photography. Replace the
   .stick markup in src/template.js with an <img> once you have a real photo.
   ------------------------------------------------------------------------- */
.hero__visual {
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.stick {
  position: relative;
  width: min(190px, 54%);
  aspect-ratio: 190 / 395;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 24px 38px rgba(35, 40, 47, .26));
}

/* domed balm surface at the top */
.stick__cap {
  height: 11%;
  border-radius: 50% 50% 6px 6px / 76% 76% 6px 6px;
  background: linear-gradient(102deg, #f4efe6 0%, #e2d9ca 58%, #cec3ae 100%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .10);
}

.stick__body {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 5px 5px 3px 3px;
  padding: 20px 14px;
  text-align: center;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    100deg,
    var(--accent-deep) 0%,
    var(--accent) 40%,
    var(--accent) 62%,
    var(--accent-deep) 100%
  );
}

/* specular highlight down the barrel */
.stick__body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17%;
  width: 13%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* knurled twist dial at the base */
.stick__dial {
  height: 8.5%;
  border-radius: 0 0 6px 6px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, .26) 0 2px,
      rgba(255, 255, 255, .11) 2px 5px
    ),
    var(--accent-deep);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .28);
}

.stick__mark {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  opacity: .97;
}

.stick__hr {
  width: 28px;
  height: 1px;
  background: var(--paper);
  opacity: .5;
  margin: 13px auto;
}

.stick__variant {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.25;
  opacity: .95;
}

.stick__meta {
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
  line-height: 1.6;
}

/* --- marquee -------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  padding-block: 15px;
  background: var(--paper-deep);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-inline: 22px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 22px;
}

.marquee__item::after {
  content: "◆";
  font-size: 6px;
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- spec cards ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 56px;
}

.card {
  background: var(--paper);
  padding: 38px 32px 42px;
}

.band .card { background: var(--paper-deep); }

.card__num {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.012em;
  margin-bottom: 14px;
}

.card__body {
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.full-spec {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.full-spec__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.full-spec__body {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 82ch;
}

/* --- comparison table ----------------------------------------------------- */
.table-scroll {
  margin-top: 52px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .9375rem;
}

thead th {
  text-align: left;
  padding: 20px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

thead th:first-child { width: 27%; }

thead th.is-ours { color: var(--accent); }

tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

tbody td {
  padding: 18px 22px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

tbody td.is-ours {
  color: var(--ink);
  font-weight: 500;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

/* --- timeline ------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.step { border-top: 2px solid var(--accent); padding-top: 22px; }

.step__marker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.step__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.step__body {
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* --- reviews -------------------------------------------------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 54px;
}

.review { border-left: 2px solid var(--hairline); padding-left: 26px; }

.review__quote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-style: italic;
  letter-spacing: -.008em;
}

.review__by {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- buy panel ------------------------------------------------------------ */
.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; }
}

.panel {
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: clamp(28px, 4vw, 40px);
}

.band .panel { background: var(--paper-deep); }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 30px;
}

.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
}

.price-note { font-size: 13px; color: var(--muted); }

.field { margin-bottom: 26px; }

.field__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* variant radios */
.variants { display: grid; gap: 10px; }

.variant {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.variant:hover { border-color: var(--ink-soft); }

.variant input { position: absolute; opacity: 0; pointer-events: none; }

.variant__dot {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .16s ease;
}

.variant__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .16s ease;
}

.variant:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.variant:has(input:checked) .variant__dot { border-color: var(--accent); }
.variant:has(input:checked) .variant__dot::after { transform: scale(1); }

.variant:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.variant__name { font-weight: 600; font-size: .9375rem; }

.variant__sub {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .8125rem;
  margin-left: 7px;
}

.variant__price {
  margin-left: auto;
  padding-left: 12px;
  font-weight: 600;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.variant__desc {
  font-size: .8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 4px;
}

/* quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.qty button {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  transition: background-color .16s ease, color .16s ease;
}

.qty button:hover:not([disabled]) { background: var(--hairline); color: var(--ink); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }

.qty output {
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: .9375rem;
}

.trust {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.trust li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.form-error {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: .875rem;
  color: var(--ink);
}

.form-error:empty { display: none; }

/* --- FAQ accordion -------------------------------------------------------- */
.faq { margin-top: 50px; border-top: 1px solid var(--hairline); }

.faq details { border-bottom: 1px solid var(--hairline); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .16s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .22s ease;
}

.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }

.faq__answer {
  padding-bottom: 30px;
  font-size: .9375rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* --- footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 64px;
  background: var(--paper-deep);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .16s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-legal {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 76ch;
}

/* --- receipt / success page ----------------------------------------------- */
.receipt {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.receipt__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.receipt__mark::after {
  content: "";
  width: 17px;
  height: 9px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -2px);
}

.receipt p { margin-top: 20px; color: var(--ink-soft); max-width: 50ch; }
.receipt .btn { margin-top: 36px; }

/* --- reveal on scroll -----------------------------------------------------
   Content is visible by default and only hidden once the inline bootstrap in
   <head> has confirmed JS is running. A blank page is a far worse failure than
   a missing animation, so the hidden state is opt-in, never the default.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --- utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
}

.skip-link:focus { left: 12px; top: 12px; }

/* --- waitlist form -------------------------------------------------------- */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .16s ease;
}

.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover { border-color: var(--ink-soft); }
.input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }

/* Honeypot: off-canvas rather than display:none, because some bots skip
   hidden fields but not positioned ones. Never focusable by a person. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-ok {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: .9375rem;
  color: var(--ink);
}

.form-ok:empty { display: none; }

.footnote {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

[hidden] { display: none !important; }

/* --- articles ------------------------------------------------------------- */
.article { padding-block: clamp(48px, 7vw, 88px); }

.crumbs {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}

.crumbs a { text-decoration: none; color: var(--muted); transition: color .16s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: 8px; }

.article__title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  max-width: 22ch;
}

.article__meta {
  margin-top: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article__body { margin-top: 40px; }

.article__body h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.014em;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: .7em;
}

.article__body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: .6em;
}

.article__body ul {
  list-style: disc;
  padding-left: 1.3em;
  margin: 1.3em 0;
  color: var(--ink-soft);
  max-width: 66ch;
}

.article__body li { margin-bottom: .5em; line-height: 1.75; }

.article__body a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article__body a:hover { color: var(--accent-deep); }

.article__body table {
  min-width: 0;
  width: 100%;
  margin: 1.8em 0;
  border: 1px solid var(--hairline);
  font-size: .9375rem;
}

.article__body th,
.article__body td { padding: 12px 16px; }

.article__body .disclaimer {
  margin-top: 2.4em;
  padding: 16px 18px;
  border-left: 2px solid var(--hairline);
  font-size: .875rem;
  color: var(--muted);
}

.article__cta {
  margin-top: 64px;
  padding: 36px 32px 40px;
  border: 1px solid var(--hairline);
  background: var(--paper-deep);
}

.article__cta p:not(.label) {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 54ch;
}

.article__cta-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.014em;
  margin-bottom: 12px;
}

/* index listing */
.article-list { margin-top: 52px; border-top: 1px solid var(--hairline); }

.article-card {
  padding-block: 32px;
  border-bottom: 1px solid var(--hairline);
}

.article-card__date {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.014em;
  margin-bottom: 12px;
  max-width: 30ch;
}

.article-card__title a { text-decoration: none; transition: color .16s ease; }
.article-card__title a:hover { color: var(--accent); }

.article-card__excerpt {
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Tables inside article prose scroll independently rather than pushing the
   page sideways. Wrapped automatically by the build. */
.table-scroll--prose {
  margin: 1.8em 0;
  max-width: 100%;
}

.table-scroll--prose table {
  min-width: 420px;   /* narrow enough for a phone, wide enough to stay legible */
  margin: 0;
  border: 0;
}

/* --- batch counter -------------------------------------------------------
   Only ever renders a number the server actually returned. The fallback copy
   is a true statement on its own, so a failed fetch degrades to honest.
   ------------------------------------------------------------------------ */
.batch {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--paper);
  max-width: 58ch;
}

.band .batch { background: var(--paper-deep); }

.batch__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.batch__bar {
  flex: 1;
  min-width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
}

.batch__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .8s cubic-bezier(.22, .61, .36, 1);
}

/* The bar is meaningless until a real count has loaded. */
.batch:not(.batch--live) .batch__bar { visibility: hidden; }

.batch__text {
  font-size: 13px;
  color: var(--ink-soft);
}

.batch--live .batch__text {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 560px) {
  .batch { gap: 10px; }
  .batch__bar { order: 3; flex-basis: 100%; }
}

/* --- product grid (home) -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 56px;
}

.product-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.band .product-card { background: var(--paper-deep); }

.product-card__visual {
  display: grid;
  place-items: center;
  padding: 44px 24px 32px;
  background: var(--paper-deep);
  text-decoration: none;
}

.band .product-card__visual { background: var(--paper); }

.product-card__visual .stick { width: min(140px, 46%); }

.product-card__body {
  padding: 32px 30px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.product-card__title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.014em;
  margin-bottom: 10px;
}

.product-card__title a { text-decoration: none; transition: color .16s ease; }
.product-card__title a:hover { color: var(--accent); }

.product-card__tagline {
  font-size: .9375rem;
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.product-card__blurb {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.product-card__price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 24px;
  margin-top: auto;
}

.product-card .btn { align-self: flex-start; }

/* --- footer --------------------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-place {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col__heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .16s ease;
}

.footer-col a:hover { color: var(--accent); }


/* One product shouldn't sit in a stretched card. Lay it out as a feature
   instead: visual beside the copy, rather than a 1,000px-wide box. */
.product-grid--single { grid-template-columns: 1fr; }

.product-grid--single .product-card {
  display: grid;
  grid-template-columns: minmax(200px, 32%) 1fr;
  align-items: stretch;
}

.product-grid--single .product-card__visual {
  padding: 52px 28px;
  border-right: 1px solid var(--hairline);
}

.product-grid--single .product-card__visual .stick { width: min(150px, 72%); }

.product-grid--single .product-card__body {
  padding: clamp(32px, 4vw, 48px);
  justify-content: center;
}

.product-grid--single .product-card__title { font-size: 1.9rem; }
.product-grid--single .product-card__blurb { max-width: 54ch; }
.product-grid--single .product-card__price { margin-top: 0; }

@media (max-width: 700px) {
  .product-grid--single .product-card { grid-template-columns: 1fr; }
  .product-grid--single .product-card__visual {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 44px 24px 32px;
  }
}

/* --- CTA hierarchy --------------------------------------------------------
   Two equally-sized buttons make the reader choose. The primary action should
   be visibly bigger, and the secondary should read as a link, not a rival.
   -------------------------------------------------------------------------- */
.btn--lg {
  padding: 20px 44px;
  font-size: 14px;
  letter-spacing: .11em;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--lg:hover {
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* Secondary action: quieter than a button, still a 44px tap target. */
.btn--link {
  background: transparent;
  border: 0;
  padding: 20px 6px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  transition: color .16s ease, text-decoration-color .16s ease;
}

.btn--link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
  background: transparent;
}

/* A little more air between a dominant button and its quiet neighbour. */
.hero__actions { gap: 20px; align-items: center; }

@media (max-width: 560px) {
  .btn--lg { padding: 18px 32px; width: 100%; }
  .hero__actions { gap: 10px; }
  .btn--link { padding: 14px 6px; }
}
