/* 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;
  border: 2px solid var(--bg);
}

/* ============ 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: 4px; }
.faq-item {
  border-bottom: 1px solid var(--border-strong);
  padding: 4px 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
  gap: 24px;
}
.faq-q .plus {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: transform 240ms ease, background 200ms ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--text-1);
  border-radius: 1px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 8px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 8px; transition: transform 240ms ease; }
.faq-item.open .faq-q .plus { background: var(--primary); border-color: var(--primary); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: #fff; }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 200ms ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 22px;
}
.faq-a p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}

/* ============ 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: 44px;
  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;
}
.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;
}
