/* ============================================================
   style.css — NoteBee Website (single consolidated stylesheet)
   Design system inspired by tars.pro layout patterns
   ============================================================ */


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
  --text-primary: #1D1D1F;
  --text-body: #3D3D3D;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --text-muted: #AEAEB2;

  --surface: #FFFFFF;
  --surface-secondary: #FAFAFA;
  --surface-tertiary: #F5F5F7;

  --border: #E5E5EA;
  --border-light: #F0F0F0;

  --accent: #007AFF;
  --accent-hover: #0062D9;
  --accent-light: #EFF6FF;
  --accent-text: #1A6FE0;

  --btn-primary: #1D1D1F;
  --btn-primary-hover: #000000;
  --btn-primary-text: #FFFFFF;

  --success: #34C759;
  --warning: #FF9500;
  --danger: #FF3B30;
  --brand-gold: #FFC201;

  --mac-red: #FF5F57;
  --mac-yellow: #FEBC2E;
  --mac-green: #28C840;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 104px;
  --space-6xl: 140px;
}


/* ═══════════════════════════════════════════════════════════════
   2. RESET
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 150ms ease-out, opacity 150ms ease-out; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }


/* ═══════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 600; line-height: 1.15; }

.text-display { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h2, .text-heading { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.025em; }
h3, .text-title { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.02em; }
h4, .text-subtitle { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

.text-body-l { font-size: 19px; line-height: 1.6; color: var(--text-secondary); }
.text-body-m { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.text-body-s { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}


/* ═══════════════════════════════════════════════════════════════
   4. LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container      { max-width: 1024px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-wide { max-width: 1234px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: 630px; margin: 0 auto; padding: 0 var(--space-lg); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section { padding: var(--space-4xl) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-6xl) 0; } }

.section-header {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
  text-align: center; max-width: 630px; margin: 0 auto var(--space-2xl);
}
@media (min-width: 1024px) { .section-header { margin-bottom: var(--space-3xl); } }
.section-header p { max-width: 510px; }


/* ═══════════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  font-weight: 600; line-height: 1; border-radius: var(--radius-full);
  cursor: pointer; border: none; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background-color: var(--btn-primary); color: var(--btn-primary-text); font-size: 15px; padding: 14px 28px; }
.btn-primary:hover { background-color: var(--btn-primary-hover); }

.btn-lg { font-size: 16px; padding: 16px 36px; }

.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); font-size: 15px; padding: 14px 28px; }
.btn-outline:hover { border-color: var(--text-secondary); background-color: var(--surface-tertiary); }

.btn-accent { background-color: var(--accent); color: white; font-size: 15px; padding: 14px 28px; }
.btn-accent:hover { background-color: var(--accent-hover); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════════
   6. CARDS & BADGES
   ═══════════════════════════════════════════════════════════════ */

.card {
  background-color: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: var(--space-lg); will-change: transform, box-shadow;
}

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); background-color: var(--surface-tertiary); padding: 6px 14px; border-radius: var(--radius-full); }
.badge-accent { color: var(--accent-text); background-color: var(--accent-light); }

.reveal { visibility: hidden; }

/* Hide hero elements until JS entrance animation runs */
.hero__left .text-display,
.hero__tabs,
.hero__desc,
.hero__left .btn,
.hero__right,
.hero__info-row {
  opacity: 0;
  visibility: hidden;
}


/* ═══════════════════════════════════════════════════════════════
   7. NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8E8ED;
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 clamp(24px, 4vw, 64px);
}

.nav-brand { display: flex; align-items: flex-end; gap: 4px; text-decoration: none; }
.nav-logo { width: 24px; height: 24px; flex-shrink: 0; }
.nav-brand-text { font-size: 18px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; line-height: 1; }

/* Centered pill selector container */
.nav-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #F5F5F7;
  border-radius: 10px;
  padding: 3px;
}

.nav-selector-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 150ms ease-out;
  line-height: 1;
}

.nav-selector-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.7);
}

