/* =====================================================================
   v2.css — سیستم بصری نسخهٔ ۲ سایت عمومی آکسون (فاز ۲، ۲۰۲۶‑۰۹‑۲۷)
   پالت فیروزه‌ای + وزیرمتن (تصمیم مالک ۲۰۲۶‑۰۹‑۲۸). مرجع: docs/04-design-system.md
   بارگذاری: فقط روی صفحاتی که layouts/public-v2 دارند (head.php → assets_v3).
   بخش‌ها: tokens · base · atoms · header · hero · sections · footer · flash · responsive
   ===================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-subset.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* پالت «فیروزه‌ای» (تصمیم مالک ۲۰۲۶‑۰۹‑۲۸): فیروزه‌ای برای اشیا، سبزآبی تیره برای هیرو و فوتر، کرم سرد برای بدنه */
  --bg: #F6FAF9;
  --surface: #FFFFFF;
  --surface-2: #EDF1F0;
  --ink: #1C2321;
  --muted: #5F6B67;
  --line: #DDE1E0;
  --primary: #0F766E;
  --primary-deep: #0B5D57;
  --primary-soft: #DDECEB;
  --accent: #5EEAD4;
  --accent-soft: #D2F9F3;
  --tint: #DDECEB;
  --tint-2: #F1F7F6;
  --on-primary: #FFFFFF;
  --footer: #062B28;
  --footer-muted: #9BAAA9;
  --footer-line: #294946;
  /* hero (dark, footer tone) */
  --hb-1: #062B28; --hb-2: #0D3F3B; --hero-glow-1: rgba(15, 118, 110, 0.55); --hero-glow-2: rgba(94, 234, 212, 0.22);

  /* رنگ افزونه‌ها (ثابت؛ هیچ‌کدام هم‌خانوادهٔ فیروزه‌ای نیست) */
  --pl-price: #2E5BFF;      --pl-price-soft: #E8EEFF;   --pl-price-ink: #2249D6;
  --pl-content: #C97A0A;    --pl-content-soft: #FDF1DC; --pl-content-ink: #8A5306;
  --pl-chat: #6A4BD8;       --pl-chat-soft: #EEE9FB;    --pl-chat-ink: #4F36B5;
  --pl-seo: #C8377A;        --pl-seo-soft: #FBE6F0;     --pl-seo-ink: #96245A;
  --ok: #168A54; --ok-soft: #E3F5EC; --ok-ink: #0C5A36;
  --err: #C8362B; --err-soft: #FCE9E7; --err-ink: #7E1F18;
  --warn: #B7791F; --warn-soft: #FBF1DC; --warn-ink: #6E4711;
  --info-soft: #EEF1F6;

  --font-body: "Vazirmatn", system-ui, Tahoma, sans-serif;
  --font-head: "Vazirmatn", system-ui, Tahoma, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --r-pill: 999px; --r-btn: 12px; --r-card: 16px; --r-frame: 24px;
  --shadow-soft: 0 8px 24px -12px rgba(28, 35, 33, .18);
  --shadow-lift: 0 24px 48px -20px rgba(28, 35, 33, .28);
  --shadow-chip: 0 12px 28px -14px rgba(28, 35, 33, .35);

  --container: 1152px; --gutter: 24px;
  --t: 160ms;
  --measure: 640px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: 46px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
