/* TeamSync — modern B2B SaaS design system
 * References: Linear, Stripe, Vercel, Snowflake, Vanta.
 * Confident, clean, product-focused. Inter throughout. Strong accent. Dark CTA sections.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --ink:        #0B0F19;
  --ink-2:      #161B26;
  --bg:         #FFFFFF;
  --bg-soft:    #FAFAFB;
  --bg-muted:   #F4F5F7;
  --bg-section: #F9FAFB;

  /* Accent — confident violet (close to Linear/Stripe register) */
  --brand:      #5145CD;
  --brand-2:    #6D5DDB;
  --brand-3:    #4338CA;
  --brand-soft: #EEF0FE;
  --brand-line: #C7C8FA;

  --accent:     #06B6D4;     /* secondary cyan accent */
  --warn:       #F59E0B;
  --good:       #10B981;
  --danger:     #DC2626;

  /* Greys */
  --g-50:       #FAFAFB;
  --g-100:      #F4F5F7;
  --g-200:      #E5E7EB;
  --g-300:      #D2D6DB;
  --g-400:      #9DA4AE;
  --g-500:      #6C737F;
  --g-600:      #4D5562;
  --g-700:      #384250;
  --g-800:      #1F2A37;
  --g-900:      #111927;
  --g-950:      #0B0F19;

  --text:           var(--g-900);
  --text-strong:    var(--ink);
  --text-muted:     var(--g-600);
  --text-subtle:    var(--g-500);
  --link:           var(--brand);
  --border:         var(--g-200);
  --border-strong:  var(--g-300);
  --code-bg:        var(--g-100);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sz-xs:    0.75rem;       /* 12px */
  --sz-sm:    0.875rem;      /* 14px */
  --sz-base:  1rem;          /* 16px */
  --sz-lg:    1.125rem;      /* 18px */
  --sz-xl:    1.25rem;       /* 20px */
  --sz-2xl:   1.5rem;        /* 24px */
  --sz-3xl:   1.875rem;      /* 30px */
  --sz-4xl:   2.25rem;       /* 36px */
  --sz-5xl:   3rem;          /* 48px */
  --sz-6xl:   3.75rem;       /* 60px */
  --sz-7xl:   4.5rem;        /* 72px */

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.25rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem; --sp-16: 4rem;
  --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

  /* Layout */
  --container-max: 1280px;
  --content-max:   760px;
  --sidebar-w:     260px;
  --toc-w:         220px;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --radius-2xl:    28px;

  --shadow-xs:     0 1px 2px 0 rgba(11, 15, 25, 0.04);
  --shadow-sm:     0 1px 2px 0 rgba(11, 15, 25, 0.05), 0 1px 3px 0 rgba(11, 15, 25, 0.06);
  --shadow:        0 4px 6px -1px rgba(11, 15, 25, 0.07), 0 2px 4px -2px rgba(11, 15, 25, 0.04);
  --shadow-md:     0 10px 15px -3px rgba(11, 15, 25, 0.08), 0 4px 6px -4px rgba(11, 15, 25, 0.04);
  --shadow-lg:     0 20px 25px -5px rgba(11, 15, 25, 0.10), 0 8px 10px -6px rgba(11, 15, 25, 0.04);
  --shadow-xl:     0 25px 50px -12px rgba(11, 15, 25, 0.20);

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset + base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--sz-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "ss01", "cv11";
  letter-spacing: -0.005em;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

::selection {
  background: var(--brand);
  color: white;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
  height: 32px;
  max-height: 32px;
  overflow: hidden;
}
.brand-logo {
  height: 28px !important;
  width: auto !important;
  max-width: 150px !important;
  max-height: 28px !important;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.brand:hover .brand-logo {
  opacity: 0.8;
  transform: translateY(-1px);
}
/* Tighter on small screens */
@media (max-width: 480px) {
  .brand-logo { height: 22px !important; max-height: 22px !important; max-width: 120px !important; }
  .brand { height: 24px; max-height: 24px; }
}
/* Dark-footer logo treatment — filter to white */
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  height: 24px !important;
  max-height: 24px !important;
  max-width: 130px !important;
}
.site-footer .brand {
  height: 28px;
  max-height: 28px;
}
.site-footer .brand:hover .brand-logo {
  opacity: 1;
}
/* Belt-and-braces: prevent the header from ever expanding past 68px */
.site-header .header-inner {
  overflow: hidden;
  max-height: 68px;
}
.primary-nav {
  display: flex;
  gap: var(--sp-1);
  margin-left: auto;
  align-items: center;
}
.primary-nav a {
  color: var(--g-600);
  font-weight: 500;
  font-size: var(--sz-sm);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.12s var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: var(--g-100); }
.primary-nav a.is-active { color: var(--ink); background: var(--g-100); }
.cta-btn {
  background: var(--ink) !important;
  color: white !important;
  padding: 8px 16px !important;
  font-size: var(--sz-sm) !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  letter-spacing: -0.005em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  transition: all 0.15s var(--ease) !important;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.18), inset 0 1px 0 0 rgba(255,255,255,0.12) !important;
}
.cta-btn:hover {
  background: var(--brand) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(81, 69, 205, 0.45), inset 0 1px 0 0 rgba(255,255,255,0.15) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--sz-base);
  border-radius: 6px;
  font-family: var(--font-sans);
}

@media (max-width: 1024px) {
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-4) var(--sp-6);
    gap: 4px;
    transform: translateY(-110%);
    transition: transform 0.2s var(--ease);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a { width: 100%; }
}

/* ===== Layout ===== */
.layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  gap: var(--sp-12);
  position: relative;
}
.layout--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  padding: 0 var(--sp-6);
}
.layout--two-col {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc-rail { display: none; }
}
@media (max-width: 768px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 0 var(--sp-4); gap: 0; }
  .sidebar-rail { display: none; }
}

