/* ==========================================================================
   Mint — theme stylesheet
   Plain CSS. No build step. Tokens on :root; dark mode via prefers-color-scheme
   (and [data-theme] for an explicit override). Fonts: system only.
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* type */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px;
  --lh: 1.5; --lh-tight: 1.25;

  /* surfaces + ink */
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --surface-3: #e2e7e4;
  --border: #d9dedb;
  --border-strong: #b7bfbb;
  --text: #171c1a;
  --text-2: #3b423f;
  --muted: #5b6561;
  --on-accent: #ffffff;

  /* brand accent: mint */
  --accent: #0f7b5c;
  --accent-hover: #0c654b;
  --accent-active: #09503b;
  --accent-soft: #e1f3ea;
  --accent-text: #0b6148;

  /* semantic */
  --danger: #b42318;
  --danger-hover: #981d13;
  --danger-soft: #fbe9e7;
  --danger-text: #9a1d14;
  --success-soft: #e1f3e8;
  --success-text: #0f5c38;
  --warn-soft: #fbefd4;
  --warn-text: #7a4a00;
  --info-soft: #e4ecfa;
  --info-text: #2d4f9e;
  --focus: #0f7b5c;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(20,30,26,.06);
  --shadow-2: 0 1px 2px rgba(20,30,26,.05), 0 6px 20px -8px rgba(20,30,26,.18);
  --shadow-3: 0 12px 40px -12px rgba(20,30,26,.28);
  --stripe-a: #eef1ef;
  --stripe-b: #e4e9e6;

  /* radius */
  --r-sm: 4px; --r: 6px; --r-md: 10px; --r-lg: 14px; --r-full: 999px;

  /* spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* layout + controls */
  --container: 1120px;
  --topbar-h: 56px;
  --ctl-h: 38px;
  --ctl-h-sm: 30px;
  --card-pad: var(--s-5);
  --cell-pad: 12px 16px;
}
@media (prefers-color-scheme: dark) { :root {
  color-scheme: dark;
  --bg: #121615;
  --surface: #1a1f1d;
  --surface-2: #222826;
  --surface-3: #2c332f;
  --border: #2e3532;
  --border-strong: #475049;
  --text: #e7ebe9;
  --text-2: #c3cac6;
  --muted: #9ba5a0;
  --on-accent: #06251b;
  --accent: #4bd0a0;
  --accent-hover: #65d9ae;
  --accent-active: #3bbd8c;
  --accent-soft: #163229;
  --accent-text: #74ddba;
  --danger: #f27f72;
  --danger-hover: #f59a90;
  --danger-soft: #3a1f1c;
  --danger-text: #f5a39a;
  --success-soft: #17301f;
  --success-text: #7fdcaa;
  --warn-soft: #3a2d12;
  --warn-text: #f0c46a;
  --info-soft: #1d2a44;
  --info-text: #a3bcf2;
  --focus: #74ddba;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-3: 0 16px 48px -12px rgba(0,0,0,.7);
  --stripe-a: #222826;
  --stripe-b: #1d2321;
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121615;
  --surface: #1a1f1d;
  --surface-2: #222826;
  --surface-3: #2c332f;
  --border: #2e3532;
  --border-strong: #475049;
  --text: #e7ebe9;
  --text-2: #c3cac6;
  --muted: #9ba5a0;
  --on-accent: #06251b;
  --accent: #4bd0a0;
  --accent-hover: #65d9ae;
  --accent-active: #3bbd8c;
  --accent-soft: #163229;
  --accent-text: #74ddba;
  --danger: #f27f72;
  --danger-hover: #f59a90;
  --danger-soft: #3a1f1c;
  --danger-text: #f5a39a;
  --success-soft: #17301f;
  --success-text: #7fdcaa;
  --warn-soft: #3a2d12;
  --warn-text: #f0c46a;
  --info-soft: #1d2a44;
  --info-text: #a3bcf2;
  --focus: #74ddba;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-3: 0 16px 48px -12px rgba(0,0,0,.7);
  --stripe-a: #222826;
  --stripe-b: #1d2321;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --surface-3: #e2e7e4;
  --border: #d9dedb;
  --border-strong: #b7bfbb;
  --text: #171c1a;
  --text-2: #3b423f;
  --muted: #5b6561;
  --on-accent: #ffffff;
  --accent: #0f7b5c;
  --accent-hover: #0c654b;
  --accent-active: #09503b;
  --accent-soft: #e1f3ea;
  --accent-text: #0b6148;
  --danger: #b42318;
  --danger-hover: #981d13;
  --danger-soft: #fbe9e7;
  --danger-text: #9a1d14;
  --success-soft: #e1f3e8;
  --success-text: #0f5c38;
  --warn-soft: #fbefd4;
  --warn-text: #7a4a00;
  --info-soft: #e4ecfa;
  --info-text: #2d4f9e;
  --focus: #0f7b5c;
  --shadow-1: 0 1px 2px rgba(20,30,26,.06);
  --shadow-2: 0 1px 2px rgba(20,30,26,.05), 0 6px 20px -8px rgba(20,30,26,.18);
  --shadow-3: 0 12px 40px -12px rgba(20,30,26,.28);
  --stripe-a: #eef1ef;
  --stripe-b: #e4e9e6;
}

/* Per-app accent. One class per app (.app-<slug> { --app-accent: … }), decoration
   only (icon tile, gallery ring). The classes are not written here: Mint serves
   them from /apps.css, built from the accent colour set on each product. */

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs)/var(--lh) var(--font-sans);
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
  min-width: 320px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); margin: 0 0 var(--s-3); font-weight: 600; letter-spacing: -0.01em; text-wrap: pretty; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-md); } h3 { font-size: var(--fs); }
