/* ============================================================================
   SYNESS — MARKETING SITE
   Built on the Syness Design System (dark-first). The visual language —
   Alegreya Sans, weight + tight tracking, brand purple used sparingly, soft
   corners + one signature 45° cut, crisp hairlines, the ribbon mark as a
   low-opacity watermark — is the DS. Color is the only swappable layer.

   Cascade order: tokens → legacy aliases → base reset → core components →
   marketing/site rules → responsive.
   ============================================================================ */

/* ============================================================================
   1 · TOKENS
   ========================================================================== */

:root {
  /* ---- THEMING INPUTS ---------------------------------------------------- */
  --accent-h: 295.76;  /* brand purple hue   */
  --accent-c: 0.116;   /* chroma ceiling     */
  --accent-l: 0.5368;  /* brand anchor L     */

  /* ---- FIXED NEUTRAL "INK" RAMP ----------------------------------------- */
  --ink-50:   oklch(0.985 0.002 292);
  --ink-100:  oklch(0.955 0.003 292);
  --ink-200:  oklch(0.905 0.004 292);
  --ink-300:  oklch(0.830 0.005 292);
  --ink-400:  oklch(0.700 0.006 292);
  --ink-500:  oklch(0.580 0.006 292);
  --ink-600:  oklch(0.470 0.007 292);
  --ink-700:  oklch(0.370 0.008 292);
  --ink-800:  oklch(0.270 0.008 292);
  --ink-900:  oklch(0.190 0.007 292);
  --ink-950:  oklch(0.155 0.006 292);
  --ink-1000: oklch(0.120 0.005 292);

  /* ---- ACCENT RAMP (hue-parameterised) ---------------------------------- */
  --accent-50:  oklch(0.965 0.022 var(--accent-h));
  --accent-100: oklch(0.928 0.042 var(--accent-h));
  --accent-200: oklch(0.860 0.072 var(--accent-h));
  --accent-300: oklch(0.770 0.098 var(--accent-h));
  --accent-400: oklch(0.655 0.114 var(--accent-h));
  --accent-500: oklch(0.5368 var(--accent-c) var(--accent-h)); /* ANCHOR */
  --accent-600: oklch(0.475 0.114 var(--accent-h));
  --accent-700: oklch(0.405 0.100 var(--accent-h));
  --accent-800: oklch(0.330 0.078 var(--accent-h));
  --accent-900: oklch(0.262 0.058 var(--accent-h));

  /* ---- TYPOGRAPHY ------------------------------------------------------- */
  --font-sans:
    "Alegreya Sans", "Noto Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 700;
  --weight-bold:     800;

  --size-display:   48px;
  --size-title-1:   32px;
  --size-title-2:   26px;
  --size-title-3:   21px;
  --size-headline:  17px;
  --size-body:      17px;
  --size-callout:   16px;
  --size-subhead:   15px;
  --size-footnote:  13px;
  --size-caption:   12px;
  --size-micro:     11px;

  --leading-display: 1.04;
  --leading-tight:   1.12;
  --leading-snug:    1.28;
  --leading-normal:  1.45;
  --leading-relaxed: 1.6;

  --tracking-tighter: -0.02em;
  --tracking-tight:   -0.011em;
  --tracking-normal:  0em;
  --tracking-wide:    0.02em;
  --tracking-caps:    0.06em;

  --feat-text: "kern" 1, "calt" 1, "liga" 1, "lnum" 1, "pnum" 1;
  --feat-num:  "kern" 1, "lnum" 1, "tnum" 1, "ss01" 1;

  /* ---- SPACING (8px grid) ----------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --hit-target: 44px;

  /* ---- RADIUS + THE SIGNATURE CUT --------------------------------------- */
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --radius-2xl:  28px;
  --radius-full: 999px;
  --cut: 14px;
  --cut-sm: 10px;
  --cut-lg: 20px;

  /* ---- MOTION ----------------------------------------------------------- */
  --dur-1: 100ms;
  --dur-2: 150ms;
  --dur-3: 250ms;
  --dur-4: 400ms;
  --ease-flow:   cubic-bezier(0.32, 0.72, 0, 1);  /* SIGNATURE */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --transition-control: all var(--dur-2) var(--ease-flow);
  --transition-surface: transform var(--dur-3) var(--ease-flow), opacity var(--dur-3) var(--ease-flow);
  --transition-press:   transform var(--dur-1) var(--ease-flow);

  /* ---- MEASURE ---------------------------------------------------------- */
  --measure-prose: 38rem;   /* ~70ch  */
  --measure-wide:  70rem;   /* ~1120px */
}

