/* Homepage Redesign Styles
 * All styles namespaced with .ts-* to prevent conflicts
 */

/* Base */
.ts-body {
  margin: 0;
  font-family: var(--ts-font-family);
  color: #0f172a;
  background: #f9fafb;
  /* Scroll padding to account for fixed header */
  scroll-padding-top: 120px;
}

/* Skip link */
.ts-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
}
.ts-skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* NAV - DEPRECATED: Header styles moved to unified-header.css */
/* Keeping minimal styles here for backward compatibility, but unified-header.css takes precedence */
/* 
.ts-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 3rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.6);
  color: #e5e7eb;
}

.ts-nav-left {
  display: flex;
  align-items: center;
}

.ts-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.ts-brand-mark {
  width: 28px !important; /* Force consistent size to prevent jitter */
  height: 28px !important; /* Force consistent size to prevent jitter */
  min-width: 28px !important; /* Prevent shrinking */
  min-height: 28px !important; /* Prevent shrinking */
  border-radius: 999px;
  display: flex;
  /* Prevent layout shifts */
  contain: layout style paint;
  backface-visibility: hidden;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ts-brand-text-block {
  display: flex;
  flex-direction: column;
}

.ts-brand-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ts-beta-badge {
  background: rgba(201, 242, 255, 0.9);
  border: 1px solid rgba(125, 215, 255, 0.85);
  color: #0f172a;
}

.ts-brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  line-height: 1.2;
}

.ts-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.ts-nav-links a {
  text-decoration: none;
  color: #cbd5f5;
  transition: color 0.2s;
}
.ts-nav-links a:hover {
  color: #ffffff;
}

.ts-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
*/
.ts-nav-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #cbd5f5;
  transition: color 0.2s;
}
.ts-nav-link:hover {
  color: #ffffff;
}

/* Mobile toggle (desktop: hidden) */
.ts-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: opacity 0.2s;
}
.ts-nav-toggle:hover {
  opacity: 0.8;
}

/* Buttons */
.ts-btn-primary,
.ts-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem calc(1.4rem + 5px);
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  transition: filter 0.2s, transform 0.2s;
  white-space: normal; /* Allow text wrapping */
  text-wrap: balance; /* Better line breaks */
  line-height: 1.3; /* Better readability when wrapped */
  text-align: center;
}
.ts-btn-primary:hover,
.ts-nav-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ts-btn-ghost,
.ts-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem calc(1.2rem + 5px);
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.9rem;
  color: #111827;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.ts-btn-ghost:hover,
.ts-btn-secondary:hover {
  background: #f3f4f6;
}

/* Ghost button variant for dark hero background */
.ts-hero .ts-btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.4);
  color: #e5e7eb;
  backdrop-filter: blur(8px);
}
.ts-hero .ts-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.6);
}

/* HERO with aurora night sky - Proof Card + Responsive Overhaul */
/* COMPRESSED: Removed full viewport height for dense product header */
.ts-hero {
  position: relative;
  overflow: hidden; /* Keep hidden to contain hero content within boundaries */
  color: #0f172a;
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
  /* Removed min-height - let content determine height for compact layout */
  min-height: auto;
}

/* Aurora becomes a background layer (not occupying layout) */
.ts-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  filter: blur(22px);
  background:
    radial-gradient(circle at 20% 30%, rgba(80,140,255,0.35), transparent 45%),
    radial-gradient(circle at 70% 40%, rgba(150,80,255,0.25), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(40,220,200,0.18), transparent 50%);
}

/* Star field (optional, can be removed if too busy) */
.ts-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(248, 250, 252, 0.7), transparent 60%),
    radial-gradient(1px 1px at 70% 30%, rgba(248, 250, 252, 0.7), transparent 60%),
    radial-gradient(1px 1px at 30% 80%, rgba(248, 250, 252, 0.7), transparent 60%),
    radial-gradient(1px 1px at 90% 60%, rgba(248, 250, 252, 0.7), transparent 60%),
    radial-gradient(1px 1px at 50% 10%, rgba(248, 250, 252, 0.7), transparent 60%);
  opacity: 0.5;
}

/* Hero Component System - Centered Banner with Standard Padding */
/* COMPRESSED: Reduced vertical padding and tighter grid for dense product header */
.ts-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto;
  /* Reduced min-height for compact layout - fits in ~70-80vh */
  min-height: auto !important; /* Force override any conflicting rules */
  padding-top: clamp(3.5rem, 4.5vw, 4.5rem) !important; /* ~56-72px - aggressive compression */
  padding-bottom: clamp(2rem, 3vw, 3rem) !important; /* ~32-48px - aggressive compression */
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 2.5vw, 2rem) !important; /* ~32px - more aggressive tightening */
  align-items: stretch; /* Keep columns equal height */
  justify-items: stretch; /* Fill full column width */
  overflow: hidden; /* Contain content within hero boundaries */
  box-sizing: border-box; /* Include padding in height calculations */
}

.ts-hero-copy {
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top instead of center */
  align-items: flex-start; /* Keep left-aligned text */
  text-align: left;
  gap: 6px; /* Further tightened - reduced from 8px */
  width: 100%; /* Full width of grid cell */
  align-self: stretch; /* Match hero height */
  padding-top: 0; /* Remove any top padding */
  margin-top: 0; /* Remove negative margin - align naturally to top */
}

/* Ensure hero visual (right column) is also properly sized */
.ts-hero-visual-col {
  width: 100%;
  display: flex;
  justify-content: center; /* Center the card within its column */
  align-items: flex-start; /* Align cards to top to match text alignment */
  position: relative; /* Ensure proper positioning context */
  z-index: 1; /* Ensure card is above background elements */
  align-self: stretch; /* Match hero height */
}

.ts-hero-visual {
  height: 100%;
  overflow: visible;
}

/* Lower the right hero column slightly to let copy lead */
.home-hero .ts-hero-visual-col {
  padding-top: clamp(8px, 1.2vw, 16px);
}

.home-hero .ts-hero-visual {
  width: 100%;
}

.ts-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.ts-hero-title {
  margin: 0 0 10px 0;
  font-size: calc(3rem + 6px); /* Fallback when clamp() is unavailable */
  font-size: clamp(calc(3rem + 6px), calc(3.78vw + 6px), calc(3.9rem + 6px));
  line-height: 1.08; /* Slightly looser for chunkier feel */
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f9fafb; /* Light text for dark background */
  /* controls wrapping so it looks intentional */
  max-width: 22ch;
  text-wrap: balance;
}

.home-hero .ts-hero-title .ts-hero-nowrap {
  white-space: nowrap;
}

/* Home hero sizing control: keep current laptop look, cap growth on ultra-wide displays */
.home-hero .ts-hero-title {
  font-size: clamp(calc(3rem + 6px), calc(3.78vw + 6px), 60px);
}

/* Freeze headline growth at large desktop widths to keep hero columns visually balanced */
@media (min-width: 1440px) {
  .home-hero .ts-hero-title {
    font-size: 60px;
    line-height: 1.08;
  }
}
.ts-hero-subtitle {
  margin: 0 0 12px 0; /* Further reduced bottom margin */
  font-size: 1.0185rem; /* Increased by 5% from 0.97rem */
  line-height: 1.45; /* Tighter line height */
  max-width: 48ch; /* Slightly narrower */
  color: #cbd5e1;
}

.ts-hero-ctas {
  display: flex;
  gap: 12px; /* Keep gap same */
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
  margin-bottom: 12px; /* Match spacing above buttons */
  align-items: center;
  justify-content: flex-start; /* Align button to left to match text alignment */
  width: 100%; /* Ensure full width */
}