/* Sidebar */
.sidebar-rail {
  padding: var(--sp-12) 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding-right: var(--sp-4);
  font-size: var(--sz-sm);
}
.sidebar-rail h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-500);
  margin: var(--sp-6) 0 var(--sp-2);
}
.sidebar-rail h4:first-child { margin-top: 0; }
.sidebar-rail ul { list-style: none; padding: 0; margin: 0; }
.sidebar-rail a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--g-600);
  font-weight: 450;
  line-height: 1.4;
  transition: all 0.12s var(--ease);
}
.sidebar-rail a:hover { background: var(--g-100); color: var(--ink); }
.sidebar-rail a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* Content */
.content-rail {
  padding: var(--sp-12) 0 var(--sp-32);
  max-width: var(--content-max);
}

/* TOC */
.toc-rail {
  padding: var(--sp-12) 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  font-size: var(--sz-sm);
}
.toc-rail h5 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-500);
  margin-bottom: var(--sp-3);
}
.toc-rail ul { list-style: none; padding: 0; margin: 0; }
.toc-rail a {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--g-600);
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.12s var(--ease);
}
.toc-rail a.toc-h3 { padding-left: 24px; font-size: var(--sz-xs); }
.toc-rail a:hover { color: var(--ink); }
.toc-rail a.is-active { color: var(--brand); font-weight: 500; border-left-color: var(--brand); }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--sz-sm);
  color: var(--g-500);
  margin-bottom: var(--sp-6);
}
.breadcrumbs a { color: var(--g-600); font-weight: 500; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: 0.5; }

/* ===== Page-meta — minimal pill ===== */
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: var(--sp-5);
  background: var(--g-100);
  color: var(--g-700);
  border: 1px solid var(--border);
}
.page-meta::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}
.page-meta--persona::before  { background: #5145CD; }
.page-meta--capability::before { background: #06B6D4; }
.page-meta--compliance::before { background: #F59E0B; }
.page-meta--alternative::before { background: #6B7280; }
.page-meta--sell-case::before { background: #EC4899; }
.page-meta--solution::before { background: #10B981; }
.page-meta--vertical::before { background: #6366F1; }
.page-meta--why::before { background: var(--brand); }

/* ===== Typography ===== */
.content-rail h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.content-rail h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: var(--sp-16) 0 var(--sp-4);
}
.content-rail h2:first-child { margin-top: 0; }
.content-rail h3 {
  font-size: var(--sz-xl);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  margin: var(--sp-10) 0 var(--sp-3);
}
.content-rail h4 {
  font-size: var(--sz-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: var(--sp-6) 0 var(--sp-2);
}
.content-rail p, .content-rail li {
  font-size: var(--sz-base);
  line-height: 1.7;
  color: var(--g-700);
}
.content-rail p { margin: 0 0 var(--sp-4); }
.content-rail ul, .content-rail ol { margin: 0 0 var(--sp-5); padding-left: var(--sp-6); }
.content-rail li { margin-bottom: 6px; }
.content-rail strong { color: var(--ink); font-weight: 600; }
.content-rail em { font-style: italic; }
.content-rail a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-line);
  transition: all 0.15s var(--ease);
}
.content-rail a:hover {
  color: var(--brand-3);
  border-bottom-color: var(--brand);
}

/* Lead paragraph */
.content-rail h1 + p {
  font-size: var(--sz-xl);
  line-height: 1.55;
  color: var(--g-600);
  margin-bottom: var(--sp-10);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Code */
.content-rail code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--brand-3);
  font-weight: 500;
  border: 1px solid var(--border);
}
.content-rail pre {
  background: var(--g-950);
  color: #E2E8F0;
  padding: var(--sp-5);
  border-radius: 12px;
  overflow-x: auto;
  margin: var(--sp-6) 0;
  font-size: var(--sz-sm);
  line-height: 1.6;
  border: 1px solid var(--g-800);
}
.content-rail pre code { background: transparent; border: 0; padding: 0; color: inherit; }

/* Tables */
.content-rail table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--sp-6) 0;
  font-size: var(--sz-sm);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.content-rail thead { background: var(--g-50); }
.content-rail th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--g-700);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-rail td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--g-700);
  vertical-align: top;
  line-height: 1.55;
}
.content-rail tr:last-child td { border-bottom: none; }
.content-rail tbody tr { transition: background 0.12s var(--ease); }
.content-rail tbody tr:hover { background: var(--g-50); }

/* Blockquote — testimonial style */
.content-rail blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-6) var(--sp-8);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, rgba(81, 69, 205, 0.04) 100%);
  border: 1px solid var(--brand-line);
  position: relative;
}
.content-rail blockquote::before {
  content: '"';
  position: absolute;
  top: 8px; left: 24px;
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
  font-weight: 800;
  opacity: 0.3;
}
.content-rail blockquote p {
  font-size: var(--sz-lg);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 var(--sp-3);
  position: relative;
}
.content-rail blockquote p:last-child {
  font-size: var(--sz-sm);
  color: var(--g-600);
  font-weight: 500;
  margin: var(--sp-3) 0 0;
}

/* HR */
.content-rail hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-12) 0;
}