/* ---- SEMANTIC ROLES — DARK (default identity) --------------------------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --surface-base:          oklch(0.155 0.006 292);
  --surface-sunken:        oklch(0.125 0.006 292);
  --surface-raised:        oklch(0.205 0.007 292);
  --surface-raised-hover:  oklch(0.235 0.008 292);
  --surface-overlay:       oklch(0.238 0.008 292);
  --surface-inset:         oklch(0.185 0.007 292);

  --text-primary:    oklch(0.965 0.004 292);
  --text-secondary:  oklch(0.745 0.006 292);
  --text-tertiary:   oklch(0.585 0.006 292);
  --text-disabled:   oklch(0.440 0.006 292);
  --text-inverse:    oklch(0.165 0.006 292);

  --border-subtle:   oklch(0.270 0.007 292);
  --border-default:  oklch(0.335 0.008 292);
  --border-strong:   oklch(0.460 0.008 292);

  --primary:              oklch(0.585 0.122 var(--accent-h));
  --primary-hover:        oklch(0.640 0.118 var(--accent-h));
  --primary-active:       oklch(0.540 0.120 var(--accent-h));
  --primary-muted:        oklch(0.320 0.055 var(--accent-h));
  --primary-muted-hover:  oklch(0.370 0.062 var(--accent-h));
  --on-primary:           oklch(0.995 0.006 var(--accent-h));
  --on-primary-muted:     oklch(0.820 0.080 var(--accent-h));

  --success:        oklch(0.720 0.150 152);
  --on-success:     oklch(0.160 0.020 152);
  --success-muted:  oklch(0.320 0.060 152);
  --success-text:   oklch(0.800 0.130 152);

  --warning:        oklch(0.800 0.140 78);
  --on-warning:     oklch(0.200 0.030 78);
  --warning-muted:  oklch(0.340 0.060 78);
  --warning-text:   oklch(0.850 0.120 78);

  --error:          oklch(0.640 0.200 25);
  --on-error:       oklch(0.995 0.010 25);
  --error-muted:    oklch(0.320 0.090 25);
  --error-text:     oklch(0.745 0.160 25);

  --info:           oklch(0.680 0.130 245);
  --on-info:        oklch(0.160 0.020 245);
  --info-muted:     oklch(0.320 0.070 245);
  --info-text:      oklch(0.785 0.110 245);

  --focus-ring:     var(--primary);
  --backdrop:       oklch(0.10 0.01 292 / 0.62);
  --hairline:       color-mix(in oklab, var(--border-default) 100%, transparent);

  /* elevation (dark) */
  --shadow-0: none;
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.40);
  --shadow-2: 0 2px 6px oklch(0 0 0 / 0.45), 0 1px 2px oklch(0 0 0 / 0.40);
  --shadow-3: 0 12px 32px oklch(0 0 0 / 0.55), 0 4px 10px oklch(0 0 0 / 0.40);
  --edge-highlight: inset 0 1px 0 oklch(1 0 0 / 0.04);
  --ring: 0 0 0 2px var(--surface-base), 0 0 0 4px var(--focus-ring);
  --ring-tight: 0 0 0 2px var(--focus-ring);
}

