/* ==========================================================================
   skipdfluff. — Vercel-tech dark venue chrome
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --sd-bg:        #0A0A0A;
  --sd-bg-1:      #111111;
  --sd-bg-2:      #181818;
  --sd-bg-3:      #1F1F1F;
  --sd-bg-card:   #0E0E0E;

  /* Ink */
  --sd-fg:        #FAFAFA;
  --sd-fg-dim:    #A1A1A1;
  --sd-fg-muted:  #888888;
  --sd-fg-faint:  #404040;

  /* Lines */
  --sd-line:      rgba(255, 255, 255, 0.08);
  --sd-line-2:    rgba(255, 255, 255, 0.14);
  --sd-line-3:    rgba(255, 255, 255, 0.24);

  /* Accents — monochrome only. Hierarchy from value contrast, not hue.
     --sd-red is reserved for genuine error states only. */
  --sd-accent:    var(--sd-fg);
  --sd-green:     var(--sd-fg-dim);
  --sd-red:       #E5484D;

  /* Legacy compat (so old rules pointing at --sd-cream etc don't break) */
  --sd-cream:       var(--sd-bg);
  --sd-cream-warm:  var(--sd-bg-1);
  --sd-cream-deep:  var(--sd-bg-2);
  --sd-ink:         var(--sd-fg);
  --sd-ink-soft:    var(--sd-fg-dim);
  --sd-muted:       var(--sd-fg-muted);
  --sd-rule:        var(--sd-line);
  --sd-accent-warm: var(--sd-fg-dim);
  --sd-plum-deep:   #151820;

  /* Fonts — one family (Satoshi) for everything; mono only for functional code */
  --f-display: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-body:    'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-serif:   'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-hair:   cubic-bezier(0.6, 0.04, 0.2, 1);

  /* Scale */
  --max-chrome:  1440px;
  --max-content: 1200px;
  --max-prose:   720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--sd-bg); }
body {
  background: var(--sd-bg);
  color: var(--sd-fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sd-fg); color: var(--sd-bg); }

/* ---------- Display type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0;
  color: var(--sd-fg);
}
h1 { font-size: clamp(2.5rem, 6.6vw, 5.25rem); letter-spacing: -0.045em; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; font-weight: 500; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; color: var(--sd-fg-dim); }
strong, b { font-weight: 600; color: var(--sd-fg); }

em { font-style: italic; color: inherit; }
.em-serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.kicker, .mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--sd-fg-muted);
  font-weight: 400;
}
.kicker-up {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sd-fg-muted);
  font-weight: 500;
}

.gradient-text {
  color: var(--sd-fg);
}

/* ---------- Layout helpers ---------- */
.wrap        { max-width: var(--max-content); margin: 0 auto; padding: 0 32px; }
.wrap-chrome { max-width: var(--max-chrome); margin: 0 auto; padding: 0 32px; }
.wrap-prose  { max-width: var(--max-prose); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .wrap, .wrap-chrome, .wrap-prose { padding: 0 20px; }
}

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--bordered { border-top: 1px solid var(--sd-line); }
.section--raised { background: var(--sd-bg-1); }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--sd-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sd-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hairline { height: 1px; background: var(--sd-line); border: 0; margin: 0; }

/* ==========================================================================
   Top nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--sd-line);
}
.nav__logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--sd-fg);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.nav__logo .d { color: var(--sd-fg-dim); font-weight: 500; }
.nav__logo .dot { color: var(--sd-fg-dim); font-weight: 500; }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--sd-fg-dim);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav__links a:hover { color: var(--sd-fg); }
.nav__links a.is-active { color: var(--sd-fg); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--sd-fg);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__cart {
  position: relative;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--sd-line-2);
  border-radius: 6px;
  color: var(--sd-fg);
  background: var(--sd-bg-1);
  transition: border-color 200ms, background 200ms;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__cart:hover { border-color: var(--sd-line-3); background: var(--sd-bg-2); }
.nav__cart .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--sd-fg);
  color: var(--sd-bg);
  font-size: 10px;
  font-family: var(--f-mono);
  font-weight: 600;
  transition: transform 240ms var(--ease);
}
.nav__cart.is-bumped .count { animation: cart-bump 520ms var(--ease); }
@keyframes cart-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.nav__burger { display: none; width: 28px; height: 18px; position: relative; }
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--sd-fg);
  transition: transform 300ms var(--ease), opacity 200ms;
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 8px; }
.nav__burger span:nth-child(3) { top: 14px; }

@media (max-width: 820px) {
  .nav { padding: 12px 20px; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--sd-bg);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    font-size: 18px;
    transform: translateY(-100%);
    transition: transform 420ms var(--ease);
    padding-top: 60px;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__burger { display: block; z-index: 101; }
  .nav.is-open .nav__burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--sd-fg);
  color: var(--sd-bg);
  border-radius: 6px;
  transition: background 200ms var(--ease), transform 200ms var(--ease), border-color 200ms;
  border: 1px solid transparent;
}
.btn:hover { background: #E5E5E5; }
.btn--ghost {
  background: transparent;
  color: var(--sd-fg);
  border: 1px solid var(--sd-line-2);
}
.btn--ghost:hover { background: var(--sd-bg-1); border-color: var(--sd-line-3); }

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 10px;
  position: relative;
  transition: transform 240ms var(--ease);
}
.btn .arrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: 999px;
  background: var(--sd-bg-1);
  font-size: 12px;
  color: var(--sd-fg-dim);
  font-family: var(--f-mono);
  transition: border-color 200ms, background 200ms;
}
.btn-chip:hover { border-color: var(--sd-line-3); color: var(--sd-fg); }
.btn-chip .dot {
  width: 6px; height: 6px;
  background: var(--sd-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-rise { overflow: hidden; display: block; }
.reveal-rise > .inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease) var(--reveal-delay, 0ms);
  will-change: transform;
}
.reveal-rise.in > .inner { transform: translateY(0); }

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
}
.split-char.in { opacity: 1; transform: translateY(0); }

.rule-draw { position: relative; display: block; height: 1px; background: transparent; overflow: hidden; }
.rule-draw::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--sd-line-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-hair) var(--reveal-delay, 0ms);
}
.rule-draw.in::after { transform: scaleX(1); }

/* ==========================================================================
   Homepage hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.04), transparent 65%);
  pointer-events: none;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--sd-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sd-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
  opacity: 0.7;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
  margin-bottom: 28px;
}
.hero__chip .dot {
  width: 6px; height: 6px;
  background: var(--sd-fg-dim);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  line-height: 1.0;
  letter-spacing: -0.048em;
  max-width: 16ch;
  margin: 0 0 28px;
}
.hero__title .accent {
  color: var(--sd-bg);
  background: var(--sd-fg);
  font-weight: 500;
  display: inline-block;
  padding: 0 0.18em 0.05em;
  line-height: 1.0;
  border-radius: 2px;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--sd-fg-dim);
  max-width: 58ch;
  line-height: 1.55;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 80px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--sd-line);
  max-width: 900px;
}
.hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__stats .num {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--sd-fg);
  line-height: 1;
}
.hero__stats .label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ==========================================================================
   Changelog strip
   ========================================================================== */