p { margin: 0 0 var(--s-3); text-wrap: pretty; } p:last-child { margin-bottom: 0; }
a { color: var(--accent-text); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--accent-text); text-decoration: underline; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.2em; }
img, svg { display: block; max-width: 100%; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i-sm { width: 18px; height: 18px; }
code, kbd, .key, .mono { font-family: var(--font-mono); font-size: 0.93em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent-soft); color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.stack { display: grid; gap: var(--s-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. TOP BAR + NAV ------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); height: var(--topbar-h); display: flex; align-items: center; gap: var(--s-8); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.brand .brand-tag { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text-2); padding: 6px 10px; border-radius: var(--r); font-weight: 500; white-space: nowrap; font-size: var(--fs-sm); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: var(--s-2); }

/* 4. LAYOUT -------------------------------------------------------------- */
.main { max-width: var(--container); margin: 0 auto; padding: var(--s-8) var(--s-6) var(--s-16); }
.main-narrow { max-width: 720px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); margin: var(--s-1) 0 0; max-width: 60ch; }
.page-head .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.crumb { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.crumb li { display: inline-flex; align-items: center; gap: var(--s-2); }
.crumb li + li::before { content: "/"; color: var(--border-strong); }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--text); }
.crumb [aria-current="page"] { color: var(--text); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-4); }
.section { margin-bottom: var(--s-10); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.section-head h2 { margin: 0; }
.site-foot { border-top: 1px solid var(--border); padding: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.site-foot-in { max-width: var(--container); margin: 0 auto; display: flex; gap: var(--s-6); flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); } .site-foot a:hover { color: var(--text); }

/* 5. CARDS, TILES, FACTS -------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--card-pad); box-shadow: var(--shadow-1); }
.card + .card { margin-top: var(--s-4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.card-head h2, .card-head h3 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: var(--s-4) var(--s-5); margin: 0; border-bottom: 1px solid var(--border); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-1); min-width: 0; }
.tile-label { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-1); }
.tile-value { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.tile-delta { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-1); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--s-4) var(--s-6); margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* 6. BUTTONS ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--ctl-h); padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--text); font: 500 var(--fs-sm)/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; -webkit-user-select: none; user-select: none; }
.btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn:active { background: var(--surface-3); }
.btn svg.i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-active); }
.btn-danger { color: var(--danger-text); border-color: var(--danger); background: var(--surface); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
:root[data-theme="dark"] .btn-danger:hover { color: #1a0b09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger:hover { color: #1a0b09; } }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { height: var(--ctl-h-sm); padding: 0 10px; font-size: var(--fs-xs); gap: 6px; }
.btn-sm svg.i { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 0; width: var(--ctl-h); } .btn-sm.btn-icon { width: var(--ctl-h-sm); }

/* 7. FORMS --------------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .error { font-size: var(--fs-xs); color: var(--danger-text); }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="file"], select, textarea {
  width: 100%; height: var(--ctl-h); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text); font: 400 var(--fs)/1.3 var(--font-sans); transition: border-color .12s;
}
input[type="file"] { padding: 6px 12px; line-height: 1; }
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: var(--lh); resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 0; box-shadow: none; }
input[aria-invalid="true"] { border-color: var(--danger); }
input.mono, .field-key input { font-family: var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-4) var(--s-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--border); flex-wrap: wrap; }
.filters { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-6); }
.filter-search { position: relative; flex: 1 1 240px; max-width: 420px; }
.filter-search input { padding-left: 38px; }
.filter-search svg.i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.filters select { width: auto; min-width: 140px; }
.upload { border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--s-5); display: grid; gap: var(--s-3); background: var(--surface-2); }
.upload-row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); flex-wrap: wrap; }
.progress { height: 6px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s; }

/* 8. CHIPS, PILLS, NOTICES, TABS ----------------------------------------- */
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-h-sm); padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { color: var(--muted); font-weight: 400; } .chip.is-active .count, .chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; line-height: 1; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active, .pill-paid, .pill-stable { background: var(--success-soft); color: var(--success-text); }
.pill-revoked, .pill-failed { background: var(--danger-soft); color: var(--danger-text); }
.pill-unpaid, .pill-pending { background: var(--warn-soft); color: var(--warn-text); }
.pill-beta { background: var(--info-soft); color: var(--info-text); }
.pill-plain::before { display: none; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); color: var(--text); margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.notice svg.i { width: 20px; height: 20px; margin-top: 1px; }
.notice strong { font-weight: 600; }
.notice-success { background: var(--success-soft); border-color: transparent; color: var(--success-text); }
.notice-error { background: var(--danger-soft); border-color: transparent; color: var(--danger-text); }
.notice .btn { margin-left: auto; }
.tabs { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--border); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 2px; color: var(--muted); font: 500 var(--fs-sm)/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* 9. TABLES -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 600; font-size: var(--fs-xs); color: var(--muted); padding: var(--cell-pad); border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.table td { padding: var(--cell-pad); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; }
.table .key { font-size: var(--fs-xs); }
.table td.actions, .table th.actions { text-align: right; white-space: nowrap; }
.table a { color: var(--text); font-weight: 500; } .table a:hover { color: var(--accent-text); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--border); }
.card .table-wrap { border: 0; border-radius: 0; box-shadow: none; }