/* ---- SEMANTIC ROLES — LIGHT (supported, currently unused) --------------- */
[data-theme="light"] {
  color-scheme: light;

  --surface-base:          oklch(0.985 0.002 292);
  --surface-sunken:        oklch(0.955 0.003 292);
  --surface-raised:        oklch(1 0 0);
  --surface-raised-hover:  oklch(0.975 0.003 292);
  --surface-overlay:       oklch(1 0 0);
  --surface-inset:         oklch(0.970 0.003 292);

  --text-primary:    oklch(0.205 0.008 292);
  --text-secondary:  oklch(0.430 0.008 292);
  --text-tertiary:   oklch(0.565 0.007 292);
  --text-disabled:   oklch(0.720 0.005 292);
  --text-inverse:    oklch(0.985 0.002 292);

  --border-subtle:   oklch(0.925 0.004 292);
  --border-default:  oklch(0.875 0.005 292);
  --border-strong:   oklch(0.780 0.006 292);

  --primary:              oklch(0.5368 var(--accent-c) var(--accent-h));
  --primary-hover:        oklch(0.490 0.116 var(--accent-h));
  --primary-active:       oklch(0.440 0.110 var(--accent-h));
  --primary-muted:        oklch(0.952 0.030 var(--accent-h));
  --primary-muted-hover:  oklch(0.918 0.042 var(--accent-h));
  --on-primary:           oklch(0.995 0.004 var(--accent-h));
  --on-primary-muted:     oklch(0.450 0.110 var(--accent-h));

  --success:  oklch(0.580 0.140 152); --on-success: oklch(0.995 0.010 152);
  --success-muted: oklch(0.945 0.050 152); --success-text: oklch(0.450 0.130 152);
  --warning:  oklch(0.720 0.150 70);  --on-warning: oklch(0.220 0.030 70);
  --warning-muted: oklch(0.955 0.060 80); --warning-text: oklch(0.470 0.110 70);
  --error:    oklch(0.575 0.210 25);  --on-error: oklch(0.995 0.010 25);
  --error-muted: oklch(0.950 0.040 25); --error-text: oklch(0.515 0.190 25);
  --info:     oklch(0.550 0.150 245); --on-info: oklch(0.995 0.010 245);
  --info-muted: oklch(0.950 0.040 245); --info-text: oklch(0.480 0.130 245);

  --focus-ring: var(--primary);
  --backdrop:   oklch(0.30 0.02 292 / 0.36);

  --shadow-0: none;
  --shadow-1: 0 1px 2px oklch(0.2 0.01 292 / 0.08), 0 1px 1px oklch(0.2 0.01 292 / 0.04);
  --shadow-2: 0 4px 12px oklch(0.2 0.01 292 / 0.10), 0 1px 3px oklch(0.2 0.01 292 / 0.06);
  --shadow-3: 0 16px 40px oklch(0.2 0.01 292 / 0.16), 0 4px 12px oklch(0.2 0.01 292 / 0.08);
  --edge-highlight: inset 0 1px 0 oklch(1 0 0 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 1ms; --dur-2: 1ms; --dur-3: 1ms; --dur-4: 1ms; }
}

/* ============================================================================
   2 · LEGACY TOKEN ALIASES
   The templates carry many inline `style="…var(--ink)…var(--accent)…"`. These
   aliases map the old design-system token names onto the new semantic tokens
   so existing inline styles render in the new theme with no edits.
   ========================================================================== */
:root {
  --brand:       var(--text-primary);
  --ink:         var(--text-primary);
  --ink-2:       var(--text-secondary);
  --ink-3:       var(--text-tertiary);
  --accent:      var(--primary);
  --accent-tint: var(--primary-muted);
  --selection:   var(--primary-muted);
  --rule:        var(--border-subtle);
  --rule-2:      var(--border-default);
  --paper:       var(--surface-base);
  --paper-2:     var(--surface-sunken);
  --sans:        var(--font-sans);
  --display:     var(--font-display);
  --mono:        var(--font-mono);
  --serif:       var(--font-sans);  /* single-family DS — no serif */
}