.changelog {
  padding: 60px 0;
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-bg-card);
}
.changelog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.changelog__list {
  display: grid;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
}
.changelog__row {
  display: grid;
  grid-template-columns: 110px 80px 1fr 140px;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sd-line);
  color: var(--sd-fg-dim);
  transition: background 200ms;
}
.changelog__row:hover { background: var(--sd-bg-2); padding-left: 12px; padding-right: 12px; }
.changelog__row .date { color: var(--sd-fg-muted); }
.changelog__row .tag {
  color: var(--sd-green);
  text-transform: lowercase;
}
.changelog__row .tag.ebook { color: var(--sd-fg); }
.changelog__row .tag.journal { color: var(--sd-fg); }
.changelog__row .body { color: var(--sd-fg); }
.changelog__row .hash { color: var(--sd-fg-muted); text-align: right; }
@media (max-width: 720px) {
  .changelog__row { grid-template-columns: 1fr; gap: 4px; }
  .changelog__row .hash { display: none; }
}

/* ==========================================================================
   Lanes (imprint split on homepage)
   ========================================================================== */
.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--sd-line);
}
.lane {
  padding: clamp(60px, 7vw, 96px) 40px;
  position: relative;
}
.lane + .lane { border-left: 1px solid var(--sd-line); }
.lane__header { margin-bottom: 36px; }
.lane__kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lane__kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sd-green);
  box-shadow: 0 0 0 3px rgba(255, 255, 255,0.18);
}
.lane__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.035em;
  color: var(--sd-fg);
  line-height: 1.02;
}
.lane__title em { font-style: normal; color: var(--sd-fg-dim); }

.lane__preview { margin: 24px 0 28px; }

.lane__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--sd-line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.lane__foot a {
  color: var(--sd-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 200ms;
}
.lane__foot a:hover { gap: 14px; }

/* Book-3d (kept for ebooks preview) */
.book-3d {
  perspective: 1400px;
  margin: 0;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-3d__inner {
  position: relative;
  width: 220px;
  height: 310px;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(4deg);
  transition: transform 600ms var(--ease);
  filter: drop-shadow(40px 40px 80px rgba(0,0,0,0.6));
}
.book-3d:hover .book-3d__inner { transform: rotateY(-14deg) rotateX(2deg); }
.book-3d__face {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #6B2A2F 0%, #3E1A1F 100%);
  border-radius: 2px 6px 6px 2px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F3E4D0;
}
.book-3d__face .title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #F3E4D0;
}
.book-3d__face .bm {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(243, 228, 208, 0.65);
}
.book-3d__face .rule {
  width: 42px; height: 1px;
  background: #C87556;
  margin: 8px 0;
}
.book-3d__spine {
  position: absolute;
  left: -16px; top: 0;
  width: 16px; height: 100%;
  background: linear-gradient(90deg, #2E1317, #4F1F24);
  transform-origin: right center;
  transform: rotateY(90deg);
  border-radius: 2px 0 0 2px;
}
.book-3d__pages {
  position: absolute;
  right: -5px; top: 6px; bottom: 6px;
  width: 5px;
  background: repeating-linear-gradient(0deg, #F3E4D0 0 1px, #E4D5BA 1px 2px);
  transform: rotateY(-90deg);
  transform-origin: left center;
}

/* Terminal panel */
.term {
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #0E0E0E 0%, #090909 100%);
  overflow: hidden;
  font-family: var(--f-mono);
}
.term__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sd-line);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.term__dots { display: flex; gap: 6px; }
.term__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sd-fg-faint);
}
.term__dots span:first-child { background: #FF5F57; }
.term__dots span:nth-child(2) { background: #FEBC2E; }
.term__dots span:nth-child(3) { background: #28C840; }
.term__title { margin-left: 8px; flex: 1; }
.term__badge {
  padding: 2px 8px;
  border: 1px solid var(--sd-line-2);
  border-radius: 99px;
  color: var(--sd-green);
  font-size: 10px;
  font-weight: 500;
}
.term__body {
  padding: 22px 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--sd-fg-dim);
  min-height: 240px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.term__body .c  { color: var(--sd-fg-muted); font-style: italic; }
.term__body .k  { color: var(--sd-green); }
.term__body .s  { color: var(--sd-fg); }
.term__body .n  { color: var(--sd-fg); }
.term__body .p  { color: var(--sd-fg); }
.term__body .prompt { color: var(--sd-green); user-select: none; }
.term__cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--sd-green);
  transform: translateY(2px);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .lanes { grid-template-columns: 1fr; }
  .lane + .lane { border-left: 0; border-top: 1px solid var(--sd-line); }
}

/* ==========================================================================
   Feature grid (homepage)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sd-line);
  border: 1px solid var(--sd-line);
}
.feature {
  background: var(--sd-bg);
  padding: 48px 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: background 240ms var(--ease);
}
.feature:hover { background: var(--sd-bg-1); }
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 36px; min-height: 200px; }
}
.feature__icon {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sd-fg);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.feature:hover .feature__icon {
  border-color: var(--sd-line-3);
  background: rgba(255, 255, 255, 0.04);
}
.feature h3 { font-size: 18px; font-weight: 500; }
.feature p { font-size: 14px; color: var(--sd-fg-dim); margin: 0; }
.feature__more {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
  display: inline-flex;
  gap: 6px;
  transition: color 200ms, gap 200ms;
}
.feature:hover .feature__more { color: var(--sd-fg); gap: 12px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Manifesto marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-bg);
  overflow: hidden;
  padding: 24px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--sd-fg-dim);
  text-transform: lowercase;
}
.marquee__track .dot { color: var(--sd-green); padding: 0 4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Journal teaser / Journal pages
   ========================================================================== */
.journal-teaser { padding: clamp(80px, 10vw, 140px) 0; }
.journal-teaser__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sd-line);
  border: 1px solid var(--sd-line);
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }

.j-card {
  background: var(--sd-bg);
  display: block;
  padding: 30px;
  transition: background 240ms var(--ease);
}
.j-card:hover { background: var(--sd-bg-1); }
.j-card .num { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); }
.j-card .meta {
  display: flex; gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin: 10px 0 14px;
}
.j-card h3 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--sd-fg);
  transition: color 240ms var(--ease);
  font-weight: 500;
}
.j-card p { color: var(--sd-fg-dim); font-size: 14px; max-width: 40ch; margin: 0; }
.j-card .more {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  transition: gap 200ms, color 200ms;
}
.j-card:hover .more { gap: 14px; color: var(--sd-fg); }

.journal-hero { padding: 180px 0 40px; position: relative; }
.journal-hero h1 { max-width: 14ch; }
.journal-hero p { max-width: 52ch; margin-top: 20px; color: var(--sd-fg-dim); font-size: 1.1rem; }

