/* The draft site's download page (download.html, tools/site-next/build_download.py), in the manner of
   getcanopy.pro/download: light grey, the name and one button, three white tiles of getting started, the laptop,
   the links and the big faded name. next.css gives the fonts, the tokens' names and the button. */
html.dl { --page: #f5f5f7; --panel: #ffffff; --ink: #0b0b0c; --soft: #55555a; --steel: #6e6e73; --faint: #a1a4aa; --btn: #0b0b0c; --btn-ink: #ffffff;
  --quiet: rgba(3, 3, 3, 0.05); --arrive: cubic-bezier(0.22, 0.61, 0.2, 1); --dot: rgba(0, 0, 0, 0.22); }
.dl body { min-height: 100svh; display: flex; flex-direction: column; background: var(--page); }

/* ---------- the top: the name on the left, the way back on the right ---------- */
.dl-top { display: flex; align-items: center; gap: 12px; padding: clamp(22px, 4vh, 40px) max(7vw, calc(50vw - 780px)) 0; }
.dl-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.dl-brand img { width: clamp(36px, 2.8vw, 44px); height: auto; border-radius: 22%; box-shadow: 0 6px 14px -6px rgba(3, 3, 3, 0.35); }
.dl-brand span { font-weight: 700; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.025em; }
.dl-ver { padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--steel); background: var(--quiet); box-shadow: inset 0 0 0 1px rgba(3, 3, 3, 0.12); }
.dl-back { padding: 9px 16px; border-radius: 12px; background: var(--quiet); color: #3a3a3f; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background-color 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.6s; }
.dl-back { margin-left: auto; }
.dl-back:hover { background: rgba(3, 3, 3, 0.09); color: var(--ink); }

/* ---------- the name and the button ---------- */
.dl main { flex: 1; padding-top: 12vh; }
.dl-head { padding: 0 7vw; text-align: center; }
.dl-head h1 { margin: 0; font-size: clamp(52px, 7vw, 112px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.dl-sub { margin: 18px 0 0; font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.dl-sub span { color: #8e9197; }
.dl-cta { display: flex; justify-content: center; margin-top: 52px; }
.dl-req { margin: 24px 0 0; font-size: 14px; font-weight: 600; color: var(--faint); }
.dl-req i { font-style: normal; margin: 0 6px; color: #c3c5ca; }
.dl-req span { white-space: nowrap; }
/* that Apple has checked it: a shield with a tick, under the requirements */
.dl-trust { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0 16px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--faint); text-align: left; }
.dl-trust svg { flex: none; width: 19px; height: 19px; color: #1d1d1f; }
.dl-trust b { font-weight: 600; color: #1d1d1f; }
/* the button: Apple's mark before its words; under the pointer it grows a little wider and rises */
.dl .btn { --lift: cubic-bezier(0.3, 1.32, 0.5, 1); position: relative; height: 58px; padding: 0 30px; font-size: 17px; font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(3, 3, 3, 0.45);
  transition: padding 480ms var(--lift), transform 480ms var(--lift), box-shadow 480ms var(--ease), background-color 260ms ease; }
.dl .btn::after { content: ""; position: absolute; inset: 0 0 -6px; border-radius: inherit; }
.dl .btn .apple { flex: none; width: 1.06em; height: 1.06em; margin: -0.16em 0.44em 0 -0.08em; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .dl .btn:hover { padding-inline: 39px; transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(3, 3, 3, 0.5); }
}
.dl .btn:active { transform: translateY(-1px) scale(0.98); transition-duration: 160ms; }

/* ---------- getting started: three tiles, the words above, a picture filling the rest ---------- */
.dl-how { width: min(1180px, 88vw); margin: 0 auto; padding-top: 14vh; }
.dl-how h2 { margin: 0; font-size: clamp(36px, 4vw, 60px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.dl-tiles { list-style: none; margin: 5vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dl-tiles li { display: flex; flex-direction: column; height: clamp(380px, 44vh, 430px); overflow: hidden; border-radius: 30px; background: var(--panel);
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 30px 60px -32px rgba(3, 3, 3, 0.16); }
.dl-copy { padding: 36px 36px 0; }
.dl-copy small { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--faint); }
.dl-copy b { display: block; font-size: clamp(24px, 2vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.dl-copy span { display: block; margin-top: 10px; max-width: 26ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; font-weight: 500; color: var(--steel); }
.dl-art { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.dl-art em { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 500; color: #3a3a3f; text-align: center; }
.dl-art-dmg { flex-direction: column; gap: 0; }
.dl-art-dmg img { width: clamp(120px, 10vw, 150px); height: auto; filter: drop-shadow(0 12px 18px rgba(3, 3, 3, 0.12)); }
.dl-art-drag figure { margin: 0; }
.dl-art-drag img { width: clamp(84px, 7vw, 108px); height: auto; margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(3, 3, 3, 0.14)); }
.dl-art-drag img[src*="dl-icon"] { border-radius: 22%; }
.dl-arrow { width: 44px; height: 18px; margin-bottom: 28px; color: #c3c5ca; }
/* the welcome sheet on the desktop, from the top of the screen: the whole sheet in the tile (its record, its greeting
   and its button), the desktop round it */
.dl-art-shot { align-self: stretch; margin-top: 24px; }
.dl-art-shot img { position: absolute; left: 50%; top: 0; width: 118%; max-width: none; height: auto; transform: translateX(-50%); }
.dl-note { margin: 28px 0 0; font-size: 15px; font-weight: 500; color: #86868b; }

/* ---------- the laptop: Apple's picture as it comes, Needle on its screen ---------- */
.dl-show { padding-top: 12vh; }
.dl-mac { position: relative; width: min(1240px, 94vw); aspect-ratio: 3 / 2; margin: 0 auto; }
.dl-screen { position: absolute; left: 9.2958%; top: 10.4225%; width: 81.4085%; height: 79.1549%; overflow: hidden; background: #000; }
.dl-screen img { position: absolute; left: 0.1153%; top: 0.2669%; width: 99.7693%; height: 99.4662%; max-width: none; object-fit: cover; object-position: 50% 0; }
.dl-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- the privacy page (privacy.html, build_privacy.py), as getcanopy.pro/privacy: the title, four tiles of
   the gist, the policy in one calm column a section at a time under hairlines, and a card to write to us ---------- */
.pv-hero { width: min(1100px, 88vw); margin: 0 auto; padding: 0; text-align: center; }   /* (next.css pads every section) */
.pv-hero h1 { margin: 0; font-size: clamp(52px, 7vw, 112px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.pv-sub { margin: 18px auto 0; max-width: 24ch; font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; color: #8e9197; text-wrap: balance; }
.pv-meta { margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--faint); }
.pv-tiles { width: min(1100px, 88vw); margin: 8vh auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pv-tile { padding: 30px 28px 32px; border-radius: 28px; background: var(--panel); box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 30px 60px -32px rgba(3, 3, 3, 0.16); }
.pv-sym { display: block; width: 40px; height: 40px; margin-bottom: 22px; color: var(--ink); }
.pv-sym svg { display: block; width: 100%; height: 100%; }
.pv-tile p { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; font-weight: 500; color: var(--steel); }
.pv-tile b { display: block; margin-bottom: 4px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pv-doc { width: min(760px, 88vw); margin: 12vh auto 0; }
.pv-sec { padding: 44px 0; border-top: 1px solid rgba(3, 3, 3, 0.09); }
.pv-sec:first-child { border-top: 0; padding-top: 0; }
.pv-sec h2 { margin: 0 0 16px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.pv-sec p { margin: 0 0 14px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: #3a3a3f; }
.pv-sec p:last-child { margin-bottom: 0; }
.pv-sec b { color: var(--ink); font-weight: 650; }
.pv-sec ul { margin: 0 0 14px; padding-left: 1.2em; list-style: disc; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: #3a3a3f; }
.pv-sec li { margin: 0 0 6px; }
.pv-sec li::marker { color: #b6b8bd; }
.pv-sec a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(3, 3, 3, 0.25); text-underline-offset: 3px; transition: text-decoration-color 0.4s; }
.pv-sec a:hover { text-decoration-color: var(--ink); }
.pv-card { width: min(760px, 88vw); margin: 6vh auto 0; padding: clamp(32px, 4vw, 52px); border-radius: 32px; background: var(--panel); text-align: center;
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 30px 60px -32px rgba(3, 3, 3, 0.16); }
.pv-card h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.035em; }
.pv-card p { margin: 10px auto 0; max-width: 44ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--steel); overflow-wrap: anywhere; }
.pv-card .btn { margin-top: 28px; }
/* two cards side by side at the end: write to us, and the Discord server; each with its sign in a rounded box on top */
.pv-pair { width: min(1100px, 88vw); margin: 8vh auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pv-pair .pv-card { width: auto; margin: 0; display: flex; flex-direction: column; align-items: center; }
.pv-pair .pv-card p { margin-bottom: 28px; }
.pv-pair .pv-card .btn { margin-top: auto; }
.pv-cardico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 18px; background: var(--page); color: var(--ink); }
.pv-cardico svg { width: 30px; height: auto; }
.pv-cardico.disc { background: #5865f2; color: #fff; }
.pv-card .btn .disc-mark { width: 1.15em; height: auto; margin-right: 0.5em; }
@media (max-width: 860px) { .pv-pair { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .pv-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pv-tiles { grid-template-columns: 1fr; } }

/* ---------- the changelog (changelog.html, build_changelog.py), as getcanopy.pro/changelog: a row a release, the
   version large on the left and sticky while its changes go by on the right, in groups under hairlines ---------- */
.cl-intro { margin: 10px auto 0; max-width: 46ch; font-size: 15px; font-weight: 500; line-height: 1.5; color: #86868b; }
.cl-list { width: min(1100px, 88vw); margin: 4vh auto 0; }
.cl-rel { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 8vh; padding-top: 44px; border-top: 1px solid rgba(3, 3, 3, 0.09); }
.cl-rel:first-child { margin-top: 6vh; }
.cl-head { position: sticky; top: 32px; align-self: start; }
.cl-ver { margin: 0; font-size: clamp(48px, 5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.cl-ver small { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.cl-date { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--steel); }
.cl-now { display: inline-block; margin-top: 14px; padding: 5px 11px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.cl-group + .cl-group { margin-top: 40px; }
.cl-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: clamp(22px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.03em; }
.cl-sym { display: block; width: 24px; height: 24px; color: var(--ink); }
.cl-sym svg { display: block; width: 100%; height: 100%; }
.cl-group ul { list-style: none; margin: 0; padding: 0; }
.cl-group li { position: relative; padding: 14px 0 14px 22px; border-top: 1px solid rgba(3, 3, 3, 0.07); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: #3a3a3f; }
.cl-group li:first-child { border-top: 0; }
.cl-group li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: #c3c5ca; }
.cl-group li b { color: var(--ink); font-weight: 650; }
/* a release's picture or recording, under its changes */
.cl-body figure { margin: 32px 0 0; }
.cl-body figure img, .cl-body figure video { display: block; width: 100%; height: auto; border-radius: 18px; background: #000; box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 30px 60px -32px rgba(3, 3, 3, 0.3); }
.cl-body figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; color: #86868b; }
@media (max-width: 860px) {
  .cl-rel { grid-template-columns: 1fr; gap: 20px; }
  .cl-head { position: static; }
}

/* ---------- licence recovery (recover.html, build_recover.py), as getcanopy.pro/recover: a key, the title, one
   field with its button in a white pill, the answer under it, and a card for when that doesn't help ---------- */
/* the key in a white tile, like an app's own icon */
.rc-key { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 24px; background: var(--panel); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 18px 36px -18px rgba(3, 3, 3, 0.28); }
.rc-key svg { display: block; width: 40px; height: 40px; }
.rc-form { display: flex; align-items: center; gap: 8px; width: min(560px, 88vw); margin: 6vh auto 0; padding: 7px 7px 7px 24px; border-radius: 22px;
  background: var(--panel); box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.07), 0 24px 50px -28px rgba(3, 3, 3, 0.2); transition: box-shadow 0.4s var(--ease); }
.rc-form:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 24px 50px -28px rgba(3, 3, 3, 0.2); }
.rc-form input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font: 500 18px/1 var(--font); color: var(--ink); }
.rc-form input::placeholder { color: var(--faint); }
/* a real <button>: without these Safari keeps its own border round it, which showed as an uneven dark edge
   along the button's bottom and right */
.dl .rc-form .btn { height: 52px; padding: 0 24px; border: 0; border-radius: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
  font-family: inherit; cursor: pointer; }
.dl .rc-form .btn:hover { padding-inline: 24px; transform: none; box-shadow: none; background: #1c1c1e; }
.rc-form.busy .btn { opacity: 0.6; cursor: progress; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rc-status { min-height: 24px; margin: 20px auto 0; max-width: 52ch; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--steel); }
.rc-status.err { color: #d7373f; }
.rc-help { margin-top: 10vh; }
.rc-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pv-card .rc-buttons .btn { margin-top: 0; }
.dl .btn.ghost { background: rgba(3, 3, 3, 0.06); color: var(--ink); box-shadow: none; }
.rc-buttons .btn .disc-mark { width: 1.15em; height: auto; margin-right: 0.5em; }
@media (max-width: 520px) {
  .rc-form { flex-wrap: wrap; padding: 8px; }
  .rc-form input { padding-left: 14px; }
  .rc-form .btn { width: 100%; }
}

/* ---------- support (support.html, build_support.py), as getcanopy.pro/support: two big cards, Discord and email,
   then three small tiles of what people most often need ---------- */
.sp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.pv-tile p a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(3, 3, 3, 0.25); text-underline-offset: 3px; transition: text-decoration-color 0.4s; }
.pv-tile p a:hover { text-decoration-color: var(--ink); }
.sp-pair .pv-card h3 { margin-top: 2px; }
@media (max-width: 860px) { .sp-tiles { grid-template-columns: 1fr; } }

/* ---------- after paying (thanks.html, build_thanks.py): the code, then the steps as a row of highlights ---------- */
.tk-state h1 { margin-top: 0; }
.tk-check { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 28px; border-radius: 50%; background: #34c759; color: #fff;
  box-shadow: 0 16px 34px -14px rgba(52, 199, 89, 0.7); animation: tk-pop 700ms cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.tk-check svg { width: 38px; height: 38px; }
@keyframes tk-pop { from { transform: scale(0.4); opacity: 0; } }
.tk-spin { display: block; width: 44px; height: 44px; margin: 0 auto 30px; border-radius: 50%; border: 4px solid rgba(3, 3, 3, 0.1); border-top-color: var(--ink); animation: tk-turn 0.9s linear infinite; }
@keyframes tk-turn { to { transform: rotate(360deg); } }
.tk-code { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 8px 8px 8px 28px; border-radius: 24px; background: var(--panel);
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.06), 0 30px 60px -32px rgba(3, 3, 3, 0.3); }
.tk-code code { font: 600 clamp(19px, 2.4vw, 30px)/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.dl .tk-code .btn { height: 52px; padding: 0 22px; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 16px/1 var(--font); box-shadow: none; }
.dl .tk-code .btn:hover { padding-inline: 22px; transform: none; box-shadow: none; }
.tk-sent { min-height: 20px; margin: 16px 0 0; font-size: 14px; font-weight: 500; color: #86868b; }
/* on a phone, a line under the code: the app goes on the Mac (phone.js turns the link into the send-to-Mac panel) */
.tk-phone { display: none; max-width: 34ch; margin: 18px auto 0; padding: 14px 18px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.45; color: #55555a;
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.06); }
.tk-phone a { display: block; margin-top: 6px; color: #0b0b0c; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(3, 3, 3, 0.25); text-underline-offset: 3px; }
html.phone .tk-phone { display: block; }
.tk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.dl .btn.ghost { background: rgba(3, 3, 3, 0.06); color: var(--ink); box-shadow: none; }
.tk-how { padding-top: 12vh; }
/* Apple's laptop over each step's picture (as c.css lays it on the home page, which this page doesn't load) */
.tk .mac-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.tk-how h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.tk-n { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: #a1a4aa; }
.tk-nope { width: min(1100px, 88vw); margin: 34px auto 0; text-align: center; font-size: 15px; color: #86868b; }
.tk-nope a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(3, 3, 3, 0.25); text-underline-offset: 3px; }
@media (max-width: 560px) { .tk-code { flex-direction: column; padding: 18px; } .tk-code .btn { width: 100%; } }

/* ---------- the end: next.css (.foot), the same as the home page's ---------- */

/* ---------- arrival, as on the home page: up from below, tilted back, out of a blur, one after another. The
   top arrives as the page opens; the rest as each part comes into sight (dl.js), and three seconds on it lets go
   of its blur and its delays. ---------- */
@keyframes dl-rise { from { opacity: 0; transform: perspective(1200px) translateY(120px) rotateX(16deg) scale(0.9); filter: blur(22px); } }
.js .rise { transform-origin: 50% 100%; animation: dl-rise 1.5s var(--ease) both; }
.js .rise:nth-child(2) { animation-delay: 0.14s; } .js .rise:nth-child(3) { animation-delay: 0.28s; } .js .rise:nth-child(4) { animation-delay: 0.42s; }
.js .dl-cta.rise { animation-name: dl-rise-sharp; }
@keyframes dl-rise-sharp { from { opacity: 0; transform: perspective(1200px) translateY(120px) rotateX(16deg) scale(0.9); } }
.js .io .part { opacity: 0; transform: perspective(1200px) translateY(120px) rotateX(16deg) scale(0.9); transform-origin: 50% 100%; filter: blur(22px); }
.js .io.in .part { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.3s var(--arrive), transform 1.8s var(--ease), filter 1.4s var(--arrive); }
.js .io.in .part:nth-child(2) { transition-delay: 0.18s; } .js .io.in .part:nth-child(3) { transition-delay: 0.36s; }
.js .io.entered .part { filter: none; transition-delay: 0s; }

@media (max-width: 760px) {
  .dl main { padding-top: 7vh; }
  .dl-tiles { grid-template-columns: 1fr; }
  .dl-tiles li { height: 380px; }
  .dl .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rise { animation: none; }
  .js .io .part, .js .io.in .part { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- 404.html: Needle's icon on the first block's dotted record (the same grooves, the same two wedges of
   coloured light, at the record's own size so its dots stay dots), the record turning slowly under the words */
html.nf body { overflow-x: hidden; }
.nf main { overflow: clip; position: relative; isolation: isolate; }
.nf-hero { padding-top: clamp(40px, 9vh, 110px); }
.nf-record { position: relative; width: clamp(104px, 10vw, 128px); aspect-ratio: 1; margin: 0 auto clamp(56px, 9vh, 96px); }
.nf-record img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.nf-dots { position: absolute; left: 50%; top: 50%; z-index: -1; width: 1800px; height: 1800px; margin: -900px 0 0 -900px; pointer-events: none;
  background: conic-gradient(from -11deg, var(--g) 0deg, var(--g) 30deg,
    rgba(255, 86, 86, 0.58) 38deg, rgba(255, 150, 50, 0.58) 44deg, rgba(226, 178, 24, 0.58) 50deg, rgba(52, 186, 104, 0.58) 56deg, rgba(40, 150, 240, 0.58) 62deg, rgba(98, 92, 240, 0.58) 68deg, rgba(170, 88, 230, 0.52) 74deg,
    var(--g) 84deg, var(--g) 210deg,
    rgba(255, 86, 86, 0.44) 218deg, rgba(255, 150, 50, 0.44) 224deg, rgba(226, 178, 24, 0.44) 230deg, rgba(52, 186, 104, 0.44) 236deg, rgba(40, 150, 240, 0.44) 242deg, rgba(98, 92, 240, 0.44) 248deg, rgba(170, 88, 230, 0.4) 254deg,
    var(--g) 264deg, var(--g) 360deg);
  --g: rgba(18, 22, 40, 0.26);
  -webkit-mask-image: url(media/grooves.svg), radial-gradient(circle closest-side, #000 0, #000 22%, rgba(0, 0, 0, 0.35) 36%, transparent 50%);
  mask-image: url(media/grooves.svg), radial-gradient(circle closest-side, #000 0, #000 22%, rgba(0, 0, 0, 0.35) 36%, transparent 50%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: nf-turn 60s linear infinite; will-change: transform; }
@keyframes nf-turn { to { transform: rotate(360deg); } }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vh, 40px); }
.nf .nf-actions .btn { height: 52px; padding: 0 26px; font-size: 17px; }
.nf-code { margin: 26px 0 0; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: #a1a1a6; }
@media (prefers-reduced-motion: reduce) { .nf-dots { animation: none; } }
@media (max-width: 520px) {
  .nf-actions { flex-wrap: nowrap; }
  .nf .nf-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; }
}

/* ---------- the affiliate program (build_partners.py, partners.js): affiliates.html, partner.html, owner.html ---------- */
.af-card { width: min(560px, 88vw); margin: 6vh auto 0; padding: clamp(28px, 3.4vw, 40px) clamp(22px, 3vw, 36px) 26px; border-radius: 32px; background: var(--panel);
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 30px 60px -32px rgba(3, 3, 3, 0.16); }
.af-card h2 { margin: 0; font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.af-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--steel); }
.af-form label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 600; color: #3a3a3f; }
.af-form input, .af-again-form input, .pt-payout input { display: block; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; outline: 0;
  -webkit-appearance: none; appearance: none; background: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(3, 3, 3, 0.06); font: 500 17px/1 var(--font); color: var(--ink);
  transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.af-form input:focus, .af-again-form input:focus, .pt-payout input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.af-form input::placeholder, .af-again-form input::placeholder, .pt-payout input::placeholder { color: var(--faint); }
/* the link: the site's address, then the part they choose */
.af-link { display: flex; align-items: center; height: 52px; border-radius: 14px; background: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(3, 3, 3, 0.06); transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.af-link:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.af-link span { padding-left: 16px; font: 500 17px/1 var(--font); color: var(--faint); white-space: nowrap; }
.af-form .af-link input { height: 100%; padding-left: 1px; background: none; box-shadow: none; }
.af-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--faint); }
.dl .af-form .btn { width: 100%; height: 56px; margin-top: 24px; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 17px/1 var(--font); }
.dl .af-form .btn:disabled { opacity: 0.6; cursor: progress; }
.af-status { min-height: 20px; margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--steel); }
.af-status:empty { min-height: 0; margin: 0; }
.af-status.err { color: #d7373f; }
.af-done { padding: 10px 0 6px; text-align: center; }
.af-tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #1f9d55; color: #fff; }
.af-tick svg { width: 30px; height: 30px; }
.af-again { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(3, 3, 3, 0.07); }
.af-again summary { list-style: none; cursor: pointer; text-align: center; font-size: 14px; font-weight: 600; color: var(--steel); }
.af-again summary::-webkit-details-marker { display: none; }
.af-again summary:hover { color: var(--ink); }
.af-again-form { display: flex; gap: 8px; margin-top: 14px; }
.af-again-form input { flex: 1; min-width: 0; height: 48px; }
.dl .af-again-form .btn { height: 48px; padding: 0 20px; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 15px/1 var(--font); white-space: nowrap; }
.af-again .af-status, .pt-lost .af-status { text-align: center; }
.af section.af-rules { margin-top: 10vh; padding-top: 0; }
.af .sp-tiles { width: min(1100px, 88vw); margin-top: 8vh; }
/* a partner's page */
.pt-body { width: min(1100px, 88vw); margin: 6vh auto 0; }
.pt-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-pill { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 16px 16px 24px; border-radius: 22px; background: var(--panel); box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 20px 40px -28px rgba(3, 3, 3, 0.16); }
.pt-k { flex: none; font-size: 13px; font-weight: 600; color: var(--faint); }
.pt-pill b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.dl .pt-pill .btn { flex: none; height: 40px; padding: 0 16px; border: 0; font: 600 14px/1 var(--font); cursor: pointer; -webkit-appearance: none; appearance: none; }
.pt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pt-stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05), 0 20px 40px -28px rgba(3, 3, 3, 0.16); }
.pt-stat span { font-size: 14px; font-weight: 600; color: var(--steel); }
.pt-stat b { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: proportional-nums; overflow-wrap: anywhere; }
.pt-stat small { font-size: 13px; color: var(--faint); }
/* a second currency, under the main sum */
.pt-stat b em { display: block; margin-top: 4px; font-style: normal; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.pt-stat.strong { background: var(--ink); color: #fff; }
.pt-stat.strong span, .pt-stat.strong small { color: rgba(255, 255, 255, 0.62); }
.pt-rule { margin: 18px auto 0; max-width: 64ch; text-align: center; font-size: 14px; line-height: 1.5; color: var(--steel); }
.pt-payout { margin: 5vh auto 0; max-width: 640px; }
.pt-payout label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 650; }
.pt-row { display: flex; gap: 8px; }
.pt-row input { flex: 1; min-width: 0; }
.dl .pt-row .btn { height: 52px; padding: 0 24px; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 16px/1 var(--font); }
/* (next.css pads every section from the top: these sit closer) */
.af section.pt-table, .af section.ow-list, .af section.af-card { padding-top: 0; }
.af section.af-card { padding-top: clamp(28px, 3.4vw, 40px); }
.pt-table { margin-top: 7vh; }
.pt-table h2 { margin: 0 0 14px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.pt-empty { margin: 0; font-size: 16px; color: var(--steel); }
.pt-table table, .ow-table table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(3, 3, 3, 0.05); }
.pt-table th, .ow-table th { padding: 14px 18px; text-align: left; font-size: 13px; font-weight: 600; color: var(--faint); border-bottom: 1px solid rgba(3, 3, 3, 0.07); }
.pt-table td, .ow-table td { padding: 14px 18px; border-bottom: 1px solid rgba(3, 3, 3, 0.05); font-variant-numeric: tabular-nums; vertical-align: top; }
.pt-table tr:last-child td, .ow-table tr:last-child td { border-bottom: 0; }
.pt-table tr.is-refunded td, .pt-table tr.is-own td { color: var(--faint); }
.pt-table tr.is-waiting td:last-child { color: #b26a00; }
.pt-table tr.is-earned td:last-child { color: #1f9d55; font-weight: 600; }
.pt-lost { text-align: center; }
.pt-lost .af-again-form { margin-top: 20px; }
/* the owner's page */
.ow-list { width: min(1240px, 94vw); margin: 6vh auto 0; }
.ow-list .pt-rule { margin-bottom: 22px; }
.ow-table { overflow-x: auto; border-radius: 20px; }
.ow-table td b { display: block; font-weight: 650; }
.ow-table td span { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.ow-table td.strong { font-weight: 700; }
.ow-table td.ow-to { max-width: 220px; overflow-wrap: anywhere; color: var(--soft); }
.ow-do { white-space: nowrap; }
.dl .ow-do .btn { height: 36px; padding: 0 14px; margin: 0 6px 6px 0; border: 0; -webkit-appearance: none; appearance: none; cursor: pointer; font: 600 13px/1 var(--font); }
.ow-table tr.is-off td { opacity: 0.5; }
@media (max-width: 860px) {
  .pt-copy { grid-template-columns: 1fr; }
  .pt-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .af-link span { padding-left: 14px; font-size: 16px; }
  .af-again-form, .pt-row { flex-wrap: wrap; }
  .dl .af-again-form .btn, .dl .pt-row .btn { width: 100%; }
  .pt-table { overflow-x: auto; }
  .pt-table table { font-size: 13.5px; }
  .pt-table th, .pt-table td { padding: 12px 8px; white-space: nowrap; }
  .pt-table th:first-child, .pt-table td:first-child { padding-left: 14px; }
}
