/* ========================================
   Labrador AI — Design System
   Stripe-inspired, brand-adapted
   ======================================== */

:root {
  /* Brand palette */
  --navy-900: #0A2540;
  --navy-800: #0E2F4F;
  --navy-700: #152B4B;
  --navy-600: #1A3A5F;
  --slate-700: #425466;
  --slate-500: #6B7C93;
  --slate-400: #8898AA;
  --slate-200: #E3E8EE;
  --slate-100: #F6F9FC;
  --slate-50:  #FAFBFC;
  --white: #FFFFFF;

  /* Labrador accent — brand blue (matching logo) */
  --lab-gold-500: #3E63DD;
  --lab-gold-400: #6B8AFF;
  --lab-gold-300: #A8BEFF;
  --lab-gold-100: #E6ECFF;

  /* Secondary accents */
  --teal-500: #00D4FF;
  --violet-500: #635BFF;
  --rose-500: #FF5996;
  --green-500: #00B96F;
  --red-500: #DF1C41;

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-soft: var(--slate-100);
  --color-text: var(--navy-900);
  --color-text-muted: var(--slate-500);
  --color-border: var(--slate-200);
  --color-link: var(--navy-900);
  --color-primary: var(--navy-900);
  --color-accent: var(--lab-gold-500);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Monaco, Consolas, monospace;

  /* Scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 4.5rem;

  /* 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;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 2px 4px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 15px 35px rgba(10, 37, 64, 0.1), 0 5px 15px rgba(10, 37, 64, 0.05);
  --shadow-xl: 0 25px 60px rgba(10, 37, 64, 0.15);
  --shadow-glow: 0 0 40px rgba(62, 99, 221, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1320px;
  --nav-height: 72px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--lab-gold-500); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: var(--fs-xl); }
p  { margin: 0 0 var(--sp-4); color: var(--slate-700); }
.lead { font-size: var(--fs-lg); color: var(--slate-700); line-height: 1.6; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lab-gold-500);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--lab-gold-500);
  border-radius: 2px;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-wide { max-width: var(--container-wide); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section-soft { background: var(--slate-100); }
.section-dark {
  background: linear-gradient(135deg, #0A2540 0%, #152B4B 50%, #1A3A5F 100%);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark .lead { color: rgba(255,255,255,0.78); }

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  gap: var(--sp-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--navy-900); }
.nav-brand .brand-mark { width: 44px; height: 44px; object-fit: contain; transition: transform var(--dur-base) var(--ease-out); }
.nav-brand:hover .brand-mark { transform: scale(1.06); }
.footer-brand .nav-brand .brand-mark { width: 52px; height: 52px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  padding: 0.5rem 0.25rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lab-gold-500);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  transition: all var(--dur-base) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.12);
}
.btn-primary:hover {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.2);
}
.btn-accent {
  background: linear-gradient(135deg, var(--lab-gold-500) 0%, var(--lab-gold-400) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(62, 99, 221, 0.35);
}
.btn-accent:hover {
  color: #fff;
  box-shadow: 0 8px 22px rgba(62, 99, 221, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-200);
}
.btn-outline:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: var(--slate-50);
}
.btn-ghost { background: transparent; color: var(--navy-900); padding: 0.75rem 1rem; }
.btn-ghost:hover { color: var(--lab-gold-500); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-arrow::after {
  content: "→";
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(62, 99, 221, 0.14), transparent 55%),
    radial-gradient(800px 500px at -10% 30%, rgba(107, 138, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(62,99,221,0.06) 90deg, transparent 180deg, rgba(107,138,255,0.05) 270deg, transparent 360deg);
  z-index: -1;
  animation: slow-spin 40s linear infinite;
  filter: blur(60px);
}
@keyframes slow-spin {
  to { transform: rotate(360deg); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: var(--sp-6);
  color: var(--navy-900);
}
.hero-title .grad {
  background: linear-gradient(90deg, var(--lab-gold-500), #1E40AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--slate-700);
  max-width: 560px;
  margin: 0 0 var(--sp-8);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--slate-500);
  font-size: 0.9rem;
}
.hero-trust .avatars {
  display: inline-flex;
}
.hero-trust .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lab-gold-300), var(--lab-gold-500));
  border: 2px solid #fff;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(62,99,221,0.2);
}
.hero-trust .avatars span:first-child { margin-left: 0; }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255,255,255,0.04) inset;
  transform: rotate(-4deg);
  animation: float-phone 6s ease-in-out infinite;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0d0d0d;
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #F6F9FC 0%, #FFFFFF 100%);
  overflow: hidden;
  position: relative;
  padding: 48px 16px 16px;
}
@keyframes float-phone {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}
.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  animation: msg-in 0.5s var(--ease-out) both;
}
.chat-message.incoming {
  background: #E9EEF5;
  color: var(--navy-900);
  border-bottom-left-radius: 4px;
  animation-delay: 0.2s;
}
.chat-message.outgoing {
  background: linear-gradient(135deg, #0A84FF, #0062cc);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  animation-delay: 0.8s;
}
.chat-message.incoming.delay2 { animation-delay: 1.4s; }
.chat-time { text-align: center; font-size: 10px; color: #8898AA; margin: 6px 0; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating badges around phone */
.hero-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float-badge 5s ease-in-out infinite;
}
.hero-badge-1 { top: 12%; left: -4%; animation-delay: 0s; }
.hero-badge-2 { bottom: 18%; right: -6%; animation-delay: 1.5s; }
.hero-badge-3 { top: 48%; right: 4%; animation-delay: 3s; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(0,185,111,0.18); }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== Cuisine band (upgrade of legacy logo-band) ========== */
.logo-band {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 163, 23, 0.06), transparent 60%),
    linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.logo-band::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lab-gold-500), transparent);
  opacity: 0.55;
}
.cuisine-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-8);
}
.cuisine-head .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lab-gold-500);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-3);
  justify-content: center;
}
.cuisine-head .eyebrow::before,
.cuisine-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--lab-gold-500);
  border-radius: 1px;
}
.cuisine-head h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin: 0 0 var(--sp-3);
  line-height: 1.2;
}
.cuisine-head h3 .emph {
  background: linear-gradient(135deg, #3E63DD, #1E40AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cuisine-head p {
  font-size: 1rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.55;
}
.cuisine-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.cuisine-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  transition: transform 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out),
              border-color 240ms var(--ease-out);
  text-align: center;
}
.cuisine-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(10, 37, 64, 0.12);
  border-color: var(--lab-gold-500);
}
.cuisine-chip .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #F6F9FC, #E3E8EE);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 10px rgba(10, 37, 64, 0.06);
  transition: transform 240ms var(--ease-out);
}
.cuisine-chip:hover .icon { transform: scale(1.08) rotate(-4deg); }
.cuisine-chip.c-pizza  .icon { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.cuisine-chip.c-taco   .icon { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); }
.cuisine-chip.c-bistro .icon { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.cuisine-chip.c-deli   .icon { background: linear-gradient(135deg, #FFF9C4, #FFE082); }
.cuisine-chip.c-sushi  .icon { background: linear-gradient(135deg, #E1F5FE, #B3E5FC); }
.cuisine-chip.c-cafe   .icon { background: linear-gradient(135deg, #EFEBE9, #D7CCC8); }
.cuisine-chip.c-ice    .icon { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
.cuisine-chip.c-diner  .icon { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.cuisine-chip .label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .cuisine-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .cuisine-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cuisine-chip { padding: 14px 6px 12px; }
  .cuisine-chip .icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .cuisine-chip .label { font-size: 0.78rem; }
}

/* Legacy class names kept for any other pages using logo-band-label/grid */
.logo-band-label { display: none; }
.logo-band-grid  { display: none; }

/* ========== Feature Grid / Bento ========== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-16);
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { font-size: 1.125rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: var(--sp-6);
}
.bento-card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(62,99,221,0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-200);
}
.bento-card:hover::before { opacity: 1; }
.bento-card.wide    { grid-column: span 4; }
.bento-card.full    { grid-column: span 6; }
.bento-card.tall    { grid-row: span 2; }
.bento-card.dark {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-color: transparent;
}
.bento-card.dark h3, .bento-card.dark h4 { color: #fff; }
.bento-card.dark p { color: rgba(255,255,255,0.72); }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #6B8AFF, #3E63DD);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  box-shadow: 0 4px 14px rgba(62,99,221,0.35);
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.bento-card p { font-size: 0.95rem; margin: 0; }

.bento-card .card-visual {
  margin-top: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--slate-100);
  padding: var(--sp-4);
  border: 1px solid var(--slate-200);
}

/* ========== Feature Split ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--slate-100), var(--white));
  border: 1px solid var(--slate-200);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.split h2 { margin-bottom: var(--sp-5); }
.split-list { list-style: none; padding: 0; margin: var(--sp-6) 0 0; }
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 1rem;
  color: var(--slate-700);
}
.split-list li:last-child { border: none; }
.split-list li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lab-gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233E63DD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center / 14px no-repeat;
  margin-top: 3px;
}

/* ========== Stats ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-2);
  background: linear-gradient(90deg, var(--navy-900), #3E63DD);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ========== Testimonials ========== */
.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--navy-800);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}
.testimonial-quote::before { content: "\201C"; color: var(--lab-gold-500); font-size: 2rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
.testimonial-quote::after { content: "\201D"; color: var(--lab-gold-500); font-size: 2rem; line-height: 0; vertical-align: -0.3em; margin-left: 4px; }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lab-gold-300), var(--lab-gold-500));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }
.testimonial-role { color: var(--slate-500); font-size: 0.85rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ========== CTA Banner ========== */
.cta-banner {
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, #2a4572 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,138,255,0.35), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}
.cta-banner h2 { color: #fff; max-width: 720px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 600px; font-size: 1.1rem; }
.cta-banner .hero-actions { margin: var(--sp-6) 0 0; }

/* ========== FAQ ========== */
.faq-grid { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--slate-200);
  padding: var(--sp-5) 0;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  padding: 0;
}
.faq-q::after {
  content: "";
  width: 22px; height: 22px;
  background: var(--slate-100);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item.is-open .faq-q::after { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--slate-700);
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-slow) var(--ease-out);
  padding-top: 0;
}
.faq-item.is-open .faq-a {
  max-height: 500px;
  padding-top: var(--sp-3);
}

/* ========== Forms ========== */
.form-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--navy-900);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lab-gold-500);
  box-shadow: 0 0 0 3px rgba(62,99,221,0.2);
}
.field .hint { font-size: 0.8rem; color: var(--slate-500); }
.field .checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--slate-700); }
.field .checkbox input { width: auto; margin-top: 2px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); flex-wrap: wrap; }