.journal-list { padding: 40px 0 120px; }
.journal-item {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--sd-line);
  align-items: start;
  transition: background 200ms;
}
.journal-item:last-child { border-bottom: 1px solid var(--sd-line); }
.journal-item:hover { padding-left: 16px; padding-right: 16px; background: var(--sd-bg-1); }
.journal-item .num { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); padding-top: 4px; }
.journal-item h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -0.03em; font-weight: 500; }
.journal-item h2 em { color: var(--sd-fg-dim); font-style: normal; }
.journal-item .meta { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); margin-top: 12px; }
.journal-item p { color: var(--sd-fg-dim); font-size: 15px; max-width: 46ch; }
.journal-item .more {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
  transition: gap 200ms, color 200ms;
}
.journal-item:hover .more { color: var(--sd-fg); gap: 14px; }
@media (max-width: 820px) {
  .journal-item { grid-template-columns: 1fr; gap: 12px; }
  .journal-item .num { padding-top: 0; }
}

/* Journal post */
.post-hero { padding: 180px 0 40px; }
.post-hero .meta {
  display: flex;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 24px;
}
.post-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5.4vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.post-hero h1 em { color: var(--sd-fg-dim); font-style: normal; }
.post-hero .lede {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  max-width: 50ch;
  margin-top: 28px;
  color: var(--sd-fg-dim);
}

.post-body {
  padding: 40px 0 120px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sd-fg);
}
.post-body p { margin-bottom: 1.5em; color: var(--sd-fg-dim); }
.post-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 2em 0 0.6em;
  color: var(--sd-fg);
  font-weight: 500;
}
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
.post-body blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--sd-fg);
  color: var(--sd-fg);
  max-width: 36ch;
}
.post-body a { color: var(--sd-fg); border-bottom: 1px solid var(--sd-fg-faint); }
.post-body a:hover { border-bottom-color: var(--sd-fg); }
.post-body code {
  font-family: var(--f-mono);
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--sd-fg);
}
.post-drop {
  float: left;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 5rem;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  color: var(--sd-fg);
  letter-spacing: -0.04em;
}
.post-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 64px 0;
  color: var(--sd-fg-muted);
  font-family: var(--f-mono);
  font-size: 12px;
}
.post-rule::before, .post-rule::after {
  content: ""; width: 48px; height: 1px; background: var(--sd-line-2);
}

/* ==========================================================================
   Page heads (listings)
   ========================================================================== */
.page-head {
  padding: 180px 0 56px;
  position: relative;
}
.page-head__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
  margin-bottom: 28px;
}
.page-head__chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sd-green);
  box-shadow: 0 0 0 3px rgba(255, 255, 255,0.16);
}
.page-head h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.4vw, 4.75rem); letter-spacing: -0.045em; }
.page-head h1 em { color: var(--sd-fg-dim); font-style: normal; }
.page-head p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 58ch;
  color: var(--sd-fg-dim);
  margin-top: 22px;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.filters__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filters__tabs button {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--sd-fg-muted);
  transition: background 200ms, color 200ms;
  font-family: var(--f-mono);
  font-size: 12px;
}
.filters__tabs button:hover { color: var(--sd-fg); background: var(--sd-bg-1); }
.filters__tabs button.is-active { background: var(--sd-bg-2); color: var(--sd-fg); }

/* ==========================================================================
   Product cards — SaaS (CodeCanyon-inspired)
   ========================================================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sd-line);
  border: 1px solid var(--sd-line);
  margin-top: 48px;
}
.prod-card {
  background: var(--sd-bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 240ms var(--ease);
  position: relative;
  min-height: 480px;
}
.prod-card:hover { background: var(--sd-bg-1); }

.prod-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.prod-card__head .tag {
  padding: 3px 8px;
  border: 1px solid var(--sd-line-2);
  border-radius: 99px;
  color: var(--sd-fg-dim);
}
.prod-card__head .version { color: var(--sd-green); }

.prod-card__preview {
  flex: 1;
  border: 1px solid var(--sd-line);
  border-radius: 6px;
  background: #070707;
  overflow: hidden;
  min-height: 180px;
  position: relative;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
}
.prod-card__preview .chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sd-line);
  color: var(--sd-fg-muted);
  font-size: 10px;
}
.prod-card__preview .chrome .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sd-fg-faint);
}
.prod-card__preview .body {
  padding: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-width: 100%;
}
.prod-card__preview .body .k { color: var(--sd-green); }
.prod-card__preview .body .c { color: var(--sd-fg-muted); font-style: italic; }
.prod-card__preview .body .n { color: var(--sd-fg); }
.prod-card__preview .body .p { color: var(--sd-fg); }

.prod-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--sd-fg);
  margin: 0;
}
.prod-card__title .v {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 8px;
}

.prod-card__pitch {
  font-size: 14px;
  color: var(--sd-fg-dim);
  line-height: 1.55;
  margin: 0;
}

.prod-card__stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prod-card__stack span {
  padding: 3px 8px;
  border: 1px solid var(--sd-line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--sd-fg-muted);
}

.prod-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--sd-line);
}
.prod-card__price {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--sd-fg);
}
.prod-card__price .per {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--sd-fg-muted);
  margin-left: 4px;
}
.prod-card__cta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: 6px;
  transition: background 200ms, border-color 200ms;
}
.prod-card__cta:hover { background: var(--sd-bg-2); border-color: var(--sd-line-3); }

@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .prod-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Book cards — Ebooks (Stripe-Press-inspired)
   ========================================================================== */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sd-line);
  border: 1px solid var(--sd-line);
  margin-top: 48px;
}
.ebook-card {
  background: var(--sd-bg);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: background 240ms var(--ease);
  position: relative;
  min-height: 560px;
}
.ebook-card:hover { background: var(--sd-bg-1); }

.ebook-card__cover {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  position: relative;
  overflow: hidden;
  transition: transform 500ms var(--ease);
}
.ebook-card:hover .ebook-card__cover { transform: translateY(-4px); }

/* Flat book cover — typographic, sans, Stripe-Press-style */
.book-flat {
  width: 66%;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 20px;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -2px 0 0 rgba(255,255,255,0.05), 18px 18px 40px rgba(0,0,0,0.55);
  font-family: var(--f-display);
  color: #EAE6DA;
  position: relative;
}
.book-flat__head {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
.book-flat__title {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.book-flat__foot {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
.book-flat__rule {
  width: 32px; height: 2px;
  background: currentColor;
  opacity: 0.55;
  margin-bottom: 12px;
}

.ebook-card__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.ebook-card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--sd-fg);
  line-height: 1.1;
  margin: 0;
}
.ebook-card__by {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin: -12px 0 0;
}
.ebook-card__pitch {
  font-size: 14px;
  color: var(--sd-fg-dim);
  line-height: 1.55;
}
.ebook-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--sd-line);
}
.ebook-card__price {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--sd-fg);
}
.ebook-card__cta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: 6px;
  transition: background 200ms, border-color 200ms;
}
.ebook-card__cta:hover { background: var(--sd-bg-2); border-color: var(--sd-line-3); }

