/* sellnabz landing: Helios-style technical system. Token names and values are shared with
   panel/src/styles.css and the extension (Action Blue #1060ff, radius 5-6px, soft layered shadows). */

/* Persian glyphs only; Latin text uses the system font stack. */
@font-face {
  font-family: "Vazirmatn Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  color-scheme: light dark;
  --surface: #fafafa;
  --surface-2: #ffffff;
  --border: #dedfe3;
  --border-strong: #c2c5cb;
  --text: #0c0c0e;
  --text-2: #3b3d45;
  --text-muted: #656a76;
  --accent: #1060ff;
  --accent-hover: #0c56e9;
  --accent-contrast: #ffffff;
  --good: #008a22;
  --warning: #9e4b00;
  --critical: #e52228;
  --ink: #0c0c0e;              /* dark band background (never pure black) */
  --ink-text: #efeff1;

  --fill: color-mix(in srgb, var(--text) 4%, var(--surface-2));
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  --good-soft: color-mix(in srgb, var(--good) 10%, var(--surface-2));
  --warning-soft: color-mix(in srgb, var(--warning) 10%, var(--surface-2));
  --critical-soft: color-mix(in srgb, var(--critical) 9%, var(--surface-2));

  --shadow-low: 0 1px 3px 0 rgb(12 12 14 / 8%), 0 1px 2px 0 rgb(12 12 14 / 5%);
  --shadow-mid: 0 4px 6px -1px rgb(12 12 14 / 10%), 0 2px 4px -1px rgb(12 12 14 / 6%);
  --shadow-card: 0 2px 12px rgb(12 12 14 / 6%);
  --shadow-high: 0 24px 48px -12px rgb(12 12 14 / 22%);

  --radius-sm: 5px;
  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s8: 48px;
  --section-gap: clamp(4rem, 8vw, 7rem);

  --font: "Vazirmatn Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --z-sticky: 100;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0f1013;
    --surface-2: #17181c;
    --border: #2c2e34;
    --border-strong: #464951;
    --text: #efeff1;
    --text-2: #c2c5cb;
    --text-muted: #9a9ea8;
    --accent: #5b94ff;
    --accent-hover: #7aa8ff;
    --accent-contrast: #0c0c0e;
    --good: #3cc061;
    --warning: #f0a53c;
    --critical: #ff6b6e;
    --ink: #17181c;
    --shadow-low: 0 1px 3px 0 rgb(0 0 0 / 40%);
    --shadow-mid: 0 4px 10px -1px rgb(0 0 0 / 50%);
    --shadow-card: 0 2px 12px rgb(0 0 0 / 35%);
    --shadow-high: 0 24px 48px -12px rgb(0 0 0 / 70%);
  }
}

:root[data-theme="dark"] {
  --surface: #0f1013;
  --surface-2: #17181c;
  --border: #2c2e34;
  --border-strong: #464951;
  --text: #efeff1;
  --text-2: #c2c5cb;
  --text-muted: #9a9ea8;
  --accent: #5b94ff;
  --accent-hover: #7aa8ff;
  --accent-contrast: #0c0c0e;
  --good: #3cc061;
  --warning: #f0a53c;
  --critical: #ff6b6e;
  --ink: #17181c;
  --shadow-low: 0 1px 3px 0 rgb(0 0 0 / 40%);
  --shadow-mid: 0 4px 10px -1px rgb(0 0 0 / 50%);
  --shadow-card: 0 2px 12px rgb(0 0 0 / 35%);
  --shadow-high: 0 24px 48px -12px rgb(0 0 0 / 70%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 750; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-soft); }
.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }

.skip {
  position: absolute; inset-inline-start: var(--s4); top: -100px; z-index: 1000;
  background: var(--accent); color: var(--accent-contrast);
  padding: var(--s2) var(--s4); border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: var(--s2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: var(--s5); min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--text); font-size: 18px; font-weight: 750; letter-spacing: -0.02em;
  text-decoration: none; direction: ltr;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.site-nav { display: none; gap: var(--s1); margin-inline-start: var(--s4); }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px var(--s3); border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--fill); }
