/* The purchase pages (buy.html, thanks.html): the site's colours and type. */
:root {
  --ground: #F3EEE2; --surface: #FBF8F1; --ink: #051C14; --muted: #4A5A51; --line: #DDD5C2;
  --accent: #051C14; --accent-ink: #F3EEE2; --leaf: #2F7A55; --scent: #C9822A; --scent-ink: #8A581D; --amber: #E3A553; --hl-o: .55;
  /* accessibility: the focus ring and the email field's edge need 3:1 against the card and the page */
  --focus: #051C14; --field-line: #7D8A81;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #06130D; --surface: #0C1E16; --ink: #EDE7D8; --muted: #A3B0A7; --line: #1E3328;
    --accent: #EDE7D8; --accent-ink: #051C14; --leaf: #7CCB9F; --scent-ink: #E3A553; --hl-o: .4;
    --focus: #E3A553; --field-line: #6A7C71;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; align-content: center; row-gap: 16px; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); padding: 24px 16px; }
main { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 5vw, 40px); }
.logo { display: block; width: 204px; height: auto; margin-bottom: 28px; }
h1 { font: 800 clamp(28px, 5vw, 36px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
p { margin: 0 0 14px; color: var(--muted); }
p strong { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.key { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 14px 16px; background: var(--ground); border-radius: 10px; }
.key code { flex: 1; font: 600 clamp(17px, 4.4vw, 22px)/1.3 var(--mono); letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; }
/* while the key is being made: the brand dog (small-1's own lines) draws itself stroke by stroke,
   holds, fades and starts again (3.2 s; the whole dog is there by 1.6 s). Inline SVG in thanks.html,
   line colour = the text colour (green on cream, cream on dark); reduced motion = the finished dog, still. */
.loader { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); }
.loader .fh-loader { display: block; width: 64px; height: 35px; flex: none; color: var(--ink); overflow: visible; }
.fh-loader path { fill: none; stroke: currentColor; stroke-width: var(--lw); stroke-linejoin: miter; stroke-miterlimit: 3.2; stroke-linecap: butt; }
.fh-draw path { stroke-dasharray: 1 1; stroke-dashoffset: 0; animation: 3.2s linear infinite both; }
.fh-draw .fh-dog { animation: fhdfade 3.2s ease-in-out infinite both; }
@keyframes fhd0{0%,0.00%{stroke-dashoffset:1}13.39%,100%{stroke-dashoffset:0}}.fh-draw .d0{animation-name:fhd0}
@keyframes fhd1{0%,13.97%{stroke-dashoffset:1}17.01%,100%{stroke-dashoffset:0}}.fh-draw .d1{animation-name:fhd1}
@keyframes fhd2{0%,17.59%{stroke-dashoffset:1}18.87%,100%{stroke-dashoffset:0}}.fh-draw .d2{animation-name:fhd2}
@keyframes fhd3{0%,19.45%{stroke-dashoffset:1}22.99%,100%{stroke-dashoffset:0}}.fh-draw .d3{animation-name:fhd3}
@keyframes fhd4{0%,23.57%{stroke-dashoffset:1}26.14%,100%{stroke-dashoffset:0}}.fh-draw .d4{animation-name:fhd4}
@keyframes fhd5{0%,26.73%{stroke-dashoffset:1}28.15%,100%{stroke-dashoffset:0}}.fh-draw .d5{animation-name:fhd5}
@keyframes fhd6{0%,28.73%{stroke-dashoffset:1}33.58%,100%{stroke-dashoffset:0}}.fh-draw .d6{animation-name:fhd6}
@keyframes fhd7{0%,34.17%{stroke-dashoffset:1}38.09%,100%{stroke-dashoffset:0}}.fh-draw .d7{animation-name:fhd7}
@keyframes fhd8{0%,38.67%{stroke-dashoffset:1}42.56%,100%{stroke-dashoffset:0}}.fh-draw .d8{animation-name:fhd8}
@keyframes fhd9{0%,43.15%{stroke-dashoffset:1}48.44%,100%{stroke-dashoffset:0}}.fh-draw .d9{animation-name:fhd9}
@keyframes fhd10{0%,49.02%{stroke-dashoffset:1}50.00%,100%{stroke-dashoffset:0}}.fh-draw .d10{animation-name:fhd10}
@keyframes fhdfade{0%,78%{opacity:1}92%,100%{opacity:0}}
@media (prefers-reduced-motion: reduce) { .fh-loader, .fh-loader * { animation: none !important; } .fh-loader .fh-dog { opacity: 1; } }

/* buy.html: the yearly price or the one-time license (only when store-config.js has oncePriceId).
   A radio group of two cards; the chosen one gets the ink border and a filled dot (not colour alone). */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.plans button { position: relative; display: block; min-height: 44px; padding: 14px 44px 14px 16px; border-radius: 14px; border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.plans button::after { content: ""; position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--field-line); box-sizing: border-box; }
.plans button[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plans button[aria-checked="true"]::after { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 3.5px, transparent 4px); }
.plans .p { display: block; font: 800 20px/1.2 var(--display); }
.plans .s { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* buy.html: how many computers */
.qty-label { margin: 22px 0 8px; color: var(--ink); font-weight: 600; }
.qty { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.qty button { width: 48px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 17px/1 var(--body); cursor: pointer; }
.qty button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.total { margin: 14px 0 18px; font: 800 22px/1.2 var(--display); color: var(--ink); }
/* the auto-renewal terms, right by the buy button (California law): quiet, but not grey fine print */
.renew { margin: 12px 0 20px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.renew a { color: inherit; text-underline-offset: 3px; }
/* "Launch price": an amber eyebrow over the heading, a marker stroke behind "$19", and one quiet line under the
   renewal terms. The eyebrow text uses --scent-ink: Scent itself is under 4.5:1 on the light card. */
.launch-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 14px; font: 800 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--scent-ink); }
.launch-eyebrow::before, .launch-eyebrow::after { content: ""; width: 36px; height: 2px; background: var(--scent); border-radius: 2px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: .06em; height: .34em; background: var(--amber); opacity: var(--hl-o); border-radius: 6px; z-index: -1; transform: skew(-8deg) rotate(-1.2deg); }
.launch-note { margin: -8px 0 20px; font-size: 14px; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; }
input::placeholder { color: var(--muted); opacity: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0 20px; }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.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; }
/* under the card: Privacy and Cookie settings (assets/consent.js reopens the banner) */
.site-foot { font-size: 14px; color: var(--muted); text-align: center; }
.site-foot a { display: inline-block; padding: 10px 4px; color: var(--muted); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--ink); }
[hidden] { display: none !important; }