/* Image / figure */
.content-rail figure {
  margin: var(--sp-8) 0;
}
.content-rail figure img,
.content-rail figure svg {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  display: block;
  width: 100%;
  margin: 0;
}
.content-rail figcaption {
  font-size: var(--sz-sm);
  color: var(--g-500);
  margin-top: var(--sp-3);
  line-height: 1.5;
}
.content-rail > img, .content-rail > svg {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: var(--sp-6) 0;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

/* ===== Footer — dark, modern ===== */
.site-footer {
  background: var(--g-950);
  color: var(--g-300);
  padding: var(--sp-20) 0 var(--sp-6);
  margin-top: var(--sp-32);
  border-top: 1px solid var(--g-800);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand .brand { color: white; }
.footer-brand p {
  color: var(--g-400);
  font-size: var(--sz-sm);
  line-height: 1.55;
  margin: var(--sp-4) 0 0;
  max-width: 320px;
}
.footer-col h6 {
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.005em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  color: var(--g-400);
  font-size: var(--sz-sm);
  font-weight: 450;
}
.footer-col a:hover { color: white; }
.footer-meta {
  border-top: 1px solid var(--g-800);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--sz-xs);
  color: var(--g-500);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-meta a { color: var(--g-400); margin-right: var(--sp-4); }
.footer-meta a:hover { color: white; }

/* Search input */
.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: var(--sz-sm);
  color: var(--text);
  font-family: inherit;
  margin-bottom: var(--sp-3);
  transition: border-color 0.15s var(--ease);
}
.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ===== Hero (homepage + hubs) ===== */
.hero {
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-5);
  background: linear-gradient(180deg, var(--ink) 0%, var(--g-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--g-600);
  max-width: 680px;
  margin: 0 auto var(--sp-8);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.hero-ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

/* Stat / metric blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: var(--sp-10) 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.stat {
  padding: var(--sp-6);
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: var(--sz-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat .label {
  font-size: var(--sz-sm);
  color: var(--g-600);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-10) 0;
}
.card {
  padding: var(--sp-6);
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--g-300);
  box-shadow: var(--shadow-md);
}
.card h3 {
  font-size: var(--sz-lg);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  letter-spacing: -0.015em;
}
.card p {
  font-size: var(--sz-sm);
  color: var(--g-600);
  margin: 0;
  line-height: 1.55;
}

/* Dark CTA section */
.section-dark {
  background: var(--g-950);
  color: white;
  padding: var(--sp-20) var(--sp-6);
  border-radius: 24px;
  margin: var(--sp-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(81, 69, 205, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.18), transparent 55%);
  pointer-events: none;
}
.section-dark h2, .section-dark p { position: relative; }
.section-dark h2 {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-4);
}
.section-dark p {
  color: var(--g-300);
  font-size: var(--sz-lg);
  max-width: 600px;
  margin: 0 auto var(--sp-6);
}

/* ===== Utilities ===== */
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); font-size: var(--sz-sm); }
.center { text-align: center; }

/* Print */
@media print {
  .site-header, .sidebar-rail, .toc-rail, .site-footer { display: none; }
  .layout { display: block; max-width: 100%; }
  body { font-size: 11pt; background: white; color: black; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =============================================================
   SaaS landing — homepage layout
   Full-bleed layout with hero, feature grid, stats, industries,
   testimonial, comparison highlight, final CTA banner.
   ============================================================= */

.layout--landing {
  display: block;
  max-width: none;
  padding: 0;
  margin: 0;
}
.landing-rail {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.landing-rail h1, .landing-rail h2, .landing-rail h3, .landing-rail p, .landing-rail ul {
  margin: 0;
}

.ts-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ----- Hero ----- */
.ts-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-24) 0 var(--sp-16);
  background: linear-gradient(180deg, #FCFCFD 0%, #F8F9FC 60%, #FFFFFF 100%);
}
@media (max-width: 768px) {
  .ts-hero { padding: var(--sp-16) 0 var(--sp-10); }
}
.ts-hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ts-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
}
.ts-hero__blob--a {
  width: 540px; height: 540px;
  background: radial-gradient(circle at 30% 30%, #6D5DDB 0%, transparent 60%);
  top: -140px; left: -140px;
}
.ts-hero__blob--b {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 70% 30%, #06B6D4 0%, transparent 60%);
  top: 40px; right: -100px;
  opacity: 0.18;
}
.ts-hero__blob--c {
  width: 700px; height: 700px;
  background: radial-gradient(circle at 50% 50%, rgba(109, 93, 219, 0.14) 0%, transparent 60%);
  top: 200px; left: 30%;
  opacity: 1;
}
.ts-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 15, 25, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 15, 25, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black 0%, transparent 75%);
}
/* Subtle noise grain overlay — gives the hero a premium feel */
.ts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

.ts-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: var(--sp-12);
}

.ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--g-200);
  border-radius: 999px;
  font-size: var(--sz-sm);
  color: var(--g-700);
  margin-bottom: var(--sp-8);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s var(--ease);
}
.ts-eyebrow:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.ts-eyebrow__pill {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ts-eyebrow__arrow {
  font-size: var(--sz-base);
  color: var(--brand);
}

.ts-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-6) !important;
}
.ts-grad {
  background: linear-gradient(120deg, #4338CA 0%, #6D5DDB 30%, #4F75D8 60%, #06B6D4 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ts-grad-shift 9s ease-in-out infinite alternate;
}

/* =============================================================
   Animated highlighter — glossy glass panel that slides across
   one word at a time, like a sliding door.
   ============================================================= */
.ts-hl {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 0.1em;
  isolation: isolate;
}
.ts-hl::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 4%;
  bottom: -2%;
  border-radius: 10px;
  z-index: -1;

  /* Glassy gloss in brand colours: translucent violet-to-cyan with a
     moving specular highlight, a frosted backdrop blur, a thin white
     border, and inner/outer shadows tinted with brand violet. */
  background:
    linear-gradient(115deg,
      rgba(81, 69, 205, 0.24) 0%,
      rgba(126, 110, 230, 0.42) 35%,
      rgba(220, 230, 255, 0.55) 50%,
      rgba(86, 162, 215, 0.42) 65%,
      rgba(6, 182, 212, 0.24) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  backdrop-filter: blur(4px) saturate(130%);
  -webkit-backdrop-filter: blur(4px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    inset 0 -1px 2px rgba(50, 40, 120, 0.10),
    0 4px 14px rgba(81, 69, 205, 0.20),
    0 1px 3px rgba(0, 0, 0, 0.04);

  /* Sliding-door wipe: clip-path animates left-to-right reveal,
     then continues clipping from the left to wipe it off to the right. */
  clip-path: inset(0 100% 0 0 round 10px);
  -webkit-clip-path: inset(0 100% 0 0 round 10px);
  animation:
    ts-highlight-slide 11.2s cubic-bezier(0.45, 0, 0.55, 1) infinite,
    ts-highlight-gloss 11.2s linear infinite;
}

/* Stagger of 2.8s so the highlighter cleanly hands off from word to word */
.ts-hero__title .ts-hl:nth-of-type(1)::before { animation-delay: 0s,    0s; }
.ts-hero__title .ts-hl:nth-of-type(2)::before { animation-delay: 2.8s,  2.8s; }
.ts-hero__title .ts-hl:nth-of-type(3)::before { animation-delay: 5.6s,  5.6s; }
.ts-hero__title .ts-hl:nth-of-type(4)::before { animation-delay: 8.4s,  8.4s; }

/* Phase 1 (3% → 11%): leading edge sweeps in from the left
   Phase 2 (11% → 22%): held fully visible across the word
   Phase 3 (22% → 30%): trailing edge clears off to the right
   Phase 4 (30% → 100%): hidden between cycles */
@keyframes ts-highlight-slide {
  0%   { clip-path: inset(0 100% 0 0 round 10px); -webkit-clip-path: inset(0 100% 0 0 round 10px); }
  3%   { clip-path: inset(0 100% 0 0 round 10px); -webkit-clip-path: inset(0 100% 0 0 round 10px); }
  11%  { clip-path: inset(0 0 0 0 round 10px);    -webkit-clip-path: inset(0 0 0 0 round 10px); }
  22%  { clip-path: inset(0 0 0 0 round 10px);    -webkit-clip-path: inset(0 0 0 0 round 10px); }
  30%  { clip-path: inset(0 0 0 100% round 10px); -webkit-clip-path: inset(0 0 0 100% round 10px); }
  100% { clip-path: inset(0 0 0 100% round 10px); -webkit-clip-path: inset(0 0 0 100% round 10px); }
}

/* Gloss sweep — the specular highlight on the glass slides in sync */
@keyframes ts-highlight-gloss {
  0%, 3%   { background-position: 0% 50%; }
  22%      { background-position: 100% 50%; }
  100%     { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-hl::before { display: none; }
}
@keyframes ts-grad-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-grad { animation: none; }
}
.ts-hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--g-700);
  max-width: 720px;
  margin: 0 auto var(--sp-10) !important;
  letter-spacing: -0.005em;
}

.ts-hero__ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 550;
  font-size: var(--sz-base);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.16s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.ts-btn--sm { padding: 10px 16px; font-size: var(--sz-sm); }
.ts-btn--primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 2px rgba(11, 15, 25, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ts-btn--primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(81, 69, 205, 0.45);
}
.ts-btn--ghost {
  background: white;
  color: var(--ink);
  border-color: var(--g-200);
}
.ts-btn--ghost:hover {
  background: var(--g-50);
  border-color: var(--g-300);
}
.ts-btn--inv {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}
.ts-btn--inv:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.ts-hero__bullets {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--sz-sm);
  color: var(--g-600);
}
.ts-hero__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ts-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--good);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

/* Product preview ---- */
.ts-product {
  margin: var(--sp-12) auto 0;
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--g-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ts-product::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
}
.ts-product__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--g-100);
  background: var(--g-50);
}
.ts-product__chrome > span:nth-child(-n+3) {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--g-200);
}
.ts-product__chrome > span:nth-child(1) { background: #FF5F56; }
.ts-product__chrome > span:nth-child(2) { background: #FFBD2E; }
.ts-product__chrome > span:nth-child(3) { background: #27C93F; }
.ts-product__url {
  margin-left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--g-500);
}
.ts-product__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}
@media (max-width: 768px) {
  .ts-product__body { grid-template-columns: 1fr; }
  .ts-product__nav { display: none; }
}
.ts-product__nav {
  background: var(--g-50);
  border-right: 1px solid var(--g-100);
  padding: var(--sp-5) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ts-product__navhead {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-500);
  font-weight: 600;
  padding: 6px 12px var(--sp-4);
}
.ts-product__nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: var(--sz-sm);
  color: var(--g-700);
  font-weight: 500;
  cursor: default;
  transition: background 0.12s var(--ease);
}
.ts-product__nav a.is-on {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.ts-product__main {
  padding: var(--sp-6);
  background: white;
}
.ts-product__chat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.ts-product__msg {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: var(--sz-sm);
  line-height: 1.55;
  max-width: 85%;
}
.ts-product__msg--user {
  background: var(--g-100);
  color: var(--ink);
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}
.ts-product__msg--ai {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #F0F4FE 100%);
  color: var(--g-900);
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--brand-line);
  max-width: 92%;
}
.ts-product__ai-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--brand-3);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ts-product__dot {
  width: 7px; height: 7px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.ts-product__msg--ai p { margin: 0 0 var(--sp-3); }
.ts-product__cite {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 var(--sp-4);
  font-size: 13px;
  color: var(--g-700);
}
.ts-product__cite li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(81, 69, 205, 0.12);
}
.ts-product__cite em {
  font-style: normal;
  color: var(--g-600);
}
.ts-product__pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: white;
  padding: 3px 7px;
  border-radius: 4px;
}
.ts-product__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ts-product__chip {
  font-size: 12px;
  background: white;
  border: 1px solid var(--g-200);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--g-700);
}

