/* The site's shared styles. Brand tokens come from tokens.css. Fonts are served from this site, never from Google:
   no visitor data goes to a font host. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; src: url(/fonts/bricolage-grotesque-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; src: url(/fonts/bricolage-grotesque-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; src: url(/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; src: url(/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--kit-seo); color: var(--kr-black); }
:focus-visible { outline: 3px solid var(--kit-seo); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.logo-light, .logo-dark { height: 44px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* the one button style: black with yellow text on light, yellow with black text on dark */
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: var(--radius);
  background: var(--button-bg); color: var(--button-fg);
  font: 700 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1);
}
.buy:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,20,20,.22); }
.buy:active { transform: translateY(0); box-shadow: none; }
.buy:disabled { background: var(--tile); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.fine { font-size: .875rem; color: var(--muted); }

/* cost table, used by all three */
.costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.costs th, .costs td { text-align: left; padding: .75rem .5rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs th { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.costs td:nth-child(2) { white-space: nowrap; font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 1.35rem; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details p { padding: 0 0 1rem; color: var(--muted); max-width: 62ch; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* placeholders stay visible until measured */
.ph { background: var(--kit-seo); color: var(--kr-black); padding: 0 .2em; border-radius: 3px; }

/* checkout tick-box dialog */
dialog.tick {
  width: min(30rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 12px;
  background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
dialog.tick::backdrop { background: rgba(20,20,20,.55); }
dialog.tick form { padding: 1.75rem; display: grid; gap: 1rem; }
dialog.tick h2 { font-size: 1.75rem; }
dialog.tick label { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: 1rem; border-radius: var(--radius); background: var(--tile); font-weight: 700; cursor: pointer; }
dialog.tick input[type="checkbox"] { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--kr-black); }
dialog.tick .close { justify-self: start; background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) dialog.tick input[type="checkbox"] { accent-color: var(--kr-yellow); } }

footer.small { padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--line); }
footer.small .wrap { max-width: 68rem; margin: 0 auto; display: grid; gap: 1rem; }
footer.small nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* cookie choice (consent.js): a quiet bar at the bottom, never covering the buy button for long */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 40rem; margin: 0 auto; display: grid; gap: .75rem; padding: 1rem; border-radius: 12px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(20,20,20,.18); font-size: .9375rem; }
.consent div { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent .buy { min-height: 44px; }
.consent .quiet { min-height: 44px; padding: 0 1rem; border-radius: var(--radius); border: 2px solid var(--fg); background: transparent; color: var(--fg); font: 700 1rem var(--font-body); cursor: pointer; }
