/* The small pages (thanks, 404, AppSumo, checkout, privacy) and the share picture (marketing/og.html): the same type and palette as the main page
   (web/index.html holds the same tokens inline, as design-taste-frontend prints them; change both together). */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --p-bg: #f6f6f6; --p-surface: #ececec; --p-ink: #0b1228; --p-muted: #5d6272;
  --p-accent: #0b1228; --p-accent-ink: #ffffff; --p-action: #0b1228; --p-action-ink: #ffffff;
  --p-inv-bg: #111112; --p-inv-surface: #1c1c1e; --p-inv-ink: #f0f0f0; --p-inv-muted: #a9a9b0;
  --p-inv-accent: #f0f0f0; --p-inv-accent-ink: #1c1c21; --p-inv-action: #f0f0f0; --p-inv-action-ink: #1c1c21;
  --card-bg: #ffffff; --field-bg: #ffffff; --danger: #c4331f; --now: #2fb46c;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: "DM Sans", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  /* the h1 as big as the main page's hero h1 (layout.css --ly-h1 at --ly-scale 1.05): the serif's small letters are
     low, so it is a third bigger than the grotesk's was (D-70) */
  --t-h1: clamp(42px, 3.2vw + 29.5px, 75.6px);
}
/* the serif has no bold: nothing in it is drawn thicker by the browser. The logo in the serif, as on the main page (D-70) */
html { font-synthesis-weight: none; }
.nav__logo { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) {
  :root {
    --p-bg: #111112; --p-surface: #1c1c1e; --p-ink: #f0f0f0; --p-muted: #a9a9b0;
    --p-accent: #f0f0f0; --p-accent-ink: #1c1c21; --p-action: #f0f0f0; --p-action-ink: #1c1c21;
    --card-bg: #242426; --field-bg: #1c1c1e; --danger: #ff7b6e;
  }
}

/* a small page: the logo, then the words on the left line of a narrow column, one screen */
.page { min-height: 100svh; display: flex; align-items: center; }
.page > .wrap { width: min(100% - 2 * var(--gut), 640px); display: grid; gap: var(--s-5); padding-block: var(--s-8); }
.page .nav__logo img { width: 40px; height: 40px; border-radius: 10px; }
.page h1 { margin-top: var(--s-4); }
.page .steps { display: grid; gap: var(--s-3); padding-left: 1.4em; list-style: decimal; }
.page .steps strong { font-weight: 500; }
.page .note { color: var(--muted); font-size: var(--t-small); }
/* the AppSumo license key (appsumo.html): one line, selectable, with Copy beside it */
.page .license-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-4); border-radius: 14px; background: var(--p-surface); }
.page .license-key code { flex: 1 1 18ch; min-width: 0; overflow-wrap: anywhere; font: 500 1.05rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; user-select: all; }
.page a:not(.btn):not(.nav__logo) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* privacy.html (PLAN.md D-56): a longer page of plain text, so it starts at the top instead of the centre: the logo, the
   heading, then sections split by hairlines in one column narrow enough to read. */
.doc { padding-block: var(--s-6) var(--s-9); }
.doc > .wrap { width: min(100% - 2 * var(--gut), 680px); }
.doc .nav__logo img { width: 32px; height: 32px; border-radius: 8px; }
.doc-head { display: grid; gap: var(--s-3); margin: var(--s-8) 0 var(--s-6); }
.doc-head h1 { margin-top: var(--s-1); }
.doc-head .t-lead { color: var(--muted); }
.doc section { display: grid; gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: var(--s-5); }
.doc h2 { font: 500 22px/1.3 var(--font-text); letter-spacing: -0.01em; }
.doc ul { display: grid; gap: var(--s-3); padding-left: 1.25em; list-style: disc; }
.doc li::marker { color: var(--muted); }
.doc b { font-weight: 600; }
.doc code { font: 400 .92em/1 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.doc a:not(.nav__logo) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.doc a:not(.nav__logo):hover { text-decoration-color: currentColor; }
.doc .note { color: var(--muted); font-size: var(--t-small); }
/* What only Adrian can fill in; scripts/deploy-site.sh won't publish a page that still has one. */
.doc-todo { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px dashed var(--danger); border-radius: 14px;
  background: color-mix(in oklab, var(--danger) 7%, transparent); font-size: var(--t-small); }
.doc-todo b { color: var(--danger); }
@media (max-width: 639px) { .doc-head { margin: var(--s-7) 0 var(--s-5); } }

/* checkout.html (PLAN.md D-54): the license on the left, the summary with the email and the discount code on the right,
   both fields large; one column below 860 px. The 1 Mac / 2 Macs radios show their prices without a script. */
.co { min-height: 100svh; padding-block: var(--s-6) var(--s-9); }
.co > .wrap { width: min(100% - 2 * var(--gut), 1040px); }
.co .nav__logo img { width: 32px; height: 32px; border-radius: 8px; }
.co-head { display: grid; gap: var(--s-3); margin: var(--s-8) 0 var(--s-7); }
.co-eyebrow, .doc-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.co-head h1 { margin-top: var(--s-1); }
.co-head .t-lead { max-width: 52ch; color: var(--muted); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.co-card { display: grid; gap: var(--s-5); padding: var(--s-6); background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(11, 18, 40, .04), 0 8px 24px -12px rgba(11, 18, 40, .10); }
.co-card h2 { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); font: 500 20px/1.3 var(--font-text); letter-spacing: -0.01em; }

.co:has(input[name="macs"][value="2"]:checked) .for-one,
.co:not(:has(input[name="macs"][value="2"]:checked)) .for-two { display: none; }
/* the pricing test (D-74): only the visitor's group shows (data-pricing on <html>, set in the checkout's <head>);
   without it, group a. The same rule is in web/index.html. */
:root:not([data-pricing="b"]) [data-pricing-only="b"], :root[data-pricing="b"] [data-pricing-only="a"] { display: none !important; }

.co-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; }
.co-item img { width: 56px; height: 56px; border-radius: 13px; }
.co-item__name { font-weight: 600; font-size: 17px; }
.co-item__sub { margin-top: 2px; color: var(--muted); }
.co-item__price { font-weight: 600; font-size: 17px; text-align: right; }