.nav-selector-item:active,
.nav-selector-item.active {
  color: var(--text-primary);
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 20px; border-radius: 10px;
  background-color: var(--btn-primary); color: var(--btn-primary-text);
  text-decoration: none; transition: background-color 120ms ease-out;
}
.nav-cta:hover { background-color: var(--btn-primary-hover); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 300ms ease, opacity 200ms ease;
}

/* Hamburger → X animation when open */
.nav--open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay — hidden by default */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #FFFFFF;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 96px 32px 48px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.nav--open .nav-overlay {
  display: flex;
  opacity: 1;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 320px;
}

.nav-overlay__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 150ms ease;
}

.nav-overlay__link:hover {
  background-color: var(--surface-tertiary);
}

.nav-overlay__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin-top: 16px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  background-color: var(--btn-primary);
  color: var(--btn-primary-text);
  text-decoration: none;
}

.nav-overlay__note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Below 768px: show hamburger, hide desktop nav items */
@media (max-width: 768px) {
  .nav-selector { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 56px; padding: 0 var(--space-md); }
}


/* ═══════════════════════════════════════════════════════════════
   8. HERO — normal document flow, no absolute positioning
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  overflow: visible;
  background: #ffffff;
  padding: 60px 0 64px;
}
@media (min-width: 1024px) {
  .hero { padding: 80px 0 200px; }
}

/* --- Background layer (absolute, behind flow content) --- */
.hero__bg {
  position: absolute;
  top: -10px; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
}

.hero__grid {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
}

.hero__grid svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero__grid .grid-square { transition: opacity 500ms ease; }

/* Dark band wrapper — single continuous honeycomb grid behind all dark sections.
   Pulled up behind the hero wave so the hex pattern covers the wave area too. */
.dark-band {
  position: relative;
  overflow: hidden;
  background-color: var(--text-primary);
  border-radius: 24px 24px 24px 24px;
  margin-top: -24px;
  margin-bottom: -24px;
  z-index: 2;
  /* Seamless pointy-top honeycomb via CSS background — zoom-proof */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='69.28' height='120'%3E%3Cpolygon points='34.64,0 69.28,20 69.28,60 34.64,80 0,60 0,20' fill='none' stroke='white' stroke-opacity='0.04' stroke-width='0.7'/%3E%3Cpolygon points='69.28,60 103.92,80 103.92,120 69.28,140 34.64,120 34.64,80' fill='none' stroke='white' stroke-opacity='0.04' stroke-width='0.7'/%3E%3C/svg%3E");
  background-size: 69.28px 120px;
  background-repeat: repeat;
}

/* Cursor glow that follows mouse over dark sections — hidden, replaced by ::after wire glow */
.dark-band__glow {
  display: none;
}