/* ============================================================================
   3 · BASE RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  font-feature-settings: var(--feat-text);
  color: var(--text-primary);
  background: var(--surface-base);
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: none; cursor: pointer; }

a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--primary-muted); color: var(--on-primary-muted); }

:focus-visible { outline: none; box-shadow: var(--ring); }

/* numeric utility — tabular + lining figures, disambiguated 1/7/4 */
.num, .tnum { font-feature-settings: var(--feat-num); font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--text-tertiary); }
.divider { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }

/* ============================================================================
   4 · DS CORE COMPONENTS (.syn-*)
   ========================================================================== */
.syn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--weight-semibold); line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: var(--transition-control);
}
.syn-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.syn-btn:disabled { opacity: 0.4; pointer-events: none; }
.syn-btn:active { transform: scale(0.97); }
.syn-btn--sm { font-size: 14px; padding: 0 14px; min-height: 36px; }
.syn-btn--md { font-size: 15px; padding: 0 18px; min-height: var(--hit-target); }
.syn-btn--lg { font-size: 17px; padding: 0 24px; min-height: 52px; border-radius: var(--radius-lg); }
.syn-btn--block { width: 100%; }
.syn-btn--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%); }
.syn-btn--primary { background: var(--primary); color: var(--on-primary); }
.syn-btn--primary:hover { background: var(--primary-hover); }
.syn-btn--primary:active { background: var(--primary-active); }
.syn-btn--secondary { background: var(--surface-raised); color: var(--text-primary); border-color: var(--border-default); }
.syn-btn--secondary:hover { background: var(--surface-raised-hover); border-color: var(--border-strong); }
.syn-btn--ghost { background: transparent; color: var(--text-primary); }
.syn-btn--ghost:hover { background: var(--surface-raised); }

.syn-card {
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.syn-card--flat { box-shadow: none; }
.syn-card--interactive { cursor: pointer; transition: var(--transition-control); }
.syn-card--interactive:hover { background: var(--surface-raised-hover); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.syn-card--interactive:active { transform: translateY(0); }
.syn-card--cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

.syn-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: 12px; font-weight: var(--weight-semibold); line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-xs); white-space: nowrap;
}
.syn-badge--neutral { background: var(--surface-sunken); color: var(--text-secondary); }
.syn-badge--primary { background: var(--primary-muted); color: var(--on-primary-muted); }
.syn-badge--success { background: var(--success-muted); color: var(--success-text); }

.syn-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--primary-muted); color: var(--on-primary-muted);
  font-weight: var(--weight-bold); font-size: 15px; overflow: hidden;
}
.syn-avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.syn-avatar--square { border-radius: var(--radius-md); }

/* signature cut utilities */
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* inline icon (Lucide) — inherits color, crisp angular line work */
.ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ============================================================================
   5 · PAGE SHELL
   ========================================================================== */
.page {
  width: 100%;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: var(--leading-normal);
  font-feature-settings: var(--feat-text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 64px;
}
.container--prose {
  max-width: calc(var(--measure-prose) + 128px);
  padding: 0 64px;
}

/* ============================================================================
   6 · HEADER
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 64px 0;
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; border: none; }
.wordmark svg { width: auto; height: 30px; display: block; }
.wordmark-text {
  font-size: 21px; font-weight: var(--weight-bold);
  letter-spacing: -0.015em; color: var(--text-primary);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 15px; font-weight: var(--weight-medium);
  color: var(--text-secondary); padding: 8px 12px;
  border-radius: var(--radius-md); border: none;
  transition: var(--transition-control);
}
.site-nav a:hover { color: var(--text-primary); background: var(--surface-raised); }
.site-nav a.is-current { color: var(--text-primary); }
.site-nav a.is-current::after {
  content: ''; display: block; height: 2px; width: 16px;
  margin: 3px auto 0; background: var(--primary); border-radius: 2px;
}

/* ============================================================================
   7 · EYEBROW / KICKER + HEADINGS + LEAD
   ========================================================================== */
.kicker {
  font-size: 12px; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ''; width: 18px; height: 2px; background: var(--primary); border-radius: 2px;
}
.h-hero { font-weight: var(--weight-bold); letter-spacing: -0.025em; line-height: 1.02; color: var(--text-primary); text-wrap: balance; }
.h-sec  { font-weight: var(--weight-bold); letter-spacing: -0.02em;  line-height: 1.08; color: var(--text-primary); text-wrap: balance; }
.accent { color: var(--primary); }
.lede   { color: var(--text-secondary); text-wrap: pretty; }

/* hairline rule */
.hr { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }

/* ============================================================================
   8 · HERO GLOW + WATERMARK
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; pointer-events: none;
  width: 760px; height: 760px; top: -260px; right: -200px;
  background: radial-gradient(circle at center,
     color-mix(in oklab, var(--primary) 38%, transparent) 0%, transparent 62%);
  filter: blur(8px); opacity: 0.55;
}
.hero__mark {
  position: absolute; pointer-events: none;
  width: 540px; height: 540px; top: -90px; right: -120px;
  opacity: 0.05; color: var(--text-primary);
}
.hero__mark svg { width: 100%; height: 100%; display: block; }

/* ============================================================================
   9 · PRODUCT TILE + CARD
   ========================================================================== */
.product-card-link { display: block; height: 100%; border: none; }
.product-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface-raised); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: 22px; transition: var(--transition-control);
}
.product-card-link:hover .product-card {
  background: var(--surface-raised-hover); transform: translateY(-2px); box-shadow: var(--shadow-2);
}