.form-disclaimer {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--slate-500);
}
.form-disclaimer a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.form-disclaimer a:hover {
  color: var(--lab-gold-500);
  text-decoration-color: var(--lab-gold-500);
}

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}
.price-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border-color: var(--lab-gold-500);
  box-shadow: 0 0 0 4px rgba(62,99,221,0.1), var(--shadow-lg);
  position: relative;
}
.price-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lab-gold-500), var(--lab-gold-400));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.price-card .price-tag { font-size: 2.5rem; font-weight: 800; color: var(--navy-900); letter-spacing: -0.03em; line-height: 1; margin: 0.5rem 0 0.25rem; }
.price-card .price-tag small { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.price-card .price-desc { color: var(--slate-500); font-size: 0.9rem; margin-bottom: var(--sp-5); }
.price-card ul { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); flex: 1; }
.price-card ul li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--slate-700); display: flex; gap: 0.5rem; }
.price-card ul li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lab-gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233E63DD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center / 12px no-repeat;
  margin-top: 2px;
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(180deg, #F6F9FC 0%, #EEF2F6 100%);
  padding: var(--sp-20) 0 var(--sp-8);
  border-top: 1px solid var(--slate-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--slate-200);
}
.footer-brand p { max-width: 320px; font-size: 0.95rem; }
.footer h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); margin-bottom: var(--sp-4); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.65rem; }
.footer ul li a { color: var(--slate-700); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--lab-gold-500); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  font-size: 0.825rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-patents { font-size: 0.75rem; }
.footer-socials { display: flex; gap: var(--sp-3); }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--slate-200);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-700);
}
.footer-socials a:hover { border-color: var(--lab-gold-500); color: var(--lab-gold-500); }

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% -20%, rgba(62,99,221,0.12), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: var(--sp-4); }
.page-hero .lead { max-width: 720px; }
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: var(--sp-4);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs a { color: var(--slate-500); }
.breadcrumbs a:hover { color: var(--lab-gold-500); }
.breadcrumbs .sep { opacity: 0.6; }

