/* MintSource — marketplace theme
   System font stack, no external requests, mobile first. */

/* MintSource design system — Swiss Modernism 2.0 (academic navy + gold).
   Every token below is used by the stylesheet; contrast is >= 4.5:1 on the
   light background. */
:root {
  --brand: #1e3a5f;
  --brand-dark: #16294a;
  --brand-soft: #e9eef5;
  --accent: #a16207;
  --accent-soft: #fdf6e7;
  --accent-ink: #7c4a06;
  --secondary: #2563eb;
  --ok: #047857;
  --warn: #92400e;
  --danger: #b91c1c;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #cbd5e1;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted-bg: #e9eef5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .9em; background: var(--brand-soft); padding: .1em .35em; border-radius: 5px; }
pre { font-family: var(--mono); background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding: 3rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.25rem 0; }
.page-head .lead { max-width: 70ch; }
.lead { font-size: 1.05rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 .4rem; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; max-width: 100%; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .02em;
}
.primary-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nav-search input { border: 0; background: transparent; padding: .45rem .8rem; width: clamp(120px, 16vw, 210px); min-width: 0; font: inherit; font-size: .9rem; outline: none; }
.nav-search button { border: 0; background: transparent; padding: .4rem .7rem; cursor: pointer; font-size: 1.05rem; color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); font-size: 1.05rem; }
.icon-link:hover { background: var(--bg); text-decoration: none; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
}
.badge-warn { background: var(--danger); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .55rem; cursor: pointer; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

.user-menu { position: relative; }
.user-menu-toggle { display: inline-flex; align-items: center; gap: .45rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem .25rem .3rem; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; }
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .4rem; min-width: 190px; z-index: 50;
}
.user-menu-panel a { display: block; padding: .5rem .65rem; border-radius: 7px; color: var(--ink-2); font-size: .92rem; }
.user-menu-panel a:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.user-menu-form { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.user-menu-form button { display: block; width: 100%; text-align: left; padding: .5rem .65rem; }

.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1.5rem 0;
}
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
.mega-col ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.mega-col li a { display: block; padding: .18rem 0; color: var(--muted); font-size: .9rem; }
.mega-head { font-weight: 700; color: var(--ink); display: block; }
.has-mega { position: static; }
.nav-mega-toggle { background: transparent; border: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); padding: .3rem 0; display: inline-flex; gap: .3rem; align-items: center; }
.caret { font-size: .7rem; color: var(--muted); }