/* Proof line - trust contract above bullets */
.ts-hero-proof-line {
  margin: 0; /* Remove bottom margin since benefits list is removed */
  font-size: 0.8125rem; /* 13px */
  line-height: 1.5;
  color: var(--vs-text-200);
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ts-hero-cta-primary-mobile,
.ts-hero-mobile-how {
  display: none;
}

.ts-hero-benefits {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.ts-btn-primary.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

/* Styling the 'Works With' section to match Get Extension */
.works-with-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the content */
  gap: 12px;
  margin-top: 16px;
  font-family: inherit;
  font-size: 11px; /* Small font to prevent wrapping */
  color: #64ffda; /* Extension green */
  width: 100%;
  align-self: center; /* Center align with card container */
  white-space: nowrap; /* Prevent wrapping */
}

/* Align supported models to left when used in the hero copy column */
.ts-hero-copy .works-with-container {
  justify-content: flex-start;
  align-self: flex-start;
  margin-top: 10px;
}

/* Right-column placement under the signal footer */
.works-with-right {
  margin-top: 8px;
  align-self: center;
  justify-content: center;
}

.works-with-container .ts-trust-label {
  color: #64ffda;
}

.works-with-item {
  color: #64ffda; /* Matches the Get Extension cyan */
  font-weight: 500;
  text-transform: none;
  padding: 0;
  border: none; /* Removes the button/box look */
  transition: color 0.3s ease;
  font-size: 11px; /* Match container font size */
  white-space: nowrap; /* Prevent wrapping */
}

.works-with-item small {
  font-size: 10px; /* Slightly smaller for parenthetical text */
}

.works-with-item:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Hero extension link - styled like works-with section, inline with button */
.ts-hero-ctas .extension-link-green {
  color: #64ffda; /* Matches works-with-item cyan/green */
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem; /* 14px - slightly larger than works-with items */
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-flex; /* Inline with button */
  align-items: center;
}

.extension-link-green {
  color: #64ffda; /* Matches works-with-item cyan/green */
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem; /* 14px - slightly larger than works-with items */
  transition: color 0.3s ease;
  white-space: nowrap;
}

.ts-hero-ctas .extension-link-green:hover {
  color: #ffffff;
  text-decoration: underline;
}

.works-with-item small {
  font-size: 0.625rem; /* 10px - slightly smaller for attribution */
  opacity: 0.7; /* Slightly muted for hierarchy */
  margin-left: 3px; /* Small space between product name and company */
  font-weight: 400; /* Lighter weight for attribution */
}

/* Legacy support - keep ts-hero-trust for backward compatibility */
.ts-hero-trust {
  display: flex;
  flex-direction: row; /* Changed to row - label to left of chips */
  align-items: center; /* Vertically align label and chips */
  gap: 10px; /* Space between label and chips */
  margin-top: 8px; /* Tighter top margin */
}
.ts-trust-label {
  font-size: 0.75rem; /* 12px - smaller label */
  color: #9ca3af;
  opacity: 0.7;
  white-space: nowrap; /* Prevent label from wrapping */
  flex-shrink: 0; /* Don't shrink the label */
}
.ts-trust-logos {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping - keep in single row */
  gap: 6px; /* Tighter gap */
  font-size: 0.6875rem; /* 11px - smaller */
  color: #cbd5e1;
  align-items: center; /* Align chips vertically */
}
.ts-trust-logos span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px; /* Smaller pills - reduced from 6px 10px */
  border-radius: 999px;
  font-size: 0.6875rem; /* 11px - smaller text */
  background: rgba(15, 23, 42, 0.01); /* 99% transparent (0.01 opacity) */
  border: 1px solid rgba(148, 163, 184, 0.3);
  white-space: nowrap; /* Prevent text wrapping inside chips */
  line-height: 1.2; /* Tighter line height to prevent stacking */
  color: #cbd5e1; /* Explicit color for all bubbles */
}

.ts-trust-logos span small {
  font-size: 0.625rem; /* 10px - slightly smaller for attribution */
  opacity: 0.7; /* Slightly muted for hierarchy */
  margin-left: 3px; /* Small space between product name and company */
  font-weight: 400; /* Lighter weight for attribution */
}

.ts-trust-logos .ts-coming-soon {
  /* Cursor text matches Gemini and others exactly - no special styling */
  opacity: 1;
  font-style: normal;
  color: #cbd5e1; /* Same color as all other bubbles */
  font-size: 0.6875rem; /* Same size as all other bubbles */
}

.ts-coming-soon-text {
  opacity: 0.7; /* Slightly muted for "coming soon" text */
  font-style: italic;
  font-size: 0.6875rem; /* Same size as Cursor */
  margin-left: 4px; /* Small space between Cursor and coming soon */
  display: inline; /* Keep inline with Cursor text */
  color: #cbd5e1; /* Same color as Cursor */
}

.ts-coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  border-radius: 3px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  line-height: 1.2;
}

/* Hero visual - Proof Card */
.ts-hero-visual {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  z-index: 1;
  height: 100%; /* Take full height of grid cell */
  max-height: none;
  overflow: visible;
}

/* Proof Card Styling */
.ts-hero-card {
  width: min(437px, 100%); /* Reduced by 5% from 460px */
  max-width: 437px; /* Reduced by 5% from 460px */
  max-height: calc(100% - 20px); /* Constrain card to fit within hero container */
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  overflow-y: auto; /* Allow scrolling if content is too tall */
  box-sizing: border-box; /* Include padding in height */
}

.ts-hero-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
}

.ts-hero-card-meta {
  opacity: 0.75;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.ts-pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.25);
  font-size: 0.75rem;
  color: #5eead4;
}

.ts-hero-signal {
  margin: 12px 0;
}

.ts-signal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 10px 0;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.ts-signal-row span:first-child {
  color: #e5e7eb;
}

.ts-signal-row span:last-child {
  color: #cbd5e1;
  font-weight: 600;
}

.ts-signal-bar {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.ts-signal-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(120,200,255,0.65);
}

.ts-hero-evidence {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ts-evidence-title {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.ts-evidence-chip {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e5e7eb;
}

.ts-hero-card-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.85;
  color: #cbd5e1;
}

.ts-hero-card-link {
  white-space: nowrap;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.ts-hero-card-link:hover {
  color: #93c5fd;
}

/* Hero bullets list - micro-bullets */
.ts-hero-bullets {
  margin: 0 0 12px 0; /* Tighter spacing - no top margin since proof line is above */
  padding: 0; /* Remove left padding for flex layout */
  list-style: none; /* Remove default list styling */
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px; /* Horizontal and vertical gap for compact row */
  opacity: 0.92;
  color: #cbd5e1;
}

.ts-hero-bullets li {
  position: relative;
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
  font-size: 0.8125rem; /* 13px - micro-bullets */
  line-height: 1.4; /* Slightly looser for readability */
  max-width: 52ch; /* Cap length per bullet */
}

.ts-hero-bullets li::before {
  content: "•";
  margin-right: 8px;
  opacity: 0.65;
  color: #60a5fa;
}

/* Scrolling text stream strip – center the content vertically */
.ts-text-stream-strip {
  position: relative;
  padding: 0.9rem var(--page-gutter); /* Restored to original proportional padding */
  margin-top: -0.25rem;
  overflow: hidden;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.96)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;      /* center track vertically */
}

/* Keep the glow but tuck it closer to the center line */
.ts-text-stream-strip::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 12%;
  right: 12%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  opacity: 0.6;
  filter: blur(10px);
  pointer-events: none;
}

/* Horizontal scrolling track - slowed down 2x */
.ts-text-stream-track {
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: ts-text-stream-marquee 70s linear infinite;
}

/* Items */
.ts-text-stream-item {
  font-size: clamp(1rem, 1.1vw, 1.25rem); /* 16px - 20px: clamp(16px, 1.1vw, 20px) */
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  opacity: 0.9;
}