.tile {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg,
      color-mix(in oklab, var(--primary) 22%, var(--surface-sunken)), var(--surface-sunken));
  border: 1px solid var(--border-subtle);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.tile__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.35;
  -webkit-mask: radial-gradient(circle at center, #000 30%, transparent 72%);
          mask: radial-gradient(circle at center, #000 30%, transparent 72%);
}
.tile__mark { position: relative; width: 46%; height: 46%; opacity: 0.9; color: var(--text-primary); }
.tile__mark svg { width: 100%; height: 100%; display: block; }
.tile__index {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.product-card-name {
  font-size: 23px; font-weight: var(--weight-bold);
  letter-spacing: -0.018em; color: var(--text-primary); margin-bottom: 8px;
}
.product-card-tagline { color: var(--text-secondary); font-size: 15.5px; line-height: 1.5; margin-bottom: 20px; }
.product-card-footer {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); }
.product-card-arrow { display: inline-flex; color: var(--text-tertiary); }

/* status dots (new + legacy names) */
.dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.dot--live, .status-dot--live { background: var(--success); }
.dot--soon, .status-dot--soon { background: var(--primary); }
.dot--wip,  .status-dot--wip  { background: var(--text-tertiary); }

/* ---- PRODUCT ROW (detailed /products/ layout) -------------------------- */
.product-row {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 200px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.product-row:first-child { padding-top: 0; }
.product-row-icon {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg,
      color-mix(in oklab, var(--primary) 22%, var(--surface-sunken)), var(--surface-sunken));
  border: 1px solid var(--border-subtle);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-row-icon .tile__mark { width: 50%; height: 50%; }
.product-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.product-row-name { font-size: clamp(24px, 2.6vw, 32px); font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--text-primary); }
.product-row-tagline { font-style: italic; color: var(--text-secondary); font-size: 17px; margin-bottom: 14px; }
.product-row-platforms { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; }
.product-row-description { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 60ch; }

@media (max-width: 640px) {
  .product-row { grid-template-columns: 1fr; gap: 22px; }
  .product-row-icon { max-width: 160px; }
}

/* ============================================================================
   10 · POST / BLOG ROWS
   ========================================================================== */
.post-row-link { display: block; border: none; }
.post-row-title { transition: color var(--dur-2) var(--ease-flow); color: var(--text-primary); }
.post-row-link:hover .post-row-title { color: var(--primary); }

/* blog filter chips */
.tag-btn {
  font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-medium);
  line-height: 1; padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--surface-sunken); color: var(--text-secondary);
  border: 1px solid var(--border-subtle); cursor: pointer;
  transition: var(--transition-control); text-transform: none; letter-spacing: 0;
}
.tag-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.tag-btn.is-active { background: var(--primary-muted); color: var(--on-primary-muted); border-color: transparent; }