/* -------------------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); padding: 3.25rem 0 3rem; border-bottom: 1px solid var(--line); }
.hero-compact { padding: 2.5rem 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.hero-copy h1 { max-width: 18ch; }
.hero-copy .lead { max-width: 62ch; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.hero-panel h2 { font-size: 1.15rem; }
.hero-points { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .5rem; }
.hero-points li { padding-left: 1.5rem; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.1rem; margin-bottom: .9rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; display: grid; place-items: center;
}
.steps span { display: block; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .68rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .42rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; font-weight: 600; }
.linklike:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }
.link-arrow { font-weight: 600; font-size: .92rem; }

/* ------------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.item-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; background: var(--brand-soft); aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.item-card:hover .card-media img { transform: scale(1.04); }
.media-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.5rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); }
.media-fallback-lg { font-size: 5rem; min-height: 320px; }
.tag { position: absolute; top: .6rem; left: .6rem; padding: .2rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag-free { background: var(--ok); color: #fff; }
.tag-sale { background: var(--danger); color: #fff; left: auto; right: .6rem; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-size: 1rem; margin: 0; line-height: 1.4; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-cat { font-size: .82rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price-now { font-weight: 800; font-size: 1.05rem; }
.price-lg { font-size: 1.9rem; }
.price-was { text-decoration: line-through; color: var(--muted); font-size: .9rem; margin-left: .35rem; }
.rating { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; color: var(--muted); }
.star { color: #f59e0b; }
.star.is-empty { color: #cbd5e1; }
.star.is-half { opacity: .65; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .9rem 0 0; }
.chip { display: inline-block; padding: .22rem .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.chip-accent { background: var(--brand-soft); border-color: transparent; color: var(--brand); font-weight: 600; }
.chip-sale { background: #fef2f2; border-color: #fecaca; color: var(--danger); font-weight: 600; }

.row-item { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.row-media { width: 120px; flex: 0 0 120px; border-radius: var(--radius-sm); overflow: hidden; }
.row-body { flex: 1; min-width: 0; }
.row-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
.row-body h3 a { color: var(--ink); }
.row-stats { display: flex; gap: .8rem; font-size: .82rem; color: var(--muted); margin: 0; }
.row-price { font-weight: 700; white-space: nowrap; }

/* --------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.cat-card-head { font-size: 1.1rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: .35rem; }
.cat-card ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .3rem; }
.cat-card li a { font-size: .9rem; color: var(--muted); }
.cat-card li a:hover { color: var(--brand); }

/* ----------------------------------------------------------------- listing */
.listing-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 84px; min-width: 0; }
.filters h3 { margin-bottom: 1rem; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sort-form select, .filter-bar select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.filter-bar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-bar input[type="search"] { flex: 1 1 240px; min-width: 0; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }

/* ------------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field small { font-size: .78rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.artwork-preview { display: flex; flex-wrap: wrap; gap: 1rem; }
.artwork-preview figure { margin: 0; display: grid; gap: .3rem; }
.artwork-preview img { width: 150px; height: 100px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.artwork-preview figcaption { font-size: .78rem; color: var(--ink-2); }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); }
.check input { width: auto; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: .5rem; }
.license-picker { display: grid; gap: .5rem; margin: .75rem 0 1rem; }
.license-option {
  display: flex; gap: .65rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--surface);
}
.license-option:hover { border-color: var(--brand); }
.license-option input { margin-top: .25rem; }
.license-body { display: grid; gap: .1rem; }
.license-name { font-weight: 600; font-size: .95rem; }
.license-note { color: var(--muted); font-size: .82rem; }
.license-price { font-weight: 700; color: var(--brand); font-size: .95rem; }
.notice { padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--ink-2); font-size: .9rem; margin: 0 0 1rem; }
.notice-ok { background: #ecfdf5; color: #065f46; }
.notice-error { background: #fef2f2; color: #991b1b; }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-links { margin: 1rem 0 0; font-size: .9rem; text-align: center; color: var(--muted); }
.auth-links a { margin: 0 .25rem; }
.demo-box { margin-top: 1.25rem; padding: .9rem 1rem; background: var(--bg); border-radius: var(--radius-sm); font-size: .84rem; }
.demo-box h4 { margin-bottom: .4rem; }
.demo-box ul { margin: 0; padding-left: 1.1rem; }

/* ------------------------------------------------------------------ tables */
/* The wide tables scroll inside their box. `contain: paint` keeps the table
   from pushing the page sideways — without it Chromium counts the table in
   the scroll width of the document even though the box scrolls. */
.table-wrap { overflow-x: auto; contain: paint; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); max-width: 100%; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table td .muted { display: block; font-size: .8rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sub-row td { padding-left: 1.6rem; }
.status { display: inline-block; padding: .18rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: capitalize; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.status-paid, .status-published, .status-approved, .status-active { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.status-pending, .status-processing { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.status-rejected, .status-failed, .status-banned, .status-refunded { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.status-draft { background: #f1f5f9; color: #475569; }
.status-seller, .status-admin { background: var(--brand-soft); color: var(--brand); border-color: #c7d2fe; }

/* ------------------------------------------------------------------ panels */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
/* Grid and flex children default to min-width:auto, which lets wide tables
   and the scrolling side nav push the whole page sideways. Every level of
   the layout has to opt out of that. */
.account-layout > *, .account-main > *, .listing-layout > *, .listing-main > *,
.item-layout > *, .item-main > *, .item-side > *, .cart-layout > *, .cart-main > *,
.cart-side > *, .checkout-layout > *, .checkout-main > *, .checkout-side > *,
.split > *, .grid > *, .card, .table-wrap, .stat-row > * { min-width: 0; }
.side-nav { display: grid; gap: .15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; position: sticky; top: 84px; min-width: 0; }
.side-link { padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.side-link:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.side-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.account-main { display: grid; gap: 1.25rem; min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; display: grid; gap: .2rem; }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat-hint { font-size: .78rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.bullet-list { display: grid; gap: .3rem; }
.detail-list { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.detail-list dt { color: var(--muted); font-size: .85rem; }
.detail-list dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.mini-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.file-list li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .7rem .9rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.file-name { font-weight: 600; }
.file-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.copy-row code { font-size: .95rem; padding: .45rem .7rem; }

/* ------------------------------------------------------------------ charts */
.chart { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.chart li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px; gap: .75rem; align-items: center; }
.chart-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chart-track { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.chart-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; min-width: 2px; }
.chart-value { font-size: .82rem; text-align: right; color: var(--ink-2); font-weight: 600; }
.bar { display: block; height: 8px; width: 100%; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { display: block; height: 100%; background: #f59e0b; border-radius: 999px; }

/* ------------------------------------------------------------------- tabs */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.tab-list { display: flex; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: .55rem .8rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tabs-compact .tab { border-bottom: 0; border-radius: var(--radius-sm); }
.tabs-compact .tab.is-active { background: var(--brand-soft); }
.tab-panel p { max-width: 78ch; }
.changelog { white-space: pre-wrap; font-size: .85rem; }

/* ------------------------------------------------------------------ item */
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.item-main { min-width: 0; }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main { aspect-ratio: 10 / 7; background: var(--brand-soft); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; padding: .75rem; border-top: 1px solid var(--line); overflow-x: auto; }
.thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: none; cursor: pointer; overflow: hidden; flex: 0 0 auto; }
.thumb.is-active { border-color: var(--brand); }
.thumb img { width: 110px; height: 77px; object-fit: cover; }
.item-meta { padding: 1.25rem 0 .5rem; }
.item-meta h1 { margin-bottom: .35rem; }
.item-title-row { display: flex; align-items: center; gap: .85rem; margin-bottom: .35rem; }
.item-title-row h1 { margin: 0; }
.item-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.item-tagline { color: var(--ink-2); font-size: 1.02rem; margin-bottom: .5rem; }
.item-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; }
.item-side { position: sticky; top: 84px; display: grid; gap: 1rem; }
.buy-box { border-top: 3px solid var(--brand); }
.price-block { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.buy-points { list-style: none; padding: .75rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .3rem; font-size: .88rem; color: var(--ink-2); }
.seller-name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.seller-stats { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .3rem; font-size: .9rem; }
.seller-stats li { display: flex; justify-content: space-between; }
.rating-summary { display: grid; grid-template-columns: auto auto minmax(160px, 1fr); gap: 1.5rem; align-items: center; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.rating-big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.rating-bars li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; gap: .5rem; align-items: center; font-size: .82rem; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.review-head { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .88rem; }
.review h4 { margin: 0 0 .3rem; }
.review-reply { margin-top: .75rem; padding: .65rem .85rem; background: var(--bg); border-radius: var(--radius-sm); font-size: .9rem; }
.review-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.review-queue li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.review-queue span { display: block; font-size: .8rem; }
.prose { max-width: 78ch; }
.prose h1 { margin-bottom: .75rem; }
.prose h2 { margin-top: 1.75rem; }
.prose h3 { margin-top: 1.25rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose .bullet-list, .prose .file-list { padding-left: 0; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--brand); }
.prose code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .35rem; font-size: .9em; }
.prose pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose blockquote { margin: 0 0 1.25rem; padding: .8rem 1rem; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.success-card { text-align: center; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: #ecfdf5; color: var(--ok); display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; }
.success-card .detail-list { text-align: left; margin: 1.5rem 0; }
.success-card .file-list { text-align: left; }

/* --------------------------------------------------------------- cart etc */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; align-items: start; }
.cart-main, .checkout-main { display: grid; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.cart-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-soft); }
.cart-body h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.cart-body h3 a { color: var(--ink); }
.cart-body select { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }
.cart-price { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.cart-side, .checkout-side { position: sticky; top: 84px; display: grid; gap: 1rem; }
.payment-options { display: grid; gap: .6rem; }
.payment-option { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.payment-option:hover { border-color: var(--brand); }
.payment-option input { margin-top: .25rem; }
.payment-option strong { display: block; font-size: .95rem; }
.wallet-balance { display: grid; gap: .2rem; margin-bottom: 1.25rem; }
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.download-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; align-items: center; }
.download-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-soft); }
.download-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.notification-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.notification.is-unread { border-left: 3px solid var(--brand); }
.notification-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pending-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.pending-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pending-list span { display: block; font-size: .82rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; max-height: 320px; overflow-y: auto; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: #cbd5e1; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand, .site-footer .brand-text { color: #fff; }
.footer-brand .muted { color: #94a3b8; font-size: .9rem; }
.newsletter { display: flex; gap: .4rem; margin-top: 1rem; max-width: 340px; }
.newsletter input { flex: 1 1 auto; min-width: 0; padding: .5rem .7rem; border-radius: 8px; border: 1px solid #334155; background: #1e293b; color: #fff; font: inherit; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1.25rem; }
.footer-bottom .muted { color: #94a3b8; font-size: .85rem; margin: 0; }

/* ------------------------------------------------------------------ flash */
.flash-wrap { padding-top: .85rem; }
.flash-list { display: grid; gap: .5rem; }
.flash { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.flash p { margin: 0; }
.flash-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; flex: 0 0 auto; }
.flash-success { border-color: #a7f3d0; background: #ecfdf5; }
.flash-success .flash-icon { background: var(--ok); color: #fff; }
.flash-error { border-color: #fecaca; background: #fef2f2; }
.flash-error .flash-icon { background: var(--danger); color: #fff; }
.flash-warning { border-color: #fde68a; background: #fffbeb; }
.flash-warning .flash-icon { background: var(--warn); color: #fff; }
.flash-info { border-color: #bfdbfe; background: #eff6ff; }
.flash-info .flash-icon { background: var(--brand); color: #fff; }

.empty-state { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 2rem; color: var(--muted); margin-bottom: .5rem; }
.empty-state h3 { margin-bottom: .25rem; }
.pagination { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 0; }
.page-btn { min-width: 38px; height: 38px; padding: 0 .6rem; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }
.page-gap { padding: .4rem; color: var(--muted); }
.breadcrumbs { padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  .nav-search input { width: 150px; }
  .nav-links { gap: .75rem; }
  .header-inner { gap: .75rem; }
}
@media (max-width: 1000px) {
  .hero-inner, .split, .listing-layout, .item-layout, .cart-layout, .checkout-layout, .account-layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-side, .cart-side, .checkout-side, .filters, .side-nav { position: static; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem; gap: 1rem; z-index: 45; max-height: 80vh; overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-links a, .nav-mega-toggle { display: block; width: 100%; padding: .5rem 0; text-align: left; }
  .nav-search { order: -1; }
  .nav-search input { width: 100%; }
  .nav-actions { justify-content: flex-start; flex-wrap: wrap; }
  .mega-menu { position: static; box-shadow: none; padding: .5rem 0 0; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rating-summary { grid-template-columns: 1fr; gap: .75rem; }
  .cart-item, .download-row { grid-template-columns: minmax(0, 1fr); }
  .cart-price { justify-items: start; text-align: left; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .container { padding: 0 1rem; }
  .hero { padding: 2rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .button-row .btn, .form .btn { width: auto; }
  .detail-list { grid-template-columns: minmax(0, 1fr); }
  .detail-list dt { margin-top: .4rem; }
  .listing-head { flex-direction: column; align-items: stretch; }
  .chart li { grid-template-columns: 38px minmax(0, 1fr) 70px; gap: .5rem; }
  .thumb img { width: 84px; height: 59px; }
}

/* ==========================================================================
   Landing page + pricing — Swiss Modernism 2.0
   12 column grid, mathematical spacing, navy + gold, SVG only (no emoji).
   ========================================================================== */

.landing-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 78% -10%, rgba(37, 99, 235, .10), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--line);
}
.landing-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .35;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}
/* The columns of the landing grid. They are classes and not inline styles so
   the mobile breakpoint can give the whole width back to the column. */
.lp-col-6 { grid-column: span 6; }
.lp-col-12 { grid-column: span 12; }
.lp-hero-copy { grid-column: span 7; position: relative; z-index: 1; padding: 4.5rem 0 4rem; }
.lp-hero-visual { grid-column: span 5; position: relative; z-index: 1; padding: 4.5rem 0 4rem; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: .3rem .7rem; border-radius: 999px;
}
.lp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.landing-hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 1.1rem 0 1.25rem;
  max-width: 16ch;
}
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero .lead { font-size: 1.12rem; max-width: 54ch; color: var(--ink-2); }
.lp-search { display: flex; gap: .5rem; margin: 2rem 0 1.25rem; max-width: 560px; }
.lp-search input {
  flex: 1 1 auto; min-width: 0; padding: .95rem 1.1rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font: inherit; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.lp-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.lp-search .btn { padding: .95rem 1.5rem; }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-top: 2.25rem; list-style: none; padding: 0; }
.lp-stats li { border-top: 2px solid var(--brand); padding-top: .6rem; }
.lp-stats strong { display: block; font-size: 1.65rem; letter-spacing: -.02em; font-weight: 700; }
.lp-stats span { font-size: .8rem; color: var(--muted); }

.lp-canvas-wrap { position: relative; }
.lp-canvas {
  width: 100%; height: 340px; display: block; border-radius: 18px;
  background: linear-gradient(160deg, var(--brand), #0f2743);
  box-shadow: 0 24px 60px rgba(30, 58, 95, .28);
}
.lp-visual-card {
  position: absolute; right: 0; bottom: 14px; width: min(290px, 78%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .9rem 1rem; box-shadow: 0 18px 40px rgba(15,23,42,.16);
}
.lp-visual-card h3 { font-size: .95rem; margin: 0 0 .15rem; }
.lp-visual-card .muted { font-size: .8rem; margin: 0; }
.lp-visual-card .lp-vc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; font-weight: 700; color: var(--brand); }

.lp-section { padding: 4.5rem 0; }
.lp-section.is-tight { padding: 3rem 0; }
.lp-section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.lp-section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.025em; }
.lp-section-head p { color: var(--muted); font-size: 1.03rem; }
.lp-kicker {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: .6rem;
}

.lp-bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1rem; }
.lp-bento > .bento-card { grid-column: span 4; }
.lp-bento > .bento-card.is-wide { grid-column: span 6; }
.lp-bento > .bento-card.is-full { grid-column: span 12; }
.bento-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bento-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30,58,95,.10); }
.bento-card h3 { margin: 0; font-size: 1.12rem; }
.bento-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.bento-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: .4rem;
}
.bento-card.is-accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.bento-card.is-accent p, .bento-card.is-accent .muted { color: rgba(255,255,255,.82); }
.bento-card.is-accent .bento-icon { background: rgba(255,255,255,.14); color: #fff; }
.bento-card.is-accent a { color: #fff; }
.bento-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.bento-links a {
  font-size: .82rem; padding: .22rem .55rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.bento-links a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; counter-reset: lpstep; }
.lp-step { position: relative; padding-top: .5rem; }
.lp-step::before {
  counter-increment: lpstep; content: counter(lpstep, decimal-leading-zero);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--accent);
}
.lp-step h3 { margin: .35rem 0 .4rem; }
.lp-step p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- pricing */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; align-items: start; }
.plan-grid-single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .85rem; position: relative;
}
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.plan-name h3 { margin: 0; font-size: 1.25rem; }
.plan-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.plan-price .amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-features { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .45rem; font-size: .92rem; }
.plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-features svg { flex: 0 0 auto; margin-top: .18rem; color: var(--ok); }
.plan-card .btn { margin-top: auto; }
.plan-metric {
  display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem;
  padding: .5rem .7rem; background: var(--bg); border-radius: 9px; border: 1px solid var(--line);
}
.plan-metric strong { color: var(--brand); }

.faq-list { display: grid; gap: .75rem; max-width: 860px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { margin: .75rem 0 0; color: var(--muted); }

.lp-cta {
  background: var(--brand); color: #fff; border-radius: 20px; padding: 3rem;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.lp-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 .6rem; letter-spacing: -.02em; }
.lp-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
.lp-cta .btn-primary { background: #fff; color: var(--brand); }
.lp-cta .btn-primary:hover { background: var(--accent-soft); }
.lp-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.lp-cta .btn-ghost:hover { background: rgba(255,255,255,.10); color: #fff; }
.lp-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }

.lp-logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; color: var(--muted); }
.lp-logos span { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }

.lp-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem 2.5rem; list-style: none; padding: 0; }
.lp-feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.lp-feature-list svg { flex: 0 0 auto; margin-top: .2rem; color: var(--accent); }
.lp-feature-list strong { display: block; font-size: .98rem; }
.lp-feature-list span { color: var(--muted); font-size: .9rem; }

@media (max-width: 1000px) {
  .lp-hero-copy, .lp-hero-visual { grid-column: span 12; padding: 3rem 0 1.5rem; }
  .lp-col-6, .lp-col-12 { grid-column: span 12; }
  .lp-hero-visual { padding-top: 0; }
  .lp-bento > .bento-card, .lp-bento > .bento-card.is-wide { grid-column: span 6; }
  .lp-bento > .bento-card.is-full { grid-column: span 12; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-grid-single { grid-template-columns: minmax(0,1fr); }
  .lp-cta { grid-template-columns: minmax(0,1fr); padding: 2rem; }
  .lp-cta-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .lp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-steps, .lp-feature-list, .plan-grid { grid-template-columns: minmax(0,1fr); }
  .plan-grid-single { grid-template-columns: minmax(0,1fr); }
  .lp-bento > .bento-card, .lp-bento > .bento-card.is-wide { grid-column: span 12; }
  .lp-search { flex-direction: column; }
  .lp-canvas { height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-card { transition: none; }
  .bento-card:hover { transform: none; }
}

/* ==========================================================================
   Small gaps the templates needed but the stylesheet never got
   ========================================================================== */

/* The buy form stacks the licence picker and the two buttons. */
.buy-form { display: grid; gap: .55rem; }
.buy-form .btn-block { margin: 0; }

/* The seller card sits under the buy box. */
.seller-card { margin-top: 1.25rem; }

/* The section headers of the item page. */
.section-head { margin: 2.25rem 0 1.1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-head h2 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0; }
.section-head .muted { font-size: .9rem; }

/* The review block of the item page. */
.reviews { margin-top: 2.5rem; }

/* The price block of the catalogue cards. */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }

/* The notification body keeps its own padding, the card only draws the frame. */
.notification-body { display: grid; gap: .35rem; }
.notification-body p { margin: 0; color: var(--ink-2); }
.notification-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }

/* The account type choice on the registration form. */
.account-type { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.account-type legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .35rem; }
.account-type label { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.account-type label:hover { border-color: var(--brand); }
.account-type input { accent-color: var(--brand); }

/* The small avatar of the user menu. */
.avatar-sm { width: 28px; height: 28px; font-size: .75rem; }

/* The main area keeps at least one screen of height on short pages. */
.site-main { min-height: 60vh; }

/* An unread notification is marked with a left accent bar. */
.notification.is-unread { border-left: 3px solid var(--brand); }