/* 10. MONO / KEYS / PRICES ------------------------------------------------ */
.key { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: .04em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px 7px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; color: var(--text); }
.key-lg { font-size: var(--fs-md); padding: 8px 12px; letter-spacing: .06em; }
.page-head h1 .key { white-space: nowrap; flex: none; }
.page-head h1.row { line-height: 1.4; }
.hash { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.price, .product-price { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.price-lg { font-size: var(--fs-2xl); line-height: 1; }
.price .was { font-weight: 400; color: var(--muted); text-decoration: line-through; font-size: .7em; margin-left: 6px; }
.price-note { font-size: var(--fs-sm); color: var(--muted); }

/* 11. APP ICON TILE, CHIP, CATALOGUE CARDS -------------------------------- */
.app-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.app-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.app-icon-sm { width: 32px; height: 32px; border-radius: 8px; } .app-icon-sm svg { width: 18px; height: 18px; }
.app-icon-lg { width: 80px; height: 80px; border-radius: 20px; } .app-icon-lg svg { width: 40px; height: 40px; }
[class*="app-"] .app-icon, .app-icon[style*="--app-accent"] { color: var(--app-accent, var(--text-2)); background: color-mix(in oklab, var(--app-accent, var(--text-2)) 11%, var(--surface)); border-color: color-mix(in oklab, var(--app-accent, var(--text-2)) 24%, var(--border)); }
.product-card { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr auto; gap: var(--s-2) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5); color: var(--text); box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; min-width: 0; }
.product-card:hover { text-decoration: none; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.product-card .app-icon { grid-row: 1 / 3; }
.product-card h3 { margin: 0; font-size: var(--fs); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.product-card .summary { margin: 0; color: var(--muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.product-card .product-price { color: var(--text); font-size: var(--fs); }
.featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s-3); }
.featured .product-card { grid-template-rows: auto 1fr auto; padding: var(--s-4); }
.featured .product-card .summary { -webkit-line-clamp: 1; }
.featured .product-card .meta { display: none; }
.featured .product-card .product-price { grid-column: 2; font-size: var(--fs-sm); align-self: end; }
.cat { font-size: var(--fs-xs); color: var(--muted); }

/* 12. APP PAGE ----------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-10); align-items: start; }
.product-layout aside { position: sticky; top: calc(var(--topbar-h) + var(--s-6)); }
.product-head { display: flex; gap: var(--s-5); align-items: flex-start; margin-bottom: var(--s-6); }
.product-head h1 { margin: 0 0 var(--s-1); display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.product-head .summary { color: var(--muted); font-size: var(--fs-md); margin: 0 0 var(--s-3); }
.gallery { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }
.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--r-md); border: 1px solid var(--border); overflow: hidden; background: var(--surface-2); }
.gallery-thumbs { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gallery-thumbs a, .gallery-thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: var(--r); border: 2px solid transparent; outline-offset: 2px; overflow: hidden; background: var(--surface-2); padding: 0; cursor: pointer; }
.gallery-thumbs .is-active, .gallery-thumbs [aria-current="true"] { border-color: var(--app-accent, var(--accent)); }
.shot { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-xs); text-align: center; padding: var(--s-3); }
.prose { max-width: 68ch; } .prose h2 { margin-top: var(--s-8); } .prose li { margin-bottom: 4px; }
.terms { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); font-size: var(--fs-sm); }
.terms h3 { font-size: var(--fs-sm); margin-bottom: var(--s-2); }
.terms ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.terms li { display: flex; gap: var(--s-2); align-items: flex-start; }
.terms li svg.i { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.buy-box .price-lg { margin-bottom: 2px; }
.buy-box .btn + .btn { margin-top: var(--s-2); }
.buy-box .facts { margin-top: var(--s-5); }
.release { padding: var(--s-4) 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); }
.release:last-child { border-bottom: 1px solid var(--border); }
.release .ver { font-weight: 600; } .release .date { font-size: var(--fs-xs); color: var(--muted); }
.release ul { margin: 0; font-size: var(--fs-sm); }

/* 13. AUTH, LICENCE, CHECKOUT, ORDER ------------------------------------- */
.auth-card { max-width: 440px; margin: var(--s-10) auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-8); box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: var(--fs-lg); }
.auth-card .stack { margin-top: var(--s-5); }
.key-once { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--accent-soft); color: var(--text); margin-bottom: var(--s-6); }
.key-once h2 { margin: 0; font-size: var(--fs-md); color: var(--accent-text); }
.key-once .key-row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.key-once .key { background: var(--surface); flex: 1 1 280px; }
.key-once p { font-size: var(--fs-sm); color: var(--text-2); }
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--border); }
.pc-list li:first-child { border-top: 0; }
.pc-list .name { font-weight: 500; } .pc-list .detail { font-size: var(--fs-xs); color: var(--muted); }
.pc-list .btn { margin-left: auto; }
.pc-list svg.i { color: var(--muted); }
.status-hero { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) 0 var(--s-5); }
.status-hero .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.status-hero .ring svg.i { width: 28px; height: 28px; }
.status-hero .ring-ok { background: var(--success-soft); color: var(--success-text); }
.status-hero .ring-bad { background: var(--danger-soft); color: var(--danger-text); }
.status-hero h1 { margin: 0; font-size: var(--fs-lg); }
.status-hero p { color: var(--muted); max-width: 44ch; }
.line-items { display: grid; gap: var(--s-2); font-size: var(--fs-sm); margin: var(--s-4) 0; }
.line-items div { display: flex; justify-content: space-between; gap: var(--s-4); }
.line-items .total { border-top: 1px solid var(--border); padding-top: var(--s-2); font-weight: 600; font-size: var(--fs); }
.email-body { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-8); font-size: var(--fs); line-height: 1.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* 14. EMPTY STATES ------------------------------------------------------- */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s-2); padding: var(--s-12) var(--s-6); color: var(--muted); }
.empty-hero { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); margin-bottom: var(--s-2); }
.empty-hero svg.i { width: 28px; height: 28px; }
.empty h2 { margin: 0; color: var(--text); font-size: var(--fs-md); }
.empty p { max-width: 40ch; }
.empty .btn { margin-top: var(--s-3); }
.empty-code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; }