.bar-actions { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-low); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); box-shadow: var(--shadow-mid); }
.btn-secondary { background: var(--surface-2); border: 1.5px solid var(--border-strong); color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--fill); color: var(--text); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

/* ---------- small parts ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--s2); width: fit-content;
  padding: 2px 10px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-low);
}
.tag .mono { font-size: 12px; color: var(--accent); direction: ltr; }
.dot { width: 7px; height: 7px; border-radius: 2px; flex: none; background: var(--text-muted); }
.dot-good { background: var(--good); }
.dot-warn { background: var(--warning); }
.dot-crit { background: var(--critical); }
.kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .04em; direction: ltr; display: inline-block; justify-self: start; }
.lead { color: var(--text-2); font-size: 17px; max-width: 62ch; }

/* ---------- sections ---------- */
section { padding-block: calc(var(--section-gap) / 2); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s8); max-width: 720px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding-block: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; display: grid; gap: var(--s8); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-text { display: grid; gap: var(--s5); }
.hero h1 { max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--text-muted); font-size: 13px; padding-top: var(--s2); }
.legend li { display: inline-flex; align-items: center; gap: var(--s2); }
.legend { list-style: none; padding-inline: 0; }

/* hero visual: an isometric stack of panel layers, drawn in CSS (no real numbers) */
.stack { position: relative; height: 380px; perspective: 1400px; }
.stack-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-38deg) translate3d(-10px, 20px, 0);
  animation: stack-in .9s var(--ease) both;
}
.layer {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 210px; margin: -105px 0 0 -150px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-high); padding: 14px; display: grid; gap: 10px; align-content: start;
  transition: transform .3s var(--ease);
}
.layer-1 { transform: translate3d(48px, -40px, 0); background: color-mix(in srgb, var(--accent) 6%, var(--surface-2)); }
.layer-2 { transform: translate3d(0, 0, 70px); }
.layer-3 { transform: translate3d(-48px, 40px, 140px); }
.stack:hover .layer-1 { transform: translate3d(56px, -48px, 0); }
.stack:hover .layer-3 { transform: translate3d(-56px, 48px, 170px); }
.layer-1 .grid-lines { height: 100%; border-radius: var(--radius-sm); background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 24px 24px; }
.ph { height: 8px; border-radius: 3px; background: var(--fill); }
.ph-strong { background: color-mix(in srgb, var(--text) 12%, var(--surface-2)); }
.layer-2 svg { width: 100%; height: 120px; }
.layer-2 .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.layer-2 .gl { stroke: var(--border); stroke-width: 1; }
.tiles-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-mini { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: grid; gap: 6px; background: var(--surface-2); }
.chip-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-mid); font-size: 13px; font-weight: 500; color: var(--text);
  animation: chip-in .5s var(--ease) both;
}
.float-chip small { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.float-a { top: 8%; inset-inline-end: 4%; animation-delay: .5s; }
.float-b { bottom: 10%; inset-inline-start: 2%; animation-delay: .65s; }
@keyframes stack-in { from { opacity: 0; transform: rotateX(54deg) rotateZ(-38deg) translate3d(-10px, 36px, 0); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- principles: a spec strip ---------- */
.spec { display: grid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-card); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); padding: var(--s5); }
.spec > div + div { border-top: 1px solid var(--border); }
.spec .icon { grid-row: span 2; }
.spec p { color: var(--text-2); font-size: 14px; }
.icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.icon svg { width: 18px; height: 18px; }

/* ---------- features: zig-zag rows ---------- */
.zig { display: grid; gap: var(--section-gap); }
.row { display: grid; gap: var(--s6); align-items: center; }
.row-text { display: grid; gap: var(--s3); align-content: start; }
.row-text p { color: var(--text-2); }
.checks { list-style: none; padding: 0; display: grid; gap: var(--s2); margin-top: var(--s2); font-size: 15px; color: var(--text-2); }
.checks li { display: flex; gap: var(--s2); align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--good); }