@media (max-width: 1000px) { .ebook-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ebook-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { padding: 180px 0 60px; }
.about-hero .big {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 20ch;
}
.about-hero .big em { color: var(--sd-fg-dim); font-style: normal; }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 0 0 40px;
}
.about-cols h3 { margin-bottom: 14px; }
.about-cols p { color: var(--sd-fg-dim); font-size: 15px; line-height: 1.7; max-width: 44ch; }
@media (max-width: 820px) { .about-cols { grid-template-columns: 1fr; gap: 40px; } }

.manifesto-list {
  padding: 100px 0;
  background: var(--sd-bg-1);
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
}
.manifesto-list h2 { margin-bottom: 44px; max-width: 16ch; }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.manifesto-col h4 {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 20px;
  font-weight: 400;
}
.manifesto-col ul { list-style: none; margin: 0; padding: 0; }
.manifesto-col li {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--sd-fg-dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--sd-line);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.manifesto-col li::before {
  content: "—";
  color: var(--sd-fg-muted);
  font-family: var(--f-mono);
}
@media (max-width: 820px) { .manifesto-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   About strip / CTA section
   ========================================================================== */
.about-strip {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--sd-bg-1);
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  position: relative;
}
.about-strip__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 24ch;
  margin-bottom: 28px;
  color: var(--sd-fg);
}
.about-strip__title em { color: var(--sd-fg-dim); font-style: normal; }

/* ==========================================================================
   Crisis band
   ========================================================================== */
.crisis {
  background: var(--sd-plum-deep);
  color: var(--sd-fg);
  padding: 36px 0;
  border-top: 1px solid var(--sd-line);
}
.crisis__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.crisis__label { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-dim); }
.crisis__title { font-size: 1.15rem; line-height: 1.35; margin-top: 4px; font-weight: 500; }
.crisis__lines {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--sd-fg-dim);
}
.crisis__lines strong {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--sd-fg);
  font-size: 20px;
  margin-right: 8px;
  letter-spacing: -0.02em;
}
@media (max-width: 820px) { .crisis__inner { grid-template-columns: 1fr; gap: 10px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--sd-bg);
  border-top: 1px solid var(--sd-line);
  padding: 64px 0 40px;
  color: var(--sd-fg-muted);
  font-size: 13px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand .wordmark {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--sd-fg);
  display: inline-block;
  margin-bottom: 12px;
}
.footer__brand .wordmark .d, .footer__brand .wordmark .dot { color: var(--sd-fg-dim); font-weight: 500; }
.footer__brand p { color: var(--sd-fg-dim); max-width: 36ch; font-size: 13px; line-height: 1.6; margin: 0; }

.footer__col-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 14px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--sd-fg-dim); transition: color 200ms; }
.footer ul a:hover { color: var(--sd-fg); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sd-line);
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-wrap { padding: 160px 0 100px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.cart-wrap h1 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.cart-items { border-top: 1px solid var(--sd-line); margin-top: 32px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sd-line);
  align-items: center;
}
.cart-item__cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #333 0%, #111 100%);
  border-radius: 2px;
  border: 1px solid var(--sd-line);
}
.cart-item__cover--saas { background: linear-gradient(155deg, #0F0F0F 0%, #050505 100%); border-color: var(--sd-line-2); }
.cart-item__title { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -0.02em; color: var(--sd-fg); font-weight: 500; }
.cart-item__sub { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); margin-top: 4px; }
.cart-item__price { font-family: var(--f-mono); font-size: 14px; color: var(--sd-fg); }
.cart-item__remove {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  transition: color 200ms;
  padding: 4px 8px;
  border-radius: 4px;
}
.cart-item__remove:hover { color: var(--sd-red); background: var(--sd-bg-1); }

.cart-summary {
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  padding: 28px;
  position: sticky;
  top: 90px;
  align-self: start;
}
.cart-summary h3 {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--sd-fg-dim); }
.cart-summary .row--total {
  border-top: 1px solid var(--sd-line);
  margin-top: 14px; padding-top: 16px;
  font-family: var(--f-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--sd-fg);
  font-weight: 500;
}
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 16px; }
.cart-summary .note {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
.cart-empty { padding: 60px 0; font-family: var(--f-mono); font-size: 14px; color: var(--sd-fg-muted); }
@media (max-width: 820px) {
  .cart-wrap { grid-template-columns: 1fr; gap: 32px; padding: 130px 0 80px; }
  .cart-item { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 12px; }
  .cart-item__price, .cart-item__remove { grid-column: 2; }
}

/* ==========================================================================
   Thank-you
   ========================================================================== */
.thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0;
}
.thanks__inner { max-width: 640px; padding: 0 32px; text-align: center; }
.thanks .seal {
  width: 72px; height: 72px;
  border: 1px solid var(--sd-line-2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--sd-green);
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 500;
  position: relative;
  background: rgba(255, 255, 255,0.06);
}
.thanks .seal::before {
  content: "";
  position: absolute; inset: -8px;
  border: 1px solid var(--sd-line);
  border-radius: 50%;
}
.thanks h1 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3rem); }
.thanks h1 em { color: var(--sd-fg-dim); font-style: normal; }
.thanks p { color: var(--sd-fg-dim); font-size: 1.1rem; max-width: 48ch; margin: 0 auto 28px; }
.thanks .downloads { margin: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.thanks .download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--sd-fg);
  font-family: var(--f-mono);
  transition: border-color 200ms, background 200ms;
}
.thanks .download:hover { border-color: var(--sd-line-3); background: var(--sd-bg-2); }
.thanks .download .mono-right { color: var(--sd-green); font-size: 12px; }

/* ==========================================================================
   404
   ========================================================================== */
.err { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 140px 32px; text-align: center; }
.err__big {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(5rem, 16vw, 12rem);
  color: var(--sd-fg);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.err p { color: var(--sd-fg-dim); font-size: 1.1rem; margin: 20px auto 28px; max-width: 42ch; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: 160px 0 100px; max-width: 720px; }
.legal h1 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; font-weight: 500; }
.legal p { color: var(--sd-fg-dim); line-height: 1.75; }
.legal .updated { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); margin-bottom: 28px; }
.legal a { color: var(--sd-fg); border-bottom: 1px solid var(--sd-line-2); }
.legal a:hover { border-bottom-color: var(--sd-fg); }

/* ==========================================================================
   Product detail pages
   ========================================================================== */
.pd-hero { padding: 140px 0 64px; position: relative; }
.pd-hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--sd-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sd-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 40%, #000 20%, transparent 100%);
  opacity: 0.6;
}
.pd-hero__breadcrumb {
  display: flex;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 28px;
}
.pd-hero__breadcrumb a { color: var(--sd-fg-muted); transition: color 200ms; }
.pd-hero__breadcrumb a:hover { color: var(--sd-fg); }
.pd-hero__breadcrumb .sep { opacity: 0.5; }

.pd-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; gap: 40px; } }

