/* AgentM design system — slick agency */
:root {
  --ink: #0A0A0B;
  --ink-soft: #1F1F23;
  --ink-muted: #5A5A60;
  --ink-faint: #8A8A92;
  --paper: #FFFFFF;
  --paper-soft: #F5F5F7;
  --paper-warm: #FAFAFB;
  --line: #E5E5EA;
  --line-soft: #EFEFF2;
  --blue: #3B5BFF;
  --blue-deep: #2A45CC;
  --blue-soft: #E5EAFF;
  --teal: #1A9B8A;
  --teal-deep: #137A6D;
  --teal-soft: #D5EDE9;
  --accent-warn: #B85A00;
  --accent-good: #1A7A3A;

  /* per-product accents — used only on each product's pages */
  --titra-accent: #4A9B8E;
  --vintsnap-accent: #C97B6B;
  --siteprice-accent: #1B6FE8;
  --sibliny-accent: #E07A5F;
  --buildbuddy-accent: #D9874A;
  --tariffshield-accent: #0E8A95;

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 1px 0 var(--line);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);

  color-scheme: light;

  /* Sophisticated gradients for the award-winning polish */
  --gradient-hero: radial-gradient(1200px 600px at 90% -10%, rgba(59, 91, 255, 0.10), transparent 60%),
                   radial-gradient(900px 500px at -10% 30%, rgba(59, 91, 255, 0.06), transparent 60%);
  --gradient-text: linear-gradient(135deg, #3B5BFF 0%, #6F8AFF 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(245,245,247,0.6) 100%);

  /* Easing curves */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

/* Skip to content link — A11y AA */
.skip-link {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
  font-weight: 600;
  border-bottom: none !important;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--blue); outline-offset: 2px; }

/* Focus rings everywhere */
*:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection { background: var(--blue); color: var(--paper); }

/* Scroll-reveal: any [data-reveal] fades up 16px on intersect, with stagger */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-progress bar at the very top of the page */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--blue);
  width: 0%;
  z-index: 100;
  pointer-events: none;
  transition: width 100ms linear;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--teal-deep); border-color: var(--teal-deep); }
a.no-underline { border-bottom: none; }
a.no-underline:hover { color: var(--teal-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 1.1em; }
.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(80px, 12vw, 180px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

/* ---- Header / Nav ---- */
.site-notice {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.site-notice .dot-blue { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: middle; }
.site-notice a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.brand .dot { color: var(--blue); }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  border-bottom: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: none !important;
  transition: transform 120ms ease, background 120ms ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Hero ---- */
.hero { padding: clamp(96px, 14vw, 192px) 0 clamp(80px, 10vw, 144px); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
  animation: hero-breathe 12s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  0%   { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(1.05) translateY(-1.5%); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero > .container, .hero > .container-narrow { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }

/* Subtle pulsing dot in the notice pill */
.hero-pill .dot-blue, .site-notice .dot-blue {
  animation: dot-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 91, 255, 0.6); }
  60%      { box-shadow: 0 0 0 6px rgba(59, 91, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pill .dot-blue, .site-notice .dot-blue { animation: none; }
}
.hero .lead { margin-top: 24px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Two-column hero with text + visual */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual {
  width: 100%;
  height: auto;
  max-width: 560px;
  margin-left: auto;
}

/* Phone-frame product mockup on product page heroes */
.product-mockup {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.08));
}

/* Agent stack diagram */
.stack-diagram { width: 100%; max-width: 720px; height: auto; margin: 32px auto; display: block; }

/* ---- App Store / Play Store badges ---- */
.store-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  font-family: var(--font-body);
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}
.store-badge:hover { transform: translateY(-2px); background: var(--blue); }
.store-badge .store-icon { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .store-eyebrow { font-size: 10px; font-weight: 500; opacity: 0.75; letter-spacing: 0.05em; text-transform: uppercase; }
.store-badge .store-name { font-size: 16px; font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper) !important; }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line) !important; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }
.btn-arrow::after { content: "→"; font-weight: 400; }
/* When btn is used inline (e.g. inside a paragraph) make sure it never inherits link underline */
a.btn { border-bottom: 1px solid transparent !important; }

/* ---- Cards ---- */
.card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 140ms ease, box-shadow 140ms ease;
  display: block;
  border-bottom: 1px solid var(--line);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--ink); }
