/* Outclass site pages (pricing, legal) and the admin console: same tokens as workspace.css —
   white canvas, white raised cards, one blue. Text-bearing blue uses the deeper step for AA contrast. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F1F2F4; --ink: #111111; --ink-2: #4B5563; --ink-3: #666666;
  --line: #E5E7EB; --accent: #2A6FE0; --accent-hover: #2460C4; --accent-text: #1F5FCC; --accent-ring: #3A83F7; --accent-soft: #DCEAFF;
  --danger: #c4314b; --danger-soft: #FCE8EC; --success: #237a39; --success-soft: #E3F4E7; --warn: #8a5a00; --warn-soft: #FFF3D6;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow-1: 0 0 0 1px rgba(23, 23, 23, 0.07), 0 1px 2px rgba(23, 23, 23, 0.05);
  --shadow-3: 0 0 0 1px rgba(23, 23, 23, 0.09), 0 4px 12px rgba(23, 23, 23, 0.06), 0 16px 40px rgba(23, 23, 23, 0.12);
  --font: Inter, ui-sans-serif, system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: url(/mascot.png) center / contain no-repeat; display: inline-block; flex: none; } /* the mascot (app/mascot.png) */
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- site shell ---------- */
.site { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.site-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-head nav { display: flex; gap: 20px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-head nav a[aria-current] { color: var(--ink); }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.site-foot a { color: var(--ink-2); }
.btn-site { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 500; text-decoration: none; transition: background-color 150ms ease-out, scale 150ms ease-out; }
.btn-site:hover { background: var(--surface-2); }
.btn-primary-site { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary-site:hover { background: var(--accent-hover); }
@media (prefers-reduced-motion: no-preference) { .btn-site:active { scale: 0.97; } }

/* ---------- pricing ---------- */
.pr-hero { text-align: center; padding: 40px 0 28px; }
.pr-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; font-weight: 600; }
.pr-hero p { color: var(--ink-2); max-width: 560px; margin: 12px auto 0; font-size: 16px; }
.pr-empty { text-align: center; padding: 80px 16px; color: var(--ink-2); }
.pr-empty h1 { margin-bottom: 12px; }
/* Monthly / Annual switch: blue track, brushed-silver knob with a dotted grip. No JavaScript: :has() swaps the prices. */
.pr-toggle { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 0 auto 32px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.pr-t-y { color: var(--ink-3); }
.pr-toggle:has(.pr-switch:checked) .pr-t-y { color: var(--ink); font-weight: 500; }
.pr-toggle:has(.pr-switch:not(:checked)) .pr-t-m { color: var(--ink); font-weight: 500; }
.pr-switch {
  appearance: none; position: relative; flex: none; width: 70px; height: 38px; margin: 0; padding: 0; cursor: pointer;
  border-radius: 10px; border: 1px solid #c9ccd2;
  background: linear-gradient(180deg, #e3e5e9, #d3d6db);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 3px #fff, 0 0 0 4px #d5d8dd;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pr-switch:checked { background: linear-gradient(180deg, #3f8cff, #2a6fe0); border-color: #2460c4; }
.pr-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; border-radius: 8px;
  background:
    radial-gradient(circle, rgba(120, 125, 135, 0.55) 1px, transparent 1.4px) center / 6px 6px,
    linear-gradient(160deg, #ffffff, #e6e8ec 55%, #c9ccd2);
  background-clip: content-box, border-box; padding: 7px; box-sizing: border-box;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pr-switch:checked::after { transform: translateX(32px); }
.pr-switch:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 5px; }
.pr-save { padding: 4px 10px; border-radius: 999px; background: #e3f8e8; border: 1px solid #b8ebc5; color: #1d6b34; font-size: 12px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .pr-switch, .pr-switch::after { transition: none; } }
.pr-y { display: none; }
.pr:has(.pr-switch:checked) .pr-y { display: block; }
.pr:has(.pr-switch:checked) .pr-m { display: none; }
.pr-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.pr-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.pr-pop { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 16px; }
.pr-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.pr-featured { box-shadow: 0 0 0 2px var(--accent-ring), 0 8px 24px rgba(23, 23, 23, 0.08); }
.pr-card h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.pr-tag { margin: 0; color: var(--ink-2); min-height: 42px; }
.pr-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.pr-price strong { font-size: 30px; letter-spacing: -0.02em; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-price span { color: var(--ink-3); font-size: 13px; }
.pr-na { color: var(--ink-3); }
.pr-note { margin: 0; font-size: 12px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; }
.pr-list li { padding-left: 22px; position: relative; color: var(--ink-2); }
.pr-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 600; }
/* Billing terms under the plan cards: one quiet row of short points, each with a small check; wraps on phones. */
.pr-fine { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 20px auto 0; padding: 0; max-width: 760px; color: var(--ink-2); font-size: 13px; }
.pr-fine li { display: inline-flex; align-items: center; gap: 6px; }
.pr-fine li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.6 2.6L16 9.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pr-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.pr-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.pr-table th, .pr-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.pr-table th[scope="row"], .pr-table thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.pr-table tr:last-child > * { border-bottom: 0; }
.pr-no { color: var(--ink-3); }
.pr-faq { display: grid; gap: 8px; }
.pr-faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 0 16px; }
.pr-faq summary { padding: 14px 0; font-weight: 500; cursor: pointer; }
.pr-faq p { margin: 0 0 14px; color: var(--ink-2); }

/* ---------- legal ---------- */
.legal-wrap { display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; gap: 32px; margin-top: 24px; align-items: start; }
.legal-nav { position: sticky; top: 24px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: 13px; }
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-nav a[aria-current] { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.legal { margin: 0; padding: 32px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.legal h1 { font-size: 28px; letter-spacing: -0.02em; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal-meta { color: var(--ink-3); font-size: 13px; }
.legal-summary { padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink) !important; }
.legal-history { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; } .legal-nav { position: static; } .legal-nav ul { display: flex; flex-wrap: wrap; gap: 4px; } }
@media (max-width: 600px) { .legal { padding: 20px; } }

/* ---------- admin console ---------- */
.adm { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.adm-side .site-brand { padding: 4px 8px 16px; }
.adm-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font-weight: 500; text-align: left; cursor: pointer; }
.adm-nav:hover { background: var(--surface-2); color: var(--ink); }
.adm-nav[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.adm-who { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.adm-who strong { display: block; color: var(--ink); font-size: 13px; }
.adm-main { min-width: 0; padding: 24px 28px 64px; }
.adm-main > h1 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; }
.adm-sub { color: var(--ink-3); margin: 0 0 20px; }
.card-note { color: var(--ink-3); font-size: 13px; line-height: 1.5; margin: -6px 0 12px; max-width: 72ch; }
.guide { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.55; }
.guide summary { cursor: pointer; font-weight: 600; }
.guide ul { margin: 8px 0 0; padding-left: 20px; max-width: 80ch; }
.guide li + li { margin-top: 4px; }
.plan-now { display: grid; gap: 2px; }
.plan-label { color: var(--ink-3); font-size: 12px; }
.plan-now strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-edit { margin-top: 16px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--accent-ring); }
.plan-edit h3 { font-size: 15px; margin-bottom: 4px; }
.plan-more, .plan-history { margin-top: 14px; }
.plan-more summary, .plan-history summary { cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.plan-more[open] summary, .plan-history[open] summary { margin-bottom: 10px; }
.btn.adm-menu { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi { padding: 14px 16px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.kpi span { display: block; color: var(--ink-3); font-size: 12px; }
.kpi strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi small { color: var(--ink-3); font-size: 12px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px; margin-bottom: 16px; }
.card > h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--ink-3); font-weight: 500; font-size: 12px; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl button.link { border: 0; background: none; padding: 0; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.ava { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--accent-soft); color: var(--accent-text); }
.alerts { display: grid; gap: 6px; margin-bottom: 20px; }
.alert { padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grow { flex: 1; }
.field { display: grid; gap: 4px; font-size: 13px; }
.field > span { color: var(--ink-2); font-weight: 500; }
.field small { color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 0; border-color: transparent; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.muted { color: var(--ink-3); }
.empty { padding: 24px; text-align: center; color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; padding-top: 8px; }
.bars div { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: var(--accent-ring); }
.bars-x { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; margin-top: 4px; }
dialog.adm-dlg { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-3); }
dialog.adm-dlg::backdrop { background: rgba(17, 17, 17, 0.32); }
dialog.adm-dlg h2 { font-size: 17px; margin-bottom: 4px; }
dialog.adm-dlg form { display: grid; gap: 12px; margin-top: 12px; }
.adm-gate { max-width: 420px; margin: 12vh auto; padding: 28px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); display: grid; gap: 14px; }
.adm-gate h1 { font-size: 20px; }
.adm-gate code { word-break: break-all; font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 8px; border-radius: var(--r-sm); display: block; }
.adm-err { color: var(--danger); font-size: 13px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; padding: 10px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--shadow-3); z-index: 10; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 5; translate: -100% 0; transition: translate 200ms ease-out; box-shadow: var(--shadow-3); }
  .adm.nav-open .adm-side { translate: 0 0; }
  .btn.adm-menu { display: inline-flex; margin-bottom: 12px; }
  .adm-main { padding: 16px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { .adm-side { transition: none; } }
.adm-qr { width: 200px; height: 200px; margin: 0 auto; padding: 8px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
.adm-qr svg { width: 100%; height: 100%; display: block; }

/* Headings and the brand name use the landing hero's font. ponytail: !important beats the per-component font shorthands; scope it if a heading ever needs another face. */
:is(h1, h2, h3, .brand, .site-brand, .sb-team) { font-family: "National Park", Inter, ui-sans-serif, system-ui, sans-serif !important; font-weight: 500 !important; letter-spacing: -0.02em; }

/* The wordmark: "outclass" in ink, ".design" in gray, the hero's thin National Park (same as /welcome). */
.wm { font-family: "National Park", Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 400; letter-spacing: -0.02em; }
.wm-d { color: #8a8a91; }

/* Header: Log in matches the landing page's (thin brushed-metal ring, light beam); signed in shows the avatar. */
.site-head nav { align-items: center; }
.site-head nav { gap: 8px; }
/* The light beam on metal rings, run on the compositor: ::before is a square of the ring's conic gradient, twice
   the button's width, spinning behind ::after (the fill, inset to the padding box), so only the 1px border shows it.
   Same look as animating the gradient's start angle (both turn about the box's centre), but that animation
   (@property --beam) repainted every button on the main thread each frame: ~45 ms frames on a mid-range phone.
   An element sets --ring, --fill and optionally --fill-shadow and --beam-s. */
:where(.site-head nav a.metal-btn, .site-head nav a.metal-btn-dark, .site-avatar, .pr-featured .btn-site.btn-primary-site, .pc-main) {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid transparent;
}
:where(.site-head nav a.metal-btn, .site-head nav a.metal-btn-dark, .site-avatar, .pr-featured .btn-site.btn-primary-site, .pc-main)::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--ring); animation: beamSpin var(--beam-s, 3.5s) linear infinite; pointer-events: none;
}
:where(.site-head nav a.metal-btn, .site-head nav a.metal-btn-dark, .site-avatar, .pr-featured .btn-site.btn-primary-site, .pc-main)::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--fill); box-shadow: var(--fill-shadow, none); pointer-events: none;
}
@keyframes beamSpin { to { transform: translate(-50%, -50%) rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { :where(.site-head nav a.metal-btn, .site-head nav a.metal-btn-dark, .site-avatar, .pr-featured .btn-site.btn-primary-site, .pc-main)::before { animation: none; } }
.site-head nav a.metal-btn, .site-head nav a.metal-btn-dark {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: #0a0a0a;
  background: none; animation: none; /* the landing page's hero.css (loaded with the FAQ) has its own repainting beam on .metal-btn */
  --fill: linear-gradient(180deg, #ffffff, #eef0f3);
  --ring: conic-gradient(#c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%);
  --fill-shadow: inset 0 1px 0 #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.site-head nav a.metal-btn-dark {
  color: #fff;
  --fill: linear-gradient(180deg, #3a3a3f, #0a0a0a 55%, #1c1c20);
  --ring: conic-gradient(#6b6f77, #f2f3f5 8%, #44474d 14%, #6b6f77 22%, #6b6f77 50%, #e4e6ea 58%, #3a3d43 64%, #6b6f77 72%);
  --fill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.site-head nav a.site-link { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.site-head nav a.site-link:hover, .site-head nav a.site-link[aria-current] { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .site-head nav a:active { scale: 0.97; } }
.site-avatar {
  display: block; width: 36px; height: 36px; padding: 2px; border-radius: 50%;
  --fill: #fff;
  --ring: conic-gradient(#c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%);
  --beam-s: 12s; /* same beam as Log in, much slower */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.site-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Wordmark the size of the app's top bar: mascot beside "outclass.design". */
.site-head .site-brand { gap: 10px; font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.site-head .brand-mark { width: 32px; height: 24px; border-radius: 0; background: none; object-fit: contain; }
.site-brand .wm-d { color: #8a8a91; }


/* Annual switch: the same brushed-metal ring as the Log in button, standing still. ponytail: an input can't hold the
   spinning ::before (its ::after is the knob), and animating the gradient angle repainted it every frame. */
.pr-switch {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #e3e5e9, #d3d6db) padding-box,
    conic-gradient(from 300deg, #c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%) border-box;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pr-switch:checked {
  background:
    linear-gradient(180deg, #3f8cff, #2a6fe0) padding-box,
    conic-gradient(from 300deg, #c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%) border-box;
}

/* Pro card: the keycaps' colours as a soft mesh inside the card (purple, cream, blue, pink), text stays dark on light. */
.pr-featured {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(139, 110, 245, 0.22), transparent 60%),
    radial-gradient(90% 70% at 100% 0%, rgba(70, 140, 245, 0.22), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(255, 60, 160, 0.16), transparent 60%),
    radial-gradient(100% 80% at 0% 100%, rgba(255, 200, 140, 0.22), transparent 60%),
    #ffffff;
}
/* Choose Pro: white with the Log in button's brushed-metal ring and light beam. */
.pr-featured .btn-site.btn-primary-site {
  color: #0a0a0a; background: none;
  --fill: linear-gradient(180deg, #ffffff, #eef0f3);
  --ring: conic-gradient(#c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%);
  --fill-shadow: inset 0 1px 0 #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Plan cards (alpacalabs-style): blurred keycap banner with a fine dot texture, name + price pill, "What you get" list, full-width pill button. */
.pr-card, .pr-featured { padding: 0; gap: 0; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.05); }
.pr-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-card .pr-head h2 { font-size: 22px; font-weight: 500; margin: 0; }
.pr-card .pr-tag { margin: 12px 0 0; min-height: 0; color: var(--ink-2); line-height: 1.5; }
.pr-get { margin: 26px 0 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.pr-card .pr-list { gap: 12px; margin-bottom: 32px; }
.pr-card .pr-list li { padding-left: 26px; color: var(--ink-2); }
.pr-card .pr-list li::before { content: ""; top: 2px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.6 2.6L16 9.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pr-cta { margin-top: auto; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pr-card:not(.pr-featured) .pr-cta { background: #2b2b2b; color: #fff; border: 0; }
.pr-y, .pr-m { display: inline; }
.pr-y { display: none; }
.pr:has(.pr-switch:checked) .pr-y { display: inline; }

/* Compact: the whole top of the pricing page fits at 100% zoom. */
.site-pricing .site-head { padding: 14px 0; }
.site-pricing .pr-hero { padding: 20px 0 16px; }
.site-pricing .pr-hero h1 { font-size: clamp(26px, 3vw, 34px); }
.site-pricing .pr-hero p { margin-top: 8px; font-size: 15px; }
.site-pricing .pr-toggle { margin-bottom: 20px; }
.site-pricing { max-width: 1200px; }
.pr-body { padding: 16px 20px 20px; }
.pr-card .pr-head h2 { font-size: 20px; }
.pr-card .pr-tag { margin-top: 8px; font-size: 14px; }
.pr-get { margin: 16px 0 10px; }
.pr-card .pr-list { gap: 9px; margin-bottom: 20px; font-size: 14px; }
.pr-cta { height: 40px; font-size: 14px; }

/* Banners: soft abstract art that fades into the card (no image). Pro: lime silk waves. Free: a lavender glass drop with ripples. */
  background:
    linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, 0.55) 34%, transparent 46%),
    linear-gradient(118deg, transparent 52%, rgba(255, 255, 255, 0.35) 60%, transparent 70%),
    radial-gradient(70% 90% at 82% 110%, rgba(63, 98, 18, 0.45), transparent 70%),
    radial-gradient(60% 80% at 10% -10%, #f7fee7, transparent 70%),
    linear-gradient(160deg, #ecfccb 0%, #d9f99d 30%, #a3e635 62%, #65a30d 100%);
}
  background:
    radial-gradient(circle at 56% 40%, rgba(255, 255, 255, 0.95) 0 3%, rgba(221, 214, 254, 0.9) 7%, rgba(167, 139, 250, 0.85) 15%, rgba(139, 92, 246, 0.35) 19%, transparent 21%),
    repeating-radial-gradient(ellipse 120% 60% at 56% 62%, rgba(255, 255, 255, 0.5) 0 1.5px, transparent 2px 14px),
    radial-gradient(80% 90% at 56% 50%, #ddd6fe, transparent 75%),
    linear-gradient(180deg, #f5f3ff, #e9e5ff);
}
  background:
    radial-gradient(120% 70% at 30% 130%, transparent 48%, rgba(255, 255, 255, 0.6) 52%, transparent 58%),
    radial-gradient(130% 80% at 75% 140%, transparent 50%, rgba(255, 255, 255, 0.45) 54%, transparent 60%),
    radial-gradient(90% 120% at 95% 100%, #3f6212, transparent 65%),
    radial-gradient(70% 100% at 0% 0%, #f7fee7, transparent 65%),
    linear-gradient(150deg, #d9f99d 0%, #bef264 35%, #84cc16 70%, #4d7c0f 100%);
}
  background:
    radial-gradient(circle at 56% 38%, #ffffff 0 2.5%, #ede9fe 6%, #c4b5fd 12%, #8b5cf6 17%, rgba(139, 92, 246, 0) 18.5%),
    radial-gradient(60% 22% at 56% 62%, rgba(139, 92, 246, 0.25), transparent 70%),
    repeating-radial-gradient(ellipse 140% 50% at 56% 64%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px 12px),
    linear-gradient(180deg, #ede9fe, #ddd6fe 70%, #f5f3ff);
}
/* No drop: just the ripple lines, on both banners. */
  background:
    repeating-radial-gradient(ellipse 140% 50% at 56% 64%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px 12px),
    linear-gradient(180deg, #ede9fe, #ddd6fe 70%, #f5f3ff);
}
  background:
    repeating-radial-gradient(ellipse 140% 50% at 56% 64%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px 12px),
    radial-gradient(90% 120% at 95% 100%, #3f6212, transparent 65%),
    radial-gradient(70% 100% at 0% 0%, #f7fee7, transparent 65%),
    linear-gradient(150deg, #d9f99d 0%, #bef264 35%, #84cc16 70%, #4d7c0f 100%);
}


/* Cookie Policy: reopens the analytics choice (CookieConsent.tsx). */
.cookie-settings { margin-top: 8px; height: 36px; padding: 0 16px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; color: #0a0a0a; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.cookie-settings:focus-visible { outline: 2px solid #2e74e6; outline-offset: 2px; }

/* ---------- blog (/blog, /blog/<slug>) ---------- */
.blog-hero { padding: 40px 0 28px; max-width: 720px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; font-weight: 600; }
.blog-hero p { color: var(--ink-2); margin: 12px 0 0; font-size: 16px; }
.blog-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 12px; }
.blog-card { display: block; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow 150ms ease-out; }
.blog-card:hover { box-shadow: var(--shadow-3); }
.blog-card h2, .blog-card h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.blog-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.blog-meta { display: block; margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.post { max-width: 720px; margin: 24px auto 0; }
.post-crumbs { font-size: 14px; margin-bottom: 16px; }
.post-crumbs a { color: var(--ink-2); text-decoration: none; }
.post-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.post h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.post-lede { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.post-body { margin-top: 32px; font-size: 17px; line-height: 1.7; }
.post-body h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; margin: 40px 0 12px; scroll-margin-top: 16px; }
.post-body h3 { font-size: 19px; line-height: 1.35; margin: 28px 0 8px; scroll-margin-top: 16px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; color: #333; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-cta { margin: 48px 0 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface-2); }
.post-cta h2 { font-size: 22px; letter-spacing: -0.015em; }
.post-cta p { margin: 8px 0 18px; color: var(--ink-2); font-size: 16px; }
.post-more { margin: 56px auto 0; max-width: 720px; }
.post-more h2 { font-size: 20px; margin-bottom: 16px; }
@media (max-width: 600px) { .blog-card { padding: 16px 18px; } .post-body { font-size: 16px; } .post-cta { padding: 20px; } }
.post-table { margin: 0 0 24px; overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post-table th, .post-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.post-table tbody th { font-weight: 500; color: var(--ink); }
.post-table td { color: #333; }
.post-table tr:last-child > * { border-bottom: 0; }
/* Header on small phones: brand, Pricing and Log in / Open app on one row (the ".design" suffix, Blog and Compare
   drop; the footer links them). */
.site-head nav a { white-space: nowrap; }
@media (max-width: 440px) {
  .site-head nav { gap: 4px; }
  .site-head nav a[href="/blog"], .site-head nav a[href="/compare"] { display: none; }
  .site-head nav a.metal-btn, .site-head nav a.metal-btn-dark { padding: 0 12px; }
  .site-head .wm-d { display: none; }
}
/* Inline code in posts and product pages (commands, file names): wraps anywhere so long commands never widen a phone. */
.post-body code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.post-body pre { margin: 20px 0; padding: 16px 18px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.post-body pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }

/* Figures in posts (app/blog/Prose.tsx): real screens made in the product. Phone screens are tall, so one alone
   is capped in width and several sit in a row that scrolls sideways on narrow screens. */
.post-fig { margin: 24px 0; }
.post-fig a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); background: var(--surface-2); }
.post-fig a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.post-fig img { display: block; width: 100%; height: auto; }
.post-fig-tall { max-width: 300px; margin-left: auto; margin-right: auto; }
.post-fig figcaption { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; text-align: center; }
.post-shots { display: flex; gap: 16px; margin: 24px 0; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.post-shots:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 14px; }
.post-shots .post-fig { flex: 1 0 200px; max-width: 260px; margin: 0; scroll-snap-align: start; }
.post-shots .post-fig:not(.post-fig-tall) { flex-basis: 420px; max-width: none; }
.post-shots figcaption { font-size: 13px; }
/* A design prompt with its Copy and Try buttons. */
.post-prompt { margin: 24px 0; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.post-prompt-label { margin: 0 0 8px !important; color: var(--ink-2) !important; font-size: 13px; font-weight: 600; }
.post-prompt pre { margin: 0; padding: 0; background: none; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 16px; line-height: 1.6; }
.post-prompt pre code { font-family: inherit; color: var(--ink); }
.post-prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 !important; }
.post-prompt-actions .btn-site { font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
/* Jump links under the lede of a long post. */
.post-toc { margin: 28px 0 0; padding: 18px 22px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.post-toc h2 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.post-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; line-height: 1.5; }
.post-toc li { margin-bottom: 6px; break-inside: avoid; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }
.blog-meta a { color: inherit; }
@media (max-width: 600px) { .post-toc ol { columns: 1; } }

/* Team banner, and the "use the AI you already pay for" box on paid plans. */
.pr-card .pr-list { flex: none; }
.pr-byo { margin: -16px 0 24px; padding: 14px; border-radius: 14px; background: #f7f8fa; border: 1px solid var(--line); }
.pr-byo p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pr-byo strong { color: var(--ink); font-weight: 600; }
.pr-byo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pr-byo li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.pr-seats { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #f7f8fa; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pr-seats strong, .pr-card .pr-list strong { color: var(--ink); font-weight: 600; }

/* Plan tray: the three plans sit in one soft tray. Free lies flat in it; paid plans are raised white cards with
   an icon tile, a big price (lighter currency sign), dot bullets and rounded-rect buttons. */
.pr-hero h1 { font-weight: 400; letter-spacing: -0.03em; }
.pr-hero h1 strong { font-weight: 650; }
.pr-toggle { padding: 6px 8px 6px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 17, 17, 0.04); font-size: 14px; }
.pr-cards { max-width: 1080px; margin: 0 auto; padding: 8px; gap: 8px; border-radius: 28px; background: #eef1f6; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pr-card, .pr-featured { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 30px -12px rgba(17, 17, 17, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pr-card.pr-card-free { background: transparent; box-shadow: none; }
@media (hover: hover) { .pr-card:not(.pr-card-free):hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.07), 0 2px 4px rgba(17, 17, 17, 0.04), 0 18px 38px -14px rgba(17, 17, 17, 0.18); } }
.pr-body { padding: 24px; }
.pr-head { justify-content: flex-start; gap: 10px; }
.pr-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 17, 17, 0.05); }
.pr-card .pr-head h2 { font-size: 17px; font-weight: 500; }
.pr-head .pr-pop { margin-left: auto; padding: 3px 9px; background: #111; color: #fff; font-size: 11.5px; }
.pr-price-row { margin: 22px 0 0; }
.pr-amt { display: inline-flex; align-items: baseline; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-cur { margin-right: 1px; font-weight: 300; color: var(--ink-3); }
.pr-per { margin-left: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
/* Sale (lib/sale.ts): list prices until the code is applied, then <html data-sale="on"> (pricing.js) swaps them. */
.pr-deal, :root[data-sale="on"] .pr-reg, .pr-code-on, :root[data-sale="on"] .pr-code-off { display: none; }
:root[data-sale="on"] span.pr-deal { display: inline; }
:root[data-sale="on"] p.pr-deal { display: block; }
:root[data-sale="on"] .pr-code-on { display: inline-flex; }
.pr-code { display: inline-flex; align-items: center; min-height: 32px; margin: 12px 0 0; padding: 0 4px 0 12px; border: 1px dashed #b9bcc4; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.pr-code:hover { border-color: var(--ink); }
.pr-code:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-code strong { font-weight: 600; letter-spacing: 0.02em; }
.pr-code-off, .pr-code-on { align-items: center; gap: 6px; }
.pr-code-off { display: inline-flex; }
.pr-code-go { margin-left: 4px; padding: 4px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 500; }
:root[data-sale="on"] .pr-code { padding: 0 12px; border: 1px solid #b8ebc5; background: #e3f8e8; color: #1d6b34; cursor: default; }
.pc-row.pc-row-ok span, .pc-row.pc-row-ok strong { color: #1d6b34; }
.pr-was { margin-left: 10px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.pr-amt.pr-na { font-size: 15px; color: var(--ink-3); }
.pr-card .pr-tag { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.pr-seats { font-size: 13px; color: var(--ink-2); }
.pr-get { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pr-card-free .pr-get { border-top-color: rgba(17, 17, 17, 0.08); }
.pr-card .pr-list { gap: 10px; }
.pr-card .pr-list li { padding-left: 20px; font-size: 13.5px; color: var(--ink); }
.pr-card .pr-list li strong { font-weight: 500; }
.pr-card .pr-list li::before { top: 7px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #b5c3e3; box-shadow: 0 0 0 3px #e6ebf6; }
.pr-byo { margin: -12px 0 24px; border-radius: 12px; }
.pr-cta { gap: 6px; height: 42px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: filter 0.15s, background-color 0.15s; }
.pr-card.pr-card-free .pr-cta { color: #fff; background: linear-gradient(180deg, #2a2a2e, #0a0a0a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 14px -6px rgba(0, 0, 0, 0.35); }
.pr-card.pr-card-free .pr-cta:hover { filter: brightness(1.2); }
.pr-card.pr-card-team .pr-cta { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05); }
.pr-card.pr-card-team .pr-cta:hover { background: #f7f8fa; }
@media (prefers-reduced-motion: reduce) { .pr-card, .pr-featured, .pr-cta { transition: none; } .pr-card:not(.pr-card-free):hover { transform: none; } }

/* Pricing sky: a blue sky behind the top of the page that fades into the white page, with three cloud layers
   drifting at different speeds (puffs, wisps, a low bank). CSS only. Text on it stays dark for contrast. */
.pr-sky { position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 1500px; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #6f9ad0 0%, #8fb3df 30%, #bcd3ee 58%, #e4edf8 82%, var(--bg) 100%); }
.pr-sky i { position: absolute; inset: -10% -30%; filter: blur(26px); will-change: transform; animation: prDrift 110s linear infinite alternate; }
/* Puffs: fractal noise mapped to white (alpha from the noise), a 1600px tile that loops without a seam. */
.pr-sky i:nth-child(1) { inset: 0 auto 0 0; width: calc(100% + 1600px); opacity: 0.9; filter: blur(1.5px); animation: prLoop 260s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0028 0.0062' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.6 0 0 0 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E") 0 0 / 1600px 900px repeat-x;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); }
@keyframes prLoop { to { transform: translate3d(-1600px, 0, 0); } }
.pr-sky i:nth-child(2) { opacity: 0.7; animation-duration: 160s; animation-direction: alternate-reverse; background:
  radial-gradient(26% 2.5% at 30% 26%, rgba(255, 255, 255, 0.7), transparent 70%),
  radial-gradient(22% 2% at 72% 30%, rgba(255, 255, 255, 0.6), transparent 70%),
  radial-gradient(30% 3% at 46% 52%, rgba(255, 255, 255, 0.55), transparent 70%),
  radial-gradient(20% 2.5% at 86% 60%, rgba(255, 255, 255, 0.5), transparent 70%),
  radial-gradient(24% 2.5% at 14% 66%, rgba(255, 255, 255, 0.5), transparent 70%); }
.pr-sky i:nth-child(3) { opacity: 0.95; filter: blur(34px); animation-duration: 220s; background:
  radial-gradient(40% 12% at 50% 78%, rgba(255, 255, 255, 0.9), transparent 70%),
  radial-gradient(28% 10% at 14% 74%, rgba(255, 255, 255, 0.8), transparent 70%),
  radial-gradient(28% 10% at 86% 72%, rgba(255, 255, 255, 0.8), transparent 70%); }
@keyframes prDrift { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 0, 0); } }

/* Text over the sky: darker than the white-page tones so it keeps 4.5:1 on the blue. */
.site-pricing .site-head nav a.site-link, .site-pricing .site-brand .wm-d { color: #1c2a3d; }
.site-pricing .pr-hero h1 { color: #0b1626; }
.site-pricing .pr-hero p { color: #1f2d40; }

/* Glass tray: frosted white over the sky. Free sits in the glass; on wide screens Pro and Team join into one
   white panel (as in the reference), so they lose their own shadows and the hover lift. */
.pr-cards { background: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 60px -24px rgba(25, 55, 105, 0.35); }
.pr-card-free .pr-tag, .pr-card-free .pr-get, .pr-card-free .pr-per, .pr-card-free .pr-cur { color: #34404f; }
.pr-card-free .pr-ico { background: rgba(255, 255, 255, 0.7); }
.pr-card-free .pr-get { border-top-color: rgba(17, 17, 17, 0.12); }
@media (min-width: 900px) {
  .pr-cards { gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-cards .pr-card-pro { border-radius: 20px 0 0 20px; box-shadow: none; }
  .pr-cards .pr-card-team { border-radius: 0 20px 20px 0; box-shadow: none; }
  .pr-cards .pr-card-team .pr-body { border-left: 1px dashed var(--line); }
  .pr-card:not(.pr-card-free):hover { transform: none; box-shadow: none; }
}

/* Entrance: the hero rises in, then the tray, then each plan comes into focus out of a blur, one after another. */
@keyframes prRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes prFocus { from { opacity: 0; filter: blur(14px); transform: translateY(8px); } }
/* The headline and its line (the page's Largest Contentful Paint) only rise: text that fades in from opacity 0 is
   counted as painted at a later main-thread frame, which held LCP to ~2.9 s on a mid-range phone. */
@keyframes prLift { from { transform: translateY(10px); } }
.pr-hero h1 { animation: prLift 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-hero p { animation: prLift 0.7s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-toggle { animation: prRise 0.7s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-cards { animation: prRise 0.8s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-cards .pr-body { animation: prFocus 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pr-card:nth-child(1) .pr-body { animation-delay: 0.35s; }
.pr-card:nth-child(2) .pr-body { animation-delay: 0.5s; }
.pr-card:nth-child(3) .pr-body { animation-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) { .pr-sky i, .pr-hero h1, .pr-hero p, .pr-toggle, .pr-cards, .pr-cards .pr-body { animation: none; } }

/* Price ticker: each digit rolls up into place, one after another, when a price appears (load, Monthly/Annual). */
.pr-digits { display: inline-flex; overflow: hidden; padding-block: 0.06em; }
.pr-dg { display: inline-block; animation: prTick 0.6s calc(var(--i) * 55ms) cubic-bezier(0.2, 0.9, 0.2, 1) both; }
@keyframes prTick { from { transform: translateY(105%); opacity: 0; filter: blur(3px); } 55% { opacity: 1; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) { .pr-dg { animation: none; } }

/* Pricing checkout dialog (public/pricing.js): one white sheet, rows for the charge, the metal pill for the main action. */
.pc { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow-3); }
.pc::backdrop { background: rgba(10, 16, 28, 0.38); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.pc-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pc-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
.pc-x:hover { background: var(--surface-2); }
.pc-body { padding: 14px 20px 20px; }
.pc-form { display: grid; gap: 14px; }
.pc-rows { display: grid; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.pc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; }
.pc-row + .pc-row { border-top: 1px solid var(--line); }
.pc-row span { color: var(--ink-2); }
.pc-row strong { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.pc-note { margin: 0; color: var(--ink-2); font-size: 13px; }
.pc-ok { color: var(--success); font-size: 14px; }
.pc-err { margin: 0; color: var(--danger); font-size: 13px; }
.pc-err:empty { display: none; }
.pc-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.pc-input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pc-check input { margin: 2px 0 0; width: 16px; height: 16px; flex: none; accent-color: #111; }
.pc-code { display: flex; gap: 8px; }
.pc-code .pc-input { text-transform: uppercase; }
.pc-code .pc-btn { min-height: 38px; }
.pc-stepper { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 3px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.pc-stepper output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-step { width: 32px; height: 32px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 18px; cursor: pointer; }
.pc-step:disabled { opacity: 0.4; cursor: default; }
.pc-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pc-body > .pc-actions { margin-top: 16px; }
.pc-body > * + * { margin-top: 12px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 500; text-decoration: none; cursor: pointer; }
.pc-quiet { background: none; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pc-quiet:hover { background: var(--surface-2); }
.pc-main { color: #0a0a0a; background: none;
  --fill: linear-gradient(180deg, #ffffff, #eef0f3);
  --ring: conic-gradient(#c9ccd2, #f7f8fa 8%, #8d929b 14%, #c9ccd2 22%, #c9ccd2 50%, #ffffff 58%, #7d828b 64%, #c9ccd2 72%);
  --fill-shadow: inset 0 1px 0 #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.pc-main:disabled { cursor: progress; opacity: 0.7; }
.pc-wait { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--ink-2); }
.pc-spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: pcSpin 0.8s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pc-main, .pc-spin { animation: none; } }
@media (max-width: 480px) { .pc-actions .pc-btn { flex: 1; } }

/* Topic illustration under a post or feature lede (app/Cover.tsx). */
.post-cover { display: block; width: 100%; height: auto; margin: 28px 0 8px; }