.pd-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 20px;
}
.pd-title .ver {
  font-family: var(--f-mono);
  font-size: 0.32em;
  color: var(--sd-fg-muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 12px;
  vertical-align: 0.35em;
}
.pd-pitch {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--sd-fg-dim);
  max-width: 56ch;
  line-height: 1.55;
  margin: 0 0 28px;
}
.pd-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pd-stack span {
  padding: 5px 10px;
  border: 1px solid var(--sd-line);
  border-radius: 5px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
}

.pd-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.pd-cta .price-note { flex-basis: 100%; margin-top: -4px; }
@media (max-width: 600px) {
  .pd-cta .btn { flex: 1 1 auto; justify-content: center; }
}
.pd-cta__price {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sd-fg);
  margin-right: auto;
}
.pd-cta__price .per {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--sd-fg-muted);
  margin-left: 6px;
  letter-spacing: 0;
}

.pd-meta {
  border-top: 1px solid var(--sd-line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.pd-meta .k { color: var(--sd-fg-muted); }
.pd-meta .v { color: var(--sd-fg); }

/* Big preview panel */
.pd-preview {
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  background: #050505;
  overflow: hidden;
  font-family: var(--f-mono);
  min-height: 440px;
  position: relative;
}
.pd-preview__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sd-line);
  color: var(--sd-fg-muted);
  font-size: 12px;
}
.pd-preview__dots { display: flex; gap: 6px; }
.pd-preview__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--sd-fg-faint); }
.pd-preview__dots span:nth-child(1) { background: #FF5F57; }
.pd-preview__dots span:nth-child(2) { background: #FEBC2E; }
.pd-preview__dots span:nth-child(3) { background: #28C840; }

/* Dashboard mockup (for Helix UI etc) */
.mock-dash {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 420px;
}
.mock-dash__sidebar {
  background: #0A0A0A;
  border-right: 1px solid var(--sd-line);
  padding: 16px 12px;
  font-size: 12px;
}
.mock-dash__sidebar .item {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sd-fg-dim);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-dash__sidebar .item::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.3; }
.mock-dash__sidebar .item.active { background: var(--sd-bg-2); color: var(--sd-fg); }
.mock-dash__sidebar .item.active::before { background: var(--sd-green); opacity: 1; }
.mock-dash__sidebar h5 {
  font-size: 10px;
  color: var(--sd-fg-muted);
  margin: 12px 0 6px;
  padding-left: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  font-weight: 400;
}
.mock-dash__main { padding: 18px 20px; }
.mock-dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-dash__stat {
  padding: 12px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-bg-1);
}
.mock-dash__stat .label { font-size: 10px; color: var(--sd-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.mock-dash__stat .num { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--sd-fg); margin-top: 4px; }
.mock-dash__stat .trend { font-size: 10px; color: var(--sd-green); margin-top: 2px; }
.mock-dash__stat .trend.down { color: var(--sd-red); }
.mock-dash__chart {
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-bg-1);
  padding: 14px;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.mock-dash__chart svg { width: 100%; height: 100%; }

/* Chat mockup (Hermes) */
.mock-chat { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.mock-chat .row { display: flex; gap: 10px; }
.mock-chat .row.me { justify-content: flex-end; }
.mock-chat .bubble {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sd-bg-2);
  max-width: 75%;
  color: var(--sd-fg-dim);
}
.mock-chat .row.me .bubble { background: var(--sd-green); color: #062818; }
.mock-chat .row .name { font-size: 10px; color: var(--sd-fg-muted); margin-bottom: 4px; }
.mock-chat .typing { color: var(--sd-fg-muted); font-style: italic; font-size: 12px; margin-top: 4px; }

/* Flag list mockup (Gauge) */
.mock-flags { padding: 18px 20px; }
.mock-flags .row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sd-line);
  align-items: center;
  font-size: 12px;
}
.mock-flags .row:last-child { border-bottom: 0; }
.mock-flags .toggle {
  width: 22px; height: 12px;
  background: var(--sd-bg-3);
  border-radius: 99px;
  position: relative;
}
.mock-flags .toggle.on { background: var(--sd-green); }
.mock-flags .toggle::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 10px; height: 10px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 200ms var(--ease);
}
.mock-flags .toggle.on::after { transform: translateX(10px); }
.mock-flags .flag-name { color: var(--sd-fg); }
.mock-flags .flag-meta { font-family: var(--f-mono); font-size: 10px; color: var(--sd-fg-muted); }

/* Email composer mockup (Plume) */
.mock-email { padding: 20px; font-size: 12px; }
.mock-email .subject {
  font-size: 18px;
  color: var(--sd-fg);
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sd-line);
  margin-bottom: 14px;
  font-weight: 500;
}
.mock-email .line {
  padding: 6px 0;
  color: var(--sd-fg-dim);
  display: flex;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.mock-email .line .k { color: var(--sd-fg-muted); width: 72px; flex-shrink: 0; }
.mock-email .line .v { color: var(--sd-fg); }
.mock-email .sendbar {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-email .send-btn {
  padding: 6px 14px;
  background: var(--sd-green);
  color: #062818;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
}

/* Analytics mockup (Quartz) */
.mock-stats { padding: 18px 20px; }
.mock-stats__bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 120px;
  align-items: end;
  margin: 14px 0;
}
.mock-stats__bars span {
  background: var(--sd-fg);
  opacity: 0.5;
  border-radius: 2px 2px 0 0;
  transition: opacity 200ms;
}
.mock-stats__bars span:hover { opacity: 1; }
.mock-stats__list {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-dim);
}
.mock-stats__list .row {
  display: grid;
  grid-template-columns: 1fr 60px 40px;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--sd-line);
}

/* Features grid in product detail */
.pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sd-line);
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 48px 0;
}
.pd-feature {
  background: var(--sd-bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-feature__icon {
  width: 38px; height: 38px;
  border: 1px solid var(--sd-line-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sd-fg-dim);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.pd-feature:hover .pd-feature__icon {
  border-color: var(--sd-line-3);
  background: rgba(255, 255, 255, 0.04);
}
.pd-feature h3 { font-size: 17px; font-weight: 600; }
.pd-feature p { font-size: 14px; color: var(--sd-fg-dim); margin: 0; }
@media (max-width: 900px) { .pd-features { grid-template-columns: 1fr; } }

.pd-section { padding: 60px 0; border-top: 1px solid var(--sd-line); }
.pd-section h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: 24px; letter-spacing: -0.03em; }
.pd-section h2 em { color: var(--sd-fg-dim); font-style: normal; }

.pd-included {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pd-included .item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-bg-1);
}
.pd-included .item .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--sd-line-2);
  color: var(--sd-fg-dim);
  flex-shrink: 0;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.pd-included .item:hover .check {
  border-color: var(--sd-line-3);
  background: rgba(255, 255, 255, 0.04);
}
.pd-included .item .check svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pd-included .item {
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.pd-included .item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--sd-bg-2);
}
.pd-included .item .body { font-size: 14px; color: var(--sd-fg-dim); }
.pd-included .item .body strong { color: var(--sd-fg); display: block; margin-bottom: 4px; font-weight: 600; }
@media (max-width: 720px) { .pd-included { grid-template-columns: 1fr; } }