/* ========== Steps ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lab-gold-100);
  letter-spacing: -0.03em;
  line-height: 1;
}
.step h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; margin: 0; }

/* ========== Info Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.info-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .info-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--lab-gold-100);
  color: var(--lab-gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(62,99,221,0.12);
}
.info-card h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.95rem; margin: 0; }

/* ========== Prose (legal pages) ========== */
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-700);
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  color: var(--navy-900);
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.prose p, .prose li { color: var(--slate-700); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--sp-4); }
.prose ul li { margin-bottom: 0.4rem; }
.prose a { color: var(--lab-gold-500); text-decoration: underline; text-underline-offset: 2px; }
.prose .meta {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--slate-100);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: var(--sp-6);
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--sp-6); }
.mt-10 { margin-top: var(--sp-10); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-3 { gap: var(--sp-3); }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.hide-sm { }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========== Reveal Animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Polygonal / low-poly brand elements ========== */
/* Faceted background pattern — echoes the polygonal logo */
.poly-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(62,99,221,0.06) 0%, transparent 40%),
    linear-gradient(45deg, rgba(107,138,255,0.04) 0%, transparent 60%);
}
.poly-bg::before, .poly-bg::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
}
.poly-bg::before {
  top: 8%; right: 6%; width: 180px; height: 180px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%233E63DD' stroke-opacity='0.3' stroke-width='1.2'><polygon points='100,20 180,70 150,160 50,160 20,70'/><polygon points='100,60 140,80 125,140 75,140 60,80'/><line x1='100' y1='20' x2='100' y2='60'/><line x1='180' y1='70' x2='140' y2='80'/><line x1='150' y1='160' x2='125' y2='140'/><line x1='50' y1='160' x2='75' y2='140'/><line x1='20' y1='70' x2='60' y2='80'/></g></svg>");
  animation: poly-drift 40s linear infinite;
}
.poly-bg::after {
  bottom: 10%; left: 4%; width: 140px; height: 140px;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g fill='none' stroke='%23E8A317' stroke-opacity='0.35' stroke-width='1.2'><polygon points='80,10 150,50 130,130 30,130 10,50'/><polygon points='80,10 130,130 30,130'/><polygon points='150,50 130,130 80,80'/><polygon points='10,50 30,130 80,80'/><polygon points='80,10 150,50 80,80'/><polygon points='80,10 10,50 80,80'/></g></svg>");
  animation: poly-drift 55s linear infinite reverse;
}
@keyframes poly-drift { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-10px); } }