/* 15. ADMIN DENSITY ------------------------------------------------------ */
.admin { --fs: 14px; --fs-md: 16px; --fs-xl: 24px; --card-pad: var(--s-4); --cell-pad: 8px 12px; --ctl-h: 34px; --container: 1280px; }
.admin .main { padding-top: var(--s-6); }
.admin .page-head { margin-bottom: var(--s-5); }
.admin .tiles { gap: var(--s-3); }
.admin .history { list-style: none; margin: 0; padding: 0; }
.admin .history li { display: grid; grid-template-columns: 14px 1fr auto; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); align-items: start; }
.admin .history li:first-child { border-top: 0; }
.admin .history .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; }
.admin .history .dot-ok { background: var(--accent); } .admin .history .dot-bad { background: var(--danger); }
.admin .history time { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.topbar-admin .brand .brand-tag { display: inline; }

/* 16. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .product-layout aside { position: static; }
}
@media (max-width: 720px) {
  :root { --fs-xl: 22px; --fs-2xl: 28px; }
  .topbar-in { padding: 0 var(--s-4); gap: var(--s-4); }
  .brand .brand-tag { display: none; }
  .main { padding: var(--s-5) var(--s-4) var(--s-12); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .actions { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .tile { padding: var(--s-3) var(--s-4); }
  .product-head { gap: var(--s-4); }
  .product-head .app-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
  .product-head .app-icon-lg svg { width: 32px; height: 32px; }
  .auth-card { padding: var(--s-6); margin: var(--s-4) auto; }
  .release { grid-template-columns: 1fr; gap: var(--s-2); }
  .form-actions .btn { flex: 1; }
  .site-foot-in { flex-direction: column; gap: var(--s-2); }
}
@media (max-width: 400px) {
  .filters .btn, .filters select { flex: 1 1 100%; }
  .page-head .actions .btn { flex: 1; }
}
@media print {
  .topbar, .nav, .btn, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   17. MINT ADDITIONS
   Everything above is the theme as designed. Below: the few things Mint's own
   markup needs that the mockups did not cover, and two grid fixes.
   ========================================================================== */

/* Two panels side by side should share the row (auto-fill left an empty third
   column on wide screens), and cards inside a grid must not get the stacked-card
   top margin, or the second one sits lower than the first. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grid-2 > .card + .card, .grid-3 > .card + .card, .featured > .card + .card { margin-top: 0; }
.card + .table-wrap, .table-wrap + .card, .card + .grid-2, .grid-2 + .card, .tiles + .card, .key-once + .card { margin-top: var(--s-4); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid-2 + .grid-2, .table-wrap + .table-wrap, .filters + .card, .tabs + .card { margin-top: var(--s-4); }
.filters + .card, .tabs + .card { margin-top: 0; }

/* Small utilities */
.inline { display: inline; }
.spacer { flex: 1; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.card-note { margin-top: var(--s-3); }
.btn svg, .chip svg, .pill svg { flex: none; }
button.btn { font-family: var(--font-sans); }

/* A label that wraps its control: <label class="field"><span class="field-label">…</span><input></label> */
label.field { cursor: default; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-section { margin: var(--s-8) 0 var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.form-section h2 { margin-bottom: var(--s-1); }
.form-section p { color: var(--muted); font-size: var(--fs-sm); max-width: 70ch; }
input[type="color"] { width: 48px; height: var(--ctl-h); padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); }
.inline-form { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.inline-form input[type="number"] { width: 76px; }

/* Catalogue */
.filters .chips { flex: 1 1 auto; }
.product-card .app-icon { align-self: start; }

/* App page */
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs a { display: block; }
.prose h2 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.prose > :first-child { margin-top: 0; }
.buy-box .terms { margin-top: var(--s-5); }
.buy-box .trial-note { margin-top: var(--s-3); }
.product-head .chips { margin-top: var(--s-1); }
.release .notes { font-size: var(--fs-sm); min-width: 0; }
.release .notes ul { margin: 0; }
.release .notes p:last-child { margin-bottom: 0; }

/* Licence, checkout and order cards */
.auth-card form.stack, .auth-card .stack { margin-top: var(--s-5); }
.auth-card .brand { margin-bottom: var(--s-5); }
.auth-card .product-head { margin: var(--s-4) 0 0; align-items: center; }
.auth-card .product-head .title { font-weight: 600; }
.auth-card .btn-block + .line-items { margin-top: var(--s-5); }
.licence-head { margin-bottom: var(--s-4); align-items: center; }
.licence-head h2 { margin: 0 0 2px; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.pc-list li > div { min-width: 0; }
.pc-list form { margin-left: auto; }
.facts .span-all { grid-column: 1 / -1; }
.page-head .actions form { display: inline-flex; }
.page-head > .row { flex-wrap: nowrap; align-items: center; }
.page-head > .row h1 { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.form-actions { align-items: center; }
.card > hr { margin: var(--s-4) 0; }
.card-flush > .empty { padding: var(--s-8) var(--s-5); }
td.mono, dd.mono { font-family: var(--font-mono); font-size: 0.93em; }

/* Admin */
.topbar-admin .nav form { display: inline-flex; margin-left: var(--s-1); }
.admin .history li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.table tr.is-off td { color: var(--muted); }
.table tr.row-note td { padding-top: 0; color: var(--muted); font-size: var(--fs-xs); }
.table tr.has-note td { border-bottom: 0; }
.table tbody th { text-align: left; font-weight: 500; color: var(--muted); padding: var(--cell-pad); border-bottom: 1px solid var(--border); white-space: nowrap; width: 1%; }
.table tbody tr:last-child th { border-bottom: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.shot-item { display: grid; gap: var(--s-2); }
.shot-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.icon-row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
pre.email-body { max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-sans); margin: var(--s-4) 0 0; padding: var(--s-5); background: var(--surface-2); }
.upload[hidden] { display: none; }

/* Light/dark button: show the moon while light, the sun while dark. */
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .when-light { display: none; }
  :root:not([data-theme]) .theme-toggle .when-dark { display: block; }
}
.nav .theme-toggle { margin-left: var(--s-1); }

/* Sign-in codes and policy pages */
.code-input { width: 150px; letter-spacing: .2em; }
.recovery-codes { white-space: pre-wrap; line-height: 1.9; }
mark { background: var(--warn-soft); color: var(--warn-text); padding: 2px 4px; border-radius: var(--r-sm); }
.notice code { background: transparent; }
.card > .prose { max-width: 72ch; }

/* Receipt */
.receipt { display: grid; gap: var(--s-5); }
.receipt-top { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.receipt-store { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--s-1); }
.receipt-meta { display: grid; gap: var(--s-1); margin: 0; font-size: var(--fs-sm); }
.receipt-meta div { display: flex; gap: var(--s-3); }
.receipt-meta dt { color: var(--muted); min-width: 5em; }
.receipt-meta dd { margin: 0; overflow-wrap: anywhere; }
.receipt-lines tfoot th { border-top: 1px solid var(--border); }
.receipt p { margin: 0; }
@media print {
  .page-head .actions, .flash { display: none !important; }
  .receipt { border: 0; box-shadow: none; padding: 0; }
}


/* ==========================================================================
   18. STOREFRONT (landing page, app cards, footer)
   ========================================================================== */
.btn-lg { height: 46px; padding: 0 22px; font-size: var(--fs); border-radius: var(--r-md); }
.btn-primary.btn-lg { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px var(--accent); }
.main.main-flush { max-width: none; padding: 0; }
.main-flush > .flash, .main-flush > .notice { max-width: var(--container); margin: var(--s-4) auto 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--s-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }

.kicker, .eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow { padding: 6px 12px; border-radius: var(--r-full); background: var(--accent-soft); letter-spacing: .04em; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lead { font-size: var(--fs-md); color: var(--text-2); line-height: 1.55; margin: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 380px at -5% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-12); align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-solo { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
.hero-solo .hero-actions, .hero-solo .hero-points { justify-content: center; }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero-solo .hero-copy { justify-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; margin: 0; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg.i { width: 16px; height: 16px; color: var(--accent); }

.hero-art { position: relative; min-height: 380px; }
.shot-window { position: absolute; display: block; border-radius: 12px; overflow: hidden; background: #0f1413; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(15,20,19,.18), 0 30px 60px -20px rgba(15,25,21,.45), 0 18px 36px -18px rgba(15,25,21,.35); transition: transform .25s ease, box-shadow .25s ease; }
.shot-window img { width: 100%; display: block; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #171d1b; border-bottom: 1px solid rgba(255,255,255,.06); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #39423e; }
.shot-bar b { margin-left: 8px; font: 500 12px/1 var(--font-sans); color: #9ba5a0; }
.shot-front { left: 0; top: 56px; width: 86%; z-index: 2; }
.shot-back { right: 0; top: 0; width: 78%; z-index: 1; opacity: .92; }
.hero-art .shot-window:only-child { position: relative; top: 0; width: 100%; }
.shot-window:hover { transform: translateY(-4px); z-index: 3; opacity: 1; }
.shot-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--app-accent, var(--accent)) 45%, transparent) inset; }

/* Strip under the hero */
.strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.strip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-top: var(--s-6); padding-bottom: var(--s-6); }
.strip-in > div { display: flex; gap: var(--s-3); align-items: flex-start; }
.strip-in svg.i { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.strip-in strong { display: block; font-size: var(--fs-sm); }
.strip-in span { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* Bands */
.band { padding: 72px 0; }
.band-tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-8); }
.band-head h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; margin: var(--s-2) 0 0; }
.band-head-center { justify-content: center; text-align: center; }
.band-head .filters { margin: 0; flex: 0 1 320px; }
.band-head .filter-search { max-width: none; }
.band-chips { margin: calc(var(--s-4) * -1) 0 var(--s-6); }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-6); }
.app-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; color: var(--text); box-shadow: var(--shadow-1); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
a.app-card:hover { text-decoration: none; color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--app-accent, var(--accent)) 55%, var(--border)); }
.app-card-shot { aspect-ratio: 16 / 9.5; overflow: hidden; background: #0f1413; border-bottom: 1px solid var(--border); }
.app-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .4s ease; }
a.app-card:hover .app-card-shot img { transform: scale(1.03); }
.app-card-shot.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent, var(--accent)) 22%, var(--surface-2)), var(--surface-2)); }
.app-card-body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.app-card-head { display: flex; align-items: center; gap: var(--s-3); }
.app-card h3 { margin: 0; font-size: var(--fs-md); letter-spacing: -0.01em; }
.app-card-cat { font-size: var(--fs-xs); color: var(--muted); }
.app-card .summary { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.app-card .product-price { font-size: var(--fs-md); font-weight: 600; }
.app-card .once { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.app-card-go { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); display: inline-flex; gap: 4px; }
.app-card-go span { transition: transform .18s ease; }
a.app-card:hover .app-card-go span { transform: translateX(3px); }
.app-card-soon { justify-content: center; align-items: flex-start; gap: var(--s-3); padding: var(--s-8); background: transparent; border-style: dashed; border-color: var(--border-strong); box-shadow: none; min-height: 220px; }
.soon-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.soon-mark svg.i { width: 22px; height: 22px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); counter-reset: none; }
.steps li { position: relative; padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); }
.steps h3 { font-size: var(--fs-md); margin: var(--s-4) 0 var(--s-2); }
.steps p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 700 var(--fs)/1 var(--font-display); }