.viz {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.viz:hover { box-shadow: var(--shadow-mid); transform: translateY(-2px); }
.viz-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--fill); }
.viz-bar i { width: 9px; height: 9px; border-radius: 2px; background: var(--border-strong); }
.viz-bar span { margin-inline-start: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); direction: ltr; }
.viz-body { padding: var(--s5); }
.viz-body img { width: 100%; }
.viz svg .s-card { fill: var(--surface-2); stroke: var(--border); }
.viz svg .s-fill { fill: var(--fill); }
.viz svg .s-ph { fill: color-mix(in srgb, var(--text) 12%, var(--surface-2)); }
.viz svg .s-acc { fill: var(--accent); }
.viz svg .s-acc-soft { fill: var(--accent-soft); }
.viz svg .s-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.viz svg .s-floor { stroke: var(--critical); stroke-width: 1.5; stroke-dasharray: 6 5; }
.viz svg .s-grid { stroke: var(--border); stroke-width: 1; }
.viz svg .s-good { fill: var(--good); }
.viz svg .s-warn { fill: var(--warning); }
.viz svg .s-txt { fill: var(--text-2); font-family: var(--font); font-size: 12px; }

/* ---------- more features: asymmetric dense grid ---------- */
.more { display: grid; gap: 1px; margin-top: var(--section-gap); background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.more article { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); padding: var(--s5); background: var(--surface-2); transition: background-color .2s var(--ease); }
.more article:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface-2)); }
.more .icon { grid-row: span 2; }
.more p { color: var(--text-2); font-size: 14px; }
.callout {
  display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s5);
  padding: var(--s4) var(--s5); border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-inline-start: 3px solid var(--accent); color: var(--text); font-size: 15px;
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 4px; }

/* ---------- how it works: a timeline ---------- */
.band { background: var(--surface-2); border-block: 1px solid var(--border); }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s4); counter-reset: step; }
.steps li { position: relative; display: grid; gap: var(--s2); padding: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  padding: 1px 8px; border-radius: var(--radius-sm); background: var(--accent-soft); direction: ltr;
}
.steps p { color: var(--text-2); font-size: 14px; }

/* ---------- pricing ---------- */
.price-card {
  display: grid; gap: var(--s5); align-items: center; padding: var(--s6);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.price-card::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--accent); }
.price-card p { color: var(--text-2); }
.price-status { display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 600; color: var(--warning); background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent); border-radius: var(--radius-sm); padding: 1px 10px; width: fit-content; }

/* ---------- faq ---------- */
.faq-layout { display: grid; gap: var(--s6); }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-card); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); cursor: pointer; font-weight: 600; list-style: none;
  transition: background-color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--fill); }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--text-2); font-size: 15px; padding: 0 var(--s5) var(--s4); }