/* ----- Section base ----- */
.ts-section {
  padding: var(--sp-20) 0;
}
@media (max-width: 768px) {
  .ts-section { padding: var(--sp-12) 0; }
}
.ts-section__head {
  max-width: 760px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.ts-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.ts-kicker--inv {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.ts-section__head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4) !important;
}
.ts-lede {
  font-size: var(--sz-lg);
  color: var(--g-600);
  line-height: 1.6;
  margin: 0 !important;
}

/* ----- Logo bar ----- */
.ts-section--logos {
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--g-100);
  border-bottom: 1px solid var(--g-100);
}
.ts-logos__label {
  text-align: center;
  font-size: var(--sz-sm);
  color: var(--g-500);
  margin-bottom: var(--sp-6) !important;
  letter-spacing: 0.01em;
}
.ts-logos {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-10);
  font-size: var(--sz-sm);
  color: var(--g-600);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}
.ts-logos li { opacity: 0.7; transition: opacity 0.15s ease; }
.ts-logos li:hover { opacity: 1; }

/* ----- Feature grid ----- */
.ts-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 960px) { .ts-feature-grid { grid-template-columns: 1fr; } }

.ts-feature {
  display: flex;
  flex-direction: column;
  padding: var(--sp-8);
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.ts-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(81, 69, 205, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ts-feature:hover {
  border-color: var(--brand-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ts-feature:hover::before { opacity: 1; }

.ts-feature__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  position: relative;
}
.ts-feature__icon svg { width: 26px; height: 26px; }
.ts-feature__icon--violet {
  background: linear-gradient(135deg, var(--brand-soft), #DDD6FE);
  color: var(--brand-3);
}
.ts-feature__icon--cyan {
  background: linear-gradient(135deg, #CFFAFE, #A5F3FC);
  color: #0E7490;
}
.ts-feature__icon--amber {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #B45309;
}

.ts-feature h3 {
  font-size: var(--sz-xl);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: var(--sp-3) !important;
}
.ts-feature p {
  color: var(--g-600);
  line-height: 1.6;
  margin-bottom: var(--sp-5) !important;
  font-size: var(--sz-base);
  flex: 1;
}
.ts-feature__more {
  font-size: var(--sz-sm);
  color: var(--brand);
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s ease;
}
.ts-feature:hover .ts-feature__more { gap: 10px; }

/* ----- Stats ----- */
.ts-section--stats {
  background: var(--ink);
  color: white;
  padding: var(--sp-16) 0;
  position: relative;
  overflow: hidden;
}
.ts-section--stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, rgba(109, 93, 219, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 100%, rgba(6, 182, 212, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.ts-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  position: relative;
}
@media (max-width: 768px) { .ts-stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }

.ts-stat {
  text-align: center;
}
.ts-stat__num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #C7C8FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-2);
  font-feature-settings: "tnum";
}
.ts-stat__label {
  font-size: var(--sz-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.005em;
}

/* ----- Platform section (split layout) ----- */
.ts-section--platform { background: var(--bg-soft); }
.ts-platform {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 960px) {
  .ts-platform { grid-template-columns: 1fr; gap: var(--sp-10); }
}
.ts-platform__copy { padding-top: var(--sp-6); }
.ts-platform__copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4) !important;
}
.ts-platform__copy .ts-lede { margin-bottom: var(--sp-6) !important; }
.ts-platform__ctas {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.ts-platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .ts-platform__grid { grid-template-columns: repeat(2, 1fr); } }

.ts-cap {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-4);
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.16s var(--ease);
}
.ts-cap:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  transform: translateY(-2px);
}
.ts-cap strong {
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.ts-cap span {
  font-size: 12px;
  color: var(--g-500);
}

/* ----- Industry grid ----- */
.ts-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 960px) { .ts-industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ts-industry-grid { grid-template-columns: 1fr; } }

.ts-industry {
  display: block;
  padding: var(--sp-6);
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
  position: relative;
}
.ts-industry:hover {
  border-color: var(--brand-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ts-industry__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--g-400);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.ts-industry h3 {
  font-size: var(--sz-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2) !important;
  letter-spacing: -0.018em;
}
.ts-industry p {
  color: var(--g-600);
  font-size: var(--sz-sm);
  line-height: 1.55;
  margin-bottom: var(--sp-4) !important;
}
.ts-industry ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--g-100);
  padding-top: var(--sp-3);
}
.ts-industry li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--g-500);
  letter-spacing: 0.01em;
}

/* ----- Quote ----- */
.ts-section--quote {
  background:
    radial-gradient(ellipse 600px 300px at 50% 50%, rgba(81, 69, 205, 0.06) 0%, transparent 70%);
}
.ts-quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: var(--sp-8) var(--sp-4);
}
.ts-quote__mark {
  width: 40px; height: 40px;
  fill: var(--brand);
  opacity: 0.18;
  margin: 0 auto var(--sp-4);
}
.ts-quote blockquote {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: var(--sp-5) !important;
}
.ts-quote figcaption {
  font-size: var(--sz-sm);
  color: var(--g-600);
}
.ts-quote figcaption strong {
  color: var(--ink);
  font-weight: 600;
}
.ts-quote__sep {
  margin: 0 8px;
  color: var(--g-400);
}