/* Soft, "AI-ish" gradient text */
.ts-text-stream-item:nth-child(odd) {
  background: linear-gradient(90deg, #7dd3fc, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ts-text-stream-item:nth-child(even) {
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Marquee animation - slowed down 2x */
@keyframes ts-text-stream-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Value strip */
.ts-value-strip {
  max-width: var(--page-max-width);
  margin: 1.5rem auto 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}
.ts-value-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: #0f172a;
}
.ts-value-item p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Section Component System - Consistent with Hero Padding */
.ts-section {
  position: relative;
  width: 100%; /* Full width container */
  padding-top: clamp(3rem, 5vw, 4.5rem); /* Match hero vertical padding */
  padding-bottom: clamp(3rem, 5vw, 4.5rem); /* Match hero vertical padding */
  /* Scroll margin will be set dynamically by homepage-navigation.js to match header height */
  /* Fallback: 66px (header height) for strict top alignment */
  scroll-margin-top: 66px;
  box-sizing: border-box;
}

/* Background color blocks that align with content sections */
.ts-section-alt {
  position: relative;
}

/* Create aligned background block that mirrors content width */
.ts-section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: calc(var(--page-max-width) + 2 * var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))));
  height: 100%;
  background: #f3f4f6;
  z-index: 0;
  background-image: none;
}

/* Regular sections - transparent grid background on white */
.ts-section:not(.ts-section-alt)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: calc(var(--page-max-width) + 2 * var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))));
  height: 100%;
  z-index: 0;
  background-image: none;
}

/* Ensure content is above background blocks */
.ts-section > * {
  position: relative;
  z-index: 1;
}

/* Content container - constrained to max-width with padding */
.ts-section > * {
  max-width: var(--page-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px)));
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px)));
  box-sizing: border-box;
}
.ts-section-header {
  max-width: 700px;
  margin: 0 auto clamp(2rem, 4vw, 3rem); /* Tight, responsive bottom margin */
  text-align: center;
}
.ts-section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}
.ts-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Steps */
/* How it Works Section - New Layout */
.ts-how-it-works-container {
  /* Remove max-width and margin - handled by parent .ts-section > * rule */
  width: 100%;
  padding: 0; /* Padding handled by parent */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns: text on left, animation on right */
  gap: clamp(2rem, 4vw, 3rem); /* Responsive gap */
  align-items: start; /* Align to top */
}

.ts-how-it-works-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem); /* Gap between text blocks */
}

.ts-how-it-works-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Use same font styling as section header (bottom section) */
.ts-how-it-works-text-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.ts-how-it-works-text-block p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.ts-how-it-works-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.ts-how-it-works-visual .signal-hero {
  max-width: 100%;
  width: 100%;
}

.ts-steps {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* Single row with 4 containers */
  gap: 1.25rem; /* Slightly tighter gap */
}
.ts-step {
  padding: 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: auto; /* Allow height to adjust to content */
  height: 100%; /* Fill available height in grid */
}
.ts-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.ts-step h3 {
  margin: 0 0 0.75rem; /* Slightly more space for text below */
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  flex-shrink: 0; /* Don't shrink header */
}
.ts-step p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1; /* Allow text to expand and fill available space */
}