h2 { font-size: 34px; font-weight: 800; line-height: 1.35; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.45; }
p { margin: 0; }
strong, b { font-weight: 700; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.small { font-size: 14px; line-height: 1.7; }
.muted { color: var(--muted); }
.em { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 80px; }
.section.is-tint { background: var(--tint-2); }
.section.is-surface { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .sub { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: var(--measure); }
.section-head.is-center .sub { margin-inline: auto; }

/* ---------- reveal (v2.js adds .is-in) ---------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity 320ms ease, transform 320ms ease; }
.rv.is-in, .no-js .rv { opacity: 1; transform: none; }

/* ---------- atoms ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-deep);
  font-size: 14px; font-weight: 700;
}
.pill svg { width: 16px; height: 16px; }
.badge {
  display: inline-block; vertical-align: middle; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.6; margin-inline-start: 8px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--primary-deep); padding-inline: 8px; height: 44px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.frame {
  border-radius: var(--r-frame); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-lift); border: 1px solid rgba(28, 35, 33, .06);
}
.frame img { width: 100%; }
.figcap { margin-top: 12px; font-size: 14px; color: var(--muted); }
figure { margin: 0; }

/* plugin hue helpers */
.pl-price   { --pl: var(--pl-price);   --pl-soft: var(--pl-price-soft);   --pl-ink: var(--pl-price-ink); }
.pl-content { --pl: var(--pl-content); --pl-soft: var(--pl-content-soft); --pl-ink: var(--pl-content-ink); }
.pl-chat    { --pl: var(--pl-chat);    --pl-soft: var(--pl-chat-soft);    --pl-ink: var(--pl-chat-ink); }
.pl-seo     { --pl: var(--pl-seo);     --pl-soft: var(--pl-seo-soft);     --pl-ink: var(--pl-seo-ink); }
.pl-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: var(--r-pill);
  background: var(--pl-soft); color: var(--pl-ink); font-size: 14px; font-weight: 700;
}
a.pl-tag:hover { text-decoration: none; filter: brightness(.97); }
.pl-tag svg { width: 16px; height: 16px; }
.pl-icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pl-soft); color: var(--pl);
}
.pl-icon svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
.h2 { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color var(--t), background-color var(--t); }
.h2.is-stuck { border-bottom-color: var(--line); background: var(--surface); }
.h2-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); height: 76px; display: flex; align-items: center; gap: 28px; }
.h2-logo img { height: 30px; width: auto; }
.h2-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.h2-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; background: transparent; border: 0; cursor: pointer; }
.h2-link:hover { background: var(--surface-2); text-decoration: none; }
.h2-link svg { width: 16px; height: 16px; opacity: .7; transition: transform var(--t); }
.h2-item { position: relative; }
.h2-item.is-open > .h2-link svg { transform: rotate(180deg); }
.h2-menu { display: none; position: absolute; top: 46px; inset-inline-start: 0; width: 360px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); grid-template-columns: 1fr; gap: 2px; }
.h2-item.is-open > .h2-menu { display: grid; }
.h2-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.h2-menu a:hover { background: var(--surface-2); text-decoration: none; }
.h2-menu a b { display: block; font-size: 15px; }
.h2-menu a small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.h2-menu .pl-icon { width: 40px; height: 40px; flex: none; }
.h2-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.h2-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.h2-phone svg { width: 18px; height: 18px; color: var(--primary); }
.h2-login { color: var(--ink); font-weight: 600; font-size: 15px; }
.h2-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.h2-burger svg { width: 24px; height: 24px; }
.h2-drawer { position: fixed; inset: 76px 0 0 0; background: var(--bg); z-index: 49; padding: 16px var(--gutter) 32px; overflow: auto; }
.h2-drawer[hidden] { display: none; }
.h2-drawer .h2-menu { display: grid; position: static; width: auto; box-shadow: none; margin-bottom: 12px; }
.h2-drawer-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 8px 6px; }
.h2-drawer-links { display: grid; gap: 4px; margin-bottom: 20px; }
.h2-drawer-links a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.h2-drawer-actions { display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding-block: 56px 72px; position: relative; overflow: hidden; isolation: isolate;
  --hs: 1;                                   /* motion speed factor (QA/GIF tooling lowers it) */
  --hb-line: rgba(255, 255, 255, .14);
  --on-hb: #FFFFFF; --on-hb-muted: rgba(255, 255, 255, .76);
  color: var(--on-hb);
  /* dark like the footer, a primary-coloured glow toward the scene and an accent glow in the top corner */
  background:
    radial-gradient(62% 80% at 16% 42%, var(--hero-glow-1) 0%, transparent 70%),
    radial-gradient(38% 46% at 94% 4%, var(--hero-glow-2) 0%, transparent 70%),
    linear-gradient(160deg, var(--hb-2) 0%, var(--hb-1) 100%);
}
.hero h1 { color: var(--on-hb); }
.hero .em { color: var(--accent); }
.hero .lede { color: var(--on-hb-muted); }
.hero .pill { background: rgba(255, 255, 255, .12); color: var(--on-hb); }
.hero .btn-primary { background: #fff; color: var(--primary-deep); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.hero .btn-primary:hover { background: var(--accent); color: var(--ink); }
.hero .btn-secondary { background: transparent; color: var(--on-hb); border-color: rgba(255, 255, 255, .5); }
.hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero .ticks li { color: var(--on-hb); }
.hero .ticks svg { color: var(--accent); }
.hero .scene { background: rgba(255, 255, 255, .07); border: 1px solid var(--hb-line); color: var(--ink); }
.hero .scene-card, .hero .scene-chip { color: var(--ink); }
.hero .scene-note { color: var(--on-hb-muted); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
/* axon curves: thin S-lines like the logo strokes; a gold signal travels along each one */
.hero-axon { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; }
.hero-axon .ax-line { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .18; }
.hero-axon .ax-glow, .hero-axon .ax-sig { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 60 940; stroke-dashoffset: 1000; animation: ax-travel calc(16s * var(--hs)) linear infinite; }
.hero-axon .ax-glow { stroke-width: 6; opacity: .16; }
.hero-axon .ax-sig { stroke-width: 1.8; opacity: .75; stroke-dasharray: 34 966; }
.hero-axon .ax-2 .ax-glow, .hero-axon .ax-2 .ax-sig { animation-duration: calc(20s * var(--hs)); animation-delay: calc(-7s * var(--hs)); }
.hero-axon .ax-3 .ax-glow, .hero-axon .ax-3 .ax-sig { animation-duration: calc(18s * var(--hs)); animation-delay: calc(-12s * var(--hs)); }
.hero-axon .ax-dot { fill: currentColor; opacity: .7; }
.hero-axon .ax-halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ax-halo calc(16s * var(--hs)) ease-out infinite; animation-delay: calc((var(--at) - 1) * 16s * var(--hs)); }
.hero-axon .ax-2 .ax-halo { animation-duration: calc(20s * var(--hs)); animation-delay: calc((var(--at) - 1) * 20s * var(--hs) - 7s * var(--hs)); }
.hero-axon .ax-3 .ax-halo { animation-duration: calc(18s * var(--hs)); animation-delay: calc((var(--at) - 1) * 18s * var(--hs) - 12s * var(--hs)); }
@keyframes ax-travel { to { stroke-dashoffset: 0; } }
@keyframes ax-halo { 0% { opacity: .5; transform: scale(.6); } 12% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; transform: scale(2.2); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-text .pill { margin-bottom: 20px; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text .lede { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--primary); margin-top: 6px; }

.scene { position: relative; border-radius: var(--r-frame); background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%); padding: 32px; min-height: 640px; display: flex; align-items: flex-start; }
.scene-card { width: 280px; margin-inline-end: auto; background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lift); border: 1px solid rgba(28, 35, 33, .06); position: relative; z-index: 1; }
.scene-card .img { background: var(--surface-2); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.scene-card .img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.scene-card .name { font-weight: 700; font-size: 15px; line-height: 1.6; margin-bottom: 6px; }
.scene-card .price { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.4; }
.scene-card .price small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); margin-inline-start: 4px; }
.scene-card .cmp { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.scene-card .cmp b { color: var(--pl-price-ink); font-weight: 700; }
.scene-chips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.scene-chip {
  position: absolute; display: flex; gap: 10px; align-items: flex-start; width: 252px; padding: 12px 14px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-chip); border: 1px solid rgba(28, 35, 33, .06);
  pointer-events: auto;
}
.scene-chip .pl-icon { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.scene-chip .pl-icon svg { width: 18px; height: 18px; }
.scene-chip b { display: block; font-size: 14px; line-height: 1.5; }
.scene-chip span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.scene-chip time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.scene-chip-1 { top: 22px; left: 22px; animation: float 6s ease-in-out infinite; }
.scene-chip-2 { top: 168px; left: 22px; animation: float 7s ease-in-out 1s infinite; }
.scene-chip-3 { bottom: 22px; left: 22px; animation: float 6.5s ease-in-out 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.scene-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- pains ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pain { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; transition: transform var(--t), box-shadow var(--t); }
.pain:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pain q { quotes: "«" "»"; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.6; color: var(--ink); display: block; }
.pain .with { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pain .with svg { width: 20px; height: 20px; flex: none; color: var(--pl); margin-top: 6px; }
.pain .with b { color: var(--pl-ink); }
.pain .pl-tag { align-self: flex-start; }

/* ---------- steps ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-step { padding: 28px 26px; position: relative; }
.how-step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 16px; }
.steps-note { margin-top: 24px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.steps-note svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* ---------- plugin rows ---------- */
.prows { display: grid; gap: 64px; }
.prow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.prow:nth-child(even) .prow-media { order: -1; }
.prow-text .pl-tag { margin-bottom: 16px; }
.prow-text h3 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.prow-text .lede { font-size: 17px; color: var(--muted); margin-bottom: 18px; }
.prow-text ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.prow-text li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.prow-text li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pl); flex: none; margin-top: 12px; }
.prow-media { border-radius: var(--r-frame); background: var(--pl-soft); padding: 32px; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.prow-media .frame { width: 100%; }
.prow-media figure { width: 100%; }
.prow-media .figcap { text-align: center; }

/* before/after (price) */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.ba-col { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-soft); border: 1px solid rgba(28, 35, 33, .06); }
.ba-col .lbl { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); margin-bottom: 12px; }
.ba-col.is-after .lbl { background: var(--pl-price-soft); color: var(--pl-price-ink); }
.ba-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ba-row:last-of-type { border-bottom: 0; }
.ba-row span { color: var(--muted); }
.ba-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ba-verdict { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.ba-col.is-before .ba-verdict { background: var(--warn-soft); color: var(--warn-ink); }
.ba-col.is-after .ba-verdict { background: var(--ok-soft); color: var(--ok-ink); }

/* chat */
.chat { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-soft); border: 1px solid rgba(28, 35, 33, .06); display: grid; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.75; }
.msg.is-user { background: var(--surface-2); margin-inline-start: auto; border-start-start-radius: 4px; }
.msg.is-bot { background: var(--pl-chat-soft); border-start-end-radius: 4px; }
.chat-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.chat-card .thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-2); flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.chat-card .thumb svg { width: 22px; height: 22px; }
.chat-card b { display: block; font-size: 14px; }
.chat-card span { font-size: 13px; color: var(--muted); }
.chat-card .btn { margin-inline-start: auto; }
.chat-meta { font-size: 12px; color: var(--muted); text-align: center; }