/* ----- Comparison highlight ----- */
.ts-compare {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
}
.ts-compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--g-100);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--sz-sm);
}
.ts-compare__row:last-child { border-bottom: none; }
.ts-compare__row > div:first-child {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding-right: var(--sp-4);
}
.ts-compare__row--head {
  background: var(--g-50);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-500);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-5);
}
.ts-compare__col {
  padding: 0 var(--sp-3);
  color: var(--g-700);
}
.ts-compare__col--win {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.ts-compare__col--win::before {
  content: "✓";
  display: inline-flex;
  width: 18px; height: 18px;
  background: var(--good);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: -3px;
}
.ts-compare__row--head .ts-compare__col--win::before { display: none; }
.ts-compare__row--head .ts-compare__col--win {
  color: var(--brand);
}
.ts-compare__cta {
  text-align: center;
  margin-top: var(--sp-6);
}
@media (max-width: 768px) {
  .ts-compare__row { grid-template-columns: 1fr; gap: 6px; padding: var(--sp-4); }
  .ts-compare__row--head { display: none; }
  .ts-compare__col::before { content: attr(data-label) " — "; color: var(--g-500); font-weight: 500; font-size: 11px; }
}

/* ----- Final CTA ----- */
.ts-section--cta { padding: var(--sp-12) 0 var(--sp-20); }
.ts-finalcta {
  position: relative;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
}
@media (max-width: 768px) { .ts-finalcta { padding: var(--sp-10) var(--sp-6); } }
.ts-finalcta__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ts-finalcta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.ts-finalcta__blob--a {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--brand-2) 0%, transparent 60%);
  top: -100px; left: -80px;
}
.ts-finalcta__blob--b {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  bottom: -80px; right: -60px;
}
.ts-finalcta__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.ts-finalcta h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: var(--sp-4) 0 var(--sp-4) !important;
  color: white;
}
.ts-finalcta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--sz-lg);
  line-height: 1.6;
  margin-bottom: var(--sp-8) !important;
}
.ts-finalcta__ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* =============================================================
   Page shell — SaaS-style chrome for ALL non-homepage pages.
   Hero backdrop above the content, dark CTA banner below.
   ============================================================= */

.page-shell {
  position: relative;
  background: white;
}

/* Hero backdrop — soft gradient zone behind the page header (H1 + lead) */
.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg, #FBFBFE 0%, #F4F2FE 60%, transparent 100%);
}
.page-hero-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.page-hero-bg__blob--a {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--brand-2) 0%, transparent 60%);
  top: -160px;
  left: -120px;
}
.page-hero-bg__blob--b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 70% 30%, var(--accent) 0%, transparent 60%);
  top: -80px;
  right: -100px;
  opacity: 0.2;
}
.page-shell .layout {
  position: relative;
  z-index: 1;
}

/* Polish .content-rail to be less editorial / more SaaS */
.content-rail {
  padding: var(--sp-12) 0 var(--sp-16) !important;
}
.content-rail h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.06 !important;
  font-weight: 700 !important;
  margin-bottom: var(--sp-6) !important;
}
.content-rail > .page-meta {
  margin-bottom: var(--sp-4);
}
.content-rail h1 + p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  color: var(--g-600) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.55 !important;
  margin-bottom: var(--sp-12) !important;
  max-width: 720px;
}

/* H2 with subtle accent rule */
.content-rail h2 {
  margin-top: var(--sp-16) !important;
  margin-bottom: var(--sp-5) !important;
  position: relative;
  padding-top: var(--sp-6);
}
.content-rail h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 2px;
}
.content-rail h2:first-child {
  padding-top: 0;
  margin-top: 0 !important;
}
.content-rail h2:first-child::before { display: none; }

/* H3 — more confident */
.content-rail h3 {
  font-size: var(--sz-xl) !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
  margin-top: var(--sp-8) !important;
  margin-bottom: var(--sp-3) !important;
  color: var(--ink) !important;
}

/* Lead-in CTA paragraph (the H1 + lead + CTA pattern) */
.content-rail h1 + p + p:has(a) {
  margin-bottom: var(--sp-10);
  font-size: var(--sz-base);
}
.content-rail p > a:not(.ts-btn) {
  color: var(--brand);
  font-weight: 500;
  border-bottom: 1px solid var(--brand-line);
  transition: all 0.15s var(--ease);
}
.content-rail p > a:not(.ts-btn):hover {
  color: var(--brand-3);
  border-bottom-color: var(--brand);
}

/* Tables — clean SaaS table look */
.content-rail table {
  border: 1px solid var(--g-200) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin: var(--sp-6) 0 var(--sp-8) !important;
  background: white;
}
.content-rail table th {
  background: var(--g-50) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: var(--g-600) !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--g-200) !important;
  text-align: left;
}
.content-rail table td {
  padding: 14px 16px !important;
  border-top: 1px solid var(--g-100) !important;
  vertical-align: top;
  font-size: var(--sz-sm) !important;
  line-height: 1.55 !important;
  color: var(--g-700) !important;
}
.content-rail table tr:first-child td { border-top: none; }
.content-rail table tr:hover td { background: var(--bg-soft); }

/* Blockquote — modern card */
.content-rail blockquote {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #F0F4FE 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-6) 0;
  font-size: var(--sz-lg);
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}
.content-rail blockquote p { color: var(--ink); margin-bottom: var(--sp-2); }
.content-rail blockquote p:last-child { margin-bottom: 0; }
.content-rail blockquote em {
  display: block;
  font-style: normal;
  font-size: var(--sz-sm);
  color: var(--g-600);
  margin-top: var(--sp-3);
  font-weight: 500;
}

/* Lists — more breathing room */
.content-rail ul li, .content-rail ol li {
  margin-bottom: var(--sp-2) !important;
  line-height: 1.6 !important;
}

/* HR — gradient */
.content-rail hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--g-200) 30%, var(--g-200) 70%, transparent 100%);
  margin: var(--sp-12) 0;
}

/* Page-meta pill — refined */
.page-meta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--brand) !important;
  background: var(--brand-soft) !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--brand-line) !important;
  margin-bottom: var(--sp-4) !important;
}
.page-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
}

/* Breadcrumbs — refined */
.breadcrumbs {
  font-size: var(--sz-sm);
  color: var(--g-500);
  margin-bottom: var(--sp-4);
}
.breadcrumbs a {
  color: var(--g-500);
  text-decoration: none;
  transition: color 0.12s ease;
}
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--g-300);
}
.breadcrumbs a:last-child { color: var(--ink); font-weight: 500; }