/* Graph panel */
.ts-graph-panel {
  max-width: 980px;
  margin: 0 auto;
}
.ts-graph-card {
  border-radius: 18px;
  background: #0b1220;
  color: #e5e7eb;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.6);
}
.ts-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ts-pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.25);
  font-size: 0.75rem;
  color: #5eead4;
}
.ts-graph-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}
.ts-graph-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
}
.ts-graph-radar {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.ts-graph-ring {
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.ts-graph-ring-2 {
  inset: 20%;
}
.ts-graph-ring-3 {
  inset: 34%;
}
.ts-graph-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 100%;
  background: rgba(148, 163, 184, 0.35);
  transform-origin: center;
}
.ts-graph-axis-1 {
  transform: translate(-50%, -50%) rotate(0deg);
}
.ts-graph-axis-2 {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ts-graph-axis-3 {
  transform: translate(-50%, -50%) rotate(90deg);
}
.ts-graph-axis-4 {
  transform: translate(-50%, -50%) rotate(135deg);
}
.ts-graph-shape {
  position: absolute;
  inset: 20%;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.4));
  opacity: 0.9;
  filter: blur(2px);
}
.ts-graph-legend {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.ts-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #e5e7eb;
}
.ts-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  flex-shrink: 0;
}
.ts-graph-footer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* UI strip */
.ts-ui-strip {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.ts-ui-card {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.ts-ui-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #0f172a;
}
.ts-ui-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.ts-ui-link {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.ts-ui-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

/* Split personas */
.ts-split {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.ts-split-card {
  padding: 1.5rem 1.6rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}
.ts-split-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
}

/* Role funnel boxes */
.ts-role-cta-grid {
  max-width: 860px;
  margin: 1.5rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ts-role-cta {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-role-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(100, 255, 218, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.ts-role-cta-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.ts-role-cta-link {
  font-size: 0.8rem;
  color: #64ffda;
  font-weight: 600;
}
.ts-split-card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
}
.ts-split-card ul li {
  margin-bottom: 0.5rem;
}

/* FAQ */
.ts-faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.ts-faq-item {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.5rem;
  transition: border-color 0.2s;
}
.ts-faq-item:hover {
  border-color: #d1d5db;
}
.ts-faq-q {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
}
.ts-faq-toggle {
  font-size: 1.2rem;
  color: #9ca3af;
  align-self: start;
  transition: transform 0.2s;
  line-height: 1;
}
.ts-faq-a {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #6b7280;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
  margin-top: 0;
  line-height: 1.6;
}
.ts-faq-item.ts-faq-open {
  border-color: #2563eb;
}
.ts-faq-item.ts-faq-open .ts-faq-a {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}
.ts-faq-item.ts-faq-open .ts-faq-toggle {
  transform: rotate(45deg);
  color: #2563eb;
}

/* CTA strip - Component System */
.ts-cta-strip {
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto;
  padding-top: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-bottom: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  box-sizing: border-box;
}
.ts-cta-inner {
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); /* Tight, responsive padding */
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #1e293b);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}
.ts-cta-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e7eb;
}
.ts-cta-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
  line-height: 1.5;
}

/* Footer - Component System */
.ts-footer {
  max-width: 100%; /* Footer can be full width */
  width: 100%;
  margin-top: clamp(4rem, 6vw, 5rem); /* Consistent spacing above footer */
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  background: radial-gradient(circle at top, rgba(7, 12, 24, 0.98), rgba(2, 6, 23, 0.98));
  color: #9ca3af;
  border-top: 1px solid rgba(127, 215, 255, 0.12);
}
.ts-footer-top {
  max-width: var(--page-max-width);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.ts-footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.ts-footer-brand .ts-brand-mark {
  /* Ensure brand mark is visible on dark footer background */
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(127, 215, 255, 0.35));
}
.ts-footer-brand .ts-brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.ts-footer-tagline {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.62);
  margin-top: 0.25rem;
}
.ts-footer-links {
  display: flex;
  gap: 2.5rem;
}
.ts-footer-links h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 600;
}
.ts-footer-links a {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.ts-footer-links a:hover {
  color: #e5e7eb;
}
.ts-footer-bottom {
  max-width: var(--page-max-width);
  margin: 0 auto;
  font-size: 0.75rem;
  color: #6b7280;
  border-top: 1px solid rgba(127, 215, 255, 0.12);
  padding-top: 0.75rem;
  text-align: center;
}

/* Hero Clamshell Component - Collapsible Hero Section */
.ts-hero-clamshell {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-hero-clamshell-toggle {
  position: absolute;
  top: 1rem;
  right: var(--page-gutter, clamp(18px, 4vw, 48px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.ts-hero-clamshell-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
  color: #f9fafb;
}

.ts-clamshell-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.ts-hero-clamshell-collapsed .ts-hero-inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}

.ts-hero-clamshell-collapsed .ts-hero-community {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
}

/* Community Message Section */
.ts-hero-community {
  position: relative;
  z-index: 2;
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto clamp(1.5rem, 2vw, 2rem);
  padding: clamp(1rem, 2vw, 1.5rem) var(--page-gutter, clamp(18px, 4vw, 48px));
  background: linear-gradient(135deg, rgba(127, 215, 255, 0.1) 0%, rgba(79, 179, 200, 0.08) 100%);
  border: 1px solid rgba(127, 215, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-hero-community-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(127, 215, 255, 0.15);
  border: 1px solid rgba(127, 215, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.ts-community-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(127, 215, 255, 0.5));
}

.ts-community-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7fd7ff;
  letter-spacing: 0.02em;
}

.ts-hero-community-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.ts-hero-community-message {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid rgba(127, 215, 255, 0.5);
  border-radius: 8px;
  margin-top: 0.75rem;
}

.ts-hero-community-message p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0;
  font-style: italic;
  text-align: center;
}

.ts-hero-community-message p::before {
  content: '"';
  font-size: 1.2em;
  color: rgba(127, 215, 255, 0.6);
  margin-right: 0.25rem;
}

.ts-hero-community-message p::after {
  content: '"';
  font-size: 1.2em;
  color: rgba(127, 215, 255, 0.6);
  margin-left: 0.25rem;
}

@media (max-width: 640px) {
  .ts-hero-clamshell-toggle {
    top: 0.75rem;
    right: clamp(1rem, 4vw, 1.5rem);
    padding: 0.4rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  .ts-hero-community {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
  }
  
  .ts-hero-community-message {
    padding: 0.75rem;
  }
  
  .ts-hero-community-message p {
    font-size: 0.8125rem;
  }
}

/* Signup Section (integrated into redesign) */
/* Signup Section - Component System */
.ts-signup-section {
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto;
  /* Scroll margin will be set dynamically by homepage-navigation.js to match header height */
  /* Fallback: 66px (header height) for strict top alignment */
  scroll-margin-top: 66px;
  padding-top: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-bottom: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  /* Scroll margin will be set dynamically by homepage-navigation.js to match header height */
  /* Fallback: 66px (header height) for strict top alignment */
  scroll-margin-top: 66px;
}
.ts-signup-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
}
.ts-signup-cta {
  text-align: center;
}
.ts-signup-cta .ts-signup-subtitle {
  margin-bottom: 1.75rem;
}
.ts-signup-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ts-signup-card h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0f172a;
}
.ts-signup-subtitle {
  text-align: center;
  color: #6b7280;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.ts-signup-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ts-signup-steps {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ts-step {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #64748b;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid transparent;
}
.ts-step.is-active {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
.signup-message {
  margin-top: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  color: #1e293b;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.signup-step {
  display: none;
}
.signup-step.is-active {
  display: block;
}

.signup-step-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.signup-step-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  color: #0f172a;
}
.signup-step-header p {
  margin: 0;
  color: #6b7280;
}

/* Account Type Selector */
.account-type-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.account-type-btn {
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.account-type-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}
.account-type-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
}
.account-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.account-type-btn h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}
.account-type-btn p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Form Styles (compatible with existing) */
.ts-signup-card .signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ts-signup-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ts-signup-card .form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}
.ts-signup-card .form-group input[type="text"],
.ts-signup-card .form-group input[type="email"],
.ts-signup-card .form-group input[type="password"] {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ts-signup-card .form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ts-signup-card .form-help {
  font-size: 0.8rem;
  color: #6b7280;
}
.ts-signup-card .checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}
.ts-signup-card .checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
}
.ts-signup-card .checkbox-group label {
  font-size: 0.85rem;
  color: #4b5563;
  cursor: pointer;
}
.ts-signup-card .checkbox-group label a {
  color: #2563eb;
  text-decoration: none;
}
.ts-signup-card .checkbox-group label a:hover {
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}
.login-link a {
  color: #2563eb;
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

.twofa-setup-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.twofa-setup-grid img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  padding: 8px;
}
.twofa-setup-meta .form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.twofa-secret-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.twofa-secret-row code {
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: #0f172a;
}
.signup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.signup-backup {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  padding: 1rem;
}
.signup-backup ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.signup-backup li {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  /* -----------------------------
     MOBILE NAV: prevent "phantom height"
     ----------------------------- */
  .ts-nav {
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* critical: don't let hidden menu content add height */
    flex-wrap: nowrap;
  }

  /* Show burger, hide inline links by default */
  .ts-nav-toggle {
    display: block;
  }

  /* Default collapsed state: remove from layout entirely */
  .ts-nav-links,
  .ts-nav-right {
    display: none !important;
  }

  /* Open state handled by new overlay drawer CSS below */
  /* Hero responsive - stack on mobile */
  .ts-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    /* Increased padding for mobile to make it pop more */
    padding-top: clamp(3.5rem, 6vw, 4.5rem); /* 56px - 72px: larger for mobile */
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem); /* 40px - 56px: larger for mobile */
    padding-right: var(--page-gutter, clamp(18px, 4vw, 48px)); /* Standard right padding */
    padding-left: clamp(1.5rem, 5vw, 2rem); /* Increased left padding: 24px - 32px */
    gap: 24px; /* Slightly larger gap for mobile */
  }
  .ts-hero-visual-col { order: 0; }
  .ts-hero-copy-col { order: 1; }
  .ts-hero-visual { justify-content: flex-start; }
  .ts-hero-card { width: 100%; max-width: 494px; } /* Reduced by 5% from 520px */
  .ts-hero-copy {
    padding: 0; /* Remove extra padding - hero-inner already has padding */
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }
  .ts-hero-copy h1 {
    max-width: 18ch;
  }
  .ts-hero-copy p {
    max-width: 44ch;
  }
  
  /* Text stream strip - reduce noise on mobile */
  .ts-text-stream-strip { opacity: 0.75; }
  .ts-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 1.25rem;
    padding: 1.25rem;
  }
  .ts-section,
  .ts-cta-strip,
  .ts-footer,
  .ts-signup-section {
    padding-inline: var(--page-gutter, clamp(18px, 4vw, 48px)); /* Match standard page gutter */
  }
  .ts-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on tablet */
  }
  .ts-graph-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-ui-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ts-role-cta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-footer-top {
    flex-direction: column;
  }
  .ts-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .twofa-setup-grid {
    grid-template-columns: 1fr;
  }
  .signup-actions {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .ts-hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding: clamp(14px, 2.5vw, 34px) 16px; /* Further reduced padding */
  }
  .ts-hero-card { max-width: 399px; } /* Reduced by 5% from 420px */
}

@media (max-width: 900px) {
  /* Adjust grid alignment for tablet */
  .ts-section {
    background-position: 
      var(--page-gutter, clamp(18px, 4vw, 48px)) 
      clamp(2.5rem, 5vw, 3.5rem);
  }
  
  .ts-section-alt {
    background-position: 
      var(--page-gutter, clamp(18px, 4vw, 48px)) 
      clamp(2.5rem, 5vw, 3.5rem);
  }
  
  /* Hero - Keep animation on right side even on tablet */
  .ts-hero-inner {
    grid-template-columns: 1fr 1fr; /* Keep two columns - animation stays on right */
    min-height: auto;
    padding-top: clamp(4.5rem, 5vw, 5.5rem); /* ~72px */
    padding-bottom: clamp(3rem, 3.5vw, 3.5rem); /* ~52px */
    gap: clamp(1rem, 2vw, 1.5rem); /* Responsive gap */
  }
  .ts-hero-copy-col { 
    order: 0; /* Text stays on left */
    justify-self: start; /* Align to left */
  }
  .ts-hero-visual-col { 
    order: 1; /* Animation stays on right */
    justify-self: end; /* Align to right */
  }
  
  /* How it Works - Stack on tablet */
  .ts-how-it-works-container {
    grid-template-columns: 1fr; /* Stack vertically on tablet */
    gap: clamp(2rem, 4vw, 2.5rem);
  }
  
  .ts-how-it-works-visual {
    order: -1; /* Show animation first on tablet/mobile */
  }
  .ts-hero-visual { justify-content: flex-start; }
  .ts-hero-card { width: 100%; max-width: 494px; } /* Reduced by 5% from 520px */
  
  .ts-hero-title {
    font-size: clamp(calc(2.16628125rem + 6px), calc(8.148vw + 6px), calc(2.800875rem + 6px)); /* Increased by 5% from 2.063125rem/7.76vw/2.6675rem */
  }
  
  .signal-hero {
    max-width: 100%;
  }
  
  .signal-stack {
    padding: 14px; /* Further reduced for mobile */
  }
  
  /* Text stream strip - reduce noise */
  .ts-text-stream-strip { opacity: 0.75; }
}