.pd-changelog {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}
.pd-changelog .entry {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sd-line);
  color: var(--sd-fg-dim);
}
.pd-changelog .entry .date { color: var(--sd-fg-muted); }
.pd-changelog .entry .v { color: var(--sd-green); }
@media (max-width: 720px) { .pd-changelog .entry { grid-template-columns: 1fr; gap: 4px; } }

.pd-faq details {
  border-bottom: 1px solid var(--sd-line);
  padding: 18px 0;
}
.pd-faq summary {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--sd-fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--sd-fg-muted);
  transition: transform 240ms var(--ease);
}
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq details p {
  padding-top: 14px;
  color: var(--sd-fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* Ebook product page specifics */
.pd-ebook-cover {
  aspect-ratio: 3 / 4;
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.pd-ebook-cover .book-flat { width: 80%; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }

.pd-toc {
  display: grid;
  gap: 2px;
}
.pd-toc .ch {
  display: grid;
  grid-template-columns: 48px 1fr 80px;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--sd-line);
  border-radius: 6px;
  background: var(--sd-bg);
  transition: background 200ms, border-color 200ms;
  align-items: center;
}
.pd-toc .ch:hover { background: var(--sd-bg-1); border-color: var(--sd-line-2); }
.pd-toc .ch .n { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); }
.pd-toc .ch .t { font-size: 15px; color: var(--sd-fg); font-weight: 500; }
.pd-toc .ch .p { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); text-align: right; }

.pd-excerpt {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sd-fg-dim);
}
.pd-excerpt p { margin-bottom: 1.5em; }
.pd-excerpt p:first-child::first-letter {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--sd-fg);
  letter-spacing: -0.04em;
}

.pd-author {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: var(--sd-bg-1);
}
.pd-author__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sd-fg-faint) 0%, var(--sd-bg-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--sd-fg-dim);
}
.pd-author h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pd-author .role { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); margin-bottom: 10px; }
.pd-author p { font-size: 14px; color: var(--sd-fg-dim); margin: 0; }

.pd-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pd-related a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-bg);
  transition: background 200ms, border-color 200ms;
}
.pd-related a:hover { background: var(--sd-bg-1); border-color: var(--sd-line-2); }
.pd-related .ttl { font-weight: 600; color: var(--sd-fg); font-size: 15px; }
.pd-related .sub { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); }
.pd-related .prc { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg); margin-top: auto; }
@media (max-width: 820px) { .pd-related { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-wrap {
  padding: 140px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }

.contact-intro h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); letter-spacing: -0.045em; margin-bottom: 24px; }
.contact-intro h1 em { color: var(--sd-fg-dim); font-style: normal; }
.contact-intro p { color: var(--sd-fg-dim); font-size: 1.05rem; line-height: 1.65; max-width: 46ch; }

.contact-info {
  margin-top: 32px;
  display: grid;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
}
.contact-info .line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--sd-line);
  border-radius: 6px;
  background: var(--sd-bg-1);
}
.contact-info .k { color: var(--sd-fg-muted); }
.contact-info .v { color: var(--sd-fg); }
.contact-info .v a { color: var(--sd-green); }

.contact-form {
  background: var(--sd-bg-1);
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  padding: 32px;
}
.contact-form__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sd-line);
}
.contact-form .row { margin-bottom: 18px; }
.contact-form .row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .contact-form .row.split { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 6px;
  letter-spacing: 0;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  background: var(--sd-bg);
  border: 1px solid var(--sd-line-2);
  border-radius: 6px;
  color: var(--sd-fg);
  font-family: var(--f-body);
  font-size: 14px;
  transition: border-color 200ms;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sd-green);
}
.contact-form textarea { min-height: 140px; resize: vertical; font-family: var(--f-body); }
.contact-form .btn { width: 100%; justify-content: center; padding: 14px; font-size: 14px; }
.contact-form__note {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  text-align: center;
}
.contact-form.is-sent .form-body { display: none; }
.contact-form__success {
  display: none;
  padding: 60px 20px;
  text-align: center;
}
.contact-form.is-sent .contact-form__success { display: block; }
.contact-form__success .seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--sd-green);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sd-green);
  font-family: var(--f-mono);
  font-size: 22px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255,0.08);
}
.contact-form__success h3 { font-size: 20px; margin-bottom: 8px; }
.contact-form__success p { color: var(--sd-fg-dim); font-size: 14px; margin: 0; }

/* ==========================================================================
   Reviews section (product detail)
   ========================================================================== */
.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.reviews__score {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--sd-fg-muted);
}
.reviews__score .num {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--sd-fg);
  letter-spacing: -0.02em;
  margin-right: 4px;
}
.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--sd-fg);
  font-size: 14px;
  letter-spacing: 1px;
}
.stars.sm { font-size: 12px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.review {
  position: relative;
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: var(--sd-bg-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
  overflow: hidden;
}
.review:hover {
  border-color: var(--sd-line-3);
  transform: translateY(-2px);
}
.review__verified { color: var(--sd-fg-dim); }
.review__verified::before { color: var(--sd-fg-dim); }

.review__head { display: flex; justify-content: space-between; align-items: center; }
.review__stars {
  color: var(--sd-fg);
  font-size: 13px;
  letter-spacing: 2px;
}
.review__date { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); }

.review__quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--sd-fg);
  flex: 1;
  margin: 0;
}
.review__quote::before { content: "\201C"; color: var(--sd-fg-muted); margin-right: 2px; }
.review__quote::after  { content: "\201D"; color: var(--sd-fg-muted); margin-left: 2px; }

.review__author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--sd-line);
}
.review__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sd-fg-faint), var(--sd-bg-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-fg-dim);
  flex-shrink: 0;
  overflow: hidden;
}
.review__avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.review__who { flex: 1; min-width: 0; }
.review__name { font-size: 13px; font-weight: 600; color: var(--sd-fg); }
.review__meta { font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted); margin-top: 2px; }
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sd-green);
  font-size: 10px;
  font-family: var(--f-mono);
}
.review__verified::before {
  content: "✓";
  font-size: 10px;
}

