/* AIsendr — Design system */

/* Geist is loaded via Next.js font system in layout.tsx — no @import needed */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #FAFAF7;
  --bg-warm: #F2EFE8;
  --surface: #FFFFFF;
  --surface-2: #F6F5F0;

  /* text */
  --text-1: #0A0F0C;
  --text-2: #5C6360;
  --text-3: #8A908C;

  /* borders */
  --border: #E8E6DF;
  --border-strong: #D5D1C7;

  /* brand */
  --primary: #0B5C3F;
  --primary-hover: #094a32;
  --primary-tint: #E8F4EE;
  --primary-tint-2: #D1EADE;
  --accent: #25D366;
  --warn: #E8A33D;
  --danger: #D64545;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(10, 15, 12, 0.04), 0 0 0 1px rgba(10,15,12,0.04);
  --shadow-md: 0 4px 14px -2px rgba(10, 15, 12, 0.06), 0 0 0 1px rgba(10,15,12,0.04);
  --shadow-lg: 0 24px 50px -12px rgba(10, 15, 12, 0.18), 0 0 0 1px rgba(10,15,12,0.05);
  --shadow-popover: 0 8px 30px -8px rgba(10,15,12,0.12), 0 0 0 1px rgba(10,15,12,0.06);

  /* radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* layout */
  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: var(--font-geist, 'Geist', system-ui, -apple-system, sans-serif);
  font-size: 16px;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--primary-tint-2); color: var(--primary); }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-1);
  text-wrap: balance;
}

.h-display {
  font-size: 72px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
@media (max-width: 1280px) { .h-display { font-size: 60px; } }
@media (max-width: 960px)  { .h-display { font-size: 48px; } }
@media (max-width: 640px)  { .h-display { font-size: 40px; } }

.h-section {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}
@media (max-width: 960px) { .h-section { font-size: 36px; } }
@media (max-width: 640px) { .h-section { font-size: 30px; } }

.h-card {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 60ch;
}
@media (max-width: 960px) { .lede { font-size: 17px; } }
@media (max-width: 640px) { .lede { font-size: 16px; } }

p { margin: 0; line-height: 1.55; color: var(--text-2); }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  height: 40px;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 2px rgba(11,92,63,0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-3); }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
}
.btn-ghost:hover { color: var(--primary); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }

.arrow-inline {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn:hover .arrow-inline,
a.with-arrow:hover .arrow-inline { transform: translateX(3px); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 250, 247, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 450;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text-1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background-image: url('/logo.svg');
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.logo-mark svg, .logo-mark::after { display: none; }

/* ============ HERO ============ */
.hero {
  padding: 72px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-headline { margin-top: 18px; }
.hero-lede { margin-top: 22px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-2);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.checkmark {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: inline-grid; place-items: center;
}

/* hero side: phone + dashboard */
.hero-visual {
  position: relative;
  height: 580px;
}
@media (max-width: 960px) { .hero-visual { height: 520px; } }

/* subtle hero backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 800px 400px at 80% 20%, rgba(37, 211, 102, 0.06), transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 90%, rgba(11, 92, 63, 0.04), transparent 60%);
  pointer-events: none;
}

/* ============ PHONE MOCK ============ */
.phone {
  position: absolute;
  right: 20px;
  top: 0;
  width: 290px;
  height: 580px;
  background: #0A0F0C;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px #2a2f2c;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #ECE5DD; /* whatsapp chat bg */
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0A0F0C;
  border-radius: 0 0 14px 14px;
  z-index: 5;
}
.wa-header {
  background: #075E54;
  color: #fff;
  padding: 28px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.wa-header-info { flex: 1; min-width: 0; }
.wa-header-name { font-size: 14px; font-weight: 500; }
.wa-header-status { font-size: 11px; opacity: 0.7; margin-top: 1px; }
.wa-header-icons { display: flex; gap: 14px; opacity: 0.85; }
.wa-chat {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100% - 76px);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0,0,0,0.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}
.wa-bubble {
  max-width: 78%;
  padding: 7px 10px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #111;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.4s ease forwards;
}
.wa-bubble.in {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.wa-bubble.out {
  background: #DCF8C6;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.wa-bubble .time {
  display: inline-block;
  font-size: 9.5px;
  color: #667781;
  margin-left: 6px;
  vertical-align: bottom;
}
.wa-bubble .check {
  display: inline-block;
  color: #34B7F1;
  font-size: 10px;
  margin-left: 2px;
}
.wa-bubble.template {
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.wa-template-media {
  background: linear-gradient(135deg, #128C7E, #25D366);
  height: 70px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.wa-template-body { padding: 8px 10px; }
.wa-template-cta {
  border-top: 1px solid #eee;
  padding: 7px;
  text-align: center;
  color: #128C7E;
  font-weight: 500;
  font-size: 12px;
}
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.typing-dots span {
  width: 5px; height: 5px;
  background: #999;
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.wa-bubble:nth-child(1) { animation-delay: 0.6s; }
.wa-bubble:nth-child(2) { animation-delay: 1.6s; }
.wa-bubble:nth-child(3) { animation-delay: 2.6s; }
.wa-bubble:nth-child(4) { animation-delay: 4.2s; }
.wa-bubble:nth-child(5) { animation-delay: 5.0s; }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

/* dashboard card behind phone */
.dash-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 14px 16px;
  z-index: 1;
  animation: float-in 0.8s ease forwards;
  opacity: 0;
}
@keyframes float-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dash-1 {
  top: 40px;
  left: 0;
  width: 230px;
  animation-delay: 0.3s;
}
.dash-2 {
  bottom: 50px;
  left: 30px;
  width: 250px;
  animation-delay: 0.5s;
}
.dash-3 {
  top: 280px;
  right: -10px;
  width: 200px;
  animation-delay: 0.7s;
  z-index: 3;
}

.dash-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-stat {
  font-size: 26px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.dash-delta {
  font-size: 12px;
  color: var(--primary);
  margin-top: 2px;
  display: inline-flex; align-items: center; gap: 4px;
}
.dash-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}
.dash-row + .dash-row { border-top: 1px solid var(--border); }
.dash-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* sparkline */
.spark { display: block; width: 100%; height: 36px; margin-top: 8px; }
.spark path.line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.spark path.area {
  fill: url(#sparkGrad);
  opacity: 0.4;
}

/* ============ SECTION HEADERS ============ */
.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ============ FEATURE GRID ============ */
.features {
  background: var(--bg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 200ms ease;
  position: relative;
}
.feature-card:hover { background: var(--surface-2); }
.feat-icon {
  width: 40px; height: 40px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ============ USE CASES ============ */
.usecases { background: var(--bg-warm); }
.usecase-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.usecase-tab {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 160ms ease;
}
.usecase-tab:hover { color: var(--text-1); }
.usecase-tab.active {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.usecase-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 56px;
  box-shadow: var(--shadow-md);
}
.usecase-panel.active { display: grid; }
@media (max-width: 860px) {
  .usecase-panel { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}

.usecase-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
}
.usecase-meta .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.usecase-panel h3 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 14px 0 16px;
}
.usecase-panel ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.usecase-panel li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.usecase-panel li .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 1px;
}

/* example chat preview inside usecase */
.uc-preview {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
  justify-content: center;
}
.uc-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--border);
}
.uc-bubble.out {
  background: #DCF8C6;
  align-self: flex-end;
  border-color: #C5E6A6;
}
.uc-bubble .label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
  font-weight: 500;
}

/* ============ PRICING ============ */
.pricing { background: var(--bg); }
.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  margin: 0 auto 48px;
  position: relative;
}
.pricing-toggle-wrap { display: flex; justify-content: center; }
.pricing-toggle button {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 200ms ease;
  position: relative;
  z-index: 1;
}
.pricing-toggle button.active {
  background: var(--text-1);
  color: #fff;
}
.pricing-toggle .save {
  font-size: 10px;
  background: var(--accent);
  color: var(--text-1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tier:hover { border-color: var(--border-strong); }
.tier.featured {
  background: var(--text-1);
  color: #fff;
  border-color: var(--text-1);
  position: relative;
}
.tier.featured h3, .tier.featured .price-amount { color: #fff; }
.tier.featured p { color: rgba(255,255,255,0.65); }
.tier.featured .tier-feat { color: rgba(255,255,255,0.85); }
.tier.featured .tier-feat .check {
  background: rgba(37,211,102,0.18);
  color: var(--accent);
}
.featured-badge {
  position: absolute;
  top: -10px; right: 24px;
  background: var(--accent);
  color: var(--text-1);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}
.tier-head h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.tier-head p { font-size: 13px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price-per { font-size: 13px; color: var(--text-2); }
.tier.featured .price-per { color: rgba(255,255,255,0.65); }
.tier-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tier-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}
.tier-feat .check {
  width: 16px; height: 16px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tier .btn { margin-top: auto; }
.tier.featured .btn-primary { background: var(--accent); color: var(--text-1); }
.tier.featured .btn-primary:hover { background: #1ab85a; }
.tier.featured .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

/* ============ FAQ ============ */
.faq { background: var(--bg-warm); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 40px; } }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.faq-item.open {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px -4px rgba(10,15,12,0.08);
}

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
  gap: 20px;
  cursor: pointer;
  background: none;
  border: none;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }

/* animated +/× icon */
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background 220ms ease, border-color 220ms ease, transform 320ms cubic-bezier(0.34,1.56,0.64,1);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-2);
  border-radius: 2px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: background 220ms ease, transform 320ms cubic-bezier(0.34,1.56,0.64,1), opacity 220ms ease;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(45deg);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: #fff; }

/* grid-rows trick: animates height:auto smoothly */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}
.faq-body-inner {
  overflow: hidden;
}

.faq-a {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}
.faq-a p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}

/* ============ FINAL CTA ============ */
.cta-band {
  background: var(--text-1);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 48px 28px; }
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 85% 50%, rgba(37,211,102,0.18), transparent 65%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  font-size: 16px;
  position: relative;
}
.cta-band .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}
@media (max-width: 860px) { .cta-band .ctas { justify-content: flex-start; } }
.cta-band .btn-primary { background: var(--accent); color: var(--text-1); }
.cta-band .btn-primary:hover { background: #1ab85a; }
.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.cta-band .btn-secondary:hover { border-color: rgba(255,255,255,0.5); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 16px;
  max-width: 280px;
}
.footer-social {
  display: flex; gap: 8px; margin-top: 22px;
}
.footer-social a {
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all 160ms ease;
}
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text-1); }
.tag-new {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta { display: flex; gap: 20px; }
.footer-meta a:hover { color: var(--text-1); }

/* ============ SCROLL REVEALS ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ AUTH PAGES ============ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--bg);
}
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
.auth-form-side {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
}
.auth-top a.back { display: inline-flex; align-items: center; gap: 6px; }
.auth-top a.back:hover { color: var(--text-1); }
.auth-card {
  margin: auto;
  width: 100%;
  max-width: 400px;
  padding: 40px 0;
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.auth-card .lede {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field label .forgot {
  font-size: 12px;
  font-weight: 400;
  color: var(--primary);
}
.field label .forgot:hover { text-decoration: underline; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .icon-left {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.input-wrap .icon-right {
  position: absolute;
  right: 10px;
  color: var(--text-3);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.input-wrap .icon-right:hover { color: var(--text-1); }
.input {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--text-1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  outline: none;
}
.input.with-icon-l { padding-left: 38px; }
.input.with-icon-r { padding-right: 36px; }
.input::placeholder { color: var(--text-3); }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.input.error { border-color: var(--danger); }

.phone-input {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px;
}
.phone-input .country {
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A908C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 24px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  margin: 8px 0 22px;
  line-height: 1.5;
}
.checkbox {
  width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 160ms ease;
  appearance: none;
}
.checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-row a { color: var(--primary); }
.checkbox-row a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-row { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  height: 48px;
  min-height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 160ms ease;
  cursor: pointer;
  padding: 0 20px;
  width: 100%;
}
.oauth-btn:hover { background: var(--surface-2); border-color: var(--text-3); }

.auth-switch-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: 28px;
}
.auth-switch-tabs button {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: all 180ms ease;
}
.auth-switch-tabs button.active {
  background: var(--primary-tint);
  color: var(--primary);
}

.auth-footer {
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
  margin-top: 22px;
}
.auth-footer a { color: var(--primary); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* aside (right side) */
.auth-aside {
  background: var(--text-1);
  color: #fff;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 80% 30%, rgba(37,211,102,0.18), transparent 60%),
              radial-gradient(ellipse 500px 300px at 20% 90%, rgba(11,92,63,0.4), transparent 60%);
  pointer-events: none;
}
.auth-aside-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: auto;
  width: 100%;
  padding: 40px 0;
}
.aside-quote {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.aside-quote-mark {
  font-size: 60px;
  color: var(--accent);
  line-height: 0;
  font-family: serif;
  display: inline-block;
  vertical-align: -28px;
  margin-right: 4px;
}
.aside-cite {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.aside-cite-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #0B5C3F);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.aside-cite-name { font-size: 14px; font-weight: 500; color: #fff; }
.aside-cite-role { font-size: 13px; color: rgba(255,255,255,0.6); }

.aside-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.aside-stat-val {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}
.aside-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* floating preview on aside */
.aside-preview {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  color: #fff;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.aside-preview-1 {
  top: 60px; right: 32px;
  animation: float 6s ease-in-out infinite;
}
.aside-preview-2 {
  bottom: 80px; left: 32px;
  animation: float 6s ease-in-out infinite 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.aside-preview-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37,211,102,0.2);
  flex-shrink: 0;
}

/* ============ utility ============ */
.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;
}

/* ============ EXTRA SECTIONS ============ */

/* Logos bar */
.logos-bar { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.logos-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.logos-label { font-size: 12px; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.logos-track { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.logo-pill { font-size: 13px; font-weight: 500; color: var(--text-3); padding: 4px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); }

/* Features */
.features { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 64px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; transition: box-shadow 200ms ease, transform 200ms ease; }
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-card--lg { grid-column: span 2; }
@media (max-width: 900px) { .feat-card--lg { grid-column: span 1; } }
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.feat-chip { display: inline-block; margin-top: 16px; padding: 4px 10px; background: var(--primary-tint); color: var(--primary); border-radius: var(--r-full); font-size: 12px; font-weight: 500; }

/* Use cases */
.usecases { background: var(--bg-warm); }
.uc-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.uc-tab { padding: 8px 18px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: all 160ms ease; }
.uc-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.uc-tab:hover:not(.active) { border-color: var(--text-3); color: var(--text-1); }
.uc-panels { }
.uc-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) { .uc-panel { grid-template-columns: 1fr; gap: 32px; } }
.uc-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.uc-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.uc-list li::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.uc-chat { background: #ECE5DD; border-radius: var(--r-xl); padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.mini-bubble { max-width: 80%; padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 0.5px rgba(0,0,0,0.08); }
.mini-bubble.out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.mini-bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }

/* Pricing */
.pricing { background: var(--bg); }
.pricing-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; }
.toggle-btn { width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background 200ms ease; border: none; }
.toggle-btn.on { background: var(--primary); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 200ms ease; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.toggle-btn.on .toggle-knob { transform: translateX(18px); }
.save-badge { background: var(--primary-tint); color: var(--primary); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-full); margin-left: 6px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px; position: relative; }
.plan-card--featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: var(--r-full); white-space: nowrap; }
.plan-name { font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.plan-amount { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-1); }
.plan-per { font-size: 14px; color: var(--text-3); }
.plan-desc { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.plan-features { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.pf-check { color: var(--primary); font-weight: 600; font-size: 13px; flex-shrink: 0; }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 32px; }

/* FAQ */
.faq { background: var(--bg-warm); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-q { padding: 18px 22px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-a { padding: 0 22px 20px; font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* Dark CTA */
.cta-dark { background: var(--primary); padding: 96px 0; text-align: center; }
.cta-inner { max-width: 660px; margin: 0 auto; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-3); transition: color 150ms ease; }
.footer-col a:hover { color: var(--text-1); }
.footer-social { transition: color 150ms ease; }
.footer-social:hover { color: var(--primary) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; margin-top: 48px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* dash-card extras */
.dash-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(37,211,102,0.2); flex-shrink: 0; }
.spark { width: 100%; height: 36px; margin-top: 10px; }
.spark .line { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: url(#sparkGrad); }
.dash-delta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--primary); margin-top: 2px; font-weight: 500; }

/* Auth pages */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-form-side { display: flex; flex-direction: column; padding: 32px 48px; background: var(--bg); }
@media (max-width: 600px) { .auth-form-side { padding: 24px 20px; } }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); transition: color 150ms ease; }
.back:hover { color: var(--primary); }
.auth-card { max-width: 400px; width: 100%; }
.auth-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.auth-card .lede { margin-top: 8px; font-size: 14px; }
.auth-switch-tabs { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; margin: 24px 0 20px; }
.auth-switch-tabs button { flex: 1; padding: 7px; border-radius: calc(var(--r-md) - 2px); font-size: 13px; font-weight: 500; color: var(--text-2); background: none; transition: all 160ms ease; }
.auth-switch-tabs button.active { background: var(--surface); color: var(--text-1); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-1); display: flex; justify-content: space-between; align-items: center; }
.forgot { font-size: 12.5px; color: var(--primary); font-weight: 400; }
.input-wrap { position: relative; }
.input { width: 100%; height: 42px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: 14px; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.input.with-icon-l { padding-left: 40px; }
.input.with-icon-r { padding-right: 40px; }
.icon-left { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.icon-right { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; padding: 4px; border-radius: var(--r-sm); }
.icon-right:hover { color: var(--text-1); }
.phone-input { display: flex; gap: 8px; }
.country { height: 42px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: 14px; outline: none; flex-shrink: 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; margin: 6px 0 18px; }
.checkbox { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-strong); accent-color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.auth-divider { text-align: center; font-size: 12.5px; color: var(--text-3); position: relative; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 60px); height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.oauth-row { display: flex; gap: 10px; }
.oauth-btn { flex: 1; height: 48px; min-height: 48px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--text-1); display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 160ms ease; padding: 0 20px; }
.oauth-btn:hover { border-color: var(--text-3); background: var(--surface-2); }
.auth-footer { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 20px; }
.auth-footer a { color: var(--primary); font-weight: 500; }

/* Auth aside */
.auth-aside { background: var(--primary); position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .auth-aside { display: none; } }
.auth-aside-inner { position: relative; z-index: 1; }
.aside-quote { font-size: 22px; font-weight: 500; color: #fff; line-height: 1.45; letter-spacing: -0.02em; max-width: 360px; }
.aside-quote-mark { font-size: 40px; color: var(--accent); line-height: 0; vertical-align: -0.3em; }
.aside-cite { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.aside-cite-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.15); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
.aside-cite-name { font-size: 14px; font-weight: 600; color: #fff; }
.aside-cite-role { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 1px; }
.aside-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.aside-stat-val { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.aside-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.aside-preview { position: absolute; bottom: 48px; left: 48px; right: 48px; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #fff; z-index: 2; animation: float-in 0.8s ease 0.4s both; }
.aside-preview-1 { bottom: 112px; }
.aside-preview-2 { bottom: 48px; }
.aside-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(37,211,102,0.2); flex-shrink: 0; }


/* ============ FIX: Hero headline cut off ============ */
/* Problem: h-display font is too big and the text overflows into the phone visual */
/* Fix: constrain the headline width and reduce font size slightly so it stays in its column */
.hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: visible;
}
.hero-headline {
  font-size: 58px;
  line-height: 1.06;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
/* Remove the hard nbsp that forces long words together */
.hero > .container > div:first-child {
  min-width: 0;
  overflow: hidden;
}
.hero-lede {
  max-width: 52ch;
}

/* ============ FIX: Logos bar — infinite marquee ============ */
.logos-bar { padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.logos-inner { flex-direction: column; gap: 0; padding: 0; }
.logos-label { font-size: 12px; color: var(--text-3); font-weight: 500; text-align: center; padding: 16px 0 12px; }
.logos-track {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding-bottom: 16px;
}
.logos-track:hover { animation-play-state: paused; }
.logo-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  padding: 8px 28px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  letter-spacing: 0.01em;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ FIX: Feature cards — varied sizes + scroll animations ============ */

/* New bento-style grid layout */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
}

/* Card sizes via nth-child targeting */
/* Row 1: Broadcast (wide, tall) + Chatbot (normal) + Inbox (normal) */
.feat-card:nth-child(1) { grid-column: span 3; grid-row: span 2; padding: 36px; }
.feat-card:nth-child(2) { grid-column: span 2; }
.feat-card:nth-child(3) { grid-column: span 1; }
/* Row 2: CRM (normal) + Template (wide) */
.feat-card:nth-child(4) { grid-column: span 2; }
.feat-card:nth-child(5) { grid-column: span 1; }
/* Row 3: Analytics (wide) + Optin + Automations (normal) + API (normal) */
.feat-card:nth-child(6) { grid-column: span 2; }
.feat-card:nth-child(7) { grid-column: span 2; }
.feat-card:nth-child(8) { grid-column: span 1; }
.feat-card:nth-child(9) { grid-column: span 1; }

/* Remove old --lg override */
.feat-card--lg { grid-column: unset; }

/* Scroll-in animation */
.feat-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 200ms ease;
}
.feat-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays */
.feat-card:nth-child(1) { transition-delay: 0ms; }
.feat-card:nth-child(2) { transition-delay: 60ms; }
.feat-card:nth-child(3) { transition-delay: 120ms; }
.feat-card:nth-child(4) { transition-delay: 180ms; }
.feat-card:nth-child(5) { transition-delay: 240ms; }
.feat-card:nth-child(6) { transition-delay: 300ms; }
.feat-card:nth-child(7) { transition-delay: 360ms; }
.feat-card:nth-child(8) { transition-delay: 420ms; }
.feat-card:nth-child(9) { transition-delay: 480ms; }

/* Keep hover working after in-view */
.feat-card.in-view:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Responsive: collapse to 2 cols on tablet */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .feat-card:nth-child(1) { grid-column: span 2 !important; padding: 28px; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card:nth-child(n) { grid-column: span 1 !important; }
}

/* Larger icon for the big card */
.feat-card:nth-child(1) .feat-icon { font-size: 40px; }
.feat-card:nth-child(1) .h-card { font-size: 24px; }
.feat-card:nth-child(1) p { font-size: 15px; }


/* ============ HERO PLATFORM VISUAL ============ */
.hero-platform {
  position: relative;
  height: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 960px) { .hero-platform { height: auto; } }

.hp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  animation: float-in 0.6s ease forwards;
}
.hp-card--broadcast { animation-delay: 0.2s; }
.hp-card--automation { animation-delay: 0.4s; }
.hp-card--inbox { animation-delay: 0.6s; }
.hp-card--mini { animation-delay: 0.7s; position: absolute; }
.hp-card--mini { bottom: 0; left: 0; width: 160px; padding: 14px 16px; }
.hp-card--mini2 { bottom: 0; left: 176px; padding: 14px 16px; }

.hp-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hp-card-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.hp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.hp-badge--green { background: rgba(37,211,102,0.15); color: #0B7A3E; }
.hp-badge--orange { background: rgba(232,163,61,0.15); color: #92400E; font-size: 11px; }
.hp-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

.hp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.hp-stat-val { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); }
.hp-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.hp-progress-bar { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.hp-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: width 1s ease; }

/* Automation flow */
.hp-flow { display: flex; flex-direction: column; gap: 6px; }
.hp-flow-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--border); }
.hp-flow-trigger { background: var(--primary-tint); border-color: var(--primary-tint-2); }
.hp-flow-action { background: #F3E8FF; border-color: #DDD6FE; }
.hp-flow-done { background: rgba(37,211,102,0.08); border-color: rgba(37,211,102,0.2); }
.hp-flow-icon { font-size: 16px; flex-shrink: 0; }
.hp-flow-name { font-size: 12px; font-weight: 600; color: var(--text-1); }
.hp-flow-desc { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.hp-flow-arrow { text-align: center; font-size: 12px; color: var(--text-3); line-height: 1; }

/* Inbox rows */
.hp-inbox-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hp-inbox-row:last-child { border-bottom: none; }
.hp-inbox-row--unread .hp-inbox-avatar { box-shadow: 0 0 0 2px var(--accent); }
.hp-inbox-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* ============ LOGOS BAR — FIXED ============ */
.logos-mask {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 32s linear infinite;
  padding: 4px 0 16px;
}
.logos-track:hover { animation-play-state: paused; }
.logo-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ FEATURE MASONRY ============ */
.feat-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  /* Fade top and bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  max-height: 680px;
  overflow: hidden;
}
@media (max-width: 900px) { .feat-masonry { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feat-masonry { grid-template-columns: 1fr; } }

.feat-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Column 1 floats up */
.feat-col--1 { animation: col-float-up 14s ease-in-out infinite; }
/* Column 2 floats down (opposite phase) */
.feat-col--2 { animation: col-float-down 16s ease-in-out infinite; }
/* Column 3 floats up with offset */
.feat-col--3 { animation: col-float-up 18s ease-in-out infinite; animation-delay: -6s; }

@keyframes col-float-up {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-40px); }
}
@keyframes col-float-down {
  0%, 100% { transform: translateY(-30px); }
  50%       { transform: translateY(10px); }
}

/* Cards in masonry — reset previous animation overrides */
.feat-masonry .feat-card {
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow 200ms ease !important;
  animation: none !important;
  border-radius: var(--r-xl);
}
.feat-masonry .feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01) !important;
}

}