/* Wire-only glow: same honeycomb pattern with blue strokes, masked to cursor position */
.dark-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='69.28' height='120'%3E%3Cpolygon points='34.64,0 69.28,20 69.28,60 34.64,80 0,60 0,20' fill='none' stroke='%23007AFF' stroke-opacity='0.55' stroke-width='1.2'/%3E%3Cpolygon points='69.28,60 103.92,80 103.92,120 69.28,140 34.64,120 34.64,80' fill='none' stroke='%23007AFF' stroke-opacity='0.55' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 69.28px 120px;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(circle 200px at var(--mx, -1000px) var(--my, -1000px), rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  mask-image: radial-gradient(circle 200px at var(--mx, -1000px) var(--my, -1000px), rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.dark-band.has-cursor::after {
  opacity: 1;
}

/* --- Two-column split layout --- */
.hero__split {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

@media (min-width: 1024px) {
  .hero__split {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

/* LEFT column: heading, tabs, description, CTA */
.hero__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__left {
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero__left {
    flex: 1 1 50%;
    max-width: 50%;
    position: relative;
    top: 10px;
  }
}

.hero__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 360px;
  min-height: calc(3 * 1.6em);
}

/* RIGHT column: animated scenes */
.hero__right {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-width: 0;
  visibility: hidden;
  overflow: visible;
}

@media (min-width: 1024px) {
  .hero__right {
    flex: 1 1 50%;
    max-width: 50%;
    margin: 0;
  }
}

/* Scenes container */
.hero__scenes {
  position: relative;
}

@media (min-width: 1024px) {
  .hero__scenes { min-height: 460px; }
}

/* Slides: absolute positioned, animated via GSAP swipe */
.hero__slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.hero__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: all slides absolute, container has pre-measured height */
@media (max-width: 1023px) {
  .hero__scenes { min-height: 0; position: relative; }
  .hero__slide { position: absolute; top: 0; left: 0; right: 0; }
  .hero__slide--active { }
}

/* Vertical scene layout (card → arrow → window, top to bottom) */
.hero__vscene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  height: 100%;
}

@media (min-width: 1024px) {
  .hero__vscene { align-items: center; }
}

@media (max-width: 1023px) {
  .hero__vscene--compact { padding-top: 0; gap: 10px; }
}

/* Mobile CTA after showcase — hidden on desktop */
.hero__cta-mobile {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.hero__cta-desktop { display: none; }

@media (min-width: 1024px) {
  .hero__cta-mobile { display: none; }
  .hero__cta-desktop { display: inline-flex; }
}

/* Card wrapper: constrain width so flex centering works */
.nb-card-wrapper { width: 300px; max-width: 100%; }

/* Card text left-aligned */
.nb-card, .nb-card__body, .nb-tool-card, .nb-transcript-card { text-align: left; }

/* Vertical arrow — higher specificity to override .paste-arrow base */
.paste-arrow.paste-arrow--vertical {
  width: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* --- Card Stack (stacked deck of tool cards) --- */
.nb-card-stack {
  position: relative;
  width: 280px;
  height: 210px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.nb-card-stack__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 400ms cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity 400ms ease,
              box-shadow 400ms ease;
  will-change: transform, opacity;
}

/* Swipe-out animations */
.nb-card-stack__card--swipe-left {
  transform: translateX(-120%) rotate(-8deg) !important;
  opacity: 0 !important;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 350ms ease !important;
}

.nb-card-stack__card--swipe-right {
  transform: translateX(120%) rotate(8deg) !important;
  opacity: 0 !important;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 350ms ease !important;
}

/* --- Info row below the split --- */
.hero__info-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  max-width: 1234px;
  margin: 64px auto 0;
  padding: 0 40px;
  gap: 32px;
}

.hero__info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.hero__info-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.hero__info-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero__info-row {
    flex-direction: column;
    padding: 0 24px;
    margin-top: 40px;
  }
}

/* Zendesk ticket window */
.paste-field {
  width: 300px;
  background: #F5F5F7;
  border: 1px solid #E2E4E8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.paste-field__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F5F5F7;
  border-bottom: 1px solid #E8E8ED;
}

.paste-field__dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.paste-field__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #86868B;
  margin-left: 8px;
}

.paste-field__body {
  margin: 6px;
  padding: 10px 12px;
  min-height: 190px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E8E8ED;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: #1D1D1F;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.paste-field__text {
  display: inline;
}

.paste-field__blink-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: #007AFF;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ─── Arrow (visual only, with spacing) ─── */

.paste-arrow {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 28px;
}

/* ─── Ghost text layer (fragments float from card to window) ─── */

.ghost-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

.ghost-word {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #1D1D1F;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* Text appearing in the editor — soft fade in */
.paste-word-appear {
  display: inline;
  opacity: 0;
  animation: word-fade-in 0.5s ease-out forwards;
}

@keyframes word-fade-in {
  0%   { opacity: 0; filter: blur(3px); transform: translateY(2px); }
  100% { opacity: 1; filter: blur(0px); transform: translateY(0); }
}


/* ─── Wiggly "Click" hint arrow ─── */

/* ─── "Click" hint — top-left of card ─── */

.click-hint {
  position: absolute;
  top: -63px;
  left: -29px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  z-index: 20;
  pointer-events: none;
  animation: hint-bob 2.5s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.click-hint__label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #86868B;
  margin-left: -12px;
}

.click-hint__arrow {
  margin-left: 0;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 480px) {
  .click-hint { left: -10px; }
  .swipe-hint { right: -10px; }
}

.click-hint--hidden,
.swipe-hint--hidden {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.9) !important;
  transition: opacity 0.3s ease, transform 0.3s ease;

}

/* ─── "Swipe" hint — top-right of card stack ─── */

.swipe-hint {
  position: absolute;
  top: -55px;
  right: -29px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: hint-bob 2s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swipe-hint__label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #86868B;
  margin-right: -12px;
}

.swipe-hint__arrow {
  margin-right: 0;
}

/* ─── Template card hover: lift + scale + pointer ─── */

.nb-card--template {
  cursor: pointer;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.nb-card--template:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}


/* ─── NB Card (Template) — from Pencil: 12px radius, Inter, #E2E4E8 stroke ─── */

.nb-card {
  position: relative;
  width: 300px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #E2E4E8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  font-family: 'Inter', sans-serif;
}

.nb-card__accent {
  width: 4px;
  flex-shrink: 0;
  border-radius: 0;
}

.nb-card__body {
  flex: 1;
  padding: 14px 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 165px;
}

.nb-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-card__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nb-card__title {
  font-size: 13px;
  font-weight: 600;
  color: #1D1D1F;
}

.nb-card__tag {
  font-size: 11px;
  font-weight: 600;
}

.nb-card__text {
  font-size: 12px;
  font-weight: 400;
  color: #515151;
  line-height: 1.5;
}

.nb-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #AEAEB2;
}

/* ─── NB Card (Skill) — from Pencil: 18px radius, #E8E4DC stroke ─── */

.nb-card--skill {
  border-radius: 18px;
  border-color: #E8E4DC;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nb-card--skill .nb-card__body {
  padding: 14px 16px 12px 16px;
  gap: 6px;
  min-height: 160px;
}

.nb-card__tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nb-card__pill {
  font-size: 11px;
  font-weight: 500;
  color: #6E6E73;
  background: #F2F3F5;
  padding: 3px 8px;
  border-radius: 6px;
}

.nb-card__app-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #1D1D1F;
  background: #F2F3F5;
  padding: 3px 8px;
  border-radius: 6px;
}