/* Subtle polygonal mesh across dark sections */
.section-dark .poly-bg::before,
.section-dark .poly-bg::after { opacity: 0.25; }

.section-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='0.8'><polygon points='0,100 150,40 300,120 450,60 600,140 600,0 0,0'/><polygon points='0,200 120,160 240,220 360,180 480,240 600,200 600,100 450,60 300,120 150,40 0,100'/><polygon points='0,300 100,280 200,320 300,290 400,340 500,310 600,340 600,200 480,240 360,180 240,220 120,160 0,200'/><polygon points='0,400 600,400 600,340 500,310 400,340 300,290 200,320 100,280 0,300'/></g></svg>");
  background-size: cover;
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }

/* Polygonal SVG section divider */
.poly-divider {
  display: block;
  width: 100%;
  height: 64px;
}
.poly-divider svg { width: 100%; height: 100%; display: block; }

/* Inline polygonal accents (small triangles near headlines) */
.poly-accent {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><g fill='%23E8A317'><polygon points='8,1 15,14 1,14'/></g></svg>") no-repeat center / contain;
}

/* Polygon-clipped badge */
.poly-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--lab-gold-100), rgba(255,255,255,0.9));
  border: 1px solid rgba(62,99,221,0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

/* ========== Rich hero visuals (solution pages) ========== */
.rich-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.rich-visual .bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 80% 20%, rgba(62,99,221,0.18), transparent 60%),
    radial-gradient(420px 320px at 10% 85%, rgba(232,163,23,0.12), transparent 60%);
  filter: blur(4px);
  z-index: 0;
  border-radius: var(--r-2xl);
}
.rich-visual .main-card,
.rich-visual .float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(10,37,64,0.14), 0 6px 18px rgba(10,37,64,0.06);
  border: 1px solid rgba(10,37,64,0.06);
  overflow: hidden;
}
.rich-visual .main-card {
  top: 12%;
  left: 8%;
  width: 70%;
  z-index: 2;
  animation: rv-float 7s var(--ease-in-out) infinite;
}
.rich-visual .float-card {
  z-index: 3;
  animation: rv-float-sub 6s var(--ease-in-out) infinite;
}
.rich-visual .float-card.tl { top: 4%; left: 2%; }
.rich-visual .float-card.tr { top: 2%; right: 3%; animation-delay: 1.2s; }
.rich-visual .float-card.br { bottom: 4%; right: -2%; animation-delay: 2.4s; }
.rich-visual .float-card.bl { bottom: 6%; left: -2%; animation-delay: 1.8s; }
@keyframes rv-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes rv-float-sub { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.rich-visual .chrome-dots { display:flex; gap:4px; padding:10px 12px; background:var(--slate-50); border-bottom:1px solid var(--slate-200); }
.rich-visual .chrome-dots span { width:8px; height:8px; border-radius:50%; background:var(--slate-200); }
.rich-visual .chrome-dots span.r { background:#FF605C; }
.rich-visual .chrome-dots span.y { background:#FFBD44; }
.rich-visual .chrome-dots span.g { background:#00CA4E; }

.rv-kpi { display:flex; flex-direction:column; gap:2px; }
.rv-kpi .v { font-weight:800; font-size:1.375rem; color:var(--navy-900); letter-spacing:-0.02em; line-height:1.1; font-variant-numeric:tabular-nums; }
.rv-kpi .l { font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--slate-500); font-weight:600; }
.rv-sparkline { display:flex; align-items:flex-end; gap:3px; height:30px; }
.rv-sparkline span { flex:1; background:linear-gradient(180deg, #3E63DD, #6B8AFF); border-radius:2px 2px 0 0; opacity:0.85; }

.rv-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#3E63DD,#1E40AF); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.rv-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:999px; font-size:0.7rem; font-weight:600; }
.rv-badge.ok { background:#E8F8EF; color:#00663C; }
.rv-badge.live { background:#FEF3E0; color:#8A5A00; }
.rv-badge.hot { background:#FDE7EC; color:#B00A20; }
.rv-badge.brand { background:var(--lab-gold-100); color:var(--lab-gold-500); }
.rv-pulse-dot { width:6px; height:6px; border-radius:50%; background:var(--green-500); box-shadow:0 0 0 4px rgba(0,185,111,0.2); animation:rv-pulse 1.8s ease-in-out infinite; }
@keyframes rv-pulse { 0%,100%{ box-shadow:0 0 0 2px rgba(0,185,111,0.18);} 50%{ box-shadow:0 0 0 8px rgba(0,185,111,0);} }

@media (max-width: 720px) {
  .rich-visual { aspect-ratio: 5/4; max-width:420px; }
  .rich-visual .main-card { width:76%; top:14%; }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; min-height: 400px; }
  .phone { width: 240px; height: 480px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.wide, .bento-card.full { grid-column: span 2; }
  .bento-card.tall { grid-row: span 1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--sp-6);
    gap: var(--sp-4);
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }
  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hide-xs { display: none; }
  .hero-badge-1, .hero-badge-2, .hero-badge-3 { display: none; }
}

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

/* ============================================================
   BLOG STYLES
   ============================================================ */

/* --- Blog listing page --- */
.blog-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62,99,221,0.08), transparent 60%),
    linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
  border-bottom: 1px solid var(--slate-200);
}
.blog-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}
.blog-hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-6);
}
.blog-filter .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.blog-filter .chip:hover,
.blog-filter .chip.is-active {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.post-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 280ms var(--ease-out),
              box-shadow 280ms var(--ease-out),
              border-color 280ms var(--ease-out);
  box-shadow: 0 4px 14px rgba(10,37,64,0.05);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(10,37,64,0.12);
  border-color: var(--lab-gold-500);
}
.post-card .cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative;
  overflow: hidden;
}
.post-card .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(242,185,75,0.25), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(62,99,221,0.35), transparent 55%);
  opacity: 0.9;
}
.post-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='0.8'><polygon points='0,100 200,50 400,120 600,80 600,0 0,0'/><polygon points='0,200 150,180 300,220 450,200 600,210 600,80 400,120 200,50 0,100'/><polygon points='0,400 600,400 600,210 450,200 300,220 150,180 0,200'/></g></svg>");
  background-size: cover;
}
.post-card .cover-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.post-card.cat-comparison .cover { background: linear-gradient(135deg, #0A2540, #3E63DD); }
.post-card.cat-cost .cover       { background: linear-gradient(135deg, #8B5A00, #E8A317); }
.post-card.cat-marketing .cover  { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
.post-card.cat-experience .cover { background: linear-gradient(135deg, #064E3B, #00B96F); }
.post-card.cat-ops .cover        { background: linear-gradient(135deg, #1E293B, #475569); }

.post-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.post-card .excerpt {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.post-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 6px;
}
.post-card .meta .dot { opacity: 0.5; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* --- Single post (article) --- */
.post-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62,99,221,0.06), transparent 60%),
    linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
  border-bottom: 1px solid var(--slate-200);
}
.post-hero .container { max-width: 760px; }
.post-hero .cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy-900);
  color: #fff;
  margin-bottom: var(--sp-4);
}
.post-hero .cat-chip.cat-comparison { background: linear-gradient(135deg, #0A2540, #3E63DD); }
.post-hero .cat-chip.cat-cost       { background: linear-gradient(135deg, #8B5A00, #E8A317); color: #fff; }
.post-hero .cat-chip.cat-marketing  { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
.post-hero .cat-chip.cat-experience { background: linear-gradient(135deg, #064E3B, #00B96F); }
.post-hero .cat-chip.cat-ops        { background: linear-gradient(135deg, #1E293B, #475569); }

.post-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 var(--sp-5);
}
.post-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-500);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.post-hero .post-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-900);
}
.post-hero .post-meta .author .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lab-gold-400), var(--lab-gold-500));
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.post-hero .post-meta .dot { opacity: 0.5; }

/* Article body — long-form typography */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0;
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--slate-700);
}
.post-body .lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--navy-900);
  font-weight: 500;
  margin: 0 0 var(--sp-6);
  letter-spacing: -0.01em;
}
.post-body h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
}
.post-body h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 1.75rem 0 0.5rem;
}
.post-body p { margin: 0 0 1.15rem; }
.post-body ul, .post-body ol { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.post-body li { margin-bottom: 0.55rem; }
.post-body strong { color: var(--navy-900); font-weight: 700; }
.post-body a {
  color: var(--brand-500);
  text-decoration: underline;
  text-decoration-color: rgba(62,99,221,0.35);
  text-underline-offset: 2px;
  font-weight: 500;
}
.post-body a:hover { text-decoration-color: var(--brand-500); }
.post-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--lab-gold-500);
  background: #FFFBEF;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--navy-900);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body .callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #F0F5FF, #E8EDFF);
  border: 1px solid rgba(62,99,221,0.2);
  border-radius: 12px;
  font-size: 0.95rem;
}
.post-body .callout strong { display: block; margin-bottom: 0.25rem; color: var(--brand-500); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 2.5rem 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.post-body th, .post-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}
.post-body th {
  font-weight: 700;
  background: var(--slate-50);
  color: var(--navy-900);
}

/* Post footer CTA */
.post-cta {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: 18px;
  text-align: center;
}
.post-cta h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.post-cta p {
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.post-cta .btn-accent { background: var(--lab-gold-500); color: var(--navy-900); }

/* Related posts */
.related-posts {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0;
}
.related-posts h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lab-gold-500);
  margin: 0 0 1.25rem;
  text-align: center;
}

