/* Generated by next/scripts/build.mjs from public/site.css: what the sale banner and popup need on the new home and
   product pages (they don't load site.css). Edit site.css, not this file. */
/* ---------------------------------------------------------------------------
   Tokens. Since 2026-11-05 the site is always light (owner): every page's
   <html> has data-theme="light", so the dark blocks below never match. To
   follow the device's setting again, drop that attribute (lib/render.js,
   login.html, reset.html).
   ------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface-1: #fafafa;
  --surface-2: #f4f4f5;
  --surface-3: #e9e9ec;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --ink: #09090b;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --ink-disabled: #a1a1aa;

  --signal: #0b5fff;
  --success: #16a34a;
  --warning: #b45309;
  --danger: #dc2626;
  --status-mix: 10%;
  --signal-ink: #1d4ed8;
  --success-ink: #166534;
  --warning-ink: #92400e;
  --danger-ink: #b91c1c;
  --signal-subtle: color-mix(in srgb, var(--signal) var(--status-mix), var(--bg));
  --success-subtle: color-mix(in srgb, var(--success) var(--status-mix), var(--bg));
  --warning-subtle: color-mix(in srgb, var(--warning) var(--status-mix), var(--bg));
  --danger-subtle: color-mix(in srgb, var(--danger) var(--status-mix), var(--bg));

  --a-nanflows: #6d28d9;
  --a-nanflows-ink: #6d28d9;

  --accent: var(--ink);
  --accent-fg: #ffffff;
  --accent-subtle: var(--surface-2);
  --accent-ink: var(--accent);

  --elev-raised: 0 1px 2px rgb(0 0 0 / 0.06);
  --elev-overlay: 0 12px 32px rgb(0 0 0 / 0.12);
  --elev-window: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 30px 60px -20px rgb(30 30 60 / 0.22);

  --radius-scale: 0;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  --ease-productive: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-expressive: cubic-bezier(0.4, 0.14, 0.3, 1);
  --ease-entrance: cubic-bezier(0, 0, 0.38, 0.9);
  --dur-productive: 110ms;
  --dur-expressive: 280ms;

  /* The site's only light: glows, the hover spotlight, a gradient hairline. Never text. */
  --pastel-lilac: #d8c8ff;
  --pastel-sky: #bcdcff;
  --pastel-mint: #bdf2d8;
  --pastel-peach: #ffd9bf;
  --pastel-rose: #ffcfe6;
  --glow-alpha: 70%;
  --gradient-pastel: linear-gradient(100deg, var(--pastel-lilac), var(--pastel-sky) 35%, var(--pastel-mint) 65%, var(--pastel-peach));

  --frame: 100rem;
  --gutter: 1.25rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #09090b; --surface-1: #111113; --surface-2: #18181b; --surface-3: #1f1f23;
    --border: #27272a; --border-strong: #3f3f46;
    --ink: #fafafa; --ink-secondary: #c4c4cc; --ink-muted: #8b8b94; --ink-disabled: #52525b;
    --signal: #4d8dff; --success: #22c55e; --warning: #f59e0b; --danger: #f87171;
    --status-mix: 18%;
    --signal-ink: var(--signal); --success-ink: var(--success); --warning-ink: var(--warning); --danger-ink: var(--danger);
    --a-nanflows: #a78bfa; --a-nanflows-ink: #a78bfa;
    --accent-fg: #09090b; --accent-subtle: #18181b;
    --elev-raised: none;
    --elev-overlay: 0 16px 40px rgb(0 0 0 / 0.5);
    --elev-window: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 40px 80px -24px rgb(0 0 0 / 0.8);
    --pastel-lilac: #a78bfa; --pastel-sky: #7cc4ff; --pastel-mint: #6ee7b7; --pastel-peach: #fdba74; --pastel-rose: #f9a8d4;
    --glow-alpha: 34%;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #09090b; --surface-1: #111113; --surface-2: #18181b; --surface-3: #1f1f23;
  --border: #27272a; --border-strong: #3f3f46;
  --ink: #fafafa; --ink-secondary: #c4c4cc; --ink-muted: #8b8b94; --ink-disabled: #52525b;
  --signal: #4d8dff; --success: #22c55e; --warning: #f59e0b; --danger: #f87171;
  --status-mix: 18%;
  --signal-ink: var(--signal); --success-ink: var(--success); --warning-ink: var(--warning); --danger-ink: var(--danger);
  --a-nanflows: #a78bfa; --a-nanflows-ink: #a78bfa;
  --accent-fg: #09090b; --accent-subtle: #18181b;
  --elev-raised: none;
  --elev-overlay: 0 16px 40px rgb(0 0 0 / 0.5);
  --elev-window: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 40px 80px -24px rgb(0 0 0 / 0.8);
  --pastel-lilac: #a78bfa; --pastel-sky: #7cc4ff; --pastel-mint: #6ee7b7; --pastel-peach: #fdba74; --pastel-rose: #f9a8d4;
  --glow-alpha: 34%;
  color-scheme: dark;
}