/* Licence promise */
.promise { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--s-12); align-items: start; }
.promise-copy { display: grid; gap: var(--s-4); justify-items: start; position: sticky; top: calc(var(--topbar-h) + var(--s-6)); }
.promise-copy h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; margin: 0; }
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.promise-grid > div { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.promise-grid svg.i { width: 22px; height: 22px; color: var(--accent); }
.promise-grid h3 { margin: var(--s-3) 0 var(--s-1); font-size: var(--fs); }
.promise-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: var(--s-3); }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-display); color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 var(--s-5) var(--s-5); color: var(--text-2); line-height: 1.6; max-width: 68ch; }

/* Closing call to action */
.cta-band { padding-top: var(--s-16); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; padding: var(--s-10) var(--s-12); border-radius: 20px; color: #fff;
  background: radial-gradient(600px 260px at 85% 0%, rgba(255,255,255,.16), transparent 70%), linear-gradient(135deg, #0f7b5c, #0a5a43 60%, #08402f); }
.cta h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin: 0 0 var(--s-2); color: #fff; }
.cta p { margin: 0; color: rgba(255,255,255,.82); }
.cta-btn { background: #fff; border-color: #fff; color: #0a5a43; font-weight: 600; }
.cta-btn:hover { background: #eafff6; border-color: #eafff6; color: #0a5a43; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.foot-in { max-width: var(--container); margin: 0 auto; padding: var(--s-12) var(--s-6) var(--s-10); display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-8); }
.foot-brand p { margin: var(--s-3) 0 0; max-width: 34ch; line-height: 1.6; }
.foot-col { display: grid; gap: var(--s-2); align-content: start; }
.foot-col h2 { font: 600 var(--fs-xs)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 0 0 var(--s-2); }
.foot a:not(.brand) { color: var(--muted); } .foot a:not(.brand):hover { color: var(--text); }
.foot-base { border-top: 1px solid var(--border); }
.foot-base .foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-5); padding-bottom: var(--s-5); }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-12); padding-bottom: var(--s-12); gap: var(--s-10); }
  .hero-art { min-height: 0; aspect-ratio: 16 / 11; }
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .promise-copy { position: static; }
  .band { padding: var(--s-12) 0; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .cta { padding: var(--s-8) var(--s-6); }
}
@media (max-width: 560px) {
  .strip-in, .promise-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1; }
}
@media print { .foot, .hero-art { display: none !important; } }