@media (max-width: 640px) {
  .ts-nav {
    padding-inline: 1rem;
  }
  .ts-steps {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  /* How it Works - Mobile adjustments */
  .ts-how-it-works-container {
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    gap: clamp(1.5rem, 4vw, 2rem);
  }
  
  .ts-how-it-works-content {
    gap: clamp(1.25rem, 3vw, 1.5rem);
  }
  
  .ts-how-it-works-visual .signal-hero {
    max-width: 100%;
  }
  .ts-hero-inner {
    /* Mobile hero - single column, no animation */
    grid-template-columns: 1fr !important; /* Single column on mobile */
    padding-top: clamp(2.5rem, 6vw, 3.5rem); /* 40px - 56px: increased for more pop */
    padding-bottom: clamp(2rem, 5vw, 3rem); /* 32px - 48px: increased */
    padding-left: clamp(1.5rem, 5vw, 2rem) !important; /* 24px - 32px: increased left padding */
    padding-right: clamp(1.5rem, 5vw, 2rem) !important; /* Match left padding */
    gap: 0 !important; /* No gap needed with single column */
  }
  
  /* Hide animation on mobile */
  .ts-hero-visual-col {
    display: none !important; /* Hide on mobile */
  }
  
  .ts-hero-visual {
    display: none !important; /* Hide on mobile */
  }
  
  .ts-hero-copy-col {
    order: 0 !important; /* Text stays on left */
    justify-self: start !important; /* Align to left */
  }
  
  /* Hero skill visualization mobile adjustments - hide on mobile */
  .hero-skill-visualization {
    display: none !important;
  }
  
  /* Hide the entire visual column on mobile */
  .ts-hero-visual-col {
    display: none !important;
  }
  
  /* Make persona container hidden on mobile */
  .persona-container {
    display: none !important;
  }
  
  .visualization-grid {
    grid-template-columns: 1fr !important; /* Stack graphs on mobile */
    gap: 0.75rem !important;
  }
  
  .skill-graph-container,
  .skill-radar-container {
    height: 130px !important; /* Fixed height for each on mobile */
  }
  
  /* All persona/visualization elements hidden on mobile */
  .persona-container,
  .visualization-grid,
  .skill-graph-container,
  .skill-radar-container,
  .persona-indicators {
    display: none !important;
  }
  
  .ts-hero-copy {
    padding: 0; /* Remove extra padding - hero-inner already has padding */
    gap: 8px; /* Tighter gap between elements */
    align-items: center !important; /* Center align on mobile */
    text-align: center !important; /* Center align text on mobile */
  }
  .ts-hero-title {
    font-size: clamp(calc(2.22033rem + 6px), calc(7.771155vw + 6px), calc(3.05295375rem + 6px)); /* Increased by 9% from 2.037rem/7.1295vw/2.800875rem */
    line-height: 1.1; /* Tighter line height */
    margin-bottom: 12px; /* Increased margin for better spacing */
    max-width: 100%; /* Full width on mobile */
    text-wrap: balance; /* Smoother line breaks on narrow widths */
    text-align: center; /* Center align headline */
  }
  .ts-hero-subtitle {
    font-size: 0.95484375rem; /* Increased by 5% from 0.909375rem */
    line-height: 1.5; /* Better line height for mobile */
    margin-bottom: 14px; /* Consistent spacing */
    max-width: 100%; /* Full width on mobile */
    text-wrap: balance;
    text-align: center; /* Center align subtitle */
  }
  .ts-hero-ctas {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    margin-bottom: 12px; /* Consistent spacing */
    align-items: center; /* Center align buttons */
    justify-content: center; /* Center align buttons */
    width: 100%; /* Full width container */
  }
  .home-hero .ts-hero-ctas .extension-link-green {
    display: none !important;
  }
  .home-hero .ts-hero-ctas .ts-hero-cta-primary-desktop {
    display: none !important;
  }
  .home-hero .ts-hero-ctas .ts-hero-cta-primary-mobile {
    display: inline-flex !important;
  }
  .ts-btn-primary,
  .ts-btn-ghost {
    width: 100%; /* Full width buttons when stacked */
    max-width: 280px; /* Max width for better appearance */
    justify-content: center;
    padding: 12px 20px; /* Standard padding for stacked buttons */
    font-size: 0.875rem; /* 14px: readable on mobile */
    white-space: nowrap; /* Keep text on one line */
    text-wrap: balance;
    line-height: 1.2;
  }
  .ts-hero-proof-line {
    display: none;
  }
  .ts-hero-mobile-how {
    display: block;
    font-size: 0.75rem; /* 12px: slightly smaller on mobile */
    margin-bottom: 10px; /* Tighter spacing */
    line-height: 1.5; /* Better readability */
    text-align: center; /* Center align proof line */
    color: var(--vs-text-200);
    opacity: 0.95;
  }
  .ts-hero-bullets {
    margin-bottom: 12px; /* Consistent spacing */
    gap: 6px 12px; /* Tighter gaps */
  }
  .ts-hero-bullets li {
    font-size: 0.75rem; /* 12px: readable on mobile */
  }
  .ts-hero-trust {
    margin-top: 10px; /* Tighter spacing */
    gap: 8px; /* Tighter gap between label and chips */
    justify-content: center; /* Center align trust section */
  }
  .ts-trust-label {
    font-size: 0.6875rem; /* 11px: smaller label */
  }
  .ts-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Tighter gap between chips */
  }
  .ts-trust-logos span {
    padding: 4px 8px; /* Consistent with desktop but touch-friendly */
    font-size: 0.6875rem; /* 11px: readable on mobile */
  }
  .ts-trust-logos span small {
    font-size: 0.5625rem; /* 9px - slightly smaller on mobile */
    margin-left: 2px; /* Tighter spacing on mobile */
  }
  .ts-evidence-chip {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Keep text stream strip visible on mobile - maintain 16-20px range */
  .ts-text-stream-strip { 
    padding: 0.75rem 1rem; /* Tighter padding on mobile */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .ts-text-stream-item {
    font-size: clamp(0.875rem, 2vw, 1rem); /* 14px - 16px: smaller on mobile */
  }
  .ts-text-stream-track {
    gap: 1.5rem; /* Reduced gap between items for mobile */
  }
  
  /* Section spacing cleanup */
  .ts-section {
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    /* Adjust grid alignment for mobile padding */
    background-position: 
      clamp(1rem, 4vw, 1.5rem) 
      clamp(2.5rem, 6vw, 3.5rem);
  }
  
  .ts-section-alt {
    /* Adjust grid alignment for mobile padding */
    background-position: 
      clamp(1rem, 4vw, 1.5rem) 
      clamp(2.5rem, 6vw, 3.5rem);
  }
  
  .ts-section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem); /* Better mobile heading size */
    margin-bottom: 0.75rem;
  }
  
  .ts-section-header p {
    font-size: 0.9375rem; /* 15px: readable on mobile */
  }
}

@media (max-width: 380px) {
  .ts-hero-title { line-height: 1.05; }
}
  .ts-value-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-ui-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .ts-text-stream-strip {
    padding: 0.8rem 1rem; /* Maintain proportional padding */
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .ts-text-stream-item {
    font-size: clamp(1rem, 1.1vw, 1.25rem); /* 16px - 20px maintained on small screens */
  }
  .ts-text-stream-track {
    gap: 1.5rem; /* Tighter gap for very small screens */
  }
}


/* ============================
   MOBILE NAV DRAWER (HOME + APP)
   - prevents header from reserving space
   - fixes tap/click issues via z-index & pointer-events
   ============================ */

@media (max-width: 960px) {
  /* Mobile header styles now in unified-header.css - removed to prevent conflicts */
}

/* Body scroll lock when drawer is open */
@media (max-width: 960px) {
  body.ts-nav-drawer-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ================================
   Aurora Theme Overrides (Login Palette)
   ================================ */
.ts-body {
  font-family: var(--vs-font-sans);
  color: var(--vs-text-100);
  background: var(--vs-bg-950);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(110, 231, 249, 0.08), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(76, 201, 240, 0.06), transparent 50%),
    linear-gradient(180deg, var(--vs-bg-950) 0%, var(--vs-bg-900) 100%);
  position: relative;
}

