/* ===========================================================================
   DigitalCallers — marketing site design system
   ---------------------------------------------------------------------------
   v3 (2026-05-03). One source of truth for the entire site. Do NOT inline
   per-page CSS overrides — extend tokens here so the whole site stays
   consistent.

   Design philosophy:
   - Light, clean, scannable (Linear / Stripe / Notion / ClickUp influence)
   - Indigo primary, cyan accent, semantic greens/oranges/reds, neutral grayscale.
   - Inter for UI body, Instrument Serif for editorial headers.
     JetBrains Mono for code/metric numerals.
   - Typography does the hierarchy work.
   ========================================================================== */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f7f8fa;
  --bg-tint:      #f3f4f9;
  --bg-dark:      #0a0c12;
  --bg-darker:    #06080d;

  --border:       #e8ebf0;
  --border-soft:  #f1f3f6;
  --border-strong:#d6dae3;

  --text:         #0d1220;
  --text-muted:   #5e6478;
  --text-faint:   #8b91a4;
  --text-on-dark: #f4f5f9;

  --accent:       #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft:  #eef2ff;
  --accent-2:     #06b6d4;
  --accent-2-soft:#cffafe;

  --green:        #15803d;
  --green-soft:   #dcfce7;
  --orange:       #b45309;
  --orange-soft:  #fef3c7;
  --red:          #b91c1c;
  --red-soft:     #fee2e2;
  --purple:       #7c3aed;
  --purple-soft:  #f3e8ff;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --font-serif: 'Instrument Serif', 'New York', Georgia, "Times New Roman", serif;
  --font-mono:  'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs:  0 1px 2px rgba(13,18,32,0.04);
  --shadow-sm:  0 2px 6px rgba(13,18,32,0.05);
  --shadow:     0 6px 24px rgba(13,18,32,0.06);
  --shadow-lg:  0 24px 48px rgba(13,18,32,0.08);
  --shadow-xl:  0 32px 80px rgba(13,18,32,0.12);

  --container:    1200px;
  --container-lg: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.tabnums { font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.section-bg-soft  { background: var(--bg-soft); }
.section-bg-tint  { background: var(--bg-tint); }
.section-bg-dark  { background: var(--bg-dark); color: var(--text-on-dark); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--container-lg); margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.012em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav-item {
  position: relative;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: all .12s;
}
.nav-item:hover { color: var(--text); background: var(--bg-soft); }
.nav-item.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--border); }

.nav-group { position: relative; }
.nav-group-trigger { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; transition: all .12s; cursor: pointer; }
.nav-group-trigger:hover { color: var(--text); background: var(--bg-soft); }
.nav-group-trigger svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-group:hover .nav-group-trigger svg { transform: rotate(180deg); }
.nav-mega {
  display: none;
  position: absolute; top: calc(100% + 4px); left: -16px;
  min-width: 540px; padding: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.nav-group:hover .nav-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  border-radius: 10px; transition: background .12s;
}
.nav-mega-item:hover { background: var(--bg-soft); }
.nav-mega-icon {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px;
  background: var(--accent-soft); display: grid; place-items: center;
}
.nav-mega-icon svg { width: 18px; height: 18px; color: var(--accent); }
.nav-mega-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.nav-mega-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