@media (max-width: 640px) {
  .post-body { font-size: 1rem; line-height: 1.7; padding: 1.5rem 0; }
  .post-body .lede { font-size: 1.1rem; }
  .post-body h2 { font-size: 1.35rem; }
}

/* ============================================================
   MOBILE POLISH — tightens spacing, sizing, and tap targets
   Scoped to <= 640px and <= 380px; desktop sizing unchanged
   ============================================================ */
@media (max-width: 640px) {
  /* --- Typography caps for narrow screens --- */
  h1 { font-size: 2.125rem; letter-spacing: -0.03em; line-height: 1.15; }
  h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; }
  h3 { font-size: 1.25rem; line-height: 1.3; }
  .lead { font-size: 1.05rem; line-height: 1.55; }

  /* --- Tighter section vertical rhythm --- */
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2.25rem 0; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head p { font-size: 1rem; }

  /* --- Container side padding — squeeze a bit more content per row --- */
  .container { padding-left: 18px; padding-right: 18px; }

  /* --- Primary / accent CTAs become full-width for easy tap --- */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: var(--sp-6);
  }
  .hero-actions .btn,
  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px; /* iOS tap target */
  }
  /* Centered CTA banners too */
  .cta-banner .hero-actions { max-width: 360px; margin-left: auto; margin-right: auto; }

  /* --- Page hero (breadcrumb + title + lead) trim --- */
  .page-hero { padding: 2.25rem 0 1.5rem; }
  .page-hero h1 { font-size: 1.9rem; }

  /* --- Interactive hero intro trim --- */
  .hero-interactive .hero-intro {
    margin-bottom: var(--sp-6);
  }
  .hero-interactive .hero-intro .hero-sub {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* --- CTA banner tightening --- */
  .cta-banner { padding: 2rem 1.25rem; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.95rem; }

  /* --- Hero trust strip wraps cleanly --- */
  .hero-trust {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
  }

  /* --- Navigation tighter on phones --- */
  .nav-inner { padding-left: 12px; padding-right: 12px; }
  .nav .brand-mark { width: 38px; height: 38px; }

  /* --- Tap target minimum for nav links and chips --- */
  .nav-links a { min-height: 44px; display: flex; align-items: center; }

  /* --- Footer breathe-tighter --- */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-brand p { font-size: 0.9rem; }
  .footer h5 { margin-bottom: 10px; }
  .footer ul { gap: 4px; }

  /* --- Savings calc & math tables don't horizontally-scroll --- */
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding: 10px 8px; }

  /* --- Stack tiles: trim padding so 5 tiles per group feel less tall --- */
  .stack-tile {
    padding: 14px 14px;
    gap: 8px;
  }
  .stack-tile .title { font-size: 0.92rem; }
  .stack-tile .desc  { font-size: 0.8rem; }

  /* --- Platform group headers tighter --- */
  .pg-head {
    gap: 12px;
  }
  .pg-head h3 { font-size: 1.2rem; }
  .pg-head p  { font-size: 0.88rem; }

  /* --- Prevent accidental horizontal scroll anywhere --- */
  body { overflow-x: hidden; }
  img, video, svg { max-width: 100%; height: auto; }
}