/* Skills vertical scene — match transcript cards to skill card width */
.hero__vscene .nb-transcript-card { width: 300px; }
.nb-transcript-card--result { border-color: #007AFF30; opacity: 0; }
.nb-transcript-card__text--compact p { margin: 0; padding: 3px 0; }

/* Compact 2-slot layout: input/result share top, skill card stays below */
.skill-anim__top-slot {
  position: relative;
  width: 300px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-anim__top-slot .nb-transcript-card {
  width: 100%;
}

.skill-anim__top-slot #skill-output {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.nb-transcript-card--result .nb-transcript-card__label { color: #007AFF; }

.nb-transcript-card--result .nb-transcript-card__label {
  color: #007AFF;
}

.nb-transcript-card {
  width: 220px;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nb-transcript-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #AEAEB2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nb-transcript-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #1D1D1F;
}


/* ─── NB Tool Cards (3-across row) ─── */

.nb-tools-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.nb-tool-card {
  width: 224px;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.nb-tool-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-tool-card__name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
}

.nb-tool-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6E6E73;
}

.nb-tool-card__cmd {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #86868B;
  background: #F5F5F7;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #E8E8ED;
}


/* Detail link */
.hero__detail-link {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.hero__detail-link:hover { color: var(--text-primary); }

/* Tab buttons row — tars.pro pagination style */
.hero__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  order: 0;
}

.hero__tabs {
  background-color: #F5F5F7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
}

.hero__tab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease-out;
  user-select: none;
}

.hero__tab:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.7);
}