.ts-body::before {
  content: "";
  position: fixed;
  inset: -20% -10% 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(127, 215, 255, 0.12), transparent 48%),
    radial-gradient(circle at 88% 18%, rgba(124, 92, 255, 0.12), transparent 46%),
    radial-gradient(circle at 70% 80%, rgba(64, 200, 184, 0.08), transparent 55%);
  filter: blur(24px);
  opacity: 0.9;
}

.ts-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.6) 70%);
}

.ts-btn-primary,
.ts-nav-cta {
  background: linear-gradient(180deg, #6ee7f9 0%, #4cc9f0 100%);
  color: #0b1220;
  box-shadow: 0 10px 30px rgba(99, 210, 255, 0.25);
}

.ts-btn-primary:hover,
.ts-nav-cta:hover {
  filter: brightness(1.08);
}

.ts-btn-ghost,
.ts-btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(16, 25, 46, 0.5);
  color: var(--vs-text-100);
  backdrop-filter: blur(12px);
}

.ts-btn-ghost:hover,
.ts-btn-secondary:hover {
  background: rgba(16, 25, 46, 0.7);
  border-color: rgba(127, 215, 255, 0.4);
}

.ts-hero {
  background: transparent;
  color: var(--vs-text-100);
}

.ts-hero-title {
  color: var(--vs-text-100);
}

.ts-hero-subtitle,
.ts-hero-bullets,
.ts-hero-card-meta,
.ts-hero-card-foot {
  color: var(--vs-text-200);
}

.ts-hero-bullets li::before {
  color: var(--vs-signal-500);
}

.ts-trust-label,
.ts-graph-meta,
.ts-graph-footer {
  color: var(--vs-text-300);
}

.ts-trust-logos span {
  background: rgba(16, 25, 46, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--vs-text-100);
}