/* ---------- final cta ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; gap: var(--s5); align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius);
  background: var(--ink); color: var(--ink-text); border: 1px solid var(--border);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 14%) 1px, transparent 0);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: var(--ink-text); }
.cta p { color: #c2c5cb; max-width: 56ch; }
.cta .btn-secondary { background: transparent; color: var(--ink-text); border-color: #464951; }
.cta .btn-secondary:hover { background: rgb(255 255 255 / 8%); border-color: #9a9ea8; color: #fff; }
.cta .btn-primary { --accent: #1060ff; --accent-hover: #3b7bff; --accent-contrast: #fff; }

/* ---------- prose pages (privacy, terms) ---------- */
.prose { padding-block: var(--s8); display: grid; gap: var(--s5); max-width: 76ch; }
.prose h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.prose h2 { font-size: 20px; }
.prose .meta { color: var(--text-muted); font-size: 14px; font-family: var(--font-mono); direction: ltr; text-align: right; }
.prose section { padding: var(--s5) 0 0; display: grid; gap: var(--s3); border-top: 1px solid var(--border); }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-inline-start: var(--s6); display: grid; gap: var(--s2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: var(--section-gap); padding-block: var(--s8) var(--s5); font-size: 14px; }
.foot-grid { display: grid; gap: var(--s6); }
.foot-brand p { color: var(--text-2); margin-top: var(--s3); max-width: 40ch; }
.foot-col h4 { margin: 0 0 var(--s3); font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.foot-col a { color: var(--text-2); text-decoration: none; transition: color .2s var(--ease); cursor: pointer; }
.foot-col a:hover { color: var(--accent); }
.foot-col a.mono { font-size: 13px; direction: ltr; display: inline-block; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.foot-base .status { display: inline-flex; align-items: center; gap: var(--s2); }

/* ---------- reveal on scroll: CSS scroll-driven (the CSP allows no scripts); browsers without it show content as is ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

.w40 { width: 40%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.price-note { margin-top: var(--s3); }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .spec { grid-template-columns: 1.3fr 1fr 1fr; }
  .spec > div + div { border-top: 0; border-inline-start: 1px solid var(--border); }
  .row { grid-template-columns: 5fr 7fr; gap: var(--s8); }
  .row:nth-child(even) .row-text { order: 2; }
  .row:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .more { grid-template-columns: repeat(2, 1fr); }
  .more article:first-child { grid-row: span 2; align-content: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 36px; inset-inline-end: calc(var(--s4) * -1); width: var(--s4); height: 1px; background: var(--border-strong);
  }
  .price-card { grid-template-columns: 1fr auto; }
  .faq-layout { grid-template-columns: 4fr 8fr; }
  .cta { grid-template-columns: 1fr auto; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .stack { height: 440px; }
  .layer { width: 340px; height: 236px; margin: -118px 0 0 -170px; }
}

@media (max-width: 767px) {
  .bar-actions .btn-ghost { display: none; }
  .stack { height: 320px; }
  .layer { width: 250px; height: 180px; margin: -90px 0 0 -125px; padding: 10px; }
  .layer-2 svg { height: 90px; }
  .float-chip { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- blog: list, post, and the home strip (CSP allows no inline styles) ---------- */
.blog { padding-block: var(--s8); display: grid; gap: var(--s5); }
.blog h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.blog .empty { color: var(--text-muted); }
.post-grid, .post-strip { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.post-card {
  display: grid; gap: var(--s2); align-content: start; padding: var(--s5);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); color: var(--text); text-decoration: none;
  transition: border-color .2s var(--ease);
}
.post-card:hover { border-color: var(--border-strong); }
.post-card h2, .post-card h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.post-card p { margin: 0; color: var(--text-2); }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.post-card-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); direction: ltr; justify-self: start; }
.post-strip-more { margin: var(--s4) 0 0; }
.post-strip-more a { color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted); }
.pager a { color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.post-head { display: grid; gap: var(--s3); }
.post-head h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.tags, .prose ul.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li, .prose ul.tags li { font-size: 13px; padding: 2px var(--s2); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text-2); }
.post-cover { margin: 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.post-body { display: grid; gap: var(--s4); line-height: 1.9; }
.post-body h2 { font-size: 22px; margin-top: var(--s4); }
.post-body p, .post-body li { color: var(--text); }
.post-body a { color: var(--accent); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-cta {
  display: grid; gap: var(--s3); justify-items: start; padding: var(--s5);
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.post-cta h2 { margin: 0; font-size: 18px; }
.post-cta p { margin: 0; color: var(--text-2); }
.post-nav { display: grid; gap: var(--s3); }
.post-nav a {
  display: grid; gap: var(--s1); padding: var(--s4); color: var(--text); text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.post-nav a:hover { border-color: var(--border-strong); }
.post-nav small { color: var(--text-muted); font-size: 13px; }

@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-strip { grid-template-columns: repeat(3, 1fr); }
  .post-nav { grid-template-columns: 1fr 1fr; }
}