.hero__tab--active {
  color: var(--text-primary);
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero__tab svg {
  flex-shrink: 0;
}


/* --- Hero responsive: scale cards and scenes for mobile --- */
@media (max-width: 1023px) {
  .hero__vscene { align-items: center; }
  .nb-card { width: min(300px, 100%); }
  .paste-field { width: min(300px, 100%); }
  .nb-transcript-card { width: min(300px, 100%) !important; }
  .nb-card-stack { width: min(240px, 100%); }
}

@media (max-width: 480px) {
  .hero__tabs .hero__tab { padding: 8px 12px; font-size: 12px; }
  .hero__desc { max-width: 100%; }
}


/* Hero-to-dark transition — hidden, replaced by rounded dark-band top */
.hero__fade { display: none; }


/* ═══════════════════════════════════════════════════════════════
   8b. STATEMENT SECTION (full-bleed dark banner)
   ═══════════════════════════════════════════════════════════════ */

.statement {
  position: relative; z-index: 1;
  padding: var(--space-2xl) clamp(24px, 4vw, 64px) var(--space-xl);
  scroll-margin-top: 88px;
}

.statement__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.statement__text {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}

.statement__text--sm {
  font-size: clamp(26px, 3.2vw, 40px);
}

.pencil-underline {
  display: inline;
}

/* Statement cards grid — 1 tall left + 2 stacked right (tars.pro gateway pattern) */
.statement__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: var(--space-3xl);
  text-align: left;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .statement__cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .statement__card--large {
    grid-row: 1 / 3;
  }
}

.statement__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-lg);
  background-color: #242426;
  transition: background-color 300ms ease;
}

.statement__card:hover {
  background-color: #2a2a2c;
}

.statement__card--large {
  min-height: 360px;
}

.statement__card--small {
  min-height: 170px;
}

/* Mobile-only "bee yourself." text — hidden on desktop */
.bees-mobile-text {
  display: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 0.85;
  padding: 24px 0 8px;
}

@media (max-width: 768px) {
  .statement { padding: var(--space-3xl) clamp(16px, 4vw, 64px) var(--space-lg); }
  .statement__card--large { min-height: auto; }
  .statement__cards { margin-top: var(--space-xl); }

  .bees-full { display: none !important; }
  .bees-mobile-text { display: block; }
  .statement__card-figure--bees { flex: 0 !important; }
}


.statement__card-figure {
  margin-bottom: auto;
  margin-top: auto;
  display: flex;
  align-items: center;
}

.statement__card-figure svg {
  display: block;
}

.statement__card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-lg);
}

.statement__card--small .statement__card-info {
  margin-top: var(--space-sm);
}

.statement__card-title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.statement__card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}


/* ═══════════════════════════════════════════════════════════════
   8c. DOWNLOAD CTA (tars.pro panel pattern)
   ═══════════════════════════════════════════════════════════════ */

.download-cta {
  position: relative; z-index: 1;
  padding: 0 clamp(24px, 4vw, 64px) var(--space-3xl);
}

.download-cta__inner {
  max-width: 650px;
  margin: 0 auto;
}

.download-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: var(--space-2xl) var(--space-xl);
  background-color: #242426;
  position: relative;
  overflow: hidden;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 80px;
}

.download-cta__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  flex: 1;
  position: relative;
  z-index: 1;
}

.download-cta__heading {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}

.download-cta__sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
}

.download-cta__btn {
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.download-cta__btn:hover {
  background-color: #F0F0F0;
}

.download-cta__right {
  flex-shrink: 0;
}

.download-cta__right svg {
  display: block;
}

/* Sneak-peek image from right edge */
.download-cta__right--peek {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.download-cta__peek-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.9;
  border-radius: 0 16px 16px 0;
}

@media (max-width: 640px) {
  .download-cta__panel {
    flex-direction: column;
    text-align: center;
  }

  .download-cta__left {
    align-items: flex-start;
  }

  .download-cta__sub {
    max-width: 100%;
  }

  .download-cta__panel {
    padding-bottom: 380px;
  }

  .download-cta__right--peek {
    position: absolute;
    top: auto;
    bottom: 0;
    right: -20px;
    left: auto;
    width: 95%;
    height: 380px;
    overflow: hidden;
  }

  .download-cta__peek-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    border-radius: 12px 0 16px 0;
    transform: none;
  }
}



/* ═══════════════════════════════════════════════════════════════
   8e. FEATURE SECTIONS (charcoal, tars.pro deep-dive pattern)
   ═══════════════════════════════════════════════════════════════ */