/* ==========================================================================
   19. INNER PAGES (app page, policies, contact)
   ========================================================================== */
html, body { overflow-x: clip; }
/* A band that runs edge to edge from inside the page column, its contents still aligned to the column. */
.page-hero { position: relative; margin: calc(var(--s-8) * -1) calc(50% - 50vw) var(--s-10); padding: var(--s-12) calc(50vw - 50%) var(--s-10); border-bottom: 1px solid var(--border); display: grid; gap: var(--s-3); justify-items: start;
  background:
    radial-gradient(800px 320px at 90% -20%, color-mix(in srgb, var(--app-accent, var(--accent)) 18%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 120%, color-mix(in srgb, var(--app-accent, var(--accent)) 9%, transparent), transparent 70%),
    var(--surface); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.page-hero .lead { max-width: 40em; }
.page-hero-meta { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.page-hero .crumb { margin: 0 0 var(--s-3); }
.page-hero + .notice { margin-bottom: var(--s-6); }
.hero-tabs { display: flex; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-4); padding: 4px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg); }
.hero-tabs a { padding: 7px 16px; border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.hero-tabs a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.hero-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* App page */
.p-hero { padding-top: var(--s-8); }
.p-hero-in { display: flex; gap: var(--s-6); align-items: flex-start; width: 100%; }
.p-hero .app-icon-lg { width: 96px; height: 96px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); color: var(--app-accent, var(--accent)); border-color: color-mix(in srgb, var(--app-accent, var(--accent)) 35%, var(--border)); }
.p-hero .app-icon-lg svg { width: 46px; height: 46px; }
.p-hero-copy { display: grid; gap: var(--s-4); justify-items: start; min-width: 0; }
.p-hero .lead { font-size: clamp(17px, 1.5vw, 20px); }
.p-hero .hero-actions { margin-top: 0; }

.product-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-12); }
.gallery-main { border-radius: 14px; background: #0f1413; border-color: rgba(15,20,19,.25); box-shadow: 0 30px 60px -28px rgba(15,25,21,.5), 0 14px 28px -18px rgba(15,25,21,.35); }
.gallery-thumbs a { border-radius: 8px; opacity: .7; transition: opacity .15s ease; }
.gallery-thumbs a:hover, .gallery-thumbs [aria-current="true"] { opacity: 1; }
.p-section { margin-top: var(--s-12); display: grid; gap: var(--s-4); }
.p-about { font-size: var(--fs-md); line-height: 1.65; color: var(--text-2); max-width: 66ch; }
.p-about h2 { font-size: var(--fs-lg); color: var(--text); margin-top: var(--s-8); }
.p-about ul { padding-left: 1.2em; }
.p-about li { margin-bottom: var(--s-2); }
.p-about li::marker { color: var(--app-accent, var(--accent)); }
.releases { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 0 var(--s-5); }
.releases .release { border: 0; border-top: 1px solid var(--border); grid-template-columns: 140px 1fr; padding: var(--s-5) 0; }
.releases .release:first-child { border-top: 0; }
.releases .release:last-child { border-bottom: 0; }
.releases .ver { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

.buy-box { border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-2); border-top: 3px solid var(--app-accent, var(--accent)); }
.buy-box .price-lg { font-size: 40px; letter-spacing: -0.03em; }
.buy-box .btn-block { height: 44px; font-size: var(--fs); border-radius: var(--r-md); }
.buy-box .terms { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--s-5) 0 0; }
.buy-box .terms li svg.i { color: var(--app-accent, var(--accent)); }
.buy-box .facts { padding-top: var(--s-5); border-top: 1px solid var(--border); grid-template-columns: repeat(2, minmax(0, 1fr)); }