/* Small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.45rem; }
  .lead { font-size: 1rem; }

  .container { padding-left: 14px; padding-right: 14px; }

  .hero-actions .btn-lg { font-size: 0.9rem; padding: 0.85rem 1rem; }

  /* Hero interactive — a bit more room, less overlay density */
  .hero-interactive .hero-intro { margin-bottom: var(--sp-5); }

  /* CTA banner compacter */
  .cta-banner { padding: 1.75rem 1rem; }
  .cta-banner h2 { font-size: 1.35rem; }
}

/* Landscape phones — keep vertical real-estate for the hero */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 500px) {
  .page-hero { padding: 1.5rem 0 1rem; }
  .section { padding: 2.25rem 0; }
}

/* ============================================================
   MOBILE: Interactive hero scene simplification
   Below 640px, hide overlays/hotspots — the scene becomes a clean
   hero image and the toolkit index below handles exploration.
   Desktop (>640px) is untouched.
   ============================================================ */
.only-mobile { display: none; }

@media (max-width: 640px) {
  .only-desktop { display: none; }
  .only-mobile  { display: inline; }

  /* Kill the visual clutter: every floating overlay + hotspot goes dark */
  .hero-interactive .hotspot,
  .hero-interactive .overlay-cloud,
  .hero-interactive .overlay-sms,
  .hero-interactive .overlay-review,
  .hero-interactive .overlay-feedback {
    display: none !important;
  }

  /* Scene aspect — slightly wider so the pizzeria counter reads well */
  .hero-interactive .scene { aspect-ratio: 5/4; }

  /* Tighten scene-cta to float cleanly over the image */
  .scene-cta {
    bottom: 14px;
    padding: 6px;
    gap: 6px;
    max-width: calc(100% - 24px);
    flex-direction: row;
  }
  .scene-cta .btn-lg {
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    min-height: 42px;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }
}

/* Small phones — scene gets even cleaner */
@media (max-width: 380px) {
  .hero-interactive .scene { aspect-ratio: 4/3; }
  .scene-cta .btn-lg { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}