/* ============================================================================
   11 · BUTTONS (legacy .btn — restyled to DS)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; min-height: var(--hit-target);
  font-size: 15px; font-family: var(--font-sans); font-weight: var(--weight-semibold);
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; transition: var(--transition-control);
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--surface-raised); border-color: var(--border-strong); }

/* ============================================================================
   12 · PROSE
   ========================================================================== */
.prose { max-width: var(--measure-prose); font-size: 18px; line-height: 1.7; color: var(--text-secondary); }
.prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.prose strong { color: var(--text-primary); }
.prose em { color: var(--text-primary); font-style: italic; }
.prose a {
  color: var(--primary);
  border-bottom: 1px solid color-mix(in oklab, var(--primary) 36%, transparent);
  transition: border-color var(--dur-2) var(--ease-flow);
}
.prose a:hover { border-bottom-color: var(--primary); }
.prose h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; font-weight: var(--weight-bold); margin-bottom: 0.5em; color: var(--text-primary); }
.prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; letter-spacing: -0.018em; font-weight: var(--weight-bold); margin: 1.9em 0 0.5em; color: var(--text-primary); }
.prose h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; font-weight: var(--weight-semibold); margin: 1.5em 0 0.4em; color: var(--text-primary); }
.prose blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--primary);
  font-style: italic; font-size: 22px; line-height: 1.42;
  color: var(--text-primary); font-weight: var(--weight-regular);
}
.prose code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--surface-sunken); color: var(--text-primary);
  padding: 2px 6px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}
.prose pre {
  font-family: var(--font-mono); font-size: 14px; line-height: 1.6;
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
  padding: 18px 22px; border-radius: var(--radius-sm);
  overflow-x: auto; margin: 1.5em 0; color: var(--text-primary);
}
.prose pre code { background: transparent; border: none; padding: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::before { content: '◆ ◆ ◆'; letter-spacing: 0.5em; color: var(--text-disabled); font-size: 10px; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose .img-placeholder { width: 100%; display: block; border-radius: var(--radius-md); }
.prose figcaption { font-size: 14px; color: var(--text-tertiary); margin-top: 10px; font-family: var(--font-sans); text-align: center; }

/* image placeholders — dark surface tint, no fake imagery */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg,
      var(--surface-sunken) 0 6px, var(--surface-inset) 6px 12px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-tertiary);
  aspect-ratio: 16 / 9;
}

/* ============================================================================
   13 · LEGAL LAYOUT
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 56px; align-items: start; }
.legal-sidebar { font-size: 14px; }

/* ============================================================================
   14 · FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-subtle); margin-top: 112px; padding: 56px 0 40px; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-mark { display: inline-flex; align-items: center; gap: 10px; }
.footer-mark svg { width: auto; height: 24px; display: block; }
.footer-mark .wordmark-text { font-size: 19px; }
.footer-tag { color: var(--text-tertiary); font-size: 14px; line-height: 1.55; margin-top: 14px; max-width: 24ch; }
.footer-address { font-style: normal; color: var(--text-tertiary); font-size: 13.5px; line-height: 1.6; margin-top: 14px; }
.footer-contact { margin-top: 12px; font-size: 14px; }
.footer-contact a { color: var(--text-secondary); border: none; }
.footer-contact a:hover { color: var(--text-primary); }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--text-tertiary); font-weight: var(--weight-bold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-secondary); border: none; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; transition: color var(--dur-2) var(--ease-flow); }
.footer-col a:hover { color: var(--text-primary); }
.footer-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-tertiary); font-feature-settings: var(--feat-num);
}

/* ============================================================================
   15 · RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .container, .container--prose { padding: 0 32px; }
  .site-header { padding: 28px 32px 0; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 36px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-sidebar { display: none; }
}
@media (max-width: 640px) {
  .container, .container--prose { padding: 0 20px; }
  .site-header { padding: 24px 20px 0; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 28px; }
}