.card h3 { margin: 0 0 8px; }
.card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- Product card with real screenshot thumbnail ---- */
.product-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  background: var(--gradient-card);
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out), border-color 360ms var(--ease-out);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 720px) {
  .product-card { grid-template-columns: 1fr; }
}
.product-card .product-thumb {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 18px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.10));
  justify-self: end;
  transition: transform 400ms var(--ease-out);
}
.product-card:hover .product-thumb { transform: translateY(-4px) rotate(-1deg); }
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 240px at 100% 0%, var(--accent, var(--blue)), transparent 60%);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(10,10,11,0.08), 0 4px 12px rgba(10,10,11,0.04); border-color: var(--ink); }
.product-card:hover::after { opacity: 0.06; }
.product-card > * { position: relative; z-index: 1; }
.product-card .accent-bar {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 48px;
  background: var(--accent, var(--blue));
  border-radius: 4px 0 4px 0;
}
.product-card h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.product-card .product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.product-card .product-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--blue));
}
.product-card p { color: var(--ink-muted); margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
.product-card .product-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: none;
  transition: gap 200ms var(--ease-out);
}
.product-card:hover .product-cta { gap: 10px; color: var(--accent, var(--blue)); }

/* ---- Status pills ---- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-live { background: #DDF0E1; color: #1A6E30; }
.pill-beta { background: #FEF3D6; color: #8C5A0A; }
.pill-prelaunch { background: #E8E2D6; color: #5A5A5A; }
.pill-active { background: #D5EDE9; color: var(--teal-deep); }

/* ---- TL;DR block (AI-extractable) ---- */
.tldr {
  background: var(--paper-warm);
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 32px 0;
}
.tldr .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.tldr p { margin: 0; font-size: 17px; }

/* ---- FAQ ---- */
.faq { margin-top: 24px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-weight: 400;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--teal-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding-top: 12px; color: var(--ink-soft); }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0 24px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-soft); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
tbody tr:hover { background: var(--paper-warm); }

/* ---- Operations / scheduled tasks page ---- */
.schedule-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 32px 0; }
.schedule-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.schedule-card .when {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.schedule-card h3 { margin: 0 0 12px; font-size: 19px; }
.schedule-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.schedule-card ul { margin: 12px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper-soft);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.site-footer h4 { color: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); margin-bottom: 20px; font-weight: 600; }
.site-footer a { color: var(--paper-soft); border-bottom: none; font-size: 14px; }
.site-footer a:hover { color: var(--teal-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-family: var(--font-display); font-size: 24px; color: var(--paper); margin-bottom: 12px; }
.footer-brand .dot { color: var(--teal); }
.footer-tagline { font-size: 14px; max-width: 28ch; opacity: 0.8; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-base { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid #2A2A2A; font-size: 13px; opacity: 0.7; flex-wrap: wrap; gap: 12px; }
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.divider { border-top: 1px solid var(--line); margin: 64px 0; }

/* ---- Operating model strip ---- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 40px 0;
}
@media (max-width: 760px) { .three-col { grid-template-columns: 1fr; gap: 28px; } }
.three-col .step { padding: 24px; background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.three-col .step-num { font-family: var(--font-mono); font-size: 12px; color: var(--teal-deep); margin-bottom: 12px; letter-spacing: 0.1em; }
.three-col h3 { font-size: 20px; margin: 0 0 12px; }
.three-col p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---- Notice ---- */
.notice {
  background: #FFF7E0;
  border: 1px solid #E8C967;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 14px;
  color: #6A4F0A;
  margin: 24px 0;
}

/* ---- Press strip ---- */
.metrics-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; padding: 56px 0; background: var(--paper-soft); border-radius: 24px; }
.metric { padding: 0 32px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; }
.metric .num { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.metric .label { font-family: var(--font-body); font-size: 14px; color: var(--ink-muted); margin-top: 12px; font-weight: 500; }
@media (max-width: 720px) { .metric { border-left: none; padding: 16px 32px; } }

/* ---- Contact form ---- */
.contact-form { display: grid; gap: 20px; max-width: 640px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(59, 91, 255, 0.18);
}
.form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 540px) { .form-row-pair { grid-template-columns: 1fr; } }
.form-help { font-size: 13px; color: var(--ink-muted); margin: -4px 0 0; }
.form-submit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--ink-muted); }