/* (Old 880px rule that hid nav-group/nav-item removed — the 960px mobile
   drawer below now takes over responsibility for showing the nav.) */

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  font-size: 14px; transition: all .14s; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary  { background: var(--text); color: #fff; }
.btn-primary:hover { background: #1d2438; transform: translateY(-1px); }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-soft); }
.btn-link     { background: transparent; padding: 0; color: var(--accent); border-radius: 0; }
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
.h2 { font-size: 40px; line-height: 1.1;  letter-spacing: -0.02em;  font-weight: 700; }
.h3 { font-size: 28px; line-height: 1.18; letter-spacing: -0.018em; font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.h5 { font-size: 16px; line-height: 1.35; font-weight: 600; }

@media (max-width: 720px) {
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 22px; }
}
.lead { font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.lead-lg { font-size: 21px; line-height: 1.55; color: var(--text-muted); }

.title-lg-serif {
  font-family: var(--font-serif), 'Inter', sans-serif;
  font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -0.02em;
}
@media (max-width: 720px) { .title-lg-serif { font-size: 44px; } }

/* hero */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(79,70,229,0.08), transparent 60%),
    radial-gradient(40% 30% at 80% 20%, rgba(6,182,212,0.05), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust {
  margin-top: 36px; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust .stack { display: inline-flex; }
.hero-trust .stack span {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid #fff; margin-left: -8px; display: inline-block;
}
.hero-trust .stack span:first-child { margin-left: 0; }

/* surfaces & cards */
.surface { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.surface-soft  { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.surface-elev  { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); }

.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.card-icon.green { background: var(--green-soft); }
.card-icon.green svg { color: var(--green); }
.card-icon.orange { background: var(--orange-soft); }
.card-icon.orange svg { color: var(--orange); }
.card-icon.purple { background: var(--purple-soft); }
.card-icon.purple svg { color: var(--purple); }
.card-icon.cyan { background: var(--accent-2-soft); }
.card-icon.cyan svg { color: var(--accent-2); }

/* feature grid */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .fgrid-2 { grid-template-columns: 1fr; } }
.fgrid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .fgrid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fgrid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: all .15s;
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-card .h4 { margin-top: 4px; }
.feature-card p { color: var(--text-muted); margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.feature-card .arrow { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text { max-width: 480px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.split-reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split-reverse > :first-child { order: 0; } }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
}
.stats > div { padding: 24px 28px; border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: 0; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* bullets — uses absolute-positioned marker so the text node stays a
   single inline flow. Earlier version used `display:grid` which caused
   anonymous text nodes after `<b>` to wrap into a 22px column (one
   word per line). */
.bullets { display: block; }
.bullets li {
  list-style: none;
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'><path fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4L8.4 15l-4.1-4.1a1 1 0 011.4-1.4l2.7 2.7L15.3 5.3a1 1 0 011.4 0z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.bullets.crisp li { font-size: 14.5px; color: var(--text-muted); }
.bullets.crisp li b { color: var(--text); font-weight: 600; }

/* quote */
.quote { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; }
.quote-text { font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; color: var(--text); }
.quote-foot { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote-name { font-weight: 600; }
.quote-role { font-size: 13px; color: var(--text-muted); }

/* logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; opacity: 0.65; }
.logo-strip .logo { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; color: var(--text-muted); text-align: center; padding: 8px 0; }
@media (max-width: 880px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* comparison table */
.comparison {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.comparison th, .comparison td { text-align: left; padding: 16px 22px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison thead th { background: var(--bg-soft); font-weight: 600; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.comparison tbody tr:last-child td { border-bottom: 0; }
.comparison .yes { color: var(--green); font-weight: 600; }
.comparison .no  { color: var(--text-faint); }
.comparison .partial { color: var(--orange); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
.plan.featured { border: 2px solid var(--text); box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--text); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.plan h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.plan-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.plan-price .num { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price .unit { color: var(--text-muted); font-size: 14px; }
.plan-features { display: block; margin-bottom: 24px; }
.plan-features li {
  list-style: none;
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.plan-features li:last-child { margin-bottom: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'><path fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4L8.4 15l-4.1-4.1a1 1 0 011.4-1.4l2.7 2.7L15.3 5.3a1 1 0 011.4 0z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

/* faq */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary {
  font-weight: 600; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; font-size: 18px; color: var(--text-muted); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-top: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); padding: 20px 24px; border-radius: 4px 12px 12px 4px;
  font-size: 15px; line-height: 1.6;
}
.callout strong { color: var(--text); }

/* posts / case studies */
.post-card {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/9; background: var(--bg-soft); position: relative; overflow: hidden; }
.post-cover svg { width: 100%; height: 100%; }
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-cat { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.post-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 8px; }
.post-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.55; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.cs-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0 80px; }
@media (max-width: 880px) { .cs-hero { grid-template-columns: 1fr; gap: 32px; } }

.cs-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-muted); }
.cs-meta strong { color: var(--text); font-weight: 600; }

.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 32px 0;
  overflow: hidden; background: #fff;
}
.cs-stats > div { padding: 28px 24px; border-right: 1px solid var(--border); }
.cs-stats > div:last-child { border-right: 0; }
.cs-stats .num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cs-stats .num small { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.cs-stats .lbl { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 720px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .cs-stats > div:last-child { border-bottom: 0; }
}

.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 22px; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 700; margin: 48px 0 18px; }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 36px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; padding: 0; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 28px 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-soft); }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; border: 1px solid var(--border); }
.tab { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.gray { background: var(--bg-tint); color: var(--text-muted); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* footer */
.footer { background: var(--bg-darker); color: #c8ccd6; padding: 64px 0 40px; }
.footer-inner { max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid #1a1f2c;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }
.footer p.mini { color: #8b91a4; font-size: 13.5px; line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #c8ccd6; font-size: 13.5px; }
.footer ul a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; color: #8b91a4; }
.footer-bot a { color: #c8ccd6; }
.footer-bot a:hover { color: #fff; }

/* product mockup */
.product-frame {
  position: relative;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.product-frame-chrome {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.product-frame-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.product-frame-chrome .url { margin-left: 12px; font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* utils */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mxauto { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: var(--border); margin: 64px 0; }

.kicker {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ===========================================================================
   v3.1 (2026-05-03) — visual polish layer.
   Animations, gradient orbs, glow effects, glassmorphism, marquee,
   animated waveforms. All additive — does not break existing styles.
   ========================================================================= */

/* — gradient text — */
.text-gradient {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* — glow buttons — */
.btn-accent, .btn-primary { position: relative; overflow: hidden; }
.btn-glow { position: relative; box-shadow: 0 8px 30px -8px rgba(79,70,229,0.45), 0 0 0 1px rgba(79,70,229,0.15); }
.btn-glow:hover {
  box-shadow: 0 14px 40px -8px rgba(79,70,229,0.55), 0 0 0 1px rgba(79,70,229,0.25);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.btn-glow:hover::after { transform: translateX(120%); }

/* — animated mesh-gradient hero background — */
.hero-mesh {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 18% 12%, rgba(79,70,229,0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 82% 18%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(168,85,247,0.10), transparent 60%);
  filter: blur(0px);
  animation: meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
}

/* — floating gradient orbs — */
.orb {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; will-change: transform;
}
.orb-indigo  { background: radial-gradient(circle, #4f46e5 0%, transparent 70%); }
.orb-cyan    { background: radial-gradient(circle, #06b6d4 0%, transparent 70%); }
.orb-purple  { background: radial-gradient(circle, #a855f7 0%, transparent 70%); }
.orb-pink    { background: radial-gradient(circle, #ec4899 0%, transparent 70%); }
.orb-float   { animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-float-2 { animation: orbFloat 18s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, -30px) scale(1.1); }
  100% { transform: translate(-15px, 20px) scale(0.95); }
}

/* — subtle dotted grid background — */
.grid-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(79,70,229,0.08) 1px, transparent 0);
  background-size: 22px 22px;
}
.grid-bg-dark {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 22px 22px;
}

/* — glass card — */
.glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 18px 60px -20px rgba(13,18,32,0.18);
}
.glass-dark {
  background: rgba(13,18,32,0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* — gradient-border featured card — */
.gradient-border {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2), #a855f7) border-box;
  border: 2px solid transparent;
}

/* — pulse dot (live indicator) — */
.pulse-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
}
.pulse-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); opacity: 0.5;
  animation: pulseRing 1.6s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* — animated equalizer bars (voice activity) — */
.eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq-bars span {
  display: block; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px; animation: eqBounce 1.2s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 30%;  animation-delay: -1.2s; }
.eq-bars span:nth-child(2) { height: 70%;  animation-delay: -1.0s; }
.eq-bars span:nth-child(3) { height: 100%; animation-delay: -0.8s; }
.eq-bars span:nth-child(4) { height: 60%;  animation-delay: -0.6s; }
.eq-bars span:nth-child(5) { height: 90%;  animation-delay: -0.4s; }
.eq-bars span:nth-child(6) { height: 40%;  animation-delay: -0.2s; }
.eq-bars span:nth-child(7) { height: 75%;  animation-delay: 0s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* — typing-dots indicator — */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* — animated underline link — */
.under-link {
  position: relative; padding-bottom: 2px; display: inline-block;
}
.under-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.under-link:hover::after { transform: scaleX(1); }

/* — card hover lift — */
.card-fancy, .feature-card-fancy, .post-card-fancy {
  transition: transform .25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow .25s ease, border-color .25s ease;
}
.card-fancy:hover, .feature-card-fancy:hover, .post-card-fancy:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(13,18,32,0.18),
              0 0 0 1px var(--border-strong);
}

/* — feature card with gradient icon halo — */
.feature-card-fancy { position: relative; overflow: hidden; }
.feature-card-fancy .card-icon {
  position: relative; box-shadow: 0 6px 18px -8px var(--accent);
}
.feature-card-fancy .card-icon::before {
  content: ""; position: absolute; inset: -10px; border-radius: 18px;
  background: radial-gradient(circle, rgba(79,70,229,0.18), transparent 70%);
  z-index: -1;
}
.feature-card-fancy::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.06), transparent 70%);
  pointer-events: none; transition: transform .4s ease;
}
.feature-card-fancy:hover::before { transform: scale(1.4); }

/* — marquee logo strip — */
.marquee {
  position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marqueeRoll 40s linear infinite;
}
.marquee-track .logo { white-space: nowrap; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* — number counters / metric tiles — */
.metric-tile {
  position: relative; padding: 22px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  border: 1px solid var(--border); overflow: hidden;
}
.metric-tile::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0.3); transform-origin: left;
}

/* — soft glow ring around featured plan — */
.plan.featured {
  position: relative;
  background: linear-gradient(180deg, #fff, #fafbff);
}
.plan.featured::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #a855f7);
  z-index: -1; filter: blur(14px); opacity: 0.35;
}

/* — code-style chip — */
.chip-code {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0d1220; color: #c8ccd6; font-family: var(--font-mono);
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  border: 1px solid #1d2438;
}
.chip-code .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* — language pill cluster (floating around hero) — */
.lang-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 8px 22px -10px rgba(13,18,32,0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-pill .flag { font-size: 14px; }

/* — fade-in-up reveal (uses scroll trigger via class toggling, fallback on load) — */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform .7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in, body.loaded .reveal { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal.delay-5 { transition-delay: .5s; }

/* — phone illustration container with subtle tilt — */
.phone-frame {
  position: relative; transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform .6s ease;
}
.phone-frame:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }

/* — link with arrow that slides — */
.arrow-link { display: inline-flex; align-items: center; gap: 6px; }
.arrow-link .arrow { transition: transform .25s ease; display: inline-block; }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* — section divider with gradient — */
.divider-gradient {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}

/* — scroll indicator — */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px;
  opacity: 0.7;
}
.scroll-cue .line {
  width: 1px; height: 32px; background: linear-gradient(180deg, var(--text-muted), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .line::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
  background: var(--accent); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

/* — gradient ring around primary CTA on rest — */
.cta-ring {
  position: relative; display: inline-block;
}
.cta-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #a855f7, var(--accent));
  filter: blur(8px); opacity: 0.4; z-index: -1;
  animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* — feature-row with side gradient accent — */
.accent-rail {
  position: relative; padding-left: 18px;
}
.accent-rail::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* — keyboard kbd-style chip — */
.kbd {
  display: inline-block; padding: 1px 7px; min-width: 20px;
  background: #fff; border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  color: var(--text);
}

/* — featured plan tag with gradient — */
.plan-tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 6px 18px -6px rgba(79,70,229,0.45);
}

/* — dark hero variant — */
.hero-dark {
  background: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0c12 60%);
  color: var(--text-on-dark);
}
.hero-dark .h1, .hero-dark .h2, .hero-dark .lead, .hero-dark .lead-lg { color: #f4f5f9; }

/* — reduce motion safety — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Blog content blocks (added 2026-05-04 for skill-compliant posts)
   ─────────────────────────────────────────────────────────────────── */

/* numbered step list */
.prose .steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}
.prose .steps-list > li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 64px;
  background: var(--surface-soft, #f7f8fb);
  border: 1px solid var(--border, #e5e7eb);
  border-left: 3px solid var(--accent, #4f46e5);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text, #0d1220);
}
.prose .steps-list > li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(79,70,229,0.35);
}

/* PRO TIP callout */
.prose .callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  margin: 24px 0;
  border: 1px solid var(--border, #e5e7eb);
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.05));
  border-left: 4px solid var(--accent, #4f46e5);
}
.prose .callout-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1.2;
}
.prose .callout-body {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text, #0d1220);
}
.prose .callout-tip strong { color: var(--accent, #4f46e5); }

/* Data table */
.prose .table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  box-shadow: 0 1px 0 rgba(13,18,32,0.02);
}
.prose .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.prose .data-table thead th {
  background: linear-gradient(135deg, #f7f8fb, #eef0f6);
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text, #0d1220);
  border-bottom: 1px solid var(--border-strong, #d1d5db);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose .data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text, #0d1220);
  vertical-align: top;
}
.prose .data-table tbody tr:last-child td { border-bottom: 0; }
.prose .data-table tbody tr:nth-child(even) { background: rgba(247,248,251,0.5); }
.prose .data-table tbody tr:hover { background: rgba(79,70,229,0.04); }

/* FAQ accordion */
.prose .faq-block {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.prose .faq-item {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}
.prose .faq-item[open] {
  border-color: var(--accent, #4f46e5);
  box-shadow: 0 6px 24px -10px rgba(79,70,229,0.15);
}
.prose .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text, #0d1220);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.prose .faq-item summary::-webkit-details-marker { display: none; }
.prose .faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent, #4f46e5);
  transition: transform 0.2s ease;
  font-weight: 300;
}
.prose .faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
.prose .faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted, #4b5563);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── blog pagination (added 2026-05-04) ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}
.pagination .pg-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #0d1220);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.pagination .pg-nav:hover {
  border-color: var(--accent, #4f46e5);
  color: var(--accent, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(79,70,229,0.25);
}
.pagination .pg-nav-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination .pg-nums {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .pg-num {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.pagination .pg-num:hover {
  background: var(--surface-soft, #f7f8fb);
  color: var(--text, #0d1220);
}
.pagination .pg-num-active {
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(79,70,229,0.45);
  cursor: default;
}
.pagination .pg-num-active:hover {
  background: linear-gradient(135deg, var(--accent, #4f46e5), var(--accent-2, #06b6d4));
  color: #fff;
}
@media (max-width: 600px) {
  .pagination { flex-direction: column; }
  .pagination .pg-nav { width: 100%; justify-content: center; }
}

/* — defensive: if JS is disabled, .reveal elements still appear instead of
     staying invisible. Pages WITH JS must add `body.loaded` or apply `.in`
     to .reveal elements via IntersectionObserver — see index.html footer
     script for the canonical pattern. */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ═════════════════════════════════════════════════════════════════
   TOPBAR v2 — sticky + backdrop-blur + centered nav + hover bridge
   (added 2026-05-14 — fixes mega-menu close bug and lifts polish to
   the Linear/Stripe bar)
   ═════════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.topbar-scrolled {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.012em;
  color: var(--text, #0f172a);
  text-decoration: none;
  transition: opacity .15s ease;
}
.brand:hover { opacity: 0.78; }
.brand-text { line-height: 1; }

/* Nav center column */
.nav {
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

.nav-item, .nav-group-trigger {
  position: relative;
  padding: 8px 14px;
  border: 0; background: transparent;
  border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-muted, #475569);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-item:hover, .nav-group-trigger:hover { color: var(--text, #0f172a); background: rgba(15, 23, 42, 0.04); }
.nav-item.active, .nav-group-trigger.active { color: var(--accent, #6366f1); }
.nav-group-trigger svg { width: 11px; height: 11px; opacity: 0.8; transition: transform .2s ease; }

.nav-group { position: relative; }
.nav-group:hover .nav-group-trigger,
.nav-group:focus-within .nav-group-trigger { color: var(--text, #0f172a); background: rgba(15, 23, 42, 0.04); }
.nav-group:hover .nav-group-trigger svg,
.nav-group:focus-within .nav-group-trigger svg { transform: rotate(180deg); }

/* Mega-menu — hover bridge fix.
   The dropdown sits flush against the trigger (top: 100%) and uses an
   invisible ::before pseudo to bridge the visual gap, so mouse-travel
   from trigger to menu items never falls out of the :hover region. */
.nav-mega {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, -8px);
  min-width: 600px; padding: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  margin-top: 12px;        /* visual gap, but ::before bridges it for hover */
}
.nav-mega::before {        /* invisible hover bridge between trigger and menu */
  content: '';
  position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-group:hover .nav-mega,
.nav-group:focus-within .nav-mega {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition-delay: 0s;
}
/* Slight close delay so a brief out-of-bounds mouse move doesn't slam it shut */
.nav-mega {
  transition-delay: .12s;
}

.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color .15s ease, transform .15s ease;
}
.nav-mega-item:hover {
  background: rgba(99, 102, 241, 0.06);
}
.nav-mega-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent, #6366f1);
  display: inline-grid; place-items: center;
}
.nav-mega-icon svg { width: 16px; height: 16px; }
.nav-mega-title { font-size: 14px; font-weight: 600; color: var(--text, #0f172a); }
.nav-mega-sub { font-size: 12.5px; color: var(--text-muted, #64748b); margin-top: 2px; line-height: 1.45; }
.nav-mega-all .nav-mega-title { color: var(--accent, #6366f1); }

/* CTAs right column */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: end;
}

/* Mobile burger label (hidden on desktop) */
.nav-burger { display: none; }

/* B16 pattern — hidden checkbox at top of page (visually hidden but functional) */
.nav-toggle-input { position: absolute; left: -9999px; }

/* The mobile drawer + backdrop are present in DOM at all sizes,
   but visually hidden on desktop */
.nav-drawer { display: none; }
.nav-backdrop { display: none; }

/* B14 audit fix (2026-05-16): pointer-events:none on SVGs in buttons.
   iOS Safari can register taps on inner SVG <line> elements instead of
   the parent button — causing inline onclick to fail silently. */
button > svg,
.btn > svg,
.nav-burger > svg,
.nav-burger > span,
.nav-group-trigger > svg,
.nav-mega-icon > svg {
  pointer-events: none;
}

/* ═══ Mobile nav drawer (≤960px) — PURE-CSS CHECKBOX-HACK (B16) ════
   Drawer + backdrop are siblings of the checkbox input. When the
   <label class="nav-burger" for="navToggle"> is tapped, the checkbox
   flips and the `~` general-sibling combinator slides the drawer in
   and fades the backdrop in. ZERO JS dependency for opening.
   Drawer is body-level (not inside .topbar), so it cannot be trapped
   by any parent's containing block (backdrop-filter / transform / etc). */
@media (max-width: 960px) {
  /* Belt-and-braces: drop topbar's backdrop-filter on mobile so even if
     someone later moves the drawer back inside, it won't get trapped. */
  .topbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  /* topbar-inner: brand on left, burger on right */
  .topbar-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  /* Hide desktop nav + desktop CTAs entirely on mobile */
  .nav.nav-desktop { display: none !important; }
  .nav-cta { display: none !important; }

  /* Hamburger label — clickable like a button via the `for` attribute */
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 44px; height: 44px;                /* WCAG 2.5.5 touch target */
    justify-content: center; align-items: center;
    border: 0; background: transparent; cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    position: relative; z-index: 1300;       /* always above backdrop */
    margin-left: auto;
  }
  .nav-burger:active { background: rgba(99,102,241,0.08); }
  .nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text, #0f172a);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
    pointer-events: none;                    /* taps always hit the label */
  }
  /* Hamburger → X animation when drawer is open */
  .nav-toggle-input:checked ~ .topbar .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle-input:checked ~ .topbar .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .topbar .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ── Backdrop ───────────────────────────────────────────────────
     Real <label> element. Tapping it un-checks the input → drawer closes.
     Below drawer (z=1190), above page content. */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1190;
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
    cursor: pointer;
  }
  .nav-toggle-input:checked ~ .nav-backdrop {
    opacity: 1; pointer-events: auto;
  }

  /* ── Drawer ─────────────────────────────────────────────────────
     Slides in from the right. position:fixed pinned to viewport.
     Body-level placement means NO parent can trap it via
     backdrop-filter / transform / will-change / contain. */
  .nav-drawer {
    display: flex !important;
    position: fixed; top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100vh; height: 100dvh;           /* dynamic viewport for iOS */
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff;
    border-left: 1px solid var(--border, #e8ebf0);
    box-shadow: -24px 0 48px -16px rgba(15,23,42,0.16);
    padding: 88px 16px 80px;                 /* room for topbar above */
    padding-bottom: max(80px, env(safe-area-inset-bottom, 0px) + 32px);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;                    /* explicit — never inherit none */
  }
  .nav-toggle-input:checked ~ .nav-drawer {
    transform: translateX(0);
  }

  /* Drawer items — generous touch targets, full-width tappable */
  .nav-drawer-item {
    display: flex !important;
    align-items: center;
    padding: 14px 12px; font-size: 16px; font-weight: 500;
    color: var(--text, #0f172a);
    border-radius: 10px;
    min-height: 48px;
    background: transparent;
    text-decoration: none;
    width: 100%;
    -webkit-tap-highlight-color: rgba(99,102,241,0.10);
  }
  .nav-drawer-item:active { background: rgba(99,102,241,0.10); }
  .nav-drawer-item:hover  { background: rgba(99,102,241,0.06); }
  .nav-drawer-all { color: var(--accent, #6366f1); font-weight: 600; }

  /* Section labels inside drawer */
  .nav-drawer-section {
    padding: 18px 12px 6px;
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted, #94a3b8);
  }

  /* CTA stack at bottom of drawer */
  .nav-drawer-cta {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border, #e8ebf0);
  }
  .nav-drawer-cta .btn {
    width: 100%; justify-content: center;
    padding: 14px 18px; font-size: 15px; min-height: 48px;
  }
}

/* ═══ Mobile-tuned touch + typography polish ═══════════════════════ */
@media (max-width: 720px) {
  /* Bigger touch targets for primary CTAs */
  .btn-lg { min-height: 48px; padding: 14px 22px; }
  .btn { min-height: 44px; }

  /* Fluid hero typography so H1 doesn't overflow on 360px viewports */
  .h1 { font-size: clamp(28px, 7.5vw, 38px); line-height: 1.08; }
  .h2 { font-size: clamp(22px, 6vw, 30px); }
  .h3 { font-size: clamp(18px, 5vw, 22px); }
  .lead, .lead-lg { font-size: clamp(15px, 4vw, 17px); }

  /* Hero layouts that use 2-col grid should stack */
  .hero-inner > div[style*="grid-template-columns"] {
    display: block !important;
  }
  /* Hide the product-frame phone mockup on small screens — it's 720×480
     SVG and adds horizontal scroll without value at this size */
  .hero .product-frame, .hero .phone-frame { display: none; }

  /* Gradient orbs are decorative — contain them inside .hero (don't put
     overflow-x:hidden on html/body — that breaks position:fixed on iOS) */
  .hero { overflow: hidden; position: relative; }
  .orb { max-width: 100%; }

  /* Hero meta strip — let it wrap naturally without overlapping */
  .hero-meta { flex-wrap: wrap; gap: 6px; font-size: 12px; padding: 8px 12px; max-width: 100%; }

  /* Container side padding */
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }

  /* Topbar height + brand */
  .topbar-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand-text { font-size: 15px; }

  /* Tables — horizontal scroll wrapper for any wide table content */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ═══ B2/B3 audit fix — catch every inline grid-template-columns ══
   Inline styles can't have media queries, but CSS attribute selectors
   can target elements based on their inline style content. */
@media (max-width: 760px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1.4fr"],
  [style*="grid-template-columns: 1.4fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Images inside 2-col grids go full width when stacked */
  [style*="grid-template-columns:1fr 1fr"] img,
  [style*="grid-template-columns: 1fr 1fr"] img,
  [style*="grid-template-columns:1.1fr 1fr"] img,
  [style*="grid-template-columns: 1.1fr 1fr"] img,
  [style*="grid-template-columns:1.2fr 1fr"] img,
  [style*="grid-template-columns: 1.2fr 1fr"] img {
    width: 100% !important; height: auto !important; max-width: 100% !important;
    display: block;
  }
}

/* B4 audit fix — orb decorative SVGs hardcoded 460-900px shouldn't
   cause horizontal scroll on small screens. Contained by .hero
   overflow:hidden but capping size is extra defense. */
@media (max-width: 760px) {
  .orb {
    max-width: 80vw !important;
    max-height: 80vw !important;
  }
}

/* ═══ Mobile-specific phone-width tweaks (≤640px) ══════════════════ */
@media (max-width: 640px) {
  /* Footer: 4-col grid → single column on phones */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bot { flex-direction: column; gap: 8px; text-align: center; }

  /* Compare/feature card grids: anything wider than 2 cols collapses to 1 */
  .fgrid, .fgrid-2, .fgrid-3, .fgrid-4 { grid-template-columns: 1fr !important; }

  /* Industry stat-card rows (4-up) → 2-up on phones */
  .section > .container > div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }

  /* Pricing tiers stack */
  .pricing-grid, .pricing-tiers { grid-template-columns: 1fr !important; }

  /* Industry "Best for" 2-col cards collapse */
  .industries-grid, .industries-grid-2 { grid-template-columns: 1fr !important; }

  /* Section padding tightening on phones */
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  .hero { padding-top: 64px !important; padding-bottom: 48px !important; }

  /* Page-specific contact-grid (2-col) → single column */
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ═════════════════════════════════════════════════════════════════
   FORM SYSTEM v2 — modern fields, custom selects, focus rings
   (added 2026-05-14 for contact form rebuild)
   ═════════════════════════════════════════════════════════════════ */

.form-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.10);
}
@media (max-width: 720px) { .form-card { padding: 24px; border-radius: 14px; } }

.form-card-h {
  font-size: 22px; font-weight: 700; letter-spacing: -0.018em;
  margin: 0 0 6px;
}
.form-card-sub {
  font-size: 14px; color: var(--text-muted, #64748b); margin: 0 0 24px;
}

.form-row { display: grid; gap: 18px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--text, #0f172a);
  letter-spacing: 0.02em;
}
.form-label .req { color: var(--accent, #6366f1); margin-left: 2px; }
.form-label-hint { font-size: 11.5px; font-weight: 500; color: var(--text-muted, #94a3b8); }

.form-input,
.form-textarea,
.form-select-button {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #fff;
  font: inherit; font-size: 14.5px;
  color: var(--text, #0f172a);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted, #94a3b8); }
.form-input:focus,
.form-textarea:focus,
.form-select-button:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.5; font-family: inherit; }

/* Custom select — single source of truth, no native UI */
.form-select { position: relative; }
.form-select-button {
  text-align: left;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
}
.form-select-button::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted, #64748b);
  border-bottom: 2px solid var(--text-muted, #64748b);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.form-select.open .form-select-button::after { transform: rotate(-135deg); }
.form-select-button .placeholder { color: var(--text-muted, #94a3b8); }

.form-select-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  max-height: 280px; overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
  padding: 6px;
  display: none;
}
.form-select.open .form-select-list { display: block; }
.form-select-option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px; line-height: 1.4;
  color: var(--text, #0f172a);
  cursor: pointer;
  transition: background-color .12s ease;
}
.form-select-option:hover,
.form-select-option.focused { background: rgba(99, 102, 241, 0.08); color: var(--accent, #6366f1); }
.form-select-option.selected { background: rgba(99, 102, 241, 0.10); color: var(--accent, #6366f1); font-weight: 600; }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text, #0f172a); line-height: 1.5;
  cursor: pointer;
}
.form-checkbox input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--accent, #6366f1);
}

.form-submit {
  margin-top: 4px;
  padding: 14px 24px;
  background: var(--text, #0f172a);
  color: #fff;
  border: 0; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}
.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.18);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
  font-size: 13.5px;
  min-height: 20px;
  margin-top: 4px;
}
.form-msg.ok  { color: #15803d; }
.form-msg.err { color: #b91c1c; }

.form-foot {
  font-size: 12.5px; color: var(--text-muted, #64748b);
  text-align: center;
  margin-top: 16px;
}

/* ═════════════════════════════════════════════════════════════════
   CONTACT-METHOD CARDS — branded, monochromatic, no pastel boxes
   ═════════════════════════════════════════════════════════════════ */

.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-channel {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-channel:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.20);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.10);
}
.contact-channel-icon {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent, #6366f1);
  margin-bottom: 14px;
}
.contact-channel-icon svg { width: 18px; height: 18px; }
.contact-channel-title { font-size: 15px; font-weight: 700; margin: 0; color: var(--text, #0f172a); }
.contact-channel-desc { font-size: 13.5px; color: var(--text-muted, #64748b); margin: 6px 0 14px; line-height: 1.5; }
.contact-channel-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--accent, #6366f1);
  text-decoration: none;
}
.contact-channel-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-channel-sla {
  display: block;
  font-size: 12px; color: var(--text-muted, #94a3b8);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* ═════════════════════════════════════════════════════════════════
   BLOG POST LAYOUT — two-column with sticky sidebar (added 2026-05-14)
   Used by templates/base_post.html. Sidebar markup lives in
   templates/_partials/blog-sidebar.html.
   ═════════════════════════════════════════════════════════════════ */

.post-shell { padding: 48px 0 80px; }

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr; gap: 48px; }
}

.post-main { min-width: 0; }   /* prevent grid blow-out on long URLs in prose */
.post-main .post-title {
  font-size: 44px; line-height: 1.15; letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  .post-main .post-title { font-size: 32px; }
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky; top: 88px;        /* clear of fixed topbar */
  display: flex; flex-direction: column;
  gap: 16px;
}
@media (max-width: 1000px) { .blog-sidebar { position: static; } }

.sidebar-card {
  background: var(--bg-soft, #f6f7f9);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 20px;
}

.sidebar-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #5e6478);
  margin: 0 0 12px;
}

.sidebar-p {
  font-size: 14px; line-height: 1.55;
  color: var(--text, #1a1d2e);
  margin: 0 0 12px;
}

/* Newsletter form */
.sidebar-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border, #d8dbe3);
  border-radius: 8px;
  font: inherit; font-size: 14px;
  background: #fff;
}
.sidebar-input:focus {
  outline: 2px solid var(--accent, #6366f1); outline-offset: -1px;
  border-color: transparent;
}
.sidebar-btn {
  padding: 10px 16px;
  background: var(--text, #1a1d2e); color: #fff;
  border: 0; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: opacity .12s;
}
.sidebar-btn:hover { opacity: 0.88; }
.sidebar-form-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.sidebar-form-msg.ok  { color: #15803d; }
.sidebar-form-msg.err { color: #b91c1c; }

/* List blocks (popular posts + categories) */
.sidebar-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.sidebar-list li { line-height: 1.4; }
.sidebar-list a {
  display: block;
  font-size: 14px; line-height: 1.45;
  color: var(--text, #1a1d2e);
  text-decoration: none;
  transition: color .12s;
}
.sidebar-list a:hover { color: var(--accent, #6366f1); }
.sidebar-categories a {
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-categories .muted { color: var(--text-muted, #8b91a4); font-size: 13px; }

/* CTA card variant — accent background */
.sidebar-cta-card {
  background: linear-gradient(135deg, var(--accent, #6366f1), var(--accent-2, #4f46e5));
  border: 0;
}
.sidebar-cta-card .sidebar-h,
.sidebar-cta-card .sidebar-p { color: rgba(255,255,255,0.95); }
.sidebar-cta-card .sidebar-h { opacity: 0.85; }
.sidebar-btn-cta {
  background: #fff !important; color: var(--accent, #6366f1) !important;
  display: inline-block;
}
.sidebar-btn-cta:hover { opacity: 0.92; }

/* ── Related posts band (full-width below post) ────────────────── */
.related-band {
  padding: 64px 0 80px;
  background: var(--bg-soft, #f6f7f9);
  border-top: 1px solid var(--border, #e5e7eb);
}
.related-band .h3 { font-size: 28px; }

/* Post-card styling for related strip + blog index reuse */
.post-card {
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; overflow: hidden;
  transition: transform .12s, box-shadow .12s;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.post-card-body { padding: 20px; }
.post-card-title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0; }
.post-card-summary {
  font-size: 14px; line-height: 1.5;
  color: var(--text-muted, #5e6478);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═════════════════════════════════════════════════════════════════
   LIGHT AESTHETIC OVERRIDES (2026-05-14) — applied LAST so they win.
   Theme: Linear / Stripe / Vercel / Resend — visually quiet, single
   accent used sparingly, no gradient backgrounds, smaller padding,
   lighter cards. No orbs, no dark panels.
   ═════════════════════════════════════════════════════════════════ */

/* ── Sections: smaller padding, subtle dividers (no bg-soft alternation) ── */
.section { padding: 64px 0 !important; }
.section-tight { padding: 48px 0 !important; }
.section-bg-soft {
  background: transparent !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* ── Hero: kill HEAVY orbs but allow tasteful single-gradient accent ── */
/* Hide orb pileup site-wide but let specific pages opt in via .hero-soft */
.hero .orb { display: none !important; }
.hero .hero-mesh { display: none !important; }
.hero { padding: 56px 0 32px !important; }

/* Hero gradient wash — mix of the live-site energy and the new clean layout.
   3 layered radial gradients (indigo top-right, cyan center-right, purple bottom-left)
   create depth without going back to heavy hard-edged orbs. */
.hero-soft { position: relative; overflow: hidden; isolation: isolate; }
.hero-soft::before {
  content: '';
  position: absolute; inset: -180px -240px auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.28), rgba(99, 102, 241, 0) 65%);
  z-index: 0; pointer-events: none;
  filter: blur(8px);
}
.hero-soft::after {
  content: '';
  position: absolute; inset: auto auto -260px -240px;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.22), rgba(6, 182, 212, 0) 65%);
  z-index: 0; pointer-events: none;
  filter: blur(8px);
}
/* Third subtle orb for depth — middle-right, low opacity */
.hero-soft .hero-glow {
  position: absolute; top: 35%; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0) 65%);
  z-index: 0; pointer-events: none;
  filter: blur(6px);
  border-radius: 50%;
}
.hero-soft > * { position: relative; z-index: 1; }

/* Product-frame mockup: clean shadow, no heavy rim glow */
.product-frame {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.product-frame-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafafa;
  font-size: 12px; color: var(--text-muted, #64748b);
}
.product-frame-chrome .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
}
.product-frame-chrome .url { margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }

/* ── Typography: smaller H1s, lighter weight ───────────────────── */
.h1, h1.h1 {
  font-size: clamp(32px, 3.6vw, 46px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}
.h2, h2.h2 {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}
.h3, h3.h3 {
  font-size: clamp(17px, 1.6vw, 19px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}
.lead, .lead-lg {
  font-weight: 400 !important;
  color: var(--text-muted, #475569) !important;
}
.lead-lg { font-size: 17px !important; line-height: 1.6 !important; }
.lead { font-size: 15.5px !important; line-height: 1.6 !important; }

/* Text-gradient is tasteful — keep it for one accent phrase per page */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ── Cards: lighter — drop shadows, subtle border only ──────────── */
.surface,
.surface.card-fancy,
.post-card {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  transition: border-color .15s ease, transform .15s ease !important;
}
.surface:hover,
.surface.card-fancy:hover,
.post-card:hover {
  border-color: rgba(15, 23, 42, 0.16) !important;
  transform: none !important;
  box-shadow: none !important;
}
.surface-elev {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

/* ── Colored icon backgrounds → neutral monochrome ──────────────── */
.nav-mega-icon {
  background: rgba(15, 23, 42, 0.04) !important;
  color: var(--accent, #4f46e5) !important;
}

/* ── Buttons: cleaner, single accent ────────────────────────────── */
.btn-accent,
.btn-primary {
  background: var(--text, #0f172a) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.btn-accent:hover,
.btn-primary:hover {
  background: #1f2937 !important;
  transform: none !important;
}
.btn-glow { box-shadow: none !important; }
.btn-ghost {
  background: transparent !important;
  color: var(--text, #0f172a) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
}

/* ── Pricing cards: less heavy ─────────────────────────────────── */
.surface.card-fancy[style*="border: 2px solid"] {
  border: 1px solid var(--accent, #4f46e5) !important;
}

/* ── Tables: neutral status colors, no red/green shouting ──────── */
.data-table td[style*="color: #16a34a"] { color: var(--text, #0f172a) !important; }
.data-table td[style*="color: #dc2626"] { color: var(--text-muted, #64748b) !important; }
.data-table td[style*="color: #d97706"] { color: var(--text-muted, #94a3b8) !important; }
/* keep header accent + first-column black */
.data-table th[style*="color: var(--accent)"] { color: var(--accent, #4f46e5) !important; }

/* ── Eyebrow: smaller, less ALL-CAPS shouting ──────────────────── */
.eyebrow {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: var(--accent, #4f46e5) !important;
  text-transform: uppercase !important;
}
.eyebrow .dot {
  width: 5px !important; height: 5px !important;
  background: var(--accent, #4f46e5) !important;
}

/* ── Hero language pills + trust strip: tighter ──────────────────── */
.lang-pill {
  font-size: 12.5px !important;
  padding: 5px 10px !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--text, #0f172a) !important;
}
.hero-meta {
  font-size: 12.5px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: var(--accent, #4f46e5) !important;
  border: 0 !important;
  backdrop-filter: none !important;
}
.hero-meta strong { color: var(--accent, #4f46e5) !important; }
.pulse-dot { background: var(--accent, #4f46e5) !important; }

/* ── Footer: slightly more breathing ──────────────────────────── */
.footer { padding: 56px 0 32px !important; background: #fafafa !important; }
.footer h4 {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text-muted, #64748b) !important;
}
.footer ul a {
  font-size: 13.5px !important;
  color: var(--text, #0f172a) !important;
  text-decoration: none !important;
  line-height: 1.9 !important;
  transition: color .15s ease;
}
.footer ul a:hover { color: var(--accent, #4f46e5) !important; }
.footer-bot { font-size: 12px !important; padding-top: 32px !important; margin-top: 32px !important; border-top: 1px solid rgba(15, 23, 42, 0.06); color: var(--text-muted, #64748b); }