/* Price note */
.price-note {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--sd-fg-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Full-width product dashboard screenshot */
.pd-bigscreen {
  position: relative;
  margin: 36px 0 0;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0B0C 0%, #060606 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255, 255, 255,0.08);
}
.pd-bigscreen__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--sd-line);
  background: linear-gradient(180deg, #101011 0%, #0A0A0B 100%);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
}
.pd-bigscreen__chrome .dots { display: flex; gap: 6px; }
.pd-bigscreen__chrome .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--sd-fg-faint); }
.pd-bigscreen__chrome .dots span:nth-child(1) { background: #FF5F57; }
.pd-bigscreen__chrome .dots span:nth-child(2) { background: #FEBC2E; }
.pd-bigscreen__chrome .dots span:nth-child(3) { background: #28C840; }
.pd-bigscreen__chrome .url {
  flex: 1;
  text-align: center;
  padding: 4px 12px;
  background: var(--sd-bg);
  border: 1px solid var(--sd-line);
  border-radius: 6px;
  max-width: 380px;
  margin: 0 auto;
  color: var(--sd-fg-dim);
}
.pd-bigscreen__chrome .url .lock { color: var(--sd-fg-dim); margin-right: 6px; }
.pd-bigscreen__chrome .meta { font-size: 10px; }

/* Gauge-specific full dashboard */
.dash-gauge {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
}
.dash-gauge__side {
  background: #070708;
  border-right: 1px solid var(--sd-line);
  padding: 18px 14px;
  font-size: 12px;
}
.dash-gauge__brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 18px; margin-bottom: 10px;
  border-bottom: 1px solid var(--sd-line);
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; font-size: 14px;
}
.dash-gauge__brand::before {
  content: ""; width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--sd-fg-dim), var(--sd-fg));
  border-radius: 4px;
}
.dash-gauge__sec { padding: 10px 0; }
.dash-gauge__sec h6 {
  font-family: var(--f-mono); font-size: 10px; color: var(--sd-fg-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 8px; margin: 8px 0 6px;
}
.dash-gauge__item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; margin-bottom: 1px;
  border-radius: 6px;
  color: var(--sd-fg-dim);
  cursor: default;
}
.dash-gauge__item.active { background: var(--sd-bg-2); color: var(--sd-fg); }
.dash-gauge__item .d { width: 6px; height: 6px; border-radius: 50%; background: var(--sd-fg-faint); }
.dash-gauge__item.active .d { background: var(--sd-green); }
.dash-gauge__item .ct { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: var(--sd-fg-muted); }

.dash-gauge__main { padding: 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.dash-gauge__header { display: flex; justify-content: space-between; align-items: flex-end; }
.dash-gauge__title { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.dash-gauge__title .env {
  display: inline-block; margin-left: 10px;
  padding: 2px 8px; font-size: 10px; font-family: var(--f-mono);
  background: rgba(255, 255, 255,0.12); color: var(--sd-green);
  border: 1px solid rgba(255, 255, 255,0.3); border-radius: 99px;
  vertical-align: middle;
}
.dash-gauge__searchbar {
  display: flex; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; color: var(--sd-fg-muted);
}
.dash-gauge__searchbar span {
  padding: 5px 10px; border: 1px solid var(--sd-line); border-radius: 6px;
  background: var(--sd-bg-1);
}
.dash-gauge__searchbar .primary { border-color: rgba(255, 255, 255,0.35); background: rgba(255, 255, 255,0.08); color: var(--sd-fg-dim); }

.dash-gauge__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-gauge__kpi {
  padding: 14px 16px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: var(--sd-bg-1);
}
.dash-gauge__kpi .lbl { font-family: var(--f-mono); font-size: 10px; color: var(--sd-fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-gauge__kpi .v { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; }
.dash-gauge__kpi .delta { font-family: var(--f-mono); font-size: 10px; margin-top: 2px; color: var(--sd-green); }
.dash-gauge__kpi .delta.iris { color: var(--sd-fg-dim); }
.dash-gauge__kpi .delta.cyan { color: var(--sd-fg); }

.dash-gauge__table {
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sd-bg-1);
}
.dash-gauge__thead, .dash-gauge__tr {
  display: grid;
  grid-template-columns: 32px 2fr 1.3fr 120px 110px 60px;
  gap: 14px;
  padding: 11px 16px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
}
.dash-gauge__thead {
  border-bottom: 1px solid var(--sd-line);
  background: #0C0C0D;
  color: var(--sd-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
.dash-gauge__tr {
  border-bottom: 1px solid var(--sd-line);
  color: var(--sd-fg-dim);
}
.dash-gauge__tr:last-child { border-bottom: 0; }
.dash-gauge__tr .tog {
  width: 26px; height: 14px;
  border-radius: 99px;
  background: var(--sd-bg-3);
  position: relative;
}
.dash-gauge__tr .tog.on { background: var(--sd-green); }
.dash-gauge__tr .tog.canary { background: var(--sd-fg); }
.dash-gauge__tr .tog::after {
  content: ""; position: absolute; top: 1px; left: 1px;
  width: 12px; height: 12px; background: #fff; border-radius: 50%;
  transition: transform 180ms var(--ease);
}
.dash-gauge__tr .tog.on::after, .dash-gauge__tr .tog.canary::after { transform: translateX(12px); }
.dash-gauge__tr .name { color: var(--sd-fg); font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; font-size: 13px; }
.dash-gauge__tr .seg { font-size: 10px; color: var(--sd-fg-muted); }
.dash-gauge__tr .rollout { display: flex; align-items: center; gap: 8px; }
.dash-gauge__tr .rollout .bar {
  flex: 1; height: 4px; border-radius: 99px; background: var(--sd-bg-3);
  overflow: hidden;
}
.dash-gauge__tr .rollout .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--sd-fg-dim), var(--sd-fg));
  border-radius: 99px;
}
.dash-gauge__tr .rollout .pct { color: var(--sd-fg); font-size: 10px; min-width: 30px; text-align: right; }
.dash-gauge__tr .status { font-size: 10px; }
.dash-gauge__tr .status.live { color: var(--sd-green); }
.dash-gauge__tr .status.off  { color: var(--sd-fg-muted); }
.dash-gauge__tr .status.canary { color: var(--sd-fg); }
.dash-gauge__tr .more { text-align: right; color: var(--sd-fg-muted); cursor: default; }

@media (max-width: 820px) {
  .dash-gauge { grid-template-columns: 1fr; }
  .dash-gauge__side { display: none; }
  .dash-gauge__thead, .dash-gauge__tr {
    grid-template-columns: 32px 1.6fr 1fr;
    font-size: 10px;
  }
  .dash-gauge__tr .seg, .dash-gauge__tr .rollout, .dash-gauge__tr .more { display: none; }
  .dash-gauge__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Product hero image */
.pd-heroimg {
  position: relative;
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sd-bg-1);
  margin: 36px 0 0;
}
.pd-heroimg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) brightness(0.82) contrast(1.05);
  transition: transform 900ms var(--ease);
}
.pd-heroimg:hover img { transform: scale(1.02); }
.pd-heroimg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.pd-heroimg__tag {
  position: absolute;
  bottom: 16px; left: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg);
  border: 1px solid var(--sd-line-2);
}

/* Featured badge (new/hot) */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255, 255, 255,0.18), rgba(255, 255, 255,0.15));
  border: 1px solid rgba(255, 255, 255,0.35);
  color: var(--sd-fg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.badge-new::before {
  content: "●";
  color: var(--sd-fg);
  font-size: 8px;
}

/* ==========================================================================
   Home "what we do" section
   ========================================================================== */
.wwd {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--sd-line);
  background: var(--sd-bg);
  position: relative;
}
.wwd__head { max-width: 52ch; margin-bottom: 56px; }
.wwd__head h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px; }
.wwd__head h2 em { color: var(--sd-fg-dim); font-style: normal; }
.wwd__head p { color: var(--sd-fg-dim); font-size: 1.1rem; line-height: 1.6; }