/* ----- Page CTA section (final banner on every page) ----- */
.page-cta-section {
  padding: var(--sp-12) var(--sp-6) var(--sp-20);
  position: relative;
  z-index: 1;
}
.page-cta {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
}
@media (max-width: 768px) {
  .page-cta { padding: var(--sp-10) var(--sp-6); }
  .page-cta-section { padding: var(--sp-8) var(--sp-4) var(--sp-12); }
}
.page-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.page-cta__blob--a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-2) 0%, transparent 60%);
  top: -80px;
  left: -60px;
}
.page-cta__blob--b {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  bottom: -60px;
  right: -40px;
}
.page-cta__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.page-cta__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.page-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: white;
  margin: 0 0 var(--sp-3) !important;
}
.page-cta__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--sz-base);
  line-height: 1.55;
  margin: 0 0 var(--sp-6) !important;
}
.page-cta__ctas {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hide the sidebar's old white-on-white look — refine */
.sidebar-rail {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Polish figures (the SVG illustrations) */
.content-rail figure {
  margin: var(--sp-8) 0;
  padding: var(--sp-6);
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.content-rail figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
.content-rail figcaption {
  text-align: center;
  font-size: var(--sz-sm);
  color: var(--g-500);
  margin-top: var(--sp-4);
  font-style: italic;
}


/* =============================================================
   Hub-page additions: compact hero, numbered feature cards,
   feature-grid spans, mini-card grid for "where to next" sections.
   ============================================================= */

/* Compact hero variant for hub pages (smaller padding than homepage) */
.ts-hero--compact {
  padding: var(--sp-16) 0 var(--sp-12);
}
@media (max-width: 768px) {
  .ts-hero--compact { padding: var(--sp-12) 0 var(--sp-8); }
}

/* Static eyebrow (not a link) */
.ts-eyebrow--static {
  cursor: default;
}
.ts-eyebrow--static:hover {
  border-color: var(--g-200);
  transform: none;
  box-shadow: var(--shadow-xs);
}

/* Numbered feature card (alternative to icon variant) */
.ts-feature__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

/* Feature grid sized to 3 cols, with optional 2-col span items */
.ts-feature-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .ts-feature-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ts-feature-grid--3 { grid-template-columns: 1fr; }
}
.ts-feature--span2 {
  grid-column: span 2;
}
@media (max-width: 600px) {
  .ts-feature--span2 { grid-column: span 1; }
}

/* "Where to go next" mini-cards — 2-column compact grid */
.ts-feature-grid--small {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 768px) {
  .ts-feature-grid--small { grid-template-columns: 1fr; }
}
.ts-mini {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-6);
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.16s var(--ease);
}
.ts-mini:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ts-mini strong {
  font-size: var(--sz-base);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.ts-mini span {
  font-size: var(--sz-sm);
  color: var(--brand);
  font-weight: 500;
}

/* Map section — variant background */
.ts-section--map { background: var(--bg-soft); }

/* =============================================================
   Particle network in hero
   ============================================================= */
.ts-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  .ts-hero__particles { display: none; }
}

/* Cap the homepage hero canvas to the hero area only */
.ts-hero--home .ts-hero__particles { mix-blend-mode: normal; opacity: 0.42; }

/* =============================================================
   Marquee logo strip
   ============================================================= */
.ts-logos-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ts-logos--marquee {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--sp-12);
  animation: ts-marquee 50s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.ts-logos--marquee li {
  font-size: var(--sz-sm);
  color: var(--g-600);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  padding-right: var(--sp-12);
  border-right: 1px solid var(--g-200);
}
.ts-logos--marquee li:last-child { border-right: none; padding-right: 0; }
.ts-logos--marquee li:hover { opacity: 1; color: var(--brand); }

.ts-logos-marquee:hover .ts-logos--marquee {
  animation-play-state: paused;
}

@keyframes ts-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--sp-12))); }
}
@media (prefers-reduced-motion: reduce) {
  .ts-logos--marquee { animation: none; }
}

/* =============================================================
   Scroll-reveal fade-in for landing-page elements
   ============================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   Live status pulse on the product preview "online" dot
   ============================================================= */
.ts-product__dot {
  animation: ts-pulse 2.4s ease-in-out infinite;
}
@keyframes ts-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 0 0 0 rgba(16, 185, 129, 0); }
  50%      { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 0 0 6px rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ts-product__dot { animation: none; }
}

/* =============================================================
   Subtle orb drift animation on hero blobs (homepage only)
   ============================================================= */
.ts-hero--home .ts-hero__blob--a {
  animation: ts-blob-drift-a 18s ease-in-out infinite alternate;
}
.ts-hero--home .ts-hero__blob--b {
  animation: ts-blob-drift-b 22s ease-in-out infinite alternate;
}
.ts-hero--home .ts-hero__blob--c {
  animation: ts-blob-drift-c 26s ease-in-out infinite alternate;
}
@keyframes ts-blob-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes ts-blob-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 30px) scale(1.08); }
}
@keyframes ts-blob-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ts-hero--home .ts-hero__blob--a,
  .ts-hero--home .ts-hero__blob--b,
  .ts-hero--home .ts-hero__blob--c {
    animation: none;
  }
}

/* (Brand mark hover replaced by .brand-logo hover — see Header section.) */

/* =============================================================
   Refined motion: product preview float, eyebrow shimmer,
   button arrow slide, hero entry fade-in, scroll indicator
   ============================================================= */

/* Product preview gently floats — gives the hero motion without distraction */
.ts-product {
  animation: ts-product-float 8s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ts-product-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Top edge of product preview gets a slowly sweeping highlight (chrome shimmer) */
.ts-product::before {
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
  animation: ts-shimmer 5s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes ts-shimmer {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleX(0.6); }
  50%      { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
}

/* Eyebrow pill — subtle pulsing glow */
.ts-eyebrow__pill {
  animation: ts-pill-pulse 3.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(109, 93, 219, 0);
}
@keyframes ts-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109, 93, 219, 0); }
  50%      { box-shadow: 0 0 14px -2px rgba(109, 93, 219, 0.45); }
}