.more-apps { margin-top: var(--s-16); padding-top: var(--s-12); border-top: 1px solid var(--border); }
.more-apps .band-head { margin-bottom: var(--s-6); }

/* Policies */
.main-narrow .page-hero + .card, .main-narrow .page-hero ~ .card { border-radius: var(--r-lg); padding: var(--s-8); }
.main-narrow .card > .prose { font-size: var(--fs); line-height: 1.7; color: var(--text-2); }
.main-narrow .card > .prose h2 { font-size: var(--fs-lg); color: var(--text); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.main-narrow .card > .prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.main-narrow .card > .prose strong { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
.contact-grid .card { margin: 0; display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.contact-grid h2 { margin: 0; font-size: var(--fs-lg); }
.contact-grid p { margin: 0; }
.contact-main .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.facts-stack { grid-template-columns: minmax(0, 1fr); width: 100%; }

@media (max-width: 900px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-layout aside { position: static; }
  .p-hero-in { flex-direction: column; gap: var(--s-4); }
  .p-hero .app-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .releases .release { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
}
@media print { .page-hero { margin: 0 0 var(--s-6); padding: 0; background: none; border: 0; } .hero-tabs { display: none; } }


/* ==========================================================================
   20. BUYING, SIGN-IN AND ADMIN POLISH
   ========================================================================== */
/* A soft backdrop behind the buying and sign-in cards. */
.main:has(> .flow), .main:has(> .auth-card) { position: relative; }
.main:has(> .flow)::before, .main:has(> .auth-card)::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background:
    radial-gradient(700px 360px at 80% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(600px 320px at 10% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }

/* Two-panel card: what this is on the left, what to do on the right. */
.flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); max-width: 900px; margin: var(--s-10) auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-3); }
.flow-side { display: grid; gap: var(--s-5); align-content: start; padding: var(--s-10) var(--s-8); color: rgba(255,255,255,.86);
  background: radial-gradient(420px 240px at 100% 0%, rgba(255,255,255,.16), transparent 70%), linear-gradient(150deg, #0f7b5c, #0a5a43 55%, #073a2b); }
.flow-side .small { color: rgba(255,255,255,.72); margin: 0; }
.flow-back { color: rgba(255,255,255,.8); font-size: var(--fs-sm); }
.flow-back:hover { color: #fff; text-decoration: none; }
.flow-app { display: flex; gap: var(--s-4); align-items: center; }
.flow-app .app-icon { background: #fff; border-color: transparent; color: var(--app-accent, #0f7b5c); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); width: 64px; height: 64px; border-radius: 16px; }
.flow-app .app-icon svg { width: 32px; height: 32px; }
.flow-app-name { font: 600 var(--fs-lg)/1.2 var(--font-display); letter-spacing: -0.01em; color: #fff; }
.flow-side .soon-mark { background: rgba(255,255,255,.14); color: #fff; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); }
.flow-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.flow-list svg.i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #8ff0cb; }
.flow-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-2); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.2); font-size: var(--fs-sm); }
.flow-total .price { font-size: 30px; color: #fff; letter-spacing: -0.02em; }
.flow-main { padding: var(--s-10) var(--s-8); display: grid; gap: var(--s-4); align-content: start; }
.flow-main h1 { font-size: var(--fs-xl); letter-spacing: -0.02em; margin: 0; }
.flow-main > p { margin: 0; }
.flow-main .small svg.i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.flow-main .line-items { margin: 0; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.flow-steps .is-on { color: var(--accent-text); }
.flow-steps .is-done { color: var(--text-2); }

/* The single cards (order result, admin sign-in) */
.auth-card { border-radius: 20px; padding: var(--s-10) var(--s-8); box-shadow: var(--shadow-3); max-width: 480px; }
.status-hero .ring { width: 68px; height: 68px; }
.status-hero .ring svg.i { width: 32px; height: 32px; }
.status-hero h1 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.auth-card .line-items { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }

/* Licence page */
.page-hero form { margin-top: var(--s-2); }
.page-hero > .btn { margin-top: var(--s-2); }
.main-narrow .page-hero ~ .card.card-flush { padding: 0; }
.main-narrow .page-hero ~ .notice { margin-bottom: var(--s-4); }

/* Admin */
.admin .page-head h1 { font-size: 26px; letter-spacing: -0.02em; }
.admin .card, .admin .table-wrap { border-radius: var(--r-lg); }
.admin .tile { border-radius: var(--r-lg); padding: var(--s-5); position: relative; overflow: hidden; }
.admin .tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .85; }
.admin .tile-value { font-size: 28px; }
.admin .tile-label { text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xs); font-weight: 600; }
.topbar-admin .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.admin .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }

@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); margin: var(--s-4) auto; }
  .flow-side, .flow-main { padding: var(--s-6); }
}
@media print { .main:has(> .flow)::before, .main:has(> .auth-card)::before { display: none; } }