/* serp */
.serp-ba { width: 100%; max-width: 520px; display: grid; gap: 12px; }
.serp-col { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-soft); border: 1px solid rgba(28, 35, 33, .06); }
.serp-col .lbl { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); margin-bottom: 10px; }
.serp-col.is-after .lbl { background: var(--pl-seo-soft); color: var(--pl-seo-ink); }
.serp-ba .url { font-family: var(--font-mono); font-size: 12px; color: var(--muted); direction: ltr; text-align: right; }
.serp-ba .title { color: #1A0DAB; font-size: 17px; font-weight: 600; line-height: 1.5; margin: 2px 0; }
.serp-ba .desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.serp-ba .rich { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; margin-top: 6px; }
.serp-ba .rich .star { color: #E7711B; }
.serp-ba .rich .price { color: var(--pl-seo-ink); font-weight: 700; }

/* ---------- demo store ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.demo-text p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.demo-facts { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.demo-facts li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.demo-facts svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 26px; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; font-weight: 700; margin-top: 6px; }
.stat-human { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.stats-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.price-card { padding: 26px; }
.price-card .pl-icon { margin-bottom: 14px; background: var(--primary-soft); color: var(--primary); }
.price-card h3 { margin-bottom: 6px; }
.price-card p { color: var(--muted); font-size: 15px; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; border-radius: var(--r-card); background: var(--primary-soft); }
.example h3 { margin-bottom: 6px; }
.example p { font-size: 15px; color: var(--ink); }
.example .big { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--primary-deep); line-height: 1.4; }
.example .big small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.faq summary .ic svg { width: 16px; height: 16px; transition: transform var(--t); }
.faq details[open] summary .ic svg { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--muted); font-size: 16px; max-width: var(--measure); }
.faq-more { text-align: center; margin-top: 20px; }

/* ---------- human ---------- */
.human { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 32px 36px; }
.human p { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 560px; }
.human-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.human-phone { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: var(--r-btn); background: var(--primary-soft); color: var(--primary-deep); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.human-phone:hover { text-decoration: none; background: var(--tint); }
.human-phone svg { width: 20px; height: 20px; }

/* ---------- final ---------- */
.final { background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.final .container { position: relative; text-align: center; }
.final h2 { color: var(--on-primary); margin-bottom: 10px; }
.final .sub { color: rgba(255, 255, 255, .82); font-size: 18px; max-width: 600px; margin-inline: auto; margin-bottom: 28px; }
.final .btn-primary { background: var(--surface); color: var(--ink); box-shadow: none; }
.final .btn-primary:hover { background: #fff; }
.final .btn-secondary { background: transparent; color: var(--on-primary); border-color: rgba(255, 255, 255, .5); }
.final .btn-secondary:hover { border-color: #fff; }
.final-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.ft { background: var(--footer); color: #fff; padding-block: 56px 32px; font-size: 14px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.ft-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.ft-brand p { color: var(--footer-muted); max-width: 320px; margin-bottom: 14px; }
.ft h3 { font-family: var(--font-head); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { color: var(--footer-muted); }
.ft a:hover { color: #fff; }
.ft .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.ft-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--font-mono); font-size: 13px; }
.ft-trust { margin-bottom: 24px; }
.ft-bottom { border-top: 1px solid var(--footer-line); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--footer-muted); }

/* ---------- flash (components/flash.php) ---------- */
.flash-stack { position: fixed; bottom: 16px; inset-inline: 16px; z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.alert { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 520px; margin-inline-start: auto; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); font-size: 14px; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 4px; }
.alert-success { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.alert-error { background: var(--err-soft); color: var(--err-ink); border-color: transparent; }
.alert-warning { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.alert-info { background: var(--info-soft); color: var(--ink); border-color: transparent; }
.alert-body { flex: 1; }
.alert-close { border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .scene { max-width: 560px; margin-inline: auto; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prow:nth-child(even) .prow-media { order: 0; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .stats, .price-cards, .how-steps { grid-template-columns: minmax(0, 1fr); }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-nav, .h2-phone, .h2-login { display: none; }
  .h2-burger { display: inline-flex; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .section { padding-block: 56px; }
  .hero { padding-block: 32px 48px; }
  .hero-axon .ax-line { opacity: .1; }
  .hero-axon .ax-glow { opacity: .1; }
  .hero-text .lede { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .scene { padding: 20px; min-height: 0; flex-direction: column; gap: 14px; align-items: stretch; }
  .scene-card { width: 100%; max-width: 320px; margin-inline-end: 0; }
  .scene-chips { position: static; display: grid; gap: 10px; width: 100%; }
  .scene-chip { position: static; width: 100%; animation: none; left: auto; top: auto; bottom: auto; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pain q { font-size: 18px; }
  .prow-media { padding: 18px; min-height: 0; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-row { flex-wrap: wrap; }
  .ba-row b { white-space: normal; }
  .example { grid-template-columns: minmax(0, 1fr); }
  .example .big { font-size: 22px; }
  .human { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .h2-wrap { height: 64px; }
  .h2-drawer { inset-block-start: 64px; }
  .h2-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .stat-value { font-size: 38px; }
}
@media (max-width: 400px) {
  .chat-card { flex-wrap: wrap; }
  .chat-card .btn { width: 100%; margin-inline-start: 0; }
  .msg { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .scene-chip, .hero-axon .ax-glow, .hero-axon .ax-sig, .hero-axon .ax-halo { animation: none; }
  .hero-axon .ax-glow, .hero-axon .ax-sig { stroke-dashoffset: 0; opacity: 0; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   PAGES — فاز ۳ (۲۰۲۶‑۰۹‑۲۷): کامپوننت‌های صفحات داخلی روی همان توکن‌ها.
   سازگاری با partialهای ds_* (frame, accordion, rows, live-log, fragments, plans-table)
   و کامپوننت‌های calculator / plans. تیرگی (is-ink) = باند primary؛ paper-2 = tint.
   ===================================================================== */

/* ---------- compatibility tokens (inline styles + ds partials) ---------- */
:root {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --fs-display: 44px; --fs-h1: 46px; --fs-h2: 34px; --fs-h3: 20px; --lh-h3: 1.45; --fs-body: 17px; --lh-body: 1.9;
  --fs-small: 14px; --lh-small: 1.7; --fs-micro: 12px; --lh-micro: 1.6;
  --radius: 16px; --radius-s: 12px; --control-h: 48px;
  --paper: var(--surface); --paper-2: var(--surface-2); --text: var(--ink); --accent-text: var(--primary-deep);
  --on-ink: #FFFFFF; --on-ink-muted: rgba(255, 255, 255, .74); --on-ink-line: rgba(255, 255, 255, .18);
  --font: var(--font-body);
}
@media (max-width: 767px) { :root { --fs-display: 36px; --fs-h1: 34px; --fs-h2: 27px; --fs-h3: 18px; --fs-body: 16px; --gutter: 16px; } }
html { scroll-padding-top: 88px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; }
.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; }
.text-xs { font-size: 14px; line-height: 1.7; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.ltr-nums { direction: ltr; unicode-bidi: isolate; }
.lede { font-size: 19px; color: var(--muted); }
.measure { max-width: var(--measure); }
.stack { display: grid; gap: 24px; }
.stack-s { display: grid; gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* section variants used by the inner pages */
.section.is-paper-2 { background: var(--tint-2); }
.section.is-ink { background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
.section.is-ink::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none; }
.section.is-ink .container { position: relative; }
.section.is-ink h1, .section.is-ink h2, .section.is-ink h3 { color: var(--on-primary); }
.section.is-ink .sub, .section.is-ink p { color: rgba(255, 255, 255, .84); }
.section.is-ink a:not(.btn) { color: #fff; }
.section.is-ink .btn-primary { background: var(--surface); color: var(--ink); box-shadow: none; }
.section.is-ink .btn-primary:hover { background: #fff; }
.section.is-ink .btn-secondary { background: transparent; color: var(--on-primary); border-color: rgba(255, 255, 255, .55); }
.section.is-ink .btn-secondary:hover { border-color: #fff; }
.cta-final { text-align: center; }
.cta-final .section-head { margin-inline: auto; text-align: center; margin-bottom: 28px; }
.cta-final .section-head .sub { margin-inline: auto; }
.cta-final .btn-row { justify-content: center; }
.section.is-tight { padding-top: 0; }

/* page hero (pricing, faq, docs index, blog, consult) */
.hero-page { padding-block: 56px 32px; }
.hero-page .hero-text { max-width: 720px; display: grid; gap: 14px; justify-items: start; }
.hero-page .hero-text .sub { font-size: 19px; color: var(--muted); max-width: var(--measure); }
.hero-page .btn-row { margin-top: 8px; }

/* product / partner hero: text + media */
.hero-product { padding-block: 40px 64px; position: relative; overflow: hidden; }
.hero-product::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--tint), transparent 70%); pointer-events: none; }
.hero-product .container { position: relative; }
.hero-product .breadcrumb { margin-bottom: 24px; }
.hero-product .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero-product .hero-text { display: grid; gap: 16px; justify-items: start; }
.hero-product .hero-text h1 { font-size: 42px; }
.hero-product .hero-text .sub { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-media { border-radius: var(--r-frame); background: linear-gradient(160deg, var(--pl-soft, var(--tint)) 0%, var(--tint-2) 100%); padding: 20px; min-width: 0; }
.hero-media .live-log { min-width: 560px; }
.hero-media .figure { min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.ticks.is-facts li { font-size: 14px; color: var(--muted); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: 14px; line-height: 1.7; font-weight: 700; }
.input {
  width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink); transition: border-color var(--t), box-shadow var(--t);
}
textarea.input { min-height: 120px; padding-block: 12px; resize: vertical; }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.input[readonly] { background: var(--surface-2); }
.hint { font-size: 14px; line-height: 1.7; color: var(--muted); }
.field .error { color: var(--err-ink); font-size: 14px; font-weight: 700; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form-row .field { flex: 1 1 220px; }
.form-card { padding: 28px; display: grid; gap: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; font-weight: 700; background: var(--surface); cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t); }
.choice input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.choice input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row .input { width: 120px; text-align: center; font-weight: 700; direction: ltr; }
.range { flex: 1; width: 100%; height: 32px; accent-color: var(--primary); }
.notify-form { margin-top: 4px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; font-weight: 700; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* ---------- ds_frame ---------- */
.figure { display: grid; gap: 12px; min-width: 0; }
.frame-bar { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.frame-title { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-url { margin-inline-start: auto; max-width: 60%; font-family: var(--font-mono); font-size: 12px; color: var(--muted); direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-body { min-width: 0; }
.frame-body.is-padded { padding: 24px; }
.frame img.shot { width: 100%; height: auto; display: block; }
.frame-note { font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (max-width: 767px) { .frame-body.is-padded { padding: 16px; } .frame-title { display: none; } .frame-url { margin-inline-start: 0; max-width: 100%; } }

/* ---------- ds_accordion ---------- */
.acc { display: grid; gap: 10px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 22px; }
.acc-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; cursor: pointer; }
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); transition: transform var(--t); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px; }
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; }
.acc-item[open] .acc-icon { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; color: var(--muted); max-width: var(--measure); font-size: 16px; }
.faq-more { margin-top: 20px; }

/* ---------- ds_step_rows / ds_plugin_rows (zigzag) ---------- */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.row:nth-child(even) .row-media { order: -1; }
.row.is-stacked { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.row.is-stacked .row-media { order: 0; }
.row-text { display: grid; gap: 10px; min-width: 0; }
.row-text h3 { font-size: 22px; }
.row-text p { color: var(--muted); font-size: 16px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.row-media { min-width: 0; border-radius: var(--r-frame); background: var(--pl-soft, var(--tint-2)); padding: 24px; }
.plugin-name { display: flex; align-items: center; gap: 12px; }
.plugin-name svg { width: 28px; height: 28px; flex: none; }
.plugin-lede { color: var(--muted); }
.plugin-points { list-style: none; display: grid; gap: 8px; }
.plugin-points li { position: relative; padding-inline-start: 18px; }
.plugin-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--pl, var(--primary)); }
.plugin-link { justify-self: start; }
@media (max-width: 1023px) { .row { grid-template-columns: minmax(0, 1fr); gap: 20px; } .row:nth-child(even) .row-media { order: 0; } .row-media { padding: 16px; } }

/* ---------- ds_live_log ---------- */
.live-log-wrap { overflow-x: auto; }
.live-log { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; caption-side: bottom; }
.live-log th, .live-log td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.live-log thead th { font-size: 12px; font-weight: 700; color: var(--muted); }
.live-log tbody tr:last-child td { border-bottom: 0; }
.live-log .log-product { font-weight: 700; color: var(--ink); white-space: normal; min-width: 240px; position: sticky; inset-inline-start: 0; background: var(--surface); }
.live-log .log-product small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.live-log thead th:first-child { position: sticky; inset-inline-start: 0; background: var(--surface); }
.live-log .log-new { font-weight: 700; color: var(--pl-price-ink); }
.live-log .log-time { color: var(--muted); }
.live-log caption { padding: 12px 16px; text-align: right; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .live-log { min-width: 0; }
  .live-log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .live-log tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 16px; border-bottom: 1px solid var(--line); }
  .live-log tbody tr:last-child { border-bottom: 0; }
  .live-log th, .live-log td { display: block; padding: 0; border: 0; white-space: normal; }
  .live-log .log-product { grid-column: 1 / -1; position: static; min-width: 0; }
  .live-log td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .live-log caption { display: block; border-top: 1px solid var(--line); }
}

/* ---------- fragments inside ds_frame ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.spec th, .spec td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.spec th { width: 38%; font-weight: 400; color: var(--muted); padding-inline-end: 16px; }
.spec td { font-weight: 700; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec-src { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.rec-title { margin-bottom: 12px; }
.rec-text { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.frame .chat { max-width: none; box-shadow: none; border: 0; border-radius: 0; padding: 24px; gap: 12px; }
.chat-msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.75; }
.chat-msg.is-user { justify-self: start; background: var(--surface-2); color: var(--ink); border-start-start-radius: 4px; }
.chat-msg.is-bot { justify-self: end; background: var(--pl-chat-soft); color: var(--ink); border-start-end-radius: 4px; }
.chat-msg .chat-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.chat-msg .chat-card b { display: block; }
.chat-msg .chat-card span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; max-width: 82%; }
.chat-starter { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; color: var(--ink); background: var(--surface); }
.chat-input { display: flex; gap: 8px; padding: 0 24px 24px; }
.chat-input .input { min-height: 40px; }
.audit { list-style: none; display: grid; }
.audit li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.audit li:last-child { border-bottom: 0; }
.chip { flex: none; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; line-height: 1.6; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip-warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip-sale { background: var(--err-soft); color: var(--err-ink); }
.setup { display: grid; gap: 16px; padding: 24px; }
.setup .field .input { font-size: 14px; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.listing { padding: 16px 24px; }
.listing-head { font-weight: 700; margin-bottom: 8px; }
.listing-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.listing-row:last-of-type { border-bottom: 0; }
.listing-rank { color: var(--muted); }
.listing-price { font-weight: 700; }
.listing-row:first-of-type .listing-price { color: var(--pl-price-ink); }
.listing-note { font-size: 12px; color: var(--muted); padding-top: 8px; }
.draft { display: grid; gap: 16px; padding: 24px; }
.draft-head b { display: block; margin-bottom: 8px; }
.draft-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; font-size: 14px; line-height: 1.7; }
.draft-meta dt { color: var(--muted); }
.draft-meta dd { margin: 0; font-weight: 700; }
.draft-q { font-weight: 700; }
.conf { list-style: none; display: grid; gap: 8px; }
.conf li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 48px; gap: 12px; align-items: center; font-size: 14px; }
.conf-bar { display: block; height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: var(--pl-content); border-radius: var(--r-pill); }
.conf b { text-align: left; font-variant-numeric: tabular-nums; color: var(--pl-content-ink); }
.gaps-q { white-space: normal; min-width: 220px; }
.gaps-q .muted { display: block; font-size: 12px; }
.gaps .input { min-height: 36px; font-size: 14px; min-width: 160px; }
.serp { display: grid; gap: 4px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.serp:last-child { border-bottom: 0; }
.serp .chip { justify-self: start; margin-bottom: 4px; }
.serp-url { font-size: 12px; color: var(--muted); }
.serp-title { font-weight: 600; color: #1A0DAB; font-size: 17px; }
.serp-rich { font-weight: 700; font-size: 14px; color: var(--pl-seo-ink); }
.serp-desc { font-size: 14px; line-height: 1.7; color: var(--muted); }
.ws { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.ws th, .ws td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ws thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.ws tbody tr:last-child td { border-bottom: 0; }
.ws td b { display: block; }
.ws td small { color: var(--muted); }
@media (max-width: 767px) {
  .setup-grid, .draft-meta { grid-template-columns: minmax(0, 1fr); }
  .conf li { grid-template-columns: minmax(0, 1fr) 100px 40px; }
  .chat-msg { max-width: 92%; }
  .live-log.gaps tr { grid-template-columns: minmax(0, 1fr); }
  .gaps-q { min-width: 0; }
  .gaps .input { min-width: 0; width: 100%; }
}

/* ---------- product page ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; display: grid; gap: 8px; align-content: start; }
.feature .f-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--pl-soft, var(--primary-soft)); color: var(--pl, var(--primary)); margin-bottom: 6px; }
.feature .f-ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 16px; }
.more-features { margin-top: 40px; max-width: 800px; margin-inline: auto; }
.more-features h3 { margin-bottom: 14px; text-align: center; }
.cost-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: 28px 32px; border-radius: var(--r-card); background: var(--primary-soft); }
.cost-card .stat-value { color: var(--primary-deep); font-size: 40px; }
.cost-card .stat-label { color: var(--ink); font-weight: 600; }
.cost-lines { display: grid; gap: 10px; max-width: var(--measure); color: var(--ink); font-size: 16px; }
.cost-lines a { justify-self: start; font-weight: 700; }

/* ---------- prose (docs, legal, blog) ---------- */
.prose { max-width: 720px; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h1 { margin-bottom: 12px; font-size: 38px; }
.prose .lede { color: var(--muted); font-size: 19px; line-height: 1.8; }
.prose h2 { margin-top: 56px; scroll-margin-top: 96px; font-size: 26px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 8px; }
.prose li > p + p { margin-top: 8px; }
.prose img { border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.prose th, .prose td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; color: var(--muted); }
.prose pre { padding: 16px; background: var(--surface-2); border-radius: var(--r-btn); overflow-x: auto; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.prose code:not(pre code) { padding: 1px 6px; background: var(--surface-2); border-radius: 6px; font-size: .9em; }
.prose blockquote { margin: 0; padding: 12px 16px; background: var(--primary-soft); border-radius: var(--r-btn); color: var(--ink); }
.prose .btn-row { margin-top: 32px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 720px) minmax(160px, 1fr); gap: 48px; align-items: start; }
.docs-side { position: sticky; top: 96px; font-size: 14px; line-height: 1.7; }
.docs-side details > summary { display: none; }
.docs-group { margin-bottom: 16px; }
.docs-group b { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.docs-side a { display: block; padding: 6px 10px; margin-inline-start: -10px; border-radius: 8px; color: var(--ink); }
.docs-side a:hover { background: var(--surface-2); text-decoration: none; }
.docs-side a[aria-current="page"] { font-weight: 700; color: var(--primary-deep); background: var(--primary-soft); }
.toc { position: sticky; top: 96px; font-size: 14px; line-height: 1.7; }
.toc b { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.doc-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 22px; background: var(--primary-soft); border-radius: var(--r-card); }
.doc-download b { display: block; }
.doc-download small { color: var(--muted); font-size: 14px; }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 22px 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); transition: transform var(--t), box-shadow var(--t); }
.doc-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.doc-item h3 { margin-bottom: 4px; font-size: 18px; }
.doc-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.doc-item .doc-file { font-size: 12px; color: var(--muted); white-space: nowrap; }
.docs-group-title { margin: 40px 0 14px; font-size: 22px; }
.alert.is-static { position: static; max-width: none; margin: 0; box-shadow: none; }
@media (max-width: 1023px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-side, .toc { position: static; }
  .toc { display: none; }
  .docs-side details > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); font-weight: 700; cursor: pointer; list-style: none; }
  .docs-side details > summary::-webkit-details-marker { display: none; }
  .docs-side details > summary svg { width: 18px; height: 18px; }
  .docs-side details > div { padding: 12px 6px 0; }
  .doc-list { grid-template-columns: minmax(0, 1fr); }
  .doc-item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- blog list ---------- */
.post-list { display: grid; gap: 16px; }
.post-item { display: grid; gap: 8px; padding: 24px 26px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); transition: transform var(--t), box-shadow var(--t); }
.post-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.post-item h2 { font-size: 22px; }
.post-item p { color: var(--muted); max-width: var(--measure); font-size: 16px; }

/* ---------- pricing: plan cards, unit costs, calculator ---------- */
.pill-sale { background: var(--err-soft); color: var(--err-ink); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.plan-card.is-pick { border-color: var(--primary); box-shadow: var(--shadow-lift); }
.plan-card-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 800; padding: 6px 18px; border-radius: var(--r-pill); white-space: nowrap; box-shadow: var(--shadow-chip); }
.plan-card-tokens { font-family: var(--font-head); font-size: 30px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.plan-card-tokens small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-card-price { display: grid; gap: 8px; justify-items: center; text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.plan-card-amount { font-family: var(--font-head); font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-card-amount span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-card-amount .price-was { font-family: var(--font-body); }
.plan-card-per { color: var(--muted); font-size: 13px; }
.plan-card-covers { display: grid; gap: 12px; flex: 1; margin: 0; padding: 0; list-style: none; }
.plan-card-covers li { display: flex; align-items: center; gap: 10px; }
.plan-card-covers .pl-icon { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.plan-card-covers .pl-icon svg { width: 16px; height: 16px; }
.plan-card-covers b { display: block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-card-covers small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.plan-card .btn { margin-top: auto; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } .plan-card.is-pick { order: -1; } }
.unit-costs { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.unit-costs th, .unit-costs td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.unit-costs th { font-size: 12px; color: var(--muted); font-weight: 700; }
.unit-costs tbody tr:last-child td { border-bottom: 0; }
.table-card { padding: 8px 16px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-frame); overflow: hidden; box-shadow: var(--shadow-lift); }
.calc-in { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-inline-end: 0; display: grid; gap: 24px; align-content: start; }
.calc-in .field { margin: 0; }
.calc-inputs { display: grid; gap: 24px; }
.calc-in .text-xs { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.calc-out { padding: 32px; background: var(--primary-deep); --text: #fff; --muted: rgba(255, 255, 255, .74); --line: rgba(255, 255, 255, .18); color: var(--text); display: grid; gap: 12px; align-content: start; }
.calc-out .co-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.calc-out .co-value { font-family: var(--font-head); font-size: 38px; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; text-wrap: balance; color: #fff; }
.calc-out .co-value small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.calc-out .co-sub { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-out .co-sub:empty, .calc-out .co-formula:empty, .calc-out .co-plan:empty, .calc-out .co-trial:empty { display: none; }
.calc-out .co-formula { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding: 12px 16px; background: rgba(255, 255, 255, .08); border-radius: var(--r-btn); direction: ltr; text-align: left; }
.calc-out .co-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .08); }
.calc-out .co-plan b { color: #fff; }
.calc-out .co-plan small { display: block; color: var(--muted); }
.calc-out .co-plan s { color: var(--muted); font-weight: 500; font-size: 13px; margin-inline-end: 6px; }
.calc-out .co-hint, .calc-out .co-trial, .calc-out .co-note { font-size: 14px; line-height: 1.7; color: var(--muted); }
.calc-out .co-note { display: flex; gap: 8px; align-items: center; }
.calc-out .co-note svg { width: 18px; height: 18px; color: #fff; }
.calc-out .btn { justify-self: start; margin-top: 8px; }
.calc-out .btn-primary { background: var(--surface); color: var(--ink); box-shadow: none; }
.calc-out .btn-primary:hover { background: #fff; }
@media (max-width: 1023px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-in { border-inline-end: 1px solid var(--line); border-bottom: 0; } }

/* ---------- info cards (pricing / partners / consult) ---------- */
.one-account > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); padding: 24px; }
.one-account h3 { margin-bottom: 6px; }
.one-account p { color: var(--muted); font-size: 16px; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-card); background: var(--primary-soft); }
.strip p { margin: 0; }
.steps-inline { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.steps-inline li { display: grid; gap: 8px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.steps-inline p { color: var(--muted); font-size: 16px; }

/* ---------- centred pages (thanks, errors, download) ---------- */
.centered { text-align: center; max-width: 640px; margin-inline: auto; display: grid; gap: 16px; justify-items: center; padding: 40px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); box-shadow: var(--shadow-soft); }
.centered .sub { color: var(--muted); font-size: 18px; }
.centered .btn-row { justify-content: center; }
.checklist { list-style: none; display: grid; gap: 12px; text-align: right; width: 100%; }
.checklist li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .n { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.checklist b { display: block; }
.checklist small { color: var(--muted); font-size: 14px; }

@media (max-width: 1023px) {
  .cols-2, .cols-3, .features { grid-template-columns: minmax(0, 1fr); }
  .hero-product .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-product .hero-text h1 { font-size: 36px; }
  .cost-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .steps-inline { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .centered { padding: 28px 20px; }
  .hero-product .hero-text h1 { font-size: 32px; }
  .hero-media { padding: 14px; }
  .prose h1 { font-size: 30px; }
  .prose h2 { font-size: 23px; }
  .cost-card { padding: 22px; }
  .calc-in, .calc-out { padding: 22px; }
}

/* =====================================================================
   MARKETPLACE — فاز ۴ (۲۰۲۶‑۱۰‑۰۴): فروشگاه افزونه/قالب روی همان توکن‌ها.
   فهرست (.mk-*), کارت محصول (.pcard), صفحهٔ محصول (.pd-*), باکس قیمت (.price-box),
   افشای توکن (.disclosure), گالری (.gallery/.lb), تب‌ها (.tabs), نظرات (.reviews),
   صفحه‌بندی (.pager), آژانس (.svc-card/.tier/.case-card), هدر عریض (.h2-menu.is-wide).
   ===================================================================== */

/* ---------- listing hero + chips ---------- */
.mk-hero .hero-text { margin-bottom: 20px; }
.mk-hero .breadcrumb { margin-bottom: 20px; }
.mk-search { display: flex; align-items: center; gap: 10px; max-width: 720px; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.mk-search > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.mk-search .input { border: 0; background: transparent; min-height: 44px; padding: 0 6px; }
.mk-search .input:focus { outline: none; }
.mk-search .btn { height: 44px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip svg { width: 15px; height: 15px; color: var(--muted); }
a.chip:hover { text-decoration: none; border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active svg { color: #fff; }
.chip-ok { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.chips.is-static .chip { min-height: 30px; font-size: 13px; padding: 0 10px; }

/* ---------- listing layout ---------- */
.mk-section { padding-top: 8px; }
.mk-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.mk-side { position: sticky; top: 92px; }
.mk-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.mk-filters > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.mk-filters > summary::-webkit-details-marker { display: none; }
.mk-filters > summary svg { width: 18px; height: 18px; }
.filter-bar { padding: 4px 18px 18px; display: grid; gap: 18px; }
.filter-group { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group > legend, .filter-group > .label { padding: 0; margin-bottom: 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.filter-search { position: relative; }
.filter-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.filter-search .input { padding-inline-start: 40px; min-height: 42px; }
.filter-bar .check { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: 15px; }
.filter-bar .check input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex: none; }
.filter-bar .check small { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mk-sort { display: flex; align-items: center; gap: 10px; }
.mk-sort .label { white-space: nowrap; }
.mk-sort .input { min-height: 42px; width: auto; padding-inline-end: 36px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mk-empty { padding: 32px; text-align: center; display: grid; gap: 10px; justify-items: center; }

/* ---------- product card ---------- */
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--pl, var(--line)); }
.pcard-media { display: block; aspect-ratio: 1.9; background: linear-gradient(160deg, var(--pl-soft, var(--tint)) 0%, var(--tint-2) 100%); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-tile { display: grid; place-items: center; height: 100%; }
.pcard-tile .pl-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.pcard-tile .pl-icon svg { width: 30px; height: 30px; }
.pcard-body { display: grid; gap: 10px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.pcard-head { display: flex; align-items: center; gap: 12px; }
.pcard-title { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0; }
.pcard-title a { color: var(--ink); }
.pcard-title a:hover { text-decoration: none; color: var(--pl-ink, var(--primary-deep)); }
.pcard-short { color: var(--muted); font-size: 15px; line-height: 1.7; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-meta svg { width: 14px; height: 14px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard-price { font-size: 15px; }
.pcard-price .price-now, .price-box .price-now { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.pcard-gift { display: inline-flex; align-items: center; gap: 6px; color: var(--pl-ink, var(--primary-deep)); font-size: 13px; font-weight: 600; }
.pcard-gift svg { width: 14px; height: 14px; }
.pcard.is-compact { flex-direction: row; align-items: center; }
.pcard.is-compact .pcard-body { padding: 14px 16px; gap: 6px; }
.pcard.is-compact .pcard-short, .pcard.is-compact .pcard-meta { display: none; }
.pcard.is-compact .pcard-foot { border-top: 0; padding-top: 0; }
.price-free { color: var(--ok-ink); font-weight: 800; }
.price-ask, .price-soon { color: var(--muted); font-weight: 600; }
.price-was { color: var(--muted); font-size: 14px; }

/* ---------- product page ---------- */
.pd-top { padding-block: 24px 64px; }
.pd-top .breadcrumb { margin-bottom: 20px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.pd-main { min-width: 0; display: grid; gap: 28px; }
.pd-head { display: grid; gap: 14px; }
.pd-title { display: flex; align-items: center; gap: 16px; }
.pd-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.pd-icon svg { width: 28px; height: 28px; }
.pd-icon img { width: 30px; height: 30px; object-fit: contain; }
.pd-title h1 { font-size: 36px; line-height: 1.3; }
.pd-plugin-name { font-size: 15px; margin-top: 2px; }
.pd-head .lede { max-width: 640px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); align-items: center; }
.pd-meta > span, .pd-meta > a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.pd-meta svg { width: 15px; height: 15px; }
.pd-side { min-width: 0; }
.pd-sticky { position: sticky; top: 92px; display: grid; gap: 16px; }
.pd-facts { margin: 0; padding: 6px 20px; display: grid; }
.pd-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-facts > div:last-child { border-bottom: 0; }
.pd-facts dt { color: var(--muted); flex: none; }
.pd-facts dd { margin: 0; text-align: left; font-weight: 600; }
.pd-features { margin-bottom: 24px; }
.pd-features .feature { padding: 20px; }
.pd-prose { max-width: none; }
.pd-h { margin-bottom: 14px; }
.pd-steps { list-style: none; display: grid; gap: 18px; }
.pd-steps li { display: flex; gap: 16px; align-items: flex-start; }
.pd-steps .step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--pl-soft, var(--primary-soft)); color: var(--pl-ink, var(--primary-deep)); display: inline-grid; place-items: center; font-weight: 800; flex: none; }
.pd-steps h3 { font-size: 18px; margin-bottom: 4px; }
.pd-steps p { color: var(--muted); }
.pd-install { text-align: right; margin-bottom: 20px; }
.usage-table .num { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.changelog { display: grid; gap: 22px; }
.cl-ver h3 { display: flex; align-items: baseline; gap: 12px; font-size: 18px; margin-bottom: 8px; }
.cl-ver h3 small { font-size: 13px; font-weight: 500; }
.cl-ver ul { padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--ink); font-size: 15px; }

/* price box */
.price-box { padding: 22px 22px 24px; display: grid; gap: 14px; border-top: 4px solid var(--pl, var(--primary)); }
.price-box-head { display: grid; gap: 4px; }
.price-box-head .chip-sale { justify-self: start; }
.price-main { display: flex; align-items: baseline; gap: 6px; }
.price-box .price-now { font-size: 32px; }
.sale-timer { display: grid; gap: 8px; margin-top: 6px; padding: 10px; border-radius: var(--r-btn); background: var(--err-soft); }
.sale-timer-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--err-ink); }
.sale-timer-label svg { width: 14px; height: 14px; flex: none; }
.sale-timer-label.is-done { justify-content: center; text-align: center; }
.sale-timer-tiles { display: flex; gap: 6px; }
.sale-timer-tiles .tile { flex: 1; text-align: center; background: var(--surface); border-radius: 8px; padding: 6px 2px; box-shadow: var(--shadow-soft); }
.sale-timer-tiles .tile b { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--err-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sale-timer-tiles .tile small { display: block; font-size: 10px; color: var(--err-ink); opacity: .8; margin-top: 2px; }
.price-gift { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--pl-soft, var(--primary-soft)); color: var(--pl-ink, var(--primary-deep)); font-weight: 700; font-size: 15px; }
.price-gift svg { width: 18px; height: 18px; flex: none; }
.price-gift .hint { flex-basis: 100%; font-weight: 400; font-size: 12px; color: var(--pl-ink, var(--primary-deep)); opacity: .85; }
.price-box-ctas { display: grid; gap: 8px; }
.price-box .ticks li { font-size: 14px; color: var(--muted); }
.price-box .ticks svg { color: var(--pl, var(--primary)); }
.price-box-note { color: var(--muted); font-size: 15px; }
.price-box .notify-form .btn { margin-top: 4px; }

/* token disclosure */
.disclosure { padding: 16px 18px; border-radius: var(--r-card); background: var(--warn-soft); color: var(--warn-ink); display: grid; gap: 8px; }
.disclosure h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--warn-ink); }
.disclosure h3 svg { width: 18px; height: 18px; flex: none; }
.disclosure p { font-size: 14px; line-height: 1.8; color: var(--ink); }
.disclosure-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.disclosure-links a { font-weight: 700; color: var(--warn-ink); font-size: 14px; }

/* gallery + lightbox */
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery-stage { border-radius: var(--r-frame); background: linear-gradient(160deg, var(--pl-soft, var(--tint)) 0%, var(--tint-2) 100%); padding: 16px; min-width: 0; }
.gallery-slide { margin: 0; display: grid; gap: 10px; }
.gallery-slide[hidden] { display: none; }
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lift); }
.gallery-zoom img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-plain { display: block; width: 100%; border-radius: var(--r-card); overflow: hidden; }
.gallery-plain img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.gallery-html { min-width: 0; }
.gallery-html .live-log { min-width: 0; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gallery-thumb { flex: none; width: 96px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--pl, var(--primary)); }
.gallery-thumb-demo { display: grid; place-items: center; gap: 2px; height: 100%; font-size: 11px; font-weight: 700; color: var(--pl-ink, var(--primary-deep)); background: var(--pl-soft, var(--primary-soft)); }
.gallery-thumb-demo svg { width: 16px; height: 16px; }
.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.lb::backdrop { background: rgba(6, 43, 40, .92); }
.lb img { max-width: 96vw; max-height: 84vh; border-radius: var(--r-card); display: block; margin: 0 auto; }
.lb-cap { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; }
.lb button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { top: 50%; inset-inline-end: 16px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-start: 16px; transform: translateY(-50%); }

/* tabs */
.tabs-wrap { display: grid; gap: 24px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 16px; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--pl, var(--primary)); }
.tab .count { display: inline-block; margin-inline-start: 6px; font-size: 12px; background: var(--surface-2); color: var(--muted); border-radius: var(--r-pill); padding: 0 7px; }
.tab.is-active .count { background: var(--ink); color: #fff; }
.tab-panel { min-width: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline: none; }
.no-js .tab-panel + .tab-panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

/* reviews */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating-stars { position: relative; display: inline-block; width: 92px; height: 18px; line-height: 0; }
.rating-stars svg { width: 18px; height: 18px; display: inline-block; }
.rating-bg { color: var(--line); white-space: nowrap; }
.rating-fg { position: absolute; inset: 0 0 auto auto; overflow: hidden; white-space: nowrap; color: #E8A317; }
.rating-fg svg, .rating-bg svg { fill: currentColor; }
.rating.is-small .rating-stars { width: 72px; height: 14px; }
.rating.is-small .rating-stars svg { width: 14px; height: 14px; }
.rating-text { font-size: 14px; }
.rating-text b { font-weight: 800; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label { cursor: pointer; width: 32px; height: 32px; color: var(--line); display: grid; place-items: center; }
.rating-input label svg { width: 30px; height: 30px; fill: currentColor; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #E8A317; }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }
.reviews { display: grid; gap: 20px; margin-bottom: 28px; }
.review-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 40px; align-items: center; padding: 20px 24px; border-radius: var(--r-card); background: var(--surface-2); }
.review-avg { display: grid; justify-items: center; gap: 6px; }
.review-avg b { font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1; }
.hist { list-style: none; display: grid; gap: 6px; max-width: 360px; }
.hist li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 13px; }
.hist-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: #E8A317; }
.review { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review header > div { display: grid; }
.review header .rating { margin-inline-start: auto; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; font-weight: 800; }
.review h4 { font-size: 17px; }
.review p { font-size: 15px; line-height: 1.8; }
.review-reply { margin-top: 6px; padding: 12px 16px; border-radius: var(--r-btn); background: var(--primary-soft); display: grid; gap: 4px; }
.review-reply b { color: var(--primary-deep); font-size: 14px; }
.review-form { padding: 24px; display: grid; gap: 16px; }
.review-gate { padding: 16px 20px; border-radius: var(--r-card); background: var(--surface-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.review-gate p { color: var(--muted); font-size: 15px; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager-n, .pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
.pager a:hover { text-decoration: none; border-color: var(--ink); }
.pager-n.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-step.is-off { opacity: .4; }
.pager-step svg { width: 16px; height: 16px; }
.pager-dots { padding: 0 4px; color: var(--muted); }

/* licence explainer */
.lic-card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.lic-card .pl-icon { color: var(--primary); background: var(--primary-soft); }
.lic-card p { color: var(--muted); font-size: 15px; }

/* ---------- agency: service cards, tiers, case cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-card { padding: 28px; display: grid; gap: 12px; align-content: start; }
.svc-card .pl-icon { color: var(--primary); background: var(--primary-soft); }
.svc-card h3 { font-size: 22px; }
.svc-card h3 a { color: var(--ink); }
.svc-lede { color: var(--muted); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.svc-from { font-size: 17px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { position: relative; padding: 26px; display: grid; gap: 12px; align-content: start; }
.tier.is-pick { border-color: var(--primary); box-shadow: var(--shadow-lift); }
.tier > .badge { position: absolute; top: -12px; inset-inline-start: 20px; margin: 0; background: var(--primary); color: #fff; }
.tier-price { font-family: var(--font-head); font-weight: 800; font-size: 24px; }
.tier-for { font-size: 14px; }
.tier .ticks li { font-size: 14px; }
.tier .btn { margin-top: auto; }
.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-cover { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover-ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.case-cover-ph svg { width: 36px; height: 36px; }
.case-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.case-body h3 a { color: var(--ink); }
.case-stat b { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--primary-deep); margin-inline-end: 6px; }

/* ---------- header: wide plugins dropdown ---------- */
.h2-menu.is-wide { width: 640px; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; padding: 12px; }
.h2-col { display: grid; gap: 2px; align-content: start; min-width: 0; }
.h2-menu.is-wide .h2-cats { border-inline-end: 1px solid var(--line); padding-inline-end: 12px; }
.h2-col-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 6px 12px 6px; }
.h2-cats a { padding: 9px 12px; gap: 10px; align-items: center; }
.h2-cats a svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.h2-cats a span { flex: none; font-weight: 600; font-size: 15px; }
.h2-cats a small { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1; }
.h2-feat { grid-template-columns: minmax(0, 1fr); }
.h2-feat > a { align-items: flex-start; padding: 10px 12px; }
.h2-feat > a > span:last-child { min-width: 0; }
.h2-feat > a b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.5; }
.h2-feat > a b .badge { margin: 0; }
.h2-feat > a small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-feat .pl-icon { margin-top: 2px; }
.h2-all { display: flex; align-items: center; gap: 6px; padding: 10px 12px; margin-top: 4px; font-weight: 700; color: var(--primary-deep) !important; }
.h2-all svg { width: 16px; height: 16px; }
.h2-menu .pl-icon img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-menu.is-wide { width: 600px; }
}
@media (max-width: 1023px) {
  .mk-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mk-side { position: static; }
  .mk-filters:not([open]) .filter-bar { display: none; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-sticky { position: static; }
  .pd-side { order: -1; }
  .pd-side .pd-facts { display: none; }
  .tiers, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .review-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-search { flex-wrap: wrap; border-radius: var(--r-card); padding: 10px; }
  .mk-search .btn { width: 100%; }
  .pd-title h1 { font-size: 28px; }
  .pd-top { padding-block: 16px 48px; }
  .gallery-stage { padding: 10px; }
  .price-box { padding: 18px; }
  .pager-n { min-width: 36px; height: 36px; }
}

/* ---------- checkout (phase 4c) ---------- */
.co-section { padding-block: 24px 64px; }
.co-section .breadcrumb { margin-bottom: 16px; }
.co-section .section-head { margin-bottom: 24px; }
.co-section .section-head h1 { font-size: 34px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.co-main { display: grid; gap: 16px; min-width: 0; }
.co-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-top: 4px solid var(--pl, var(--primary)); }
.co-item .pl-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.co-item .pl-icon img { width: 26px; height: 26px; object-fit: contain; }
.co-item-text { flex: 1; min-width: 0; display: grid; gap: 8px; }
.co-item-text h2 { font-size: 22px; }
.co-item-text .ticks li { font-size: 14px; color: var(--muted); }
.co-item-text .ticks svg { color: var(--pl, var(--primary)); }
.co-item-price { font-size: 18px; white-space: nowrap; }
.co-item-price .price-now { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.co-coupon { padding: 18px 22px; display: grid; gap: 8px; }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row .input { flex: 1; min-height: 44px; }
.co-side { position: sticky; top: 92px; }
.co-summary { padding: 22px; display: grid; gap: 14px; }
.co-lines { margin: 0; display: grid; }
.co-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.co-lines > div:last-child { border-bottom: 0; }
.co-lines dt { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.co-lines dt svg { width: 16px; height: 16px; }
.co-lines dd { margin: 0; font-weight: 600; text-align: left; }
.co-lines .co-total dd b { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.co-lines .co-gift dd { color: var(--primary-deep); }
.co-terms { font-size: 13px; }
.co-done { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.co-done-main { padding: 32px; display: grid; gap: 16px; justify-items: start; }
.co-done-main h1 { font-size: 30px; }
.co-done-main .checklist { text-align: right; }
.co-ok { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok-ink); }
.co-ok.is-wait { background: var(--warn-soft); color: var(--warn-ink); }
.co-ok.is-bad { background: var(--err-soft); color: var(--err-ink); }
.co-ok svg { width: 28px; height: 28px; }
.lic-key { width: 100%; display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface-2); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-mono); font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.co-done-side { padding: 22px; display: grid; gap: 14px; }
.co-timeline { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.co-timeline li { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 1023px) { .co-grid, .co-done { grid-template-columns: minmax(0, 1fr); } .co-side { position: static; } }
@media (max-width: 767px) { .co-item { flex-wrap: wrap; } .co-done-main { padding: 22px; } .co-section .section-head h1 { font-size: 28px; } }
/* agency pages */
.svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-inline .step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: inline-grid; place-items: center; font-weight: 800; }
.steps-inline .chip { justify-self: start; }
.inc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.case-stats .stat-value { font-size: 36px; }
.case-cols h2 { font-size: 22px; margin-bottom: 14px; }
.case-cols .ticks li { font-size: 15px; }
.case-hero .plugin-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.case-hero .plugin-link svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { .svc-list, .inc-list { grid-template-columns: minmax(0, 1fr); } }
/* ---------- homepage (phase 4: marketplace first) ---------- */
.hero-mk .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.hero-mk .hero-text { display: grid; gap: 18px; justify-items: start; }
.hero-mk .hero-text h1, .hero-mk .hero-text .lede, .hero-mk .hero-text .pill { margin: 0; }
.hero-mk .hero-text .lede { color: var(--on-hb-muted); }
.hero-search { margin: 4px 0 0; max-width: 620px; width: 100%; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .6); }
.hero-search .btn-primary { background: var(--primary); color: #fff; }
.hero-search .btn-primary:hover { background: var(--primary-deep); color: #fff; }
.hero-chips .chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.hero-chips .chip svg { color: var(--accent); }
.hero-chips .chip:hover { border-color: #fff; }
.hero-mk .hero-cta { margin: 6px 0 0; }
.hero-cards { display: grid; gap: 14px; align-content: start; padding-top: 6px; margin-top: 52px; justify-items: center; }
.hero-slider { width: 100%; }
.hero-slider-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.hero-slider-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.hero-slide-media { display: block; border-radius: var(--r-frame); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 16 / 9; }
.hero-slide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.hero-slide-media:hover img { transform: scale(1.03); }
.hero-slide-tile { display: grid; place-items: center; height: 100%; background: linear-gradient(160deg, var(--pl-soft, var(--tint)) 0%, var(--tint-2) 100%); }
.hero-slide-tile .pl-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-soft); display: grid; place-items: center; color: var(--pl, var(--primary)); }
.hero-slide-body { display: grid; gap: 6px; }
.hero-slide-title { font-size: 19px; margin: 0; }
.hero-slide-title a { color: var(--on-hb); }
.hero-slide-title a:hover { color: var(--accent); text-decoration: none; }
.hero-slide-short { margin: 0; color: var(--on-hb-muted); font-size: 14px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.hero-slide-price { font-weight: 700; }
.hero-slide-price .price-now, .hero-slide-price b { color: var(--on-hb); font-size: 17px; }
.hero-slide-price small { color: var(--on-hb-muted); }
.hero-slide-price .price-free { color: var(--accent); }
.hero-slide-price .price-ask, .hero-slide-price .price-soon, .hero-slide-price .price-was { color: var(--on-hb-muted); }
.hero-slide-foot .btn-primary { background: var(--accent); color: var(--ink); box-shadow: none; }
.hero-slide-foot .btn-primary:hover { background: #fff; }
.hero-slide-gift { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--on-hb-muted); font-size: 13px; }
.hero-slide-gift svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero-slider-dots { display: flex; gap: 6px; }
.hero-slider-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .2s, background .2s; }
.hero-slider-dot.is-active { width: 20px; background: #fff; }
.hero-cards-all { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; justify-self: end; padding: 4px 6px; }
.hero-cards-all svg { width: 18px; height: 18px; color: var(--accent); }
.hero-cards-all:hover { text-decoration: none; color: var(--accent); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.agency-band .section-head { max-width: 760px; }
.agency-band .section-head .pill { margin-bottom: 14px; }
.case-teaser-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 32px; align-items: center; }
.case-teaser-text { display: grid; gap: 12px; justify-items: start; }
.case-teaser-text h2 { font-size: 26px; }
.case-teaser-text p { color: var(--muted); }
.case-teaser-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-teaser-stats .stat { padding: 16px; background: var(--surface-2); border-radius: var(--r-card); }
.case-teaser-stats .stat-value { font-size: 26px; }
.home-review { padding: 22px; border-bottom: 1px solid var(--line); }
.home-review header { display: grid; gap: 4px; justify-items: start; }
.home-review header .rating { margin: 0; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .hero-mk .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cards { max-width: 560px; }
  .case-teaser-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-search .btn { width: 100%; }
  .hero-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; max-width: 100%; }
  .hero-chips .chip { flex: none; }
  .case-teaser-card { padding: 22px; }
  .case-teaser-stats { grid-template-columns: minmax(0, 1fr); }
}