.wwd__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--sd-line);
  padding-top: 40px;
}
@media (max-width: 900px) { .wwd__pillars { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .wwd__pillars { grid-template-columns: 1fr; } }

.wwd__pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wwd__pillar .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-green);
  margin-bottom: 2px;
}
.wwd__pillar h3 { font-size: 17px; font-weight: 600; }
.wwd__pillar p { font-size: 14px; color: var(--sd-fg-dim); margin: 0; line-height: 1.55; }

/* Marquee logos (home trust strip) */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-bg);
}
.logos__head {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--sd-fg-muted);
  margin-bottom: 20px;
  text-align: center;
}
.logos__row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.55;
}
.logos__row span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--sd-fg-dim);
  filter: grayscale(1);
}

/* ==========================================================================
   Glow hover on cards
   ========================================================================== */
.card-glow { position: relative; }
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.08), transparent 40%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ==========================================================================
   Mobile polish — breathing space + centered alignment (<=720px)
   ========================================================================== */
@media (max-width: 720px) {
  /* Breathing space */
  .wrap, .wrap-chrome, .wrap-prose { padding: 0 22px; }
  .section { padding: clamp(80px, 16vw, 120px) 0; }

  /* Hero — centered layout on mobile */
  .hero {
    padding: 128px 0 72px;
    text-align: center;
    align-items: center;
    min-height: auto;
  }
  .hero__chip { margin-left: auto; margin-right: auto; margin-bottom: 24px; }
  .hero__title {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }
  .hero__sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 42ch;
  }
  .hero__cta { justify-content: center; margin-bottom: 56px; }
  .hero__stats {
    margin-left: auto;
    margin-right: auto;
    padding-top: 36px;
    gap: 24px 16px;
  }
  .hero__stats > div { align-items: center; text-align: center; }

  /* What we do (home) */
  .wwd { padding: 80px 0 88px; }
  .wwd__head {
    text-align: center;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px;
  }
  .wwd__head h2 { margin-left: auto; margin-right: auto; }
  .wwd__head p { margin-left: auto; margin-right: auto; }
  .wwd__pillars { padding-top: 32px; gap: 36px; }
  .wwd__pillar { align-items: center; text-align: center; gap: 8px; }

  /* Changelog strip */
  .changelog { padding: 44px 0; }
  .changelog__head { justify-content: center; text-align: center; }

  /* Lanes (homepage imprint split) */
  .lane { padding: 64px 22px; }
  .lane__header { text-align: center; margin-bottom: 28px; }
  .lane__kicker { justify-content: center; }
  .lane__title { max-width: 100%; }
  .lane__preview { display: flex; justify-content: center; margin: 16px 0 24px; }
  .lane__foot { justify-content: center; text-align: center; gap: 10px; }

  /* Feature grid */
  .feature { padding: 32px 24px; text-align: center; align-items: center; gap: 14px; }
  .feature__icon { margin-left: auto; margin-right: auto; margin-bottom: 6px; }

  /* Journal teaser */
  .journal-teaser { padding: 80px 0 88px; }
  .journal-teaser__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 28px;
  }
  .j-card { padding: 28px 24px; text-align: center; }
  .j-card .meta { justify-content: center; }
  .j-card p { margin-left: auto; margin-right: auto; }

  /* About strip */
  .about-strip { padding: 80px 0 88px; text-align: center; }
  .about-strip__title {
    margin-left: auto;
    margin-right: auto;
    max-width: 22ch;
  }
  .about-strip .wrap-chrome > [style*="display: flex"] { justify-content: center; }

  /* Marquee keeps its motion full-width */
  .marquee { padding: 22px 0; }

  /* Crisis band */
  .crisis { padding: 32px 0; }
  .crisis__inner { text-align: center; }
  .crisis__lines { justify-content: center; }
  .crisis__title { margin-left: auto; margin-right: auto; max-width: 36ch; }

  /* Footer */
  .footer { padding: 56px 0 36px; }
  .footer__top { gap: 36px 24px; padding-bottom: 40px; }
  .footer__brand { grid-column: 1 / -1; text-align: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }

  /* Page heads (listings) */
  .page-head { padding: 136px 0 44px; text-align: center; }
  .page-head__chip { margin-left: auto; margin-right: auto; }
  .page-head h1, .page-head p { margin-left: auto; margin-right: auto; max-width: 100%; }
  .filters { justify-content: center; }
  .filters__tabs { justify-content: center; }

  /* Journal list header + items */
  .journal-hero { padding: 136px 0 32px; text-align: center; }
  .journal-hero h1, .journal-hero p { margin-left: auto; margin-right: auto; max-width: 100%; }
  .journal-list { padding: 32px 0 88px; }
  .journal-item { text-align: center; padding: 28px 0; }
  .journal-item p { margin-left: auto; margin-right: auto; }
  .journal-item .more { justify-content: center; }

  /* Post */
  .post-hero { padding: 136px 0 28px; text-align: center; }
  .post-hero h1, .post-hero .lede { margin-left: auto; margin-right: auto; }
  .post-hero .meta { justify-content: center; }
  .post-body { padding: 32px 0 80px; font-size: 16px; }
  .post-body blockquote { margin-left: auto; margin-right: auto; max-width: 100%; padding-left: 18px; }

  /* About page */
  .about-cols { gap: 32px; }
  .about-cols > * { text-align: center; }
  .about-cols p { margin-left: auto; margin-right: auto; }
  .manifesto-list { padding: 72px 0; }
  .manifesto-list h2 { margin-left: auto; margin-right: auto; text-align: center; }

  /* Contact */
  .contact-wrap { padding: 128px 0 72px; gap: 40px; }
  .contact-intro { text-align: center; }
  .contact-intro p { margin-left: auto; margin-right: auto; }
  .contact-info { margin-left: auto; margin-right: auto; max-width: 380px; }
  .contact-form { padding: 24px; }

  /* Product detail */
  .pd-hero { padding: 120px 0 48px; }
  .pd-grid { gap: 32px; }
  .pd-hero__breadcrumb { justify-content: center; flex-wrap: wrap; }

  /* Thank-you / 404 / legal */
  .thanks { padding: 120px 0; }
  .thanks__inner { padding: 0 22px; }
  .err { padding: 120px 22px; }
  .legal { padding: 128px 0 72px; }

  /* Reviews grid */
  .reviews__head { justify-content: center; text-align: center; }
  .reviews__score { justify-content: center; }

  /* Generic section heads with split layout - stack + center */
  .wrap-chrome > [style*="justify-content: space-between"],
  .wrap > [style*="justify-content: space-between"] {
    justify-content: center !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap, .wrap-chrome, .wrap-prose { padding: 0 20px; }
  .hero { padding: 120px 0 56px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .nav { padding: 12px 18px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-rise > .inner { transform: none; }
  .split-char { opacity: 1; transform: none; }
  .rule-draw::after { transform: scaleX(1); }
}