.ts-hero-card,
.ts-value-strip,
.ts-step,
.ts-ui-card,
.ts-split-card,
.ts-faq-item,
.ts-signup-card,
.ts-cta-inner,
.ts-graph-card {
  background: rgba(16, 25, 46, 0.6);
  border: 1px solid rgba(169, 179, 199, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.ts-section-alt {
  background: rgba(7, 12, 24, 0.65);
}

.ts-section-header h2,
.ts-value-item h3,
.ts-step h3,
.ts-ui-card h3,
.ts-split-card h3,
.ts-faq-q,
.ts-signup-card h2,
.signup-step-header h3,
.account-type-btn h3 {
  color: var(--vs-text-100);
}

.ts-section-header p,
.ts-value-item p,
.ts-step p,
.ts-ui-card p,
.ts-split-card ul,
.ts-faq-a,
.ts-signup-subtitle,
.signup-step-header p,
.account-type-btn p,
.login-link,
.ts-signup-card .form-group label,
.ts-signup-card .form-help,
.ts-signup-card .checkbox-group label {
  color: var(--vs-text-200);
}

.ts-faq-toggle {
  color: var(--vs-text-300);
}

.ts-faq-item:hover {
  border-color: rgba(127, 215, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ts-faq-item.ts-faq-open {
  border-color: rgba(127, 215, 255, 0.5);
}

.ts-faq-item.ts-faq-open .ts-faq-toggle {
  color: var(--vs-signal-500);
}

.ts-hero-card-link,
.ts-signup-card .checkbox-group label a,
.login-link a {
  color: var(--vs-signal-500);
}

.ts-hero-card-link:hover,
.ts-signup-card .checkbox-group label a:hover,
.login-link a:hover {
  color: #b5e9ff;
}

.ts-signup-section {
  background: transparent;
}

.signup-message {
  background: rgba(127, 215, 255, 0.12);
  color: var(--vs-text-100);
  border: 1px solid rgba(127, 215, 255, 0.2);
}

.account-type-btn {
  border: 1px solid rgba(169, 179, 199, 0.25);
  background: rgba(16, 25, 46, 0.6);
}

.account-type-btn:hover {
  border-color: rgba(127, 215, 255, 0.35);
  background: rgba(16, 25, 46, 0.75);
}

.account-type-btn.active {
  border-color: rgba(127, 215, 255, 0.5);
  background: rgba(127, 215, 255, 0.15);
}

.ts-signup-card .form-group input[type="text"],
.ts-signup-card .form-group input[type="email"],
.ts-signup-card .form-group input[type="password"] {
  border: 1px solid rgba(169, 179, 199, 0.25);
}

.ts-signup-card .form-group input:focus {
  border-color: rgba(127, 215, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(127, 215, 255, 0.18);
}

.signup-backup {
  background: rgba(15, 23, 42, 0.4);
}

.signup-backup li {
  background: rgba(255, 255, 255, 0.08);
}

/* ================================
   Grey Theme Overrides (Marketing)
   ================================ */
.ts-body {
  color: #0f172a;
  background: linear-gradient(180deg, #eef1f5 0%, #f7f8fb 100%);
}

.ts-body::before,
.ts-body::after {
  content: none;
}

.ts-hero {
  background: radial-gradient(circle at 20% 20%, rgba(74, 140, 255, 0.35), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.35), transparent 50%),
    linear-gradient(135deg, #0b1220 0%, #101c32 55%, #0b1220 100%);
  color: #f8fafc;
}

.ts-hero::before,
.ts-hero::after {
  opacity: 0.35;
}

.ts-btn-ghost,
.ts-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.ts-btn-ghost:hover,
.ts-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.25);
}

.ts-hero-title {
  color: #f8fafc;
}

.ts-hero-subtitle,
.ts-hero-bullets,
.ts-hero-card-meta,
.ts-hero-card-foot {
  color: #cbd5f5;
}

.ts-section-header p,
.ts-value-item p,
.ts-step p,
.ts-ui-card p,
.ts-split-card ul,
.ts-faq-a,
.ts-signup-subtitle,
.signup-step-header p,
.login-link,
.ts-signup-card .form-group label,
.ts-signup-card .form-help,
.ts-signup-card .checkbox-group label,
.ts-graph-footer p {
  color: #374151;
}

.ts-hero-bullets li::before {
  color: #7fd7ff;
}

.ts-trust-label,
.ts-graph-meta,
.ts-graph-footer,
.ts-faq-toggle {
  color: #64748b;
}

.ts-trust-logos span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.ts-ui-card,
.ts-split-card,
.ts-faq-item,
.ts-signup-card,
.ts-cta-inner {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
  border-radius: 20px;
}

.ts-step,
.ts-graph-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.ts-graph-card {
  color: #0f172a;
}

.ts-section-alt {
  background: #e4e9f0;
}

.ts-text-stream-strip {
  background: linear-gradient(90deg, #0b1220, #111a2c, #0b1220);
  border-top: 1px solid rgba(127, 215, 255, 0.25);
  border-bottom: 1px solid rgba(127, 215, 255, 0.2);
}

.ts-text-stream-item {
  opacity: 0.9;
}

.ts-section-header h2,
.ts-step h3,
.ts-ui-card h3,
.ts-split-card h3,
.ts-faq-q,
.ts-signup-card h2,
.signup-step-header h3,
.account-type-btn h3 {
  color: #0f172a;
}

.ts-section-header p {
  font-size: 1.05rem;
}

.ts-step p,
.ts-ui-card p,
.ts-split-card ul,
.ts-faq-a,
.ts-signup-subtitle,
.ts-graph-footer p {
  font-size: 1rem;
}

.ts-hero-subtitle {
  font-size: 1.15rem;
}

.ts-faq-item:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.ts-faq-item.ts-faq-open {
  border-color: rgba(37, 99, 235, 0.35);
}

.ts-faq-item.ts-faq-open .ts-faq-toggle {
  color: #2563eb;
}

.ts-hero-card-link,
.ts-signup-card .checkbox-group label a,
.login-link a {
  color: #2563eb;
}

.ts-hero-card-link:hover,
.ts-signup-card .checkbox-group label a:hover,
.login-link a:hover {
  color: #1d4ed8;
}

.signup-message {
  background: rgba(37, 99, 235, 0.08);
  color: #1f2937;
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.account-type-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.account-type-btn:hover {
  border-color: rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

.account-type-btn.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
}

.ts-signup-card .form-group input[type="text"],
.ts-signup-card .form-group input[type="email"],
.ts-signup-card .form-group input[type="password"] {
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.ts-signup-card .form-group input:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.signup-backup {
  background: rgba(15, 23, 42, 0.04);
}

.signup-backup li {
  background: rgba(255, 255, 255, 0.9);
}

.ts-hero-card {
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid rgba(127, 215, 255, 0.2);
  box-shadow: 0 20px 45px rgba(4, 8, 16, 0.45);
  color: #f8fafc;
  border-radius: 20px;
}

.ts-hero-card .ts-pill {
  background: rgba(127, 215, 255, 0.2);
  color: #e2f4ff;
}

.ts-hero-card .ts-signal-row span:last-child,
.ts-hero-card .ts-hero-card-meta,
.ts-hero-card .ts-hero-card-foot {
  color: #cbd5f5;
}

.ts-cta-inner {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.ts-cta-inner h2,
.ts-cta-inner p {
  color: #0f172a;
}

.ts-graph-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ts-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
}

.ts-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: ts-live-pulse 1.8s ease-in-out infinite;
}

@keyframes ts-live-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-live-dot {
    animation: none;
  }
}

.ts-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ts-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ts-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Text overflow guards */
.ts-step,
.ts-ui-card,
.ts-split-card,
.ts-faq-item,
.ts-hero-card,
.ts-graph-card,
.ts-cta-inner,
.ts-section-header,
.ts-hero-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ts-hero-card-head,
.ts-hero-card-foot,
.ts-hero-card-meta,
.ts-faq-a,
.ts-step p,
.ts-ui-card p,
.ts-split-card ul,
.ts-section-header p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Hero Skill Visualization - Animated Skill Graphs and Radar */
.hero-skill-visualization {
  width: 100%;
  max-width: min(444.6px, 39.33vw); /* Reduced by 5% from 468px/41.4vw */
  position: relative;
  z-index: 1;
  align-self: flex-start;
  /* Ensure animation is always visible and loads correctly */
  min-height: 342px; /* Reduced by 5% from 360px */
  display: flex;
  flex-direction: column;
}

.persona-container {
  position: relative;
  width: 100%;
  height: 360px; /* Reduced by 10% from 400px */
  min-height: 360px; /* Reduced by 10% from 400px */
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(127, 215, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(4, 8, 16, 0.45);
  backdrop-filter: blur(12px);
  overflow: hidden;
  /* Ensure container is always visible and loads correctly in full screen */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Force rendering */
  will-change: opacity;
  transform: translateZ(0); /* Force GPU acceleration */
}

.persona-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  padding: 1.5rem;
  box-sizing: border-box;
}

.persona-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.persona-header {
  margin-bottom: 1rem;
}

.persona-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(14, 165, 233);
}

.visualization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: calc(100% - 3rem);
}

.skill-graph-container,
.skill-radar-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent text overflow */
}

/* Chart labels - on-brand styling */
.chart-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.625rem; /* 10px */
  font-weight: 600;
  color: rgba(14, 165, 233, 0.8); /* Brand cyan color */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  pointer-events: none;
  background: rgba(11, 18, 32, 0.6); /* Subtle background for readability */
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hide chart labels in the hero to avoid crowding */
.home-hero .chart-label {
  display: none;
}

.skill-graph-canvas,
.skill-radar-canvas {
  width: 100% !important;
  height: 100% !important;
}

.persona-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.persona-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.persona-indicator:hover {
  background: rgba(148, 163, 184, 0.6);
  transform: scale(1.2);
}

.persona-indicator.active {
  background: rgb(14, 165, 233);
  transform: scale(1.3);
}

/* Signal Stack Animation - Homepage Hero Visual */
/* Layered reveal animation showing signal extraction process */

.signal-hero {
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 1;
  align-self: stretch; /* Match left column height */
  display: flex;
  flex-direction: column;
}

.signal-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(127, 215, 255, 0.2);
  border-radius: 16px; /* Reduced from 18px */
  box-shadow: 0 20px 45px rgba(4, 8, 16, 0.45);
  backdrop-filter: blur(12px);
  min-height: auto; /* Remove fixed min-height for flexibility */
  max-height: none;
  flex: 0 0 auto;
  width: 100%;
}

.signal-layer {
  position: relative;
  padding: 7px 12px;
  background: rgba(16, 25, 46, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px; /* Reduced from 14px */
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
  width: 100%;
}

.signal-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127, 215, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.signal-layer.active {
  opacity: 0.4;
  transform: translateY(0);
}

.signal-layer.visible {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(127, 215, 255, 0.3);
  background: rgba(16, 25, 46, 0.6);
}

.signal-layer.visible::before {
  opacity: 1;
}

.signal-layer.locked {
  border-color: rgba(127, 215, 255, 0.4);
  box-shadow: 0 0 20px rgba(127, 215, 255, 0.1);
}

/* Layer-specific styling */
.signal-layer.raw {
  border-left: 3px solid rgba(148, 163, 184, 0.3);
  padding: 6px 12px;
  margin-bottom: 0;
}

.signal-layer.raw.active {
  border-left-color: rgba(148, 163, 184, 0.5);
}

.signal-layer.raw .layer-label {
  margin-bottom: 0; /* No margin for compact header */
  font-size: 0.6875rem; /* 11px - smaller for header strip */
}

.signal-layer.work {
  border-left: 3px solid rgba(56, 189, 248, 0.3);
}

.signal-layer.work.visible {
  border-left-color: rgba(56, 189, 248, 0.6);
}

.signal-layer.skills {
  border-left: 3px solid rgba(127, 215, 255, 0.3);
}

.signal-layer.skills.visible {
  border-left-color: rgba(127, 215, 255, 0.7);
}

.signal-layer.context {
  border-left: 3px solid rgba(79, 179, 200, 0.3);
}

.signal-layer.context.visible {
  border-left-color: rgba(79, 179, 200, 0.6);
}

.signal-layer.tools {
  border-left: 3px solid rgba(94, 234, 212, 0.3);
}

.signal-layer.tools.visible {
  border-left-color: rgba(94, 234, 212, 0.6);
}

.signal-layer.signal {
  border-left: 3px solid rgba(100, 255, 218, 0.55);
  padding: 6px 12px;
  background: rgba(16, 25, 46, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

.signal-layer.signal.visible {
  border-left-color: rgba(100, 255, 218, 0.9);
  background: rgba(16, 25, 46, 0.7);
}

/* Layer content */
.layer-label {
  font-size: 0.75rem; /* 12px - further reduced */
  font-weight: 600;
  color: var(--vs-text-100);
  margin-bottom: 4px; /* Reduced from 6px */
  letter-spacing: 0.02em;
  line-height: 1.3; /* Tighter line height */
}

.signal-layer.signal .layer-label {
  margin-bottom: 0;
  color: var(--vs-text-100);
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}

.signal-layer.signal .layer-examples {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.signal-layer.signal .example-item {
  opacity: 1;
  transform: none;
  background: rgba(100, 255, 218, 0.12);
  border-color: rgba(100, 255, 218, 0.4);
  color: var(--vs-text-200);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.62rem;
  padding: 3px 6px;
}

.layer-desc {
  font-size: 0.6875rem; /* 11px - reduced from 12px */
  color: var(--vs-text-300);
  margin-bottom: 6px; /* Reduced from 10px */
  font-style: italic;
  opacity: 0.75;
  line-height: 1.3; /* Tighter line height */
}

.layer-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* Reduced from 8px */
  margin-top: 4px; /* Reduced from 8px */
}

.example-item {
  display: inline-block;
  padding: 4px 8px; /* Reduced from 6px 10px - smaller chips */
  background: rgba(127, 215, 255, 0.08);
  border: 1px solid rgba(127, 215, 255, 0.15);
  border-radius: 999px; /* Pill shape */
  font-size: 0.6875rem; /* 11px - reduced from 12px */
  color: var(--vs-text-200);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease;
  line-height: 1.2; /* Tighter line height */
}

.example-item.visible {
  opacity: 1;
  transform: scale(1);
}

.example-item.pulse {
  animation: example-pulse 0.3s ease;
  background: rgba(127, 215, 255, 0.15);
  border-color: rgba(127, 215, 255, 0.3);
}

@keyframes example-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Raw layer pulse effect */
.layer-pulse {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  opacity: 0;
}

.signal-layer.raw.active .layer-pulse {
  opacity: 1;
  animation: raw-pulse 2s ease-in-out infinite;
}

@keyframes raw-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50%) scale(1.3);
    opacity: 0.8;
  }
}

/* Footer */
.signal-hero-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  opacity: 1;
  transform: none;
}

