/* 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 popup: what you must understand on the left, Paddle's payment form (inline) on the right; stacks on a phone */
dialog.tick {
  width: min(60rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: auto;
}
dialog.tick::backdrop { background: rgba(20,20,20,.6); }
/* one fixed size from the first screen to the payment (owner): each side scrolls inside it instead of the popup resizing */
@media (min-width: 52rem) {
  dialog.tick { height: min(48rem, calc(100dvh - 1.5rem)); overflow: hidden; }
  .tick-in { height: 100%; }
  .tick-terms, .tick-pay { overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 51.99rem) { dialog.tick { height: calc(100dvh - 1.5rem); } }
.tick-in { display: grid; }
@media (min-width: 52rem) { .tick-in { grid-template-columns: 1fr 1fr; } }
.tick-terms { background: var(--kit-seo); color: var(--kr-black); padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .875rem; align-content: start; }
@media (min-width: 52rem) { .tick-terms { padding: 1.75rem 2rem 2rem; } }
.tick-terms p { margin: 0; }
.tick-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.tick-top .logo-light, .tick-top .logo-dark { height: 36px; }
.tick-top .logo-dark { display: none !important; }
.tick-top .logo-light { display: block !important; }
.tick .x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--kr-black); background: transparent; color: var(--kr-black); font: 400 1.75rem/1 var(--font-body); cursor: pointer; display: grid; place-items: center; }
dialog.tick h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.tick-price { font-weight: 700; font-size: 1.125rem; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tick-list li { position: relative; padding: .75rem .875rem .75rem 2.5rem; border-radius: 10px; background: rgba(255,255,255,.55); line-height: 1.4; }
.tick-list li::before { content: ""; position: absolute; left: .9rem; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 2px; background: var(--kr-black); }
dialog.tick label { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; padding: 1rem; border-radius: 10px; background: var(--kr-black); color: var(--kr-white); font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
dialog.tick input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--kr-yellow); }
dialog.tick :focus-visible { outline-color: var(--kr-black); }
dialog.tick .close { justify-self: start; background: none; border: 0; color: var(--kr-black); font: inherit; text-decoration: underline; cursor: pointer; padding: .25rem 0; }
.tick-pay { background: #FFFFFF; color: #141414; padding: 1rem .5rem; display: grid; align-content: start; min-height: 16rem; }
@media (min-width: 52rem) { .tick-pay { padding: 1.75rem 1.5rem; min-height: 32rem; } }
.tick-wait { margin: 0; align-self: center; text-align: center; color: #55534E; padding: 2rem 1rem; border: 2px dashed #E1DFD9; border-radius: 12px; } /* the pay pane stays light in dark mode: Paddle's inline form has no dark theme */
.tick-pay.open .tick-wait { display: none; }
/* the guide offer, shown on the left after the tick (owner's reference: a one-time offer beside the payment form) */
.tick-step { display: grid; gap: .875rem; }
.tick-step[hidden] { display: none; }
/* after the tick the left side turns signal yellow and the offer slides in, so the change is obvious (owner) */
.tick-terms { transition: background-color .45s cubic-bezier(.16,1,.3,1); }
.tick-terms.on-offer { background: var(--kr-yellow); }
@keyframes offer-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.tick-terms.on-offer .tick-offer > * { animation: offer-in .5s cubic-bezier(.16,1,.3,1) both; }
.tick-terms.on-offer .tick-offer > :nth-child(2) { animation-delay: .06s; } .tick-terms.on-offer .tick-offer > :nth-child(3) { animation-delay: .12s; }
.tick-terms.on-offer .tick-offer > :nth-child(4) { animation-delay: .18s; } .tick-terms.on-offer .tick-offer > :nth-child(5) { animation-delay: .24s; }
.tick-terms.on-offer .tick-offer > :nth-child(n+6) { animation-delay: .3s; }
.offer-done { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; padding: .4rem .8rem; border-radius: 999px; background: var(--kr-black); color: var(--kr-yellow); font-weight: 700; font-size: .9375rem; }
.on-offer .offer-list li, .on-offer .offer-later { background: rgba(255,255,255,.7); }
.offer-label { font-size: .875rem; font-weight: 700; color: #2E2C28; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.offer-list li { position: relative; padding: .7rem .875rem .7rem 2.5rem; border-radius: 10px; background: rgba(255,255,255,.55); line-height: 1.4; }
.offer-list li::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--kr-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23FFD400' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
/* desktop: the whole offer fits without scrolling (owner, 2026-10-31) */
@media (min-width: 52rem) {
  .tick-terms.on-offer { padding-top: 1.25rem; padding-bottom: 1.25rem; gap: .5rem; }
  .on-offer .tick-top { margin-bottom: 0; }
  .tick-offer { gap: .625rem; }
  .offer-list { gap: .375rem; }
  .offer-list li { padding: .45rem .75rem .45rem 2.25rem; font-size: .9375rem; line-height: 1.3; }
  .offer-list li::before { left: .7rem; top: .6rem; }
  .tick-offer .offer-foot .link { min-height: 36px; }
}
.offer-add { justify-self: stretch; background: var(--kr-black) !important; color: var(--kr-yellow) !important; }
.offer-add[aria-pressed="true"] { background: transparent !important; color: var(--kr-black) !important; border: 2px solid var(--kr-black); }
.offer-total { font-weight: 700; text-align: center; }
.offer-foot { text-align: center; font-size: .9375rem; color: #2E2C28; }
.tick .link { background: none; border: 0; padding: .25rem; font: inherit; color: var(--kr-black); text-decoration: underline; cursor: pointer; min-height: 44px; }
.offer-later { display: none; }
.tick-offer.skipped .offer-list, .tick-offer.skipped .offer-add, .tick-offer.skipped .offer-total, .tick-offer.skipped [data-skip], .tick-offer.skipped .sep { display: none; }
.tick-offer.skipped .offer-later { display: block; padding: .875rem 1rem; border-radius: 10px; background: rgba(255,255,255,.55); }

/* footer: same edges as the page; on wide screens the fine print fills the left, brand line and links sit on the right */
footer.small { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); }
footer.small .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; display: grid; gap: .75rem 3rem; align-items: start; }
@media (min-width: 48rem) { footer.small .wrap { padding: 0 2rem; } }
@media (min-width: 56rem) { footer.small .wrap:has(> .fine + .fine) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; } footer.small .wrap:has(> .fine + .fine) > .fine:first-child { grid-row: span 2; } }
@media (min-width: 56rem) { footer.small .wrap:not(:has(> .fine + .fine)) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
footer.small .fine { margin: 0; max-width: 75ch; }
footer.small nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: .9375rem; }
footer.small nav a { display: inline-flex; align-items: center; min-height: 44px; }

@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; }