/* CTA arrows slide on hover */
.ts-btn span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.18s var(--ease);
}
.ts-btn:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

/* Hero entry fade-in + slide-up on page load */
.ts-hero__inner > * {
  opacity: 0;
  transform: translateY(12px);
  animation: ts-hero-enter 0.8s var(--ease) forwards;
}
.ts-hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.ts-hero__inner > *:nth-child(2) { animation-delay: 0.15s; }
.ts-hero__inner > *:nth-child(3) { animation-delay: 0.25s; }
.ts-hero__inner > *:nth-child(4) { animation-delay: 0.35s; }
.ts-hero__inner > *:nth-child(5) { animation-delay: 0.45s; }
.ts-hero .ts-product {
  opacity: 0;
  transform: translateY(28px);
  animation: ts-hero-enter 1s var(--ease) 0.55s forwards, ts-product-float 8s ease-in-out 1.5s infinite alternate;
}
@keyframes ts-hero-enter {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ts-hero__inner > *,
  .ts-hero .ts-product {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Subtle scroll indicator at the bottom of the hero */
.ts-hero--home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, var(--g-300) 60%, transparent 100%);
  z-index: 2;
  animation: ts-scroll-hint 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ts-scroll-hint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ts-hero--home::after { animation: none; }
}

/* Trust badge bullets with a soft entry stagger */
.ts-hero__bullets li {
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.ts-hero__bullets li:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

/* Section H2 — slight fade-up entry (only on landing pages) */
.layout--landing .ts-section__head {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.layout--landing .ts-section__head.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .layout--landing .ts-section__head { opacity: 1; transform: none; }
}

/* Feature card hover — gentle border-glow + lift */
.ts-feature {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ts-feature:not(.ts-feature--static):hover {
  border-color: var(--brand-line);
  box-shadow: 0 12px 28px -8px rgba(81, 69, 205, 0.15), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
}

/* Industry card hover — same treatment */
.ts-industry {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ts-industry:hover {
  border-color: var(--brand-line);
  box-shadow: 0 12px 28px -8px rgba(81, 69, 205, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
}

/* Section divider lines — soft fade across */
.ts-section--features + .ts-section--features::before,
.ts-section--features + .ts-section--platform::before,
.ts-section--platform + .ts-section--industries::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--g-200) 50%, transparent 100%);
  margin-top: calc(var(--sp-20) * -1);
}

/* Alternating section background — for stripey rhythm */
.ts-section--alt { background: var(--bg-soft); }

/* Static feature card (non-link variant — for "what each microsite contains" lists) */
.ts-feature--static {
  cursor: default;
  background: white;
}
.ts-feature--static:hover {
  border-color: var(--g-200);
  transform: none;
  box-shadow: none;
}
.ts-feature--static:hover::before { opacity: 0; }

/* Compact feature card — narrower for alternative-comparison grids */
.ts-feature--compact {
  padding: var(--sp-5) var(--sp-6);
}
.ts-feature--compact h3 {
  font-size: var(--sz-lg) !important;
  margin-bottom: var(--sp-2) !important;
}
.ts-feature--compact p {
  font-size: var(--sz-sm) !important;
  margin-bottom: var(--sp-3) !important;
}

/* ----- Pricing plans ----- */
.ts-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}
@media (max-width: 960px) {
  .ts-pricing-grid { grid-template-columns: 1fr; }
}

.ts-plan {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
  transition: all 0.2s var(--ease);
}
.ts-plan:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}
.ts-plan--featured {
  background: linear-gradient(180deg, white 0%, var(--brand-soft) 100%);
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 8px 24px -4px rgba(81, 69, 205, 0.18);
  transform: scale(1.02);
}
.ts-plan--featured:hover {
  transform: scale(1.02) translateY(-2px);
}
.ts-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 8px -2px rgba(81, 69, 205, 0.4);
}
.ts-plan__head h3 {
  font-size: var(--sz-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-2) !important;
}
.ts-plan__sub {
  font-size: var(--sz-sm);
  color: var(--g-600);
  line-height: 1.55;
  margin-bottom: var(--sp-6) !important;
}
.ts-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--g-100);
  border-bottom: 1px solid var(--g-100);
  margin-bottom: var(--sp-6);
}
.ts-plan__from {
  font-size: var(--sz-sm);
  color: var(--g-500);
  font-weight: 500;
}
.ts-plan__price strong {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.ts-plan__per {
  font-size: var(--sz-sm);
  color: var(--g-500);
}
.ts-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-plan__features li {
  font-size: var(--sz-sm);
  color: var(--g-700);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.ts-plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 3px;
}
.ts-plan--featured .ts-plan__features li::before {
  background: var(--brand);
  color: white;
}
.ts-plan__cta {
  width: 100%;
  justify-content: center;
}

/* ----- Pricing math (two-column scales/free split) ----- */
.ts-pricing-math {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .ts-pricing-math { grid-template-columns: 1fr; }
}
.ts-pricing-math__col {
  background: white;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-7);
}
.ts-pricing-math__col--scales { border-color: var(--brand-line); }
.ts-pricing-math__col--free {
  border-color: var(--g-200);
  background: var(--bg-soft);
}
.ts-pricing-math__col h3 {
  font-size: var(--sz-lg);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: var(--sp-4) !important;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--g-200);
}
.ts-pricing-math__col--scales h3 { color: var(--brand); }
.ts-pricing-math__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ts-pricing-math__col li {
  font-size: var(--sz-sm);
  color: var(--g-700);
  line-height: 1.55;
}
.ts-pricing-math__col li strong {
  color: var(--ink);
  font-weight: 600;
}