.feat {
  position: relative; z-index: 1;
  padding: 0 clamp(24px, 4vw, 64px);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.feat__inner {
  max-width: 650px;
  margin: 0 auto;
}

.feat__separator {
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  margin: 0 0 var(--space-3xl);
}

.feat__heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.feat__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.feat__split {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: var(--space-xl);
  margin-bottom: 0;
  background-color: #242426;
}

@media (min-width: 768px) {
  .feat__split {
    flex-direction: row;
    align-items: center;
  }
}

.feat__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feat__desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.feat__image {
  flex: 1;
  min-width: 0;
}

.feat__image--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat__tool-card {
  width: 100%;
  max-width: 240px;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

/* Equalize gap above "Seven Ways" to match gap above "Speak It. Ship It." */
#feat-voice {
  padding-bottom: var(--space-xl);
}
#feat-rewrite {
  padding-bottom: 0;
}
#feat-cards {
  padding-top: var(--space-md);
}

/* Three-column panel row — styled like feat__split panels */
.feat__three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .feat__three-col {
    grid-template-columns: 1fr 1fr;
    max-width: 650px;
    margin: 0 auto;
  }
}

.feat__col-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background-color: #242426;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.feat__col-card svg {
  display: block;
  opacity: 0.7;
}

.feat__col-title {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.feat__col-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.feat__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .feat__col-card { padding: var(--space-lg); }
  .feat { padding-bottom: var(--space-xl); }
}

/* Mobile: disable cursor glow, show subtle static blue grid tint instead */
@media (max-width: 768px) {
  .dark-band::after {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.08;
  }
  .dark-band.has-cursor::after { opacity: 0.08; }
}


/* ═══════════════════════════════════════════════════════════════
   9. GATEWAY CARDS (tars.pro 2-col card grid)
   ═══════════════════════════════════════════════════════════════ */

.gateway-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xs); max-width: 848px; margin: 0 auto; }
@media (min-width: 768px) { .gateway-grid { grid-template-columns: 1fr 1fr; } }

.gateway-card-featured {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--text-primary) 0%, #2C2C2E 100%);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm);
  min-height: 360px; position: relative;
}
.gateway-card-featured h3 { color: white; font-size: 22px; }
.gateway-card-featured p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.5; max-width: 304px; }
.gateway-card-featured .card-figure { margin-top: auto; border-radius: var(--radius-md); overflow: hidden; transition: transform 500ms cubic-bezier(0,0.35,0.15,1); }
.gateway-card-featured:hover .card-figure { transform: scale(1.06); transition-duration: 1400ms; }

.gateway-stack { display: flex; flex-direction: column; gap: var(--space-xs); }

.gateway-card-sm {
  border-radius: var(--radius-lg); padding: var(--space-lg); background-color: var(--surface);
  border: 1px solid var(--border-light); display: flex; flex-direction: column; gap: var(--space-xs);
  position: relative; overflow: hidden; flex: 1; transition: box-shadow 200ms ease-out;
}
.gateway-card-sm:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.gateway-card-sm .card-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background-color: var(--surface-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.gateway-card-sm h4 { font-size: 16px; font-weight: 600; }
.gateway-card-sm p { font-size: 14px; color: var(--text-secondary); max-width: 240px; }
.gateway-card-sm .card-arrow { font-size: 14px; color: var(--text-tertiary); transition: color 150ms ease-out; }
.gateway-card-sm:hover .card-arrow { color: var(--text-primary); }


/* ═══════════════════════════════════════════════════════════════
   10. PRODUCT SECTIONS (text + image rows)
   ═══════════════════════════════════════════════════════════════ */

.product-row { display: flex; flex-direction: column; gap: var(--space-3xl); max-width: 848px; margin: 0 auto; align-items: center; }
@media (min-width: 768px) { .product-row { flex-direction: row; justify-content: space-between; gap: var(--space-lg); } }

.product-info { display: flex; flex-direction: column; gap: var(--space-md); max-width: 440px; }
.product-info p { max-width: 392px; }
.product-image { max-width: 300px; flex-shrink: 0; }

.product-row.reverse { flex-direction: column; }
@media (min-width: 768px) { .product-row.reverse { flex-direction: row-reverse; } }


/* ═══════════════════════════════════════════════════════════════
   11. PARTNERS
   ═══════════════════════════════════════════════════════════════ */

.partners-section { text-align: center; }
.partners-title { font-size: 14px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-xl); }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: var(--space-2xl); flex-wrap: wrap; }