/* Radii follow the scale. Declared on every element that sets a scale, because a custom property
   resolves where it is declared: one set on :root alone would stay square inside a product. */
:root, [data-product], [data-chrome] {
  --radius-control: calc(8px * var(--radius-scale));
  --radius-card: calc(12px * var(--radius-scale));
  --radius-panel: calc(16px * var(--radius-scale));
}

/* The Nanflows product theme: accent, its tint, and the sharpest shape in the family. */
[data-product='nanflows'] {
  --accent: var(--a-nanflows);
  --accent-ink: var(--a-nanflows-ink);
  --accent-fg: #ffffff;
  --accent-subtle: #f5f3ff;
  --radius-scale: 0.5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-product='nanflows'] { --accent-fg: #09090b; --accent-subtle: #1e1633; }
}
:root[data-theme='dark'] [data-product='nanflows'] { --accent-fg: #09090b; --accent-subtle: #1e1633; }

/* The umbrella opt-out: header and footer stay monochrome and square. */
[data-chrome] {
  --accent: var(--ink);
  --accent-ink: var(--ink);
  --accent-fg: var(--bg);
  --accent-subtle: var(--surface-2);
  --radius-scale: 0;
}


.announce { position: relative; z-index: 51; background: var(--ink); color: var(--bg); text-align: center; font: 400 .75rem/1.5 var(--font-mono); padding: 8px 16px; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------------
   Sale popup (Admin → Sale popup). A dark card in both themes, so a sale looks
   the same everywhere; --promo is the color the admin picks for it.
   ------------------------------------------------------------------------- */
.promo {
  --promo: #f97316;
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 1px solid color-mix(in srgb, var(--promo) 35%, #27272a); border-radius: 18px;
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--promo) 22%, transparent), transparent 60%), #111113;
  color: #fafafa; box-shadow: 0 40px 80px -24px rgb(0 0 0 / .8); color-scheme: dark;
  font-family: var(--font-sans); text-align: center;
}
.promo:focus { outline: none; }
.promo::backdrop { background: rgb(9 9 11 / .72); backdrop-filter: blur(3px); }
.promo[open] { animation: promo-in 280ms var(--ease-entrance); }
@keyframes promo-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .promo[open] { animation: none; } }
.promo-open { overflow: hidden; }
.promo-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.promo-close button {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #3f3f46; border-radius: 10px;
  background: rgb(255 255 255 / .06); color: #fafafa; cursor: pointer;
}
.promo-close button:hover { background: rgb(255 255 255 / .12); }
.promo-close svg { width: 16px; height: 16px; }
.promo-body { padding: 36px 28px 22px; }
.promo-eyebrow {
  margin: 0 40px 12px; font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--promo);
}
.promo-title { margin: 0; color: inherit; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.promo-title em { font-style: normal; color: var(--promo); }
.promo-big {
  margin: 8px 0 4px; font-size: clamp(3.4rem, 15vw, 4.6rem); line-height: 1; font-weight: 800; letter-spacing: -.04em;
  color: var(--promo); text-shadow: 0 0 36px color-mix(in srgb, var(--promo) 55%, transparent);
}
.promo-text { margin: 10px auto 0; max-width: 32ch; color: #c4c4cc; font-size: .95rem; line-height: 1.5; text-wrap: pretty; }
.promo-code {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 6px 6px 14px;
  border: 1px dashed var(--promo); border-radius: 10px; background: color-mix(in srgb, var(--promo) 8%, transparent);
}
.promo-code code { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; color: #fafafa; user-select: all; }
.promo-code button {
  padding: 7px 12px; border: 0; border-radius: 7px; background: #27272a; color: #fafafa;
  font: 600 .85rem var(--font-sans); cursor: pointer;
}
.promo-code button:hover { background: #3f3f46; }
.promo-clock { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.promo-clock[hidden] { display: none; }
.promo-clock span {
  display: grid; min-width: 58px; padding: 8px 6px 6px; border-radius: 9px; background: #1f1f23;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #8b8b94;
}
.promo-clock b { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; color: #fafafa; font-variant-numeric: tabular-nums; }
.promo-shelf {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 14px 20px;
  list-style: none; border-block: 1px solid #27272a;
}
.promo-shelf li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #18181b; font-size: .82rem; color: #c4c4cc; }
.promo-shelf span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--promo) 20%, #18181b); color: var(--promo); font-size: .7rem; font-weight: 700;
}
.promo-actions { display: grid; gap: 4px; padding: 18px 24px 16px; }
.promo-actions form { margin: 0; }
.promo-go {
  display: block; padding: 14px 18px; border-radius: 10px; background: var(--promo); color: #09090b;
  font-weight: 700; text-decoration: none; transition: opacity var(--dur-productive);
}
.promo-go:hover { opacity: .9; }
.promo-go:focus-visible, .promo button:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.promo-no { padding: 8px; border: 0; background: none; color: #8b8b94; font: .85rem var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.promo-no:hover { color: #fafafa; }
.promo-close { z-index: 2; }
.promo-body, .promo-shelf, .promo-actions { position: relative; z-index: 1; }

/* Layouts. Light and full color keep text dark: the sale colors are too bright for white text. */
.promo-light {
  --flake: color-mix(in srgb, var(--promo) 30%, #cbd5e1);
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--promo) 12%, transparent), transparent 60%), #ffffff;
  color: #09090b; border-color: color-mix(in srgb, var(--promo) 30%, #e4e4e7); color-scheme: light;
  box-shadow: 0 30px 60px -20px rgb(30 30 60 / .35);
}
.promo-light .promo-eyebrow, .promo-light .promo-title em, .promo-light .promo-big { color: color-mix(in srgb, var(--promo) 75%, #000); }
.promo-light .promo-big { text-shadow: none; }
.promo-light .promo-text { color: #52525b; }
.promo-light .promo-close button { border-color: #e4e4e7; background: #f4f4f5; color: #09090b; }
.promo-light .promo-code code { color: #09090b; }
.promo-light .promo-code button { background: #09090b; color: #fff; }
.promo-light .promo-clock span { background: #f4f4f5; color: #71717a; }
.promo-light .promo-clock b { color: #09090b; }
.promo-light .promo-shelf { border-color: #e4e4e7; }
.promo-light .promo-shelf li { background: #f4f4f5; color: #52525b; }
.promo-light .promo-shelf span { background: color-mix(in srgb, var(--promo) 18%, #fff); color: color-mix(in srgb, var(--promo) 70%, #000); }
.promo-light .promo-no { color: #71717a; }
.promo-light .promo-no:hover { color: #09090b; }

.promo-bold { --flake: rgb(255 255 255 / .55); background: var(--promo); color: #09090b; border-color: transparent; color-scheme: light; }
.promo-bold .promo-eyebrow { color: rgb(9 9 11 / .75); }
.promo-bold .promo-title em { padding: 0 .18em; border-radius: 6px; background: #09090b; color: var(--promo); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.promo-bold .promo-big { color: #09090b; text-shadow: none; }
.promo-bold .promo-text { color: rgb(9 9 11 / .78); }
.promo-bold .promo-close button { border-color: transparent; background: rgb(0 0 0 / .12); color: #09090b; }
.promo-bold .promo-code { border-color: #09090b; background: rgb(0 0 0 / .08); }
.promo-bold .promo-code code { color: #09090b; }
.promo-bold .promo-code button { background: #09090b; color: #fff; }
.promo-bold .promo-clock span { background: rgb(0 0 0 / .12); color: rgb(9 9 11 / .7); }
.promo-bold .promo-clock b { color: #09090b; }
.promo-bold .promo-shelf { border-color: rgb(0 0 0 / .15); }
.promo-bold .promo-shelf li { background: rgb(0 0 0 / .1); color: #09090b; }
.promo-bold .promo-shelf span { background: #09090b; color: var(--promo); }
.promo-bold .promo-go { background: #09090b; color: var(--promo); }
.promo-bold .promo-no { color: rgb(9 9 11 / .7); }
.promo-bold .promo-no:hover { color: #09090b; }
.promo-light .promo-go:focus-visible, .promo-light button:focus-visible,
.promo-bold .promo-go:focus-visible, .promo-bold button:focus-visible { outline-color: #09090b; }

/* The code is a torn-off ticket: the sale color, with a notch cut on each side. */
.promo-ticket { background: #111113; border-style: dashed; }
.promo-ticket .promo-code {
  display: flex; justify-content: space-between; width: 100%; margin-top: 20px; padding: 14px 14px 14px 26px; border: 0; border-radius: 12px;
  background: radial-gradient(circle at 0 50%, #111113 11px, transparent 12px), radial-gradient(circle at 100% 50%, #111113 11px, transparent 12px), var(--promo);
}
.promo-ticket .promo-code code { color: #09090b; font-size: 1.3rem; }
.promo-ticket .promo-code button { margin-right: 10px; background: #09090b; color: #fafafa; }

/* Small and to one side, with no dark page behind it: the visitor can keep reading. */
.promo-corner { position: fixed; inset: auto 16px 16px auto; margin: 0; width: min(340px, calc(100% - 32px)); text-align: left; }
.promo-corner[open] { animation-name: promo-up; }
@keyframes promo-up { from { opacity: 0; transform: translateY(24px); } }
.promo-corner .promo-body { padding: 22px 20px 10px; }
.promo-corner .promo-eyebrow { margin: 0 44px 8px 0; }
.promo-corner .promo-title { font-size: 1.3rem; }
.promo-corner .promo-big { margin: 6px 0 0; font-size: 2.6rem; }
.promo-corner .promo-text { margin: 6px 0 0; max-width: none; font-size: .88rem; }
.promo-corner .promo-code { margin-top: 12px; }
.promo-corner .promo-clock { justify-content: flex-start; margin-top: 12px; }
.promo-corner .promo-clock span { min-width: 50px; }
.promo-corner .promo-shelf { display: none; }
.promo-corner .promo-actions { grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px 20px 16px; }
.promo-corner .promo-go { padding: 11px 14px; text-align: center; }
@media (max-width: 480px) { .promo-corner { inset: auto 12px 12px 12px; width: auto; } }

/* Decorations, drawn behind the text. */
.promo[class*='promo-decor-']::before { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.promo-decor-moon::before {
  top: -80px; right: -80px; width: 210px; height: 210px; border-radius: 50%; opacity: .6;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--promo) 40%, #fff), var(--promo) 45%, color-mix(in srgb, var(--promo) 45%, #000));
  box-shadow: 0 0 90px color-mix(in srgb, var(--promo) 60%, transparent);
}
.promo-decor-snow::before {
  inset: 0;
  background-image: radial-gradient(circle, var(--flake, rgb(255 255 255 / .6)) 1.6px, transparent 2.2px), radial-gradient(circle, var(--flake, rgb(255 255 255 / .6)) 1px, transparent 1.5px);
  background-size: 46px 46px, 27px 27px; background-position: 0 0, 13px 19px;
  -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%);
}
.promo-decor-stars::before {
  inset: 0; opacity: .9;
  background-image: radial-gradient(circle, var(--flake, #fff) 1px, transparent 1.5px), radial-gradient(circle, color-mix(in srgb, var(--promo) 70%, #fff) 1.5px, transparent 2px);
  background-size: 63px 41px, 89px 67px; background-position: 7px 11px, 31px 23px;
  -webkit-mask: linear-gradient(#000, transparent 50%); mask: linear-gradient(#000, transparent 50%);
}
.promo-decor-lights::before {
  top: 0; left: 0; right: 0; height: 30px; filter: drop-shadow(0 0 4px rgb(255 240 150 / .8));
  background:
    radial-gradient(circle at 50% 70%, #fef08a 4.5px, transparent 5.5px) 0 0 / 72px 30px repeat-x,
    radial-gradient(circle at 50% 70%, #fb7185 4.5px, transparent 5.5px) 24px 0 / 72px 30px repeat-x,
    radial-gradient(circle at 50% 70%, #67e8f9 4.5px, transparent 5.5px) 48px 0 / 72px 30px repeat-x,
    linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .35)) 0 15px / 100% 1px no-repeat;
}
.promo-decor-confetti::before {
  top: 0; left: 0; right: 0; height: 140px;
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent);
  background:
    linear-gradient(#f43f5e 0 0) 8% 18% / 9px 4px, linear-gradient(#facc15 0 0) 18% 52% / 4px 9px,
    linear-gradient(#38bdf8 0 0) 27% 10% / 9px 4px, linear-gradient(#a78bfa 0 0) 37% 40% / 4px 9px,
    linear-gradient(#34d399 0 0) 63% 14% / 9px 4px, linear-gradient(#f43f5e 0 0) 72% 46% / 4px 9px,
    linear-gradient(#facc15 0 0) 82% 22% / 9px 4px, linear-gradient(#38bdf8 0 0) 92% 58% / 4px 9px,
    linear-gradient(#fb923c 0 0) 4% 70% / 4px 8px, linear-gradient(#a78bfa 0 0) 96% 8% / 8px 4px;
  background-repeat: no-repeat;
}

/* The sale banner across the top of every page (Admin → Sale popup, "Show it as"). Same color and
   decoration as the popup; dark unless the popup is light or full color. */
.sale-bar {
  --promo: #f97316; position: sticky; top: 0; z-index: 52; overflow: hidden; isolation: isolate; color-scheme: dark;
  border-bottom: 1px solid color-mix(in srgb, var(--promo) 40%, #27272a);
  background:
    radial-gradient(50% 160% at 22% 50%, color-mix(in srgb, var(--promo) 30%, transparent), transparent 70%),
    radial-gradient(40% 160% at 85% 50%, color-mix(in srgb, var(--promo) 16%, transparent), transparent 70%),
    #0d0b14;
  color: #fafafa; font-family: var(--font-sans);
}
.sale-row {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 24px; max-width: 1320px; min-height: 76px; margin: 0 auto; padding: 10px 60px;
}
.sale-row > p { margin: 0; }
.sale-name {
  max-width: 10ch; font-size: 1.3rem; font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 0 18px color-mix(in srgb, var(--promo) 60%, transparent);
}
.sale-big { display: flex; align-items: center; gap: 6px; color: var(--promo); }
.sale-big b { font-size: 2.8rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; text-shadow: 0 0 28px color-mix(in srgb, var(--promo) 55%, transparent); }
.sale-big span { max-width: 3ch; font-size: 1rem; font-weight: 800; line-height: .95; text-transform: uppercase; }
.sale-what { max-width: 15ch; font-size: .98rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.sale-code {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 5px 5px 13px; border: 1px dashed var(--promo); border-radius: 999px;
  background: color-mix(in srgb, var(--promo) 12%, transparent);
}
.sale-code span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.sale-code code { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; letter-spacing: .05em; user-select: all; }
.sale-code button {
  padding: 6px 12px; border: 0; border-radius: 999px; background: var(--promo); color: #09090b;
  font: 700 .8rem var(--font-sans); cursor: pointer;
}
.sale-when { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; opacity: .85; }
.sale-when b { display: block; min-width: 15ch; font-size: 1rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sale-go {
  padding: 10px 16px; border-radius: 10px; background: #fafafa; color: #09090b; font-size: .9rem; font-weight: 700;
  white-space: nowrap; text-decoration: none; transition: opacity var(--dur-productive);
}
.sale-go:hover { opacity: .88; }
.sale-x {
  position: absolute; z-index: 2; top: 50%; right: 14px; display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: rgb(255 255 255 / .08); color: inherit; cursor: pointer; transform: translateY(-50%);
}
.sale-x:hover { background: rgb(255 255 255 / .16); }
.sale-x svg { width: 14px; height: 14px; }
.sale-bar :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sale-light { color-scheme: light; color: #09090b; border-color: color-mix(in srgb, var(--promo) 30%, #e4e4e7); background: radial-gradient(50% 160% at 22% 50%, color-mix(in srgb, var(--promo) 16%, transparent), transparent 70%), #fff; }
.sale-light .sale-big { color: color-mix(in srgb, var(--promo) 75%, #000); }
.sale-light :is(.sale-big b, .sale-name) { text-shadow: none; }
.sale-light .sale-go { background: #09090b; color: #fff; }
.sale-light .sale-x { background: rgb(0 0 0 / .06); }
.sale-bold { color-scheme: light; color: #09090b; border-color: transparent; background: var(--promo); --flake: rgb(255 255 255 / .55); }
.sale-bold .sale-big { color: #09090b; }
.sale-bold :is(.sale-big b, .sale-name) { text-shadow: none; }
.sale-bold .sale-code { border-color: #09090b; background: rgb(0 0 0 / .08); }
.sale-bold .sale-code button, .sale-bold .sale-go { background: #09090b; color: var(--promo); }
.sale-bold .sale-x { background: rgb(0 0 0 / .1); }
/* The popup's decorations, fitted to a strip. */
.sale-bar[class*='promo-decor-']::before { content: ''; position: absolute; z-index: 0; pointer-events: none; -webkit-mask: none; mask: none; }
.sale-bar.promo-decor-moon::before { top: -34px; right: auto; left: max(8px, calc(50% - 640px)); width: 110px; height: 110px; opacity: .55; }
.sale-bar.promo-decor-snow::before, .sale-bar.promo-decor-stars::before { opacity: .6; }
.sale-bar.promo-decor-confetti::before { height: 100%; opacity: .7; }
@media (max-width: 760px) {
  .sale-row { gap: 4px 12px; min-height: 0; padding: 8px 44px 8px 12px; }
  .sale-name { max-width: none; font-size: .85rem; }
  .sale-big b { font-size: 1.7rem; }
  .sale-big span { font-size: .8rem; }
  .sale-what, .sale-go { display: none; }
  .sale-code { padding: 3px 3px 3px 10px; }
  .sale-code span { display: none; }
  .sale-code code { font-size: .85rem; }
  .sale-code button { padding: 5px 10px; font-size: .72rem; }
  .sale-when span { display: none; }
  .sale-when b { display: inline; min-width: 0; font-size: .8rem; }
  .sale-x { right: 8px; }
}

/* The sale's dates, with a calendar: in the banner and in the popup. */
.sale-dates { display: flex; align-items: center; gap: 8px; }
.sale-dates .icon, .promo-dates .icon { flex: none; width: 26px; height: 26px; color: var(--promo); stroke-width: 1.4; }
.sale-dates { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }
.sale-dates .icon { grid-row: 1 / 3; }
.sale-dates b { min-width: 0; font-family: var(--font-sans); font-weight: 800; letter-spacing: -.01em; }
.sale-bold :is(.sale-dates, .promo-dates) .icon, .promo-bold .promo-dates .icon { color: #09090b; }
.promo-dates {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--promo) 10%, transparent); font-size: .9rem;
}
.promo-dates span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.promo-dates .icon { width: 20px; height: 20px; }

/* Banner design "Poster": tall, a big name and discount, and a drawing for the sale on each side. */
.sale-poster.sale-dark {
  background:
    radial-gradient(40% 120% at 50% 100%, color-mix(in srgb, var(--promo) 22%, transparent), transparent 70%),
    linear-gradient(90deg, color-mix(in srgb, var(--promo) 22%, #121845), #141b4d 30% 70%, color-mix(in srgb, var(--promo) 22%, #121845));
}
.sale-poster .sale-row { min-height: 118px; max-width: none; gap: 10px 32px; padding: 12px 210px; }
.sale-poster .sale-go { display: none; }
.sale-poster.sale-light .sale-big b { background-image: none; color: color-mix(in srgb, var(--promo) 80%, #000); filter: none; }
.sale-art { position: absolute; z-index: 0; top: 0; bottom: 0; width: 200px; pointer-events: none; }
.sale-art svg { display: block; width: 100%; height: 100%; }
.sale-art-l { left: max(0px, calc(50% - 780px)); }
.sale-art-r { right: max(40px, calc(50% - 740px)); }
.sale-poster .sale-name {
  max-width: 8ch; font-size: 2.15rem; line-height: .88; letter-spacing: -.01em;
  text-shadow: 0 3px 0 color-mix(in srgb, var(--promo) 55%, #000), 0 0 26px color-mix(in srgb, var(--promo) 55%, transparent);
}
.sale-poster .sale-big b {
  font-size: 4.4rem; text-shadow: none; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--promo) 55%, #fff) 50%, var(--promo) 85%);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--promo) 45%, transparent));
}
.sale-poster .sale-big span { font-size: 1.5rem; }
.sale-poster .sale-code { display: grid; grid-template-columns: auto auto; gap: 5px 6px; padding: 0; border: 0; background: none; }
.sale-poster .sale-code span { grid-column: 1 / -1; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: .9; }
.sale-poster .sale-code code { padding: 8px 16px; border-radius: 999px; background: var(--promo); color: #09090b; font-size: 1.05rem; }
.sale-poster .sale-code button { background: rgb(255 255 255 / .12); color: inherit; }
.sale-poster .sale-dates {
  display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center;
  padding-left: 26px; border-left: 1px solid color-mix(in srgb, var(--promo) 35%, transparent);
}
.sale-poster .sale-dates .icon { grid-row: 1 / 3; width: 40px; height: 40px; }
.sale-poster .sale-dates > :is(span, b) { line-height: 1.15; }
.sale-poster .sale-dates b, .sale-poster .sale-when b { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.sale-poster:is(.sale-light, .sale-bold) .sale-code button { background: rgb(0 0 0 / .08); }
.sale-poster.sale-bold .sale-code code { background: #09090b; color: var(--promo); }
.sale-poster.sale-bold .sale-big b { background-image: none; color: #09090b; filter: none; }
.sale-poster:is(.sale-light, .sale-bold) .sale-name { text-shadow: none; }
/* The drawings' colors. */
.sale-art .a-main { fill: var(--promo); }
.sale-art .a-shade { fill: color-mix(in srgb, var(--promo) 62%, #000); }
.sale-art .a-dark { fill: #070a1f; }
.sale-art .a-glow { fill: #fde68a; }
.sale-art .a-pale { fill: color-mix(in srgb, var(--promo) 30%, #fff); }
.sale-art .a-leaf { fill: #16a34a; }
.sale-art .a-flake { fill: none; stroke: #e0f2fe; stroke-width: 1.6; stroke-linecap: round; }
.sale-art .a-dark-line { fill: none; stroke: #070a1f; stroke-width: 1.5; }
.sale-art .a-pale-line { fill: none; stroke: color-mix(in srgb, var(--promo) 30%, #fff); stroke-width: 3; stroke-linecap: round; }
.sale-art .a-dark-text { fill: #070a1f; font: 800 26px var(--font-sans); }
.sale-light .sale-art :is(.a-dark, .a-dark-text) { fill: #27272a; }
.sale-light .sale-art .a-dark-line { stroke: #27272a; }
.sale-light .sale-art .a-flake { stroke: color-mix(in srgb, var(--promo) 45%, #94a3b8); }
.sale-bold .sale-art .a-main { fill: #fff; }
.sale-bold .sale-art .a-shade { fill: rgb(255 255 255 / .6); }
.sale-bold .sale-art :is(.a-dark, .a-dark-text) { fill: #09090b; }
.sale-bold .sale-art .a-dark-line { stroke: #09090b; }
@media (max-width: 1500px) { .sale-poster .sale-what { display: none; } }
@media (max-width: 1360px) {
  .sale-art-r { display: none; }
  .sale-poster .sale-row { padding-right: 60px; }
}
@media (max-width: 1100px) {
  .sale-poster .sale-what { display: none; }
  .sale-poster .sale-row { gap: 10px 22px; padding-left: 170px; }
  .sale-art { width: 160px; }
}

/* Banner design "One thin line". */
.sale-line .sale-row { min-height: 44px; gap: 4px 16px; padding: 6px 56px; }
.sale-line .sale-name { max-width: none; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-shadow: none; color: var(--promo); }
.sale-line:is(.sale-light, .sale-bold) .sale-name { color: inherit; }
.sale-line .sale-big b { font-size: 1.2rem; text-shadow: none; }
.sale-line .sale-big span { max-width: none; font-size: .78rem; }
.sale-line .sale-what { max-width: none; font-size: .88rem; font-weight: 500; }
.sale-line .sale-code { padding: 2px 2px 2px 10px; }
.sale-line .sale-code span { display: none; }
.sale-line .sale-code code { font-size: .85rem; }
.sale-line .sale-code button { padding: 4px 10px; font-size: .72rem; }
.sale-line .sale-when { display: flex; align-items: center; gap: 6px; }
.sale-line .sale-when b { display: inline; min-width: 0; font-size: .85rem; }
.sale-line .sale-dates .icon { width: 18px; height: 18px; }
.sale-line .sale-go { padding: 0; background: none; color: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.sale-line .sale-x { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .sale-art, .sale-poster .sale-what { display: none; }
  .sale-poster .sale-row { min-height: 0; gap: 4px 12px; padding: 8px 44px 8px 12px; }
  .sale-poster .sale-name { max-width: none; font-size: 1rem; text-shadow: none; }
  .sale-poster .sale-big b { font-size: 1.9rem; }
  .sale-poster .sale-big span { font-size: .8rem; }
  .sale-poster .sale-code { display: inline-flex; padding: 3px 3px 3px 10px; border: 1px dashed var(--promo); border-radius: 999px; }
  .sale-poster .sale-code span { display: none; }
  .sale-poster .sale-code code, .sale-poster.sale-bold .sale-code code { padding: 0; background: none; color: inherit; font-size: .85rem; }
  .sale-poster .sale-dates { display: flex; padding-left: 0; border: 0; }
  .sale-poster .sale-dates .icon { width: 18px; height: 18px; }
  .sale-poster .sale-dates b, .sale-poster .sale-when b { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
  .sale-dates span { display: none; }
  .sale-line .sale-row { padding: 6px 40px 6px 12px; }
}

/* Blog authors: the byline under a post's title, the box at its end, and the author pages. */
.avatar { --size: 40px; display: inline-grid; place-items: center; flex: none; width: var(--size); height: var(--size); border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 600 calc(var(--size) * .38)/1 var(--font-sans); letter-spacing: -.02em; object-fit: cover; }
.byline a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-secondary); }
.byline .avatar { font-size: .55rem; }
.prose .author-box { display: flex; gap: 18px; margin: 48px 0 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-1); }
.prose .author-box p { margin: 0; }
.author-kicker { font: 400 .6875rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.prose .author-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; font-size: 1.05rem; font-weight: 600; }
.prose .author-name a { color: var(--ink); text-decoration: none; }
.author-name span, .author-role { font-size: .875rem; font-weight: 400; color: var(--ink-muted); }
.prose .author-bio { margin-top: 8px; font-size: .9375rem; line-height: 1.65; color: var(--ink-secondary); }
.author-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .875rem; }
.prose .author-links { margin-top: 12px; }
.author-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.author-links span { color: var(--ink-muted); }
.author-hero { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.author-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.author-card .card-body { gap: 10px; }
.author-card h2 { margin-top: 6px; font-size: 1.25rem; letter-spacing: -.02em; }
.author-card p { font-size: .9375rem; line-height: 1.65; color: var(--ink-secondary); }
.author-card .author-role { margin-top: -6px; }
@media (max-width: 760px) {
  .author-grid { grid-template-columns: 1fr; }
  .prose .author-box { flex-direction: column; gap: 12px; padding: 18px; }
}

/* The free calculators (lib/tools.js): a card like the hero windows, inputs, the result, and the lines under it. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calc { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--elev-window); }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--border); background: var(--surface-1); font: 400 .75rem/1.5 var(--font-mono); color: var(--ink-muted); }
.calc-cur select, .calc-inline select { height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--bg); color: var(--ink); font: 500 .8125rem var(--font-sans); }
.calc-body { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.calc-two, .calc-three { display: grid; gap: 14px; }
.calc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--ink-secondary); }
.calc-input { display: flex; align-items: center; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--bg); transition: border-color var(--dur-productive) var(--ease-productive); }
.calc-input:focus-within { border-color: var(--ink); }
.calc-input i { padding: 0 0 0 12px; font-style: normal; color: var(--ink-muted); }
.calc-input i:last-child { padding: 0 12px 0 0; }
.calc-input input { flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0 12px 0 6px; border: 0; outline: 0; background: none; color: var(--ink); font: 600 1.0625rem var(--font-sans); font-variant-numeric: tabular-nums; }
.calc-input input:first-child { padding-left: 12px; }
.calc-result { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-control); background: var(--surface-2); }
.calc-result span { font-size: .8125rem; color: var(--ink-secondary); }
.calc-result b { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-more { display: flex; flex-direction: column; gap: 10px; }
.calc-inline { flex-direction: row; align-items: center; justify-content: space-between; }
.calc-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.calc-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .875rem; color: var(--ink-secondary); }
.calc-lines li:last-child { border-bottom: 0; }
.calc-lines b { flex: none; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-lines .good b { color: var(--success-ink); }
.calc-lines .bad b { color: var(--danger-ink); }
.calc-note { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--ink-muted); }
.tool-jump { margin-top: 10px; font-size: .875rem; }
.tool-jump a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cells h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.cells h3 a:hover { text-decoration-color: currentColor; }
/* At the top of a post: a link to its calculator. */
.prose .tool-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 20px 0 28px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-1); color: var(--ink); text-decoration: none; }
.prose .tool-callout:hover { border-color: var(--border-strong); }
.tool-callout-k { font: 400 .6875rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tool-callout-go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .calc-body { padding: 16px; }
  .calc-two, .calc-three { grid-template-columns: 1fr; }
  .calc-result b { font-size: 1.875rem; }
}