/* ---- Notice pill in hero ---- */
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.hero-pill .dot-blue { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---- Sub navigation (used on product pages) ---- */
.subnav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 40; }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; flex-wrap: wrap; }
.subnav-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.subnav-brand .product-icon { width: 28px; height: 28px; border-radius: 6px; display: inline-block; }
.subnav-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.subnav-links a { color: var(--ink-muted); border-bottom: none; font-weight: 500; }
.subnav-links a:hover, .subnav-links a.active { color: var(--ink); }

/* ---- Footer CTA strip ---- */
.cta-strip { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(48px, 6vw, 72px); margin: 56px 0 0; text-align: center; }
.cta-strip h2 { color: var(--paper); margin: 0 0 16px; }
.cta-strip p { color: var(--paper-soft); opacity: 0.85; max-width: 56ch; margin: 0 auto 32px; }
.cta-strip .btn-primary { background: var(--blue); }
.cta-strip .btn-primary:hover { background: var(--paper); color: var(--ink) !important; }

/* ---- Screenshot gallery ---- */
.screenshot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.screenshot-gallery figure { margin: 0; text-align: center; }
.screenshot-gallery img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06); background: #FFF; border: 1px solid var(--line-soft); }
.screenshot-gallery figcaption { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-top: 12px; }
@media (max-width: 540px) {
  .screenshot-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .screenshot-gallery figcaption { font-size: 10px; }
}

/* ---- Article / blog post — editorial grade ---- */
article.section { padding-top: 0; }
article.section > .container-narrow:first-of-type {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--paper-soft) 0%, transparent 100%);
}
article.section h1 {
  max-width: 22ch;
  font-size: clamp(40px, 6vw, 72px) !important;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-top: 32px;
  align-items: center;
}
.article-meta .dot-sep::before { content: "·"; margin-right: 14px; opacity: 0.5; }
.article-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  margin-right: 12px;
  text-transform: none;
  flex-shrink: 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "calt";
}
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.08em 0 -0.04em;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.article-body > p:first-of-type {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}
.article-body h2 {
  margin-top: 80px;
  margin-bottom: 20px;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 26ch;
}
.article-body h3 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.article-body p { margin-bottom: 1.5em; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--ink-soft); font-style: italic; }

.article-body blockquote, .article-body .pullquote {
  margin: 56px -32px;
  padding: 0 32px;
  border-left: 3px solid var(--blue);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-style: normal;
}
.article-body blockquote p, .article-body .pullquote p { margin: 0; }
@media (max-width: 720px) {
  .article-body blockquote, .article-body .pullquote { margin: 40px 0; padding-left: 24px; font-size: 22px; }
}

.article-body code {
  background: var(--paper-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--blue-deep);
  border: 1px solid var(--line-soft);
}
.article-body pre {
  background: #0E1117;
  color: #E5E5EA;
  padding: 28px 32px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 32px 0;
  border: 1px solid #1F1F23;
}
.article-body pre code { background: transparent; padding: 0; color: inherit; border: none; }

.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 28px; }
.article-body li { margin-bottom: 12px; padding-left: 4px; }
.article-body ul li::marker { color: var(--blue); }

.article-body img { border-radius: 12px; margin: 32px 0; box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 50%, transparent 100%);
  margin: 72px 0;
}
.article-body figure { margin: 40px 0; }
.article-body figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 12px; text-align: center; font-style: italic; }
.article-body a { color: var(--blue-deep); border-bottom: 1px solid currentColor; transition: color 120ms ease; }
.article-body a:hover { color: var(--ink); }

/* The TL;DR block on articles — refined */
.article-body .tldr {
  background: var(--paper-soft);
  border-left: 3px solid var(--blue);
  padding: 28px 32px;
  border-radius: 0 16px 16px 0;
  margin: 0 0 40px;
}
.article-body .tldr .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 12px;
}
.article-body .tldr p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

/* Related at end of article */
.article-related {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.article-related h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

/* Cluster filter chips on /insights/ */
.cluster-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 40px; }
.cluster-chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.cluster-chip:hover { border-color: var(--ink); color: var(--ink); }
.cluster-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Article list cards */
.article-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.article-list .item { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.article-list .item:hover { background: var(--paper-warm); }
.article-list .date-col { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 4px; }
.article-list .item h3 { font-size: 22px; margin: 0 0 8px; }
.article-list .item p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.article-list a { border-bottom: none; }
.article-list .cluster-tag { font-family: var(--font-mono); font-size: 11px; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; display: block; }
@media (max-width: 720px) {
  .article-list .item { grid-template-columns: 1fr; gap: 4px; }
  .article-list .date-col { padding-top: 0; }
}