/* ═══════════════════════════════════════════════════════════════
   12. FEATURE GRIDS
   ═══════════════════════════════════════════════════════════════ */

.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); max-width: 1024px; margin: 0 auto; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card { display: flex; flex-direction: column; gap: var(--space-sm); text-align: center; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto var(--space-xs); border-radius: var(--radius-md); background-color: var(--surface-tertiary); color: var(--text-secondary); }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }


/* ═══════════════════════════════════════════════════════════════
   13. HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.step-card { text-align: center; }
.step-card h3 { margin-bottom: var(--space-xs); }
.step-card p { font-size: 15px; color: var(--text-secondary); }
.step-icon { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-bottom: var(--space-md); color: var(--accent); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background-color: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   14. TOOLS
   ═══════════════════════════════════════════════════════════════ */

.tools-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-bottom: var(--space-3xl); }
.stat-card { text-align: center; padding: var(--space-lg) var(--space-md); }
.stat-value { display: block; font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--text-primary); line-height: 1.15; margin-bottom: var(--space-xs); }
.stat-label { display: block; font-size: 14px; color: var(--text-secondary); }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.tool-card { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--space-md); align-items: start; }
.tool-card h4 { margin-bottom: var(--space-xs); }
.tool-card p { font-size: 14px; color: var(--text-secondary); }
.tool-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-sm); grid-row: span 2; }

.icon-list { display: flex; flex-direction: column; gap: var(--space-md); }
.icon-list li { display: flex; align-items: center; gap: var(--space-sm); font-size: 15px; color: var(--text-body); line-height: 1.5; }
.icon-list li svg, .icon-list li img { flex-shrink: 0; width: 24px; height: 24px; }
.icon-list li strong { color: var(--text-primary); }


/* ═══════════════════════════════════════════════════════════════
   15. PRICING — moved to pricing.css
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   15b. WAITLIST MODAL
   ═══════════════════════════════════════════════════════════════ */

.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.waitlist-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-panel {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  position: relative;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  transform: scale(0.95) translateY(10px);
  transition: transform 250ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

.waitlist-overlay--active .waitlist-panel {
  transform: scale(1) translateY(0);
}

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #86868B;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.waitlist-close:hover {
  color: #1D1D1F;
}