/* ============ HERO v2 — stacked layout ============ */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.hero-text {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-text .hero-headline { margin-top: 18px; }
.hero-text .hero-lede {
  margin: 22px auto 0;
  text-align: center;
}
.hero-text .hero-ctas {
  justify-content: center;
  margin-top: 34px;
}
.hero-text .hero-meta {
  justify-content: center;
}

/* product-shot stage */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 30px;
}
@media (max-width: 780px) { .hero-stage { padding: 24px 0; } }

/* Hero screenshot image */
.hero-img-wrap {
  width: 100%;
  max-width: 1182px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(10, 15, 12, 0.22),
    0 10px 30px -8px rgba(10, 15, 12, 0.12),
    0 0 0 1px rgba(10,15,12,0.06);
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* App frame (workspace) */
.app-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 30px 80px -30px rgba(10, 15, 12, 0.18),
    0 10px 30px -8px rgba(10, 15, 12, 0.10),
    0 0 0 1px rgba(10,15,12,0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.af-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.af-top .tl {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.af-top .tl:nth-child(1) { background: #FF5F57; }
.af-top .tl:nth-child(2) { background: #FEBC2E; }
.af-top .tl:nth-child(3) { background: #28C840; }
.af-url {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-geist-mono, 'Geist Mono', monospace);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.af-url svg { color: var(--text-3); }

.af-body {
  display: grid;
  grid-template-columns: 200px 280px 1fr;
  height: 480px;
}
@media (max-width: 900px) {
  .af-body { grid-template-columns: 60px 1fr; height: 440px; }
  .af-body .af-list { display: none; }
  .af-rail-foot, .af-ws-info, .af-nav a span:not(.af-pill) { display: none; }
  .af-nav a { justify-content: center; padding: 10px; }
  .af-ws { justify-content: center; padding: 12px 8px; }
}
@media (max-width: 540px) {
  .af-body { grid-template-columns: 1fr; }
  .af-body .af-rail { display: none; }
}

/* Rail */
.af-rail {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
}
.af-ws {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.af-ws-mark {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.af-ws-name { font-size: 13px; font-weight: 600; }
.af-ws-plan { font-size: 11px; color: var(--text-3); }
.af-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.af-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  cursor: default;
}
.af-nav a svg { color: var(--text-3); flex-shrink: 0; }
.af-nav a.active {
  background: var(--surface);
  color: var(--text-1);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.af-nav a.active svg { color: var(--primary); }
.af-pill {
  margin-left: auto;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
}
.af-rail-foot {
  margin-top: auto;
  padding: 8px;
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.af-dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.25);
  animation: pulse-soft 2s infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,211,102,0.25); }
  50% { box-shadow: 0 0 0 5px rgba(37,211,102,0.08); }
}

/* List */
.af-list {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.af-list-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.af-list-head h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.af-list-tabs {
  display: inline-flex;
  font-size: 11px;
  color: var(--text-3);
  gap: 10px;
}
.af-list-tabs .on { color: var(--text-1); font-weight: 500; }
.af-list-search {
  margin: 0 12px 8px;
  padding: 7px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.af-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: default;
  border-left: 2px solid transparent;
  position: relative;
}
.af-thread:hover { background: var(--surface-2); }
.af-thread.on {
  background: var(--primary-tint);
  border-left-color: var(--primary);
}
.af-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.af-th-body { flex: 1; min-width: 0; }
.af-th-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
}
.af-th-row b { font-weight: 600; color: var(--text-1); }
.af-th-row span { font-size: 10.5px; color: var(--text-3); flex-shrink: 0; }
.af-th-prev {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-th-tag {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.af-unread {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Chat panel */
.af-chat {
  background: #ECE5DD;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.af-chat-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.af-chat-meta { flex: 1; min-width: 0; }
.af-chat-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.af-tag {
  display: inline-block;
  font-size: 9.5px;
  background: var(--primary-tint);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.af-chat-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.af-chat-actions { display: flex; gap: 6px; }
.af-chat-actions button {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 500;
}
.af-chat-actions button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.af-chat-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0,0,0,0.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}
.af-day {
  align-self: center;
  background: rgba(225, 245, 254, 0.92);
  color: #54656F;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.af-bubble {
  max-width: 78%;
  padding: 7px 10px 5px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #111;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.06);
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  animation: af-pop 0.5s ease forwards;
}
.af-bubble.in {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
}
.af-bubble.out {
  background: #D9FDD3;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.af-bubble:nth-child(2) { animation-delay: 0.3s; }
.af-bubble:nth-child(3) { animation-delay: 0.8s; }
.af-bubble:nth-child(4) { animation-delay: 1.4s; }
.af-bubble:nth-child(5) { animation-delay: 1.9s; }
.af-bubble:nth-child(6) { animation-delay: 2.4s; }
@keyframes af-pop {
  to { opacity: 1; transform: translateY(0); }
}
.afb-time {
  display: inline-block;
  font-size: 9.5px;
  color: #667781;
  margin-left: 6px;
  vertical-align: bottom;
  white-space: nowrap;
}
.af-check { color: #53BDEB; }
.afb-tpl {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin: -7px -10px -5px;
  width: 230px;
}
.afb-media {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  color: #fff;
  padding: 14px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.afb-text { padding: 8px 10px 4px; font-size: 12.5px; line-height: 1.4; color: #111; }
.afb-cta {
  border-top: 1px solid #eee;
  padding: 7px;
  text-align: center;
  color: #128C7E;
  font-weight: 500;
  font-size: 12px;
}
.typing-bubble { padding: 9px 12px 7px; }
.af-typing { display: inline-flex; gap: 3px; align-items: center; }
.af-typing span {
  width: 5px; height: 5px;
  background: #999;
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite;
}
.af-typing span:nth-child(2) { animation-delay: 0.15s; }
.af-typing span:nth-child(3) { animation-delay: 0.3s; }
.af-composer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.af-icon-btn, .af-send {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
}
.af-send {
  background: var(--primary);
  color: #fff;
}
.af-input {
  flex: 1;
  background: var(--bg);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* Floating cards */
.float-card {
  position: absolute;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  animation: float-rise 0.7s ease forwards;
  opacity: 0;
}
@keyframes float-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fc-stat-mini {
  top: 30px;
  left: -8px;
  width: 200px;
  animation-delay: 0.4s;
}
.fc-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.fc-num {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--primary);
}
.fc-spark { width: 76px; height: 28px; }

.fc-toast {
  top: 16px;
  right: -10px;
  width: 270px;
  display: flex;
  gap: 12px;
  align-items: center;
  animation-delay: 0.8s;
}
.ft-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22);
  flex-shrink: 0;
  animation: pulse-soft 1.6s infinite;
}
.ft-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.ft-sub { font-size: 11.5px; color: var(--text-2); margin-top: 1px; }

.fc-bot {
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 11px;
  align-items: center;
  animation-delay: 1.2s;
}
.fc-bot-icon {
  width: 34px; height: 34px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fc-bot-title { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.fc-bot-sub { font-size: 11px; color: var(--text-2); margin-top: 1px; }

@media (max-width: 780px) {
  .fc-stat-mini, .fc-toast, .fc-bot {
    display: none;
  }
}

/* ============ FEATURES MARQUEE ============ */
.features-marquee {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: 640px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
@media (max-width: 900px) {
  .features-marquee { grid-template-columns: repeat(2, 1fr); height: 600px; }
  .features-marquee > .feat-column:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .features-marquee { grid-template-columns: 1fr; height: 560px; }
  .features-marquee > .feat-column:nth-child(2) { display: none; }
}

.feat-column {
  overflow: hidden;
  position: relative;
}
.feat-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation-duration: var(--dur, 40s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.feat-track.up { animation-name: marquee-up; }
.feat-track.down { animation-name: marquee-down; }

@keyframes marquee-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes marquee-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
.features-marquee:hover .feat-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .feat-track { animation: none !important; }
}

/* Feature cards */
.fc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.fc:hover {
  border-color: var(--border-strong);
}
.fc .fc-icon {
  width: 34px; height: 34px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fc h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0;
}
.fc p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* small — horizontal compact */
.fc-sm {
  flex-direction: row;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}
.fc-sm .fc-icon { width: 28px; height: 28px; border-radius: 7px; }
.fc-sm h3 { font-size: 13.5px; }

/* medium — title + 1 line */
.fc-md { padding: 18px 20px; gap: 8px; }
.fc-md .fc-icon { width: 30px; height: 30px; }
.fc-md h3 { font-size: 14.5px; }
.fc-md p { font-size: 12.5px; }

/* large — fuller card */
.fc-lg { padding: 22px; }

/* stat card — light */
.fc-stat {
  background: var(--bg-warm);
  border-color: var(--border);
  padding: 22px 20px;
  gap: 6px;
}
.fcs-num {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--primary);
  line-height: 1;
}
.fcs-num span {
  font-size: 18px;
  font-weight: 500;
  margin-left: 2px;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.fcs-label {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

/* stat card — dark */
.fc-stat.fc-dark {
  background: var(--text-1);
  border-color: var(--text-1);
}
.fc-stat.fc-dark .fcs-num { color: #fff; }
.fc-stat.fc-dark .fcs-num span { color: rgba(255,255,255,0.6); }
.fc-stat.fc-dark .fcs-label { color: rgba(255,255,255,0.65); }

/* quote card */
.fc-quote {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  padding: 20px;
  gap: 12px;
}
.fc-quote p {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.fc-quote-cite {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.fc-quote-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #FAFAF7);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  display: grid; place-items: center;
}


/* ============ FINAL OVERRIDES — fix blank sections ============ */

/* Hero: allow floating cards to overflow their container */
.hero { overflow: visible; }
.hero-stage { overflow: visible; }

/* Hero-stack: full width, no grid conflict */
.hero-stack { display: flex; flex-direction: column; align-items: center; }
.hero-grid { display: none; }

/* Features marquee: override the old feat-card opacity:0 animation
   so cards inside .features-marquee are always visible */
.features-marquee .fc {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: border-color 200ms ease !important;
}

/* The old feat-card scroll-in animation only applies outside of marquee */
.feat-card {
  opacity: 1;
  transform: none;
}
.feat-card.in-view {
  opacity: 1;
  transform: none;
}

/* Make sure feat-column and feat-track work properly */
.feat-column {
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* App frame needs visible overflow for the chat bubbles to not clip */
.app-frame { overflow: hidden; }
.af-chat-body { overflow: hidden; }


/* Safety: hero elements always visible regardless of reveal state */
.hero-text,
.hero-stage,
.features-marquee,
.hero-text.reveal,
.hero-stage.reveal,
.features-marquee.reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* ============ FIX: Chat panel gaps & bubble visibility ============ */

/* Push messages to bottom like a real chat app */
.af-chat-body {
  justify-content: flex-end;
}

/* Bubbles: skip animation, show immediately in the mockup */
.af-bubble {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Typing bubble still animates dots */
.af-typing span {
  animation: dot-pulse 1.2s infinite;
}
.af-typing span:nth-child(2) { animation-delay: 0.15s; }
.af-typing span:nth-child(3) { animation-delay: 0.3s; }

/* Ensure the app frame fills its parent and has no extra gap */
.app-frame {
  display: flex;
  flex-direction: column;
}
.af-body {
  flex: 1;
  min-height: 0;
}

/* Rail fills full height */
.af-rail,
.af-list,
.af-chat {
  height: 100%;
  min-height: 0;
}


/* ============ DEFINITIVE CHAT FIX ============ */
/* Override all previous conflicting rules */

.app-frame {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.af-body {
  flex: 1 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 200px 280px 1fr !important;
  height: auto !important; /* let it fill the flex parent instead of fixed 480px */
}
@media (max-width: 900px) {
  .af-body { grid-template-columns: 60px 1fr !important; }
}
@media (max-width: 540px) {
  .af-body { grid-template-columns: 1fr !important; }
}

.af-chat {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.af-chat-head {
  flex-shrink: 0 !important;
}

.af-chat-body {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important; /* messages anchor to bottom */
  gap: 7px !important;
  padding: 14px 18px !important;
}

.af-composer {
  flex-shrink: 0 !important;
}

/* All chat bubbles visible immediately — no animation in static mockup */
.af-bubble {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}


/* ============ DEFINITIVE AUTH ASIDE FIX ============ */
.auth-aside {
  background: var(--primary) !important;
  overflow: visible !important;
  justify-content: flex-start !important;
  padding: 48px !important;
}

/* Remove the dark radial gradient overlay that covers text */
.auth-aside::before {
  display: none !important;
}

/* Inner content: no auto margin, no extra padding, natural flow */
.auth-aside-inner {
  position: relative !important;
  z-index: 1 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Remove old absolute-positioned aside-preview cards */
.aside-preview {
  display: none !important;
}


/* ============================================================
   MOBILE RESPONSIVE — comprehensive fix for all screen sizes
   ============================================================ */

/* ── NAV: hamburger ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 200ms ease;
}

/* ── NAV: mobile drawer ─────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #FAFAF7;
  z-index: 100;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--text-1);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.nav-mobile-link {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-mobile-link:active { background: #f0f0ec; }

.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  margin-top: auto;
}
.nav-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
}
.nav-mobile-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  background: var(--primary);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
}

/* ── HERO: stack cleanly on mobile ──────────────────────── */
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-stack { gap: 40px; }
  .hero-text .hero-headline { font-size: 38px; }
  .hero-text .hero-lede { font-size: 15px; }
  .hero-text .hero-ctas { flex-direction: column; align-items: center; }
  .hero-text .hero-ctas .btn { width: 100%; max-width: 360px; justify-content: center; }
  .hero-meta { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (max-width: 860px) {
  /* App frame: hide rail + list, show only chat on small screens */
  .hero-stage { padding: 0; }
  .app-frame { border-radius: 12px; }
  .af-body {
    grid-template-columns: 1fr !important;
    height: 380px !important;
  }
  .af-rail { display: none !important; }
  .af-list { display: none !important; }
  .af-chat { display: flex !important; }

  /* Float cards: hide on small screens to avoid overflow */
  .float-card { display: none !important; }
}

/* ── LOGOS BAR ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .logo-pill { font-size: 12px; padding: 6px 14px; }
  .logos-label { font-size: 11px; }
}

/* ── FEATURES MARQUEE ───────────────────────────────────── */
@media (max-width: 480px) {
  .features-marquee {
    grid-template-columns: 1fr !important;
    height: 500px !important;
  }
  .features-marquee > .feat-column:nth-child(2),
  .features-marquee > .feat-column:nth-child(3) { display: none !important; }
}

/* ── USE CASES ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .uc-tabs { gap: 6px; }
  .uc-tab { font-size: 12px; padding: 6px 12px; }
  .uc-chat { min-height: 180px; }
  .mini-bubble { font-size: 12px; }
}

/* ── PRICING ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .plan-card { padding: 24px 20px; }
  .plan-amount { font-size: 28px; }
  .pricing-grid { padding: 0 4px; }
}

/* ── FAQ ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .faq-q { font-size: 14px; padding: 16px 18px; }
  .faq-a { font-size: 13px; padding: 0 18px 16px; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .footer-inner { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-dark { padding: 64px 0; }
  .cta-dark .h-section { font-size: 28px; }
}

/* ── AUTH: login & signup ───────────────────────────────── */
@media (max-width: 480px) {
  .auth-form-side { padding: 20px 16px; }
  .auth-card h1 { font-size: 22px; }
  .auth-card .lede { font-size: 13px; }
  .auth-top { margin-bottom: 28px; }

  /* Signup: industry chips — 2 cols on tiny screens */
  .chip-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Signup: team size chips — 3 cols */
  .chip-grid[style*="repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; }

  /* OTP digits — make them taller on small screens */
  .otp-digit { height: 44px !important; font-size: 18px !important; }

  /* Two-column name fields: stack on very small */
  .two-col { grid-template-columns: 1fr !important; }
}

/* Signup: industry chips responsive (inline style override) */
@media (max-width: 520px) {
  /* Target the industry grid which has 4 cols */
  .auth-card div[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Team size grid (5 cols) */
  .auth-card div[style*="repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── SECTION HEADINGS: scale down on mobile ─────────────── */
@media (max-width: 600px) {
  .h-section { font-size: 28px !important; }
  .section-head { margin-bottom: 40px; }
  section { padding: 56px 0; }
}

/* ── GENERAL: prevent horizontal overflow ───────────────── */
html, body { overflow-x: hidden; }
.container { padding: 0 16px; }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ── DASHBOARD INBOX: mobile ────────────────────────────── */
@media (max-width: 768px) {
  /* Inbox page: hide right sidebar, full width conversation list */
  .dashboard-inbox-layout { flex-direction: column; }
}