.co-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 0; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: var(--surface); }
.co-seg label { position: relative; display: grid; place-items: center; height: 40px; border-radius: 9px; color: var(--muted); font-weight: 500; cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.co-seg label:hover { color: var(--ink); }
.co-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.co-seg label:has(:checked) { background: var(--card-bg); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 40, .08), 0 2px 8px -2px rgba(11, 18, 40, .12); }
.co-seg label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.co-checks { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); list-style: none; }
.co-checks li { display: flex; gap: var(--s-3); align-items: flex-start; }
.co-checks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--now); }

/* the thank-you deal (D-75, like Black Friday in D-69): while the field holds FINDY50 the script sets .is-deal, which
   shows the struck price, the discount line and a green note under the code */
.co:not(.is-deal) .deal-only { display: none; }
.co-was { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 400; color: var(--muted); text-decoration-thickness: 1.5px; }
.co-line { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: calc(-1 * var(--s-2)); color: var(--muted); }
.co-line > span:first-child { display: inline-flex; align-items: center; gap: var(--s-2); }
.co-deal-tag { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #ffffff; background: linear-gradient(135deg, #6457ff 0%, #9150ec 55%, #e3467a 100%); }
.co-hint.co-deal { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--now-ink, #17784a); font-weight: 500; }
.co-deal svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .co-hint.co-deal { color: #6fe39a; } }
.co-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.co-total > span { font-size: var(--t-lead); }
.co-total b { font: 400 40px/1 var(--font-display); letter-spacing: -0.02em; }

.co-field { display: grid; gap: var(--s-2); }
.co-field label { font-weight: 500; }
.co-field label span { font-weight: 400; color: var(--muted); }
.co-field input { width: 100%; height: 56px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field-bg); color: var(--ink);
  font: 400 18px/1.2 var(--font-text); transition: border-color .15s ease, box-shadow .15s ease; }
.co-field input::placeholder { color: var(--muted); opacity: .75; }
.co-field input:hover { border-color: color-mix(in oklab, var(--ink) 34%, transparent); }
.co-field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 14%, transparent); }
.co-field input[aria-invalid="true"] { border-color: var(--danger); }
.co-field input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 24%, transparent); }
.co-field #code { text-transform: uppercase; letter-spacing: .06em; }
.co-field #code::placeholder { text-transform: none; letter-spacing: 0; }
.co-hint { font-size: var(--t-small); color: var(--muted); }
.co-error { font-size: var(--t-small); font-weight: 500; color: var(--danger); }
.co-pay { width: 100%; height: 56px; font-size: 17px; }
.co-pay[aria-busy="true"] { opacity: .75; cursor: progress; }
.co-fine { font-size: var(--t-small); color: var(--muted); }
.co-fine a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

@media (max-width: 859px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }
/* on a phone the email and code come up a screen sooner: the list of what's included is on the pricing card anyway */
@media (max-width: 639px) {
  .co-head { margin: var(--s-7) 0 var(--s-6); }
  .co-card { padding: var(--s-5); }
  .co-checks { display: none; }
}
@media (prefers-color-scheme: dark) {
  .co-card { box-shadow: none; }
  .co-seg label:has(:checked) { background: #36363a; box-shadow: none; }
  .co-total b { color: #ffffff; }
}