.waitlist-title {
  font-size: 22px;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.waitlist-desc {
  font-size: 14px;
  color: #86868B;
  line-height: 1.5;
  margin-bottom: 24px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E8E8ED;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1D1D1F;
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

/* Honeypot — visually hidden but accessible to bots */
.waitlist-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.waitlist-input::placeholder {
  color: #AEAEB2;
}

.waitlist-input:focus {
  border-color: #007AFF;
}

.waitlist-submit {
  width: 100%;
  padding: 12px;
  background: #1D1D1F;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 150ms ease;
}

.waitlist-submit:hover {
  background: #2C2C2E;
}

.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist-desc strong {
  color: #1D1D1F;
  font-weight: 600;
}

.waitlist-note {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

.waitlist-legal {
  font-size: 12px;
  color: #AEAEB2;
  margin-top: 16px;
}

.waitlist-legal a {
  color: #86868B;
  text-decoration: underline;
}

.waitlist-legal a:hover {
  color: #1D1D1F;
}

@media (max-width: 480px) {
  .waitlist-panel {
    margin: 0 16px;
    padding: 32px 24px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   16. FOOTER CTA
   ═══════════════════════════════════════════════════════════════ */

.footer-cta {
  position: relative; overflow: hidden;
  padding: calc(var(--space-5xl) + 80px + 24px) 0 calc(var(--space-5xl) + 80px);
  text-align: center;
}
@media (min-width: 1024px) { .footer-cta { padding: calc(var(--space-6xl) + 80px + 24px) 0 calc(var(--space-6xl) + 80px); } }

.footer-cta .section-header { margin-bottom: var(--space-xl); }

/* Tight wrapper so bees can float around the sides */
.footer-cta-text-wrap { display: inline-block; }


/* Floating 3D logo cards container */
.floating-logos {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
  perspective: 900px;
}

/* Each logo is a 3D extruded bee shape */
.floating-logo {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  transform-style: preserve-3d;
}

/* Front face — the coloured bee */
.floating-logo__face {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transform: translateZ(0);
}

/* Depth layers — black silhouettes stacked behind the front */
.floating-logo__depth {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

/* Vertical stack: button + note */
.footer-cta-actions {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}

.cta-note { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 13px; color: var(--text-secondary); margin-top: var(--space-lg); }
.cta-note svg { flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════════
   17. FOOTER (tars.pro style: dark, multi-column, link grid)
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background-color: #111111;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
}

/* Footer background is plain dark — no floating shapes */

.footer-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: var(--space-2xl);
  max-width: 1024px; margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}
@media (min-width: 1024px) { .footer-inner { padding-top: var(--space-5xl); } }

/* Top row: brand left + link columns right */
.footer-top {
  display: flex; flex-direction: column; gap: var(--space-2xl);
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: var(--space-lg); }

.footer-logo { display: flex; align-items: flex-end; gap: 4px; }
.footer-logo img { width: 24px; height: 24px; flex-shrink: 0; }
.footer-brand-text { font-size: 17px; font-weight: 600; color: white; letter-spacing: -0.01em; line-height: 1; }
.footer-tagline { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.4); max-width: 260px; }

/* Social icons row */
.footer-socials { display: flex; gap: var(--space-sm); }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.footer-social-link:hover { background-color: rgba(255,255,255,0.15); color: white; }

/* Link columns (3-col grid like tars.pro) */
.footer-menu {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}
@media (min-width: 768px) {
  .footer-menu { grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl) 52px; }
}
@media (min-width: 1024px) {
  .footer-menu { gap: var(--space-2xl) 72px; }
}

.footer-menu-group { display: flex; flex-direction: column; gap: var(--space-lg); }

.footer-menu-title {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.35);
}

.footer-menu-title.soon {
  background: linear-gradient(90deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.footer-menu-links { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-menu-links a {
  font-size: 15px; color: white; text-decoration: none;
  transition: color 150ms ease-out;
}
.footer-menu-links a:hover { color: var(--accent); }
.footer-menu-links a.disabled { pointer-events: none; color: rgba(255,255,255,0.25); }

/* Bottom bar */
.footer-bottom {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a {
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 150ms ease-out;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.25); }


/* ═══════════════════════════════════════════════════════════════
   18. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .container, .container-wide, .container-narrow { padding-left: var(--space-md); padding-right: var(--space-md); }

  .hero-sub { font-size: 16px; max-width: 100%; }
  .trust-badges { flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-bottom: var(--space-2xl); }

  .steps-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .tools-stats { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Terms of Service, Privacy Notice)
   ═══════════════════════════════════════════════════════════════ */

.legal-page {
  background-color: var(--surface);
  padding: 80px 24px 120px;
  scroll-behavior: smooth;
}

/* Offset anchors so headings don't hide behind sticky nav */
.legal-page [id] {
  scroll-margin-top: 80px;
}

.legal-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Headings */
.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

/* Body text */
.legal-page p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
  word-break: break-word;
}

.legal-page p strong {
  color: var(--text-primary);
}

.legal-page em {
  color: var(--text-secondary);
}

/* Links */
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--accent-hover);
}

/* Lists */
.legal-page ul,
.legal-page ol {
  margin: 12px 0 16px 24px;
  list-style: revert;
}

.legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 6px;
  word-break: break-word;
}

.legal-page li strong {
  color: var(--text-primary);
}

/* Tables */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-page thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--surface-tertiary);
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.legal-page tbody td {
  padding: 10px 14px;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.legal-page tbody td strong {
  color: var(--text-primary);
}

.legal-page tbody tr:hover {
  background-color: var(--surface-secondary);
}

/* Horizontal rules */
.legal-page hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

/* Code (for paths like ~/Library/...) */
.legal-page code {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  background-color: var(--surface-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-break: break-all;
}

/* Hide footer CTA on legal pages — only show the actual footer */
.is-legal-page .footer-cta { display: none; }

/* Responsive tables */
@media (max-width: 640px) {
  .legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-page {
    padding: 60px 16px 80px;
  }
}