.signal-hero-footer.visible {
  opacity: 1;
  transform: none;
}

.signal-tagline {
  font-size: 0.75rem; /* 12px - further reduced */
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px 0; /* Reduced from 4px */
  text-align: center;
  opacity: 1; /* Full opacity */
  line-height: 1.3; /* Tighter line height */
}

.signal-subtagline {
  font-size: 0.6875rem; /* 11px - further reduced */
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-align: center;
  line-height: 1.3; /* Tighter line height */
  opacity: 0.8; /* Slightly muted for hierarchy */
}

/* Locked state - subtle glow */
.signal-stack.locked {
  box-shadow: 0 20px 45px rgba(4, 8, 16, 0.45), 0 0 30px rgba(127, 215, 255, 0.1);
}

/* Responsive adjustments - continued below */

@media (max-width: 768px) {
  .signal-stack {
    padding: 14px;
  }
  
  .signal-layer {
    padding: 12px 14px; /* Keep compressed */
  }
  
  .layer-label {
    font-size: 0.8125rem;
  }
  
  .layer-desc {
    font-size: 0.6875rem;
  }
  
  .example-item {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .signal-stack {
    padding: 16px;
    min-height: 380px;
  }
  
  .signal-layer {
    padding: 12px 14px;
    gap: 8px;
  }
  
  .layer-examples {
    gap: 6px;
  }
  
  .example-item {
    font-size: 0.6875rem;
    padding: 4px 8px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .signal-layer,
  .example-item,
  .signal-hero-footer {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .layer-pulse {
    animation: none;
    opacity: 0.6;
  }
  
  .example-item.pulse {
    animation: none;
  }
  
  .signal-stack.locked {
    box-shadow: 0 20px 45px rgba(4, 8, 16, 0.45);
  }
}

/* ValueSignal skill graph section */
/* Skill Graph Section - Component System */
.vs-skillGraphSection {
  max-width: var(--page-max-width);
  width: 100%;
  margin: 0 auto;
  /* Scroll margin will be set dynamically by homepage-navigation.js to match header height */
  /* Fallback: 66px (header height) for strict top alignment */
  scroll-margin-top: 66px;
  padding-top: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-bottom: clamp(3rem, 5vw, 4.5rem); /* Match hero/section padding */
  padding-left: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  padding-right: var(--header-padding-x, var(--page-gutter, clamp(18px, 4vw, 48px))); /* Match header padding */
  box-sizing: border-box;
  --vs-text: #0f172a;
  --vs-muted: #475569;
  --vs-muted-2: #64748b;
  --vs-border: rgba(15, 23, 42, 0.10);
  --vs-surface: rgba(255, 255, 255, 0.72);
  --vs-surface-2: rgba(255, 255, 255, 0.52);
  --vs-shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
  --vs-shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
  --vs-radius-xl: 24px;
  --vs-radius-lg: 20px;
  --vs-grid: rgba(15, 23, 42, 0.10);
  --vs-accent: #38bdf8;
  --vs-accent-deep: #2563eb;
  --vs-live: #22c55e;
  position: relative;
  /* Padding handled by component system (defined above) */
  background:
    radial-gradient(900px 420px at 50% 15%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.85));
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Container within skill graph section - full width of parent */
.vs-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.vs-skillGraphHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.vs-h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--vs-text);
  margin: 0 0 10px 0;
}

.vs-lede {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--vs-muted);
}

.vs-liveBadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--vs-shadow-soft);
  white-space: nowrap;
}

.vs-liveDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--vs-live);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
  animation: vsLivePulse 2.6s ease-in-out infinite;
}

.vs-liveText {
  font-size: 14px;
  color: var(--vs-muted);
}

@keyframes vsLivePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.10); }
}

.vs-skillGraphGrid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: clamp(18px, 2.5vw, 26px);
  align-items: start;
}

@media (max-width: 920px) {
  .vs-skillGraphHeader {
    align-items: flex-start;
    flex-direction: column;
  }
  .vs-liveBadge {
    width: fit-content;
  }
  .vs-skillGraphGrid {
    grid-template-columns: 1fr;
  }
}

.vs-graphCard {
  border-radius: var(--vs-radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, var(--vs-surface), var(--vs-surface-2));
  box-shadow: var(--vs-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.vs-graphCardTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.vs-graphKicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vs-muted-2);
  margin-bottom: 6px;
}

.vs-graphTitle {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--vs-text);
}

.vs-graphMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vs-metaPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--vs-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.vs-graphStage {
  position: relative;
  height: clamp(320px, 44vw, 420px);
  background: radial-gradient(700px 420px at 50% 40%, rgba(37, 99, 235, 0.06), transparent 70%);
}

.vs-graphOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vs-graphSvg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
}

.vs-graphMount {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.vs-graphCluster {
  position: relative;
  width: min(320px, 52%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.vs-graphBlob {
  width: 100%;
  height: 100%;
  border-radius: 28%;
  background:
    radial-gradient(circle at 35% 30%, rgba(56,189,248,0.65), rgba(37,99,235,0.40) 55%, rgba(37,99,235,0.12) 100%);
  filter: drop-shadow(0 18px 46px rgba(37,99,235,0.28));
  transform: translateZ(0);
  animation: none;
}


.vs-graphCardBottom {
  padding: 16px 18px 24px 18px;
}

.vs-skillList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

@media (max-width: 560px) {
  .vs-skillList {
    grid-template-columns: 1fr;
  }
}

.vs-skillList li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.vs-skillDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--vs-accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  flex: 0 0 auto;
}

.vs-skillName {
  color: var(--vs-text);
  font-weight: 600;
  font-size: 14px;
  flex: 1 1 auto;
}

.vs-skillScore {
  color: var(--vs-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.vs-evidenceCallout {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin: 0 0 14px 0;
}

.vs-evidenceList {
  margin: 0;
  padding-left: 18px;
  color: var(--vs-muted);
  font-size: 14px;
  line-height: 1.5;
}

.vs-evidenceList li + li {
  margin-top: 6px;
}

.vs-linkCta {
  display: inline;
  color: var(--vs-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.vs-linkCta:hover {
  text-decoration: underline;
}

.vs-graphCta {
  margin: 0;
  color: var(--vs-muted-2);
  font-size: 14px;
  line-height: 1.5;
}

.vs-skillGraphAside {
  border-radius: var(--vs-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.55);
  box-shadow: var(--vs-shadow-soft);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.vs-h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--vs-text);
}

.vs-body {
  margin: 0 0 14px 0;
  color: var(--vs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vs-miniCards {
  display: grid;
  gap: 10px;
}

.vs-miniCard {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
}

.vs-miniTitle {
  font-weight: 700;
  color: var(--vs-text);
  font-size: 13px;
  margin-bottom: 6px;
}

.vs-miniBody {
  color: var(--vs-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vs-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
}

.vs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: vsRevealRise 560ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .vs-liveDot {
    animation: none;
  }
  .vs-graphBlob {
    animation: none;
  }
  .vs-reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@keyframes vsRevealRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vsBlobPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
