/* ============================================
   Tapflow — Shared + Landing Page Stylesheet
   ============================================ */

/* --- Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-75: rgba(255, 255, 255, 0.75);
  --white-35: rgba(255, 255, 255, 0.35);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-06: rgba(255, 255, 255, 0.06);
  --brand-purple: #2D1B69;
  --brand-lavender: #593F8C;
  --brand-indigo: #1A0A4E;
  --accent-yellow: #FFD60A;
  --accent-orange: #FF9500;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius-card: 14px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--white);
  --spot-w: 65%;
  --spot-h: 90%;
  background: #050208;
  background-image:
    radial-gradient(
      ellipse var(--spot-w) var(--spot-h) at 50% -5%,
      rgba(89, 63, 140, 0.8) 0%,
      rgba(89, 63, 140, 0.2) 50%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 40% 70% at 65% 5%,
      rgba(120, 70, 160, 0.25) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 90% 100% at 50% 10%,
      rgba(26, 10, 78, 0.4) 0%,
      transparent 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--white-75);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--white); }


/* ==========================================
   LAYOUT
   ========================================== */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}


/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-current {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(30, 25, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
  min-width: 56px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-selector.open .lang-dropdown {
  display: flex;
  flex-direction: column;
}

.lang-option {
  color: var(--white-50);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}

.lang-option:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(5, 2, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-download {
  padding: 6px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-lavender));
  color: var(--white) !important;
  font-weight: 600 !important;
}

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

@media (max-width: 640px) {
  .site-nav { padding: 10px 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.75rem; }
  .nav-download { padding: 5px 12px; font-size: 0.75rem; }
  .nav-logo span { display: none; }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 768px;
  margin: 0 auto;
  width: 100%;
}

.top-bar .nav-back {
  padding: 0; margin: 0;
  width: auto; max-width: none;
}


/* ==========================================
   NAVIGATION (sub-pages)
   ========================================== */

.nav-back { padding: 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.nav-back a { font-size: 0.9rem; color: var(--white-60); letter-spacing: 0.02em; }
.nav-back a:hover { color: var(--white); }


/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 64px;
  min-height: 0;
}

body.coming-soon .hero {
  min-height: 100vh;
}

/* Pulsing halo */
.hero-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(89, 63, 140, 0.5), transparent 70%);
  animation: halo-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.55; }
}

.hero > *:not(.hero-halo) { position: relative; z-index: 1; }

.hero-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-logo img { width: 56px; height: 56px; object-fit: contain; }

.hero-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

/* Hero title — words animated via JS */
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: word-in 0.5s ease forwards;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--white-60);
  max-width: 540px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.6s ease 0.4s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.6s ease 0.7s forwards;
}

.hero-cta--soon { display: none; }
.hero-cta--full { display: flex; }

body.coming-soon .hero-cta--soon { display: flex; }
body.coming-soon .hero-cta--full { display: none; }
body.coming-soon .footer { display: none; }
body.coming-soon .page-wrapper { height: 100vh; overflow: hidden; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, var(--brand-purple), var(--brand-lavender));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge svg { width: 18px; height: 18px; flex-shrink: 0; }

.os-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--white-35);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 0.6s ease 0.9s forwards;
}


/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to right, var(--brand-purple), var(--brand-lavender));
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary:hover {
  color: var(--white);
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(89, 63, 140, 0.4);
}

.btn-primary--sm { font-size: 0.9rem; padding: 12px 24px; }
.btn-primary--sm svg { width: 16px; height: 16px; }

.btn-primary--glow {
  animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(89, 63, 140, 0.3); }
  50% { box-shadow: 0 0 40px rgba(89, 63, 140, 0.6); }
}

.btn-text {
  color: var(--white-60);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.btn-text:hover { color: var(--accent-yellow); }

/* Disabled buttons — coming soon tooltip */
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  position: relative;
}

.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.btn-disabled::after {
  content: "Coming soon";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.9);
  color: var(--white-75);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-disabled:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.btn-primary.btn-disabled {
  animation: none;
}


/* ==========================================
   SCROLL REVEAL
   ========================================== */

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.bento-grid .reveal:nth-child(1) { transition-delay: 0s; }
.bento-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.bento-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.bento-grid .reveal:nth-child(4) { transition-delay: 0.3s; }


/* ==========================================
   VIDEO DEMO
   ========================================== */

.section-demo {
  max-width: 800px;
  padding-top: 0;
  padding-bottom: 80px;
}

.mac-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #0a0a0a;
  transition: transform 0.4s ease;
}

.mac-window:hover { transform: translateY(-4px); }

.mac-titlebar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dot--red { background: #FF5F57; }
.mac-dot--yellow { background: #FFBD2E; }
.mac-dot--green { background: #28CA42; }

.mac-content {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
}

.mac-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mac-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(45, 27, 105, 0.2), transparent 70%);
}

.mac-placeholder img { opacity: 0.15; }

.demo-caption {
  text-align: center;
  color: var(--white-35);
  font-size: 0.9rem;
  margin-top: 24px;
  font-style: italic;
}


/* ==========================================
   FEATURE SECTIONS
   ========================================== */

.section-feature { padding-top: 40px; }

.feature-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-header p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--white-60);
}


/* ==========================================
   BENTO GRID
   ========================================== */

.bento-grid {
  display: grid;
  gap: 16px;
}

.bento-grid--4 {
  grid-template-columns: repeat(3, 1fr);
}

.bento-grid--3 {
  grid-template-columns: repeat(2, 1fr);
}

.bento-grid--2 {
  grid-template-columns: 1.5fr 1fr;
}

.bento-card,
.presets-card {
  --mx: 50%;
  --my: 50%;
  --glow-r: 255;
  --glow-g: 255;
  --glow-b: 255;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

/* Glow border — wrapper technique: pseudo sits behind with gradient, card bg covers the inside */
.bento-card::before,
.bento-card::after,
.presets-card::before,
.presets-card::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

/* Gradient layer — border line + outer glow */
.bento-card::before,
.presets-card::before {
  inset: -2px;
  background: radial-gradient(
    400px circle at var(--mx) var(--my),
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.5),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(0px);
}

/* Inner fill — masks the center so only the border glows */
.bento-card::after,
.presets-card::after {
  inset: 0;
  background: #0e0b16;
  border-radius: calc(var(--radius-card) - 1px);
  z-index: 0;
}

.bento-card:hover::before,
.presets-card:hover::before {
  opacity: 1;
}

/* Outer glow halo */
.bento-card:hover,
.presets-card:hover {
  box-shadow:
    0 0 15px 0 rgba(var(--glow-r), var(--glow-g), var(--glow-b), calc(var(--glow-intensity, 0) * 0.08)),
    0 0 40px 0 rgba(var(--glow-r), var(--glow-g), var(--glow-b), calc(var(--glow-intensity, 0) * 0.04));
}

/* Content above the pseudo layers */
.bento-card > *,
.presets-card > * {
  position: relative;
  z-index: 1;
}

.bento-lg {
  grid-column: 1 / -1;
}

.bento-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 12px;
}

.bento-lg .bento-visual { min-height: 180px; }

.bento-label {
  font-size: 0.85rem;
  color: var(--white-60);
}

/* Tier badges */
.tier-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.tier-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-60);
}

.tier-pro {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  color: #000;
}


/* ==========================================
   KEYBOARD VISUALS
   ========================================== */

/* Shared screen components (used by keyboard small screens too) */
.kb-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kb-screen-bezel {
  width: 140px;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 8px 2px 2px;
  padding: 6px;
}

.kb-screen-display {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.kb-screen-stand {
  width: 24px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  border-right: 1.5px solid rgba(255, 255, 255, 0.15);
}

.kb-screen-base {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 3px 3px;
}

/* Keyboard pill inside the large screen */
.kb-screen-pill {
  position: absolute;
  bottom: 8%;
  left: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.kb-screen-pill span {
  display: inline-block;
  line-height: 1;
}



/* ==========================================
   MOUSE VISUALS
   ========================================== */

/* Break out of the lp-section max-width */
#mouse {
  max-width: none;
  padding-left: 0;
  overflow: hidden;
}

.mouse-layout {
  display: flex;
  gap: 32px;
  min-height: 550px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
  padding-right: 24px;
}

.mouse-left {
  width: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.mouse-left .feature-header {
  text-align: left;
  padding: 0;
  margin: 0;
}

.mouse-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mouse-feat-card {
  padding: 0;
}

/* Left column (anim): extends to screen edge on the left */
.mouse-right {
  flex: 1;
  position: relative;
  overflow: visible;
}

.mouse-anim-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mouse-anim-cursor {
  position: absolute;
  width: 64px;
  height: 64px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Wiki scroll viewport - no border, no background, free floating */
.mouse-wiki-viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.mouse-wiki-viewport {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.mouse-wiki-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.7;
}

.mouse-anim-svg {
  z-index: 3;
}

/* Scroll chevron indicators */
.mouse-scroll-chevron {
  position: absolute;
  width: 28px;
  height: 28px;
  color: var(--accent-yellow);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

@media (max-width: 640px) {
  .mouse-wiki-viewport {
    width: 260px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #mouse {
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
  }
  .mouse-layout {
    flex-direction: column;
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
    gap: 20px;
  }
  .mouse-left { width: 100%; order: 1; }
  .mouse-left .feature-header { text-align: center; }
  .mouse-right { flex: none; width: 100%; height: 200px; min-height: 200px; margin-left: 0; padding-left: 0; overflow: hidden; border-radius: 14px; order: 2; }
  .mouse-cards { grid-template-columns: 1fr 1fr; }
  .mouse-feat-card .cam-card-title,
  .mouse-feat-card .cam-card-desc { display: none; }
  .mouse-feat-card .cam-card-label { display: block; text-align: center; }
  .mouse-feat-card .cam-card-body { flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; }
  .mouse-feat-card .cam-card-icon { font-size: 1.3rem; }
}


/* ==========================================
   CAMERA VISUALS
   ========================================== */

/* Camera layout — two columns of bento-cards */
.cam-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

/* Left column: feature cards */
.cam-cards {
  width: 28%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cam-card {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
  padding: 0;
}

.cam-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.cam-card-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--white-60);
  transition: color 200ms ease;
}

.cam-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-60);
  margin-bottom: 2px;
  transition: color 200ms ease;
}

.cam-card-desc {
  font-size: 0.7rem;
  color: var(--white-35);
  line-height: 1.4;
  transition: color 200ms ease;
}

/* Short label — hidden on desktop, shown on mobile */
.cam-card-label {
  display: none;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--white-60);
  transition: color 200ms ease;
}

.cam-card--active .cam-card-label {
  color: var(--white);
}

/* Active state — full glow border */
.cam-card--active {
  border-color: rgba(89, 63, 140, 0.8) !important;
  box-shadow:
    0 0 12px 0 rgba(89, 63, 140, 0.4),
    0 0 30px 0 rgba(89, 63, 140, 0.2),
    inset 0 0 20px 0 rgba(89, 63, 140, 0.1) !important;
}

.cam-card--active .cam-card-icon,
.cam-card--active .cam-card-title {
  color: var(--white);
}

.cam-card--active .cam-card-desc {
  color: var(--white-60);
}

/* Right column: screen area — no card background */
.cam-screen-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.cam-screen-card::before,
.cam-screen-card::after {
  display: none !important;
}

.cam-showcase-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Larger screen for camera showcase */
.kb-screen--lg {
  width: 100%;
}

.kb-screen--lg .kb-screen-bezel {
  width: 100%;
  aspect-ratio: 16/10;
  padding: 10px;
  border-width: 2px;
  border-radius: 10px 10px 3px 3px;
}

.kb-screen--lg .kb-screen-display {
  overflow: hidden;
  border-radius: 5px;
}

.cam-screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.kb-screen--lg .kb-screen-stand {
  width: 70px;
  height: 32px;
  border-width: 2px;
}

.kb-screen--lg .kb-screen-base {
  width: 150px;
  height: 8px;
  border-width: 2px;
  border-radius: 0 0 5px 5px;
}

/* Live camera bubble inside screen */
.cam-live-bubble {
  position: absolute;
  top: 8%;
  left: 78%;
  width: 18%;
  height: 28%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transition:
    border-radius 400ms ease-in-out,
    opacity 400ms ease-in-out;
  z-index: 2;
}

.cam-live-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cursor for demos */
.cam-demo-cursor {
  position: absolute;
  width: 10%;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  z-index: 3;
  pointer-events: none;
}

/* Tablet */
@media (max-width: 900px) {
  .cam-layout { gap: 12px; }
  .cam-cards { width: 32%; }
  .cam-card-desc { display: none; }
}

/* Mobile: stack vertically, compact icon pills */
@media (max-width: 640px) {
  .cam-layout { flex-direction: column; gap: 10px; }
  .cam-cards {
    width: 100%;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
  }
  .cam-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  .cam-card-body {
    padding: 10px 14px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  /* Hide title+desc on mobile, show short label under icon */
  .cam-card-title,
  .cam-card-desc { display: none; }
  .cam-card-label {
    display: block;
    text-align: center;
  }
  .cam-card-icon { font-size: 1.3rem; }
  .cam-screen-card { padding: 14px; }
  .kb-screen--lg .kb-screen-stand { width: 40px; height: 16px; }
  .kb-screen--lg .kb-screen-base { width: 80px; height: 5px; }
  .cam-demo-cursor { width: 7%; }
}


/* ==========================================
   ANNOTATIONS VISUALS
   ========================================== */

/* Annotation showcase — transparent parent zone for cursor */
.anno-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Toolbar row — floating freely */
.anno-toolbar-row {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

/* Canvas card — separate below with gap, own glow via box-shadow */
.anno-canvas-card {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.anno-canvas-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 15px 0 rgba(255, 255, 255, 0.06),
    0 0 40px 0 rgba(255, 255, 255, 0.03);
}


.anno-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.anno-canvas-svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}


/* Toolbar container */
.anno-toolbar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: #000000;
  border-radius: 22px;
  padding: 8px 12px;
  overflow: visible;
}

/* Separator */
.anno-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5px;
  margin: 0 4px;
  flex-shrink: 0;
}

/* Tool & action buttons */
.anno-btn {
  width: 30px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: default;
  padding: 0;
  flex-shrink: 0;
  color: #FFFFFF;
  transition: color 0.15s ease;
}

.anno-btn svg {
  width: 14px;
  height: 14px;
}

/* Active tool = green */
.anno-btn--active,
.anno-btn.anno-btn--hover {
  color: #34C759;
}

/* Done button */
.anno-btn--done {
  color: #34C759;
}

.anno-btn--done svg {
  width: 16px;
  height: 16px;
}

/* Color swatches */
.anno-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 1.5px;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  transition: border 0.15s ease;
}

.anno-color--selected {
  border: 2px solid #FFFFFF;
}

/* Thickness indicator */
.anno-thickness {
  width: 38px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.anno-thickness-bar {
  width: 14px;
  height: 3px;
  background: #FFFFFF;
  border-radius: 1.5px;
}

.anno-thickness-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
}

/* Animated cursor on the toolbar */
.anno-cursor {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 14px;
  left: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  z-index: 10;
  pointer-events: none;
  transition: left 0.4s ease-in-out;
}

/* Tablet — annotation toolbar */
@media (max-width: 900px) {
  .anno-toolbar-wrap {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* Mobile — annotation */
@media (max-width: 640px) {
  .anno-showcase { gap: 16px; }
  .anno-toolbar-wrap {
    transform: scale(0.6);
    transform-origin: center;
  }
  .anno-canvas-card { height: 180px; }
  .anno-cursor { width: 30px; height: 30px; }
}


/* ==========================================
   DYNAMIC ISLAND TOOLBAR
   ========================================== */

.section-island {
  text-align: center;
  padding-bottom: 10px;
}

/* Toolbar wrapper - centered, no card */
.island-bar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 60px;
}

/* Cursor for island demo */
.island-cursor {
  position: absolute;
  width: 52px;
  height: 52px;
  left: 50%;
  top: 70px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: scale(0);
  transition: left 400ms ease-in-out, top 400ms ease-in-out;
}

.island-cursor--show {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: left 400ms ease-in-out, top 400ms ease-in-out, opacity 250ms ease, transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.island-cursor--hide {
  opacity: 0 !important;
  transform: scale(0.5) !important;
  transition: left 400ms ease-in-out, top 400ms ease-in-out, opacity 200ms ease, transform 200ms ease !important;
}

/* The toolbar pill */
.island-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 14px;
  background: #000;
  border-radius: 40px;
  transform: scaleX(0) scaleY(0);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 250ms ease;
}

.island-bar.island-bar--open {
  transform: scaleX(1) scaleY(1);
  opacity: 1;
}

.island-bar.island-bar--closing {
  transform: scaleX(0.3) scaleY(0);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.5, 0, 0.8, 0), opacity 300ms ease;
}

/* Icon slots */
.island-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /*background: rgba(255, 255, 255, 0.06);*/
  color: var(--white);
  transition: all 300ms ease;
  opacity: 0;
}

.island-icon svg {
  width: 18px;
  height: 18px;
}

.island-bar--open .island-icon {
  opacity: 1;
}

.island-icon svg {
  width: 16px;
  height: 16px;
}

/* Active state - just icon color, no frame */
.island-icon--active {
  background: transparent;
  border: none;
  color: #34C759;
}

/* Keyboard illustration */
.island-keyboard {
  position: relative;
  max-width: 900px;
  margin: -80px auto 0px;
  perspective: 600px;
}


.island-keyboard-svg {
  width: 100%;
  display: block;
  aspect-ratio: 620 / 230;
  transform: rotateX(25deg) scale(1.5);
  transform-origin: 50% 100%;
  -webkit-mask-image:
    radial-gradient(ellipse 60% 70% at 50% 95%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 75%);
  mask-image:
    radial-gradient(ellipse 60% 70% at 50% 95%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 75%);
}


.island-shortcut-text {
  font-size: 0.8rem;
  color: var(--white-35);
  text-align: center;
  margin-top: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .island-card { padding: 32px 16px; }
  .island-bar { gap: 8px; padding: 0 12px; height: 46px; }
  .island-icon { width: 24px; height: 24px; }
  .island-icon svg { width: 14px; height: 14px; }
}


/* ==========================================
   FOCUS ZONE VISUALS
   ========================================== */

.focus-demo {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.focus-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.focus-spot {
  position: absolute;
  width: 80px; height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  animation: focus-move 4s ease-in-out infinite;
}

@keyframes focus-move {
  0%, 100% { top: 20%; left: 15%; }
  50% { top: 40%; left: 55%; }
}

.focus-cursor {
  animation: focus-cursor-move 4s ease-in-out infinite;
  font-size: 0.75rem;
}

@keyframes focus-cursor-move {
  0%, 100% { top: 35%; left: 35%; }
  50% { top: 55%; left: 75%; }
}

/* Slider */
.focus-slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.focus-slider-preview {
  position: relative;
  width: 100%; max-width: 140px;
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.focus-slider-bg {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.focus-slider-spot-sm {
  position: absolute;
  top: 30%; left: 35%;
  width: 40px; height: 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.focus-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
}

.focus-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
}

.focus-slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 140px;
  font-size: 0.65rem;
  color: var(--white-35);
}


/* ==========================================
   PRESETS
   ========================================== */

.section-presets {
  text-align: center;
}

.presets-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.preset-pill {
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid var(--white-12);
  background: var(--card-bg);
  color: var(--white-60);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preset-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.preset-pill.active {
  transform: scale(1.05);
  color: var(--white);
}

/* Per-preset active accent colors */
.preset-pill[data-preset="minimal"].active { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }
.preset-pill[data-preset="studio"].active  { border-color: #3a6abf; background: rgba(58,106,191,0.2); }
.preset-pill[data-preset="neon"].active    { border-color: #00e5cc; background: rgba(0,229,204,0.15); }
.preset-pill[data-preset="broadcast"].active { border-color: #E04636; background: rgba(224,70,54,0.15); }
.preset-pill[data-preset="mono"].active    { border-color: #888; background: rgba(136,136,136,0.12); }

/* Preview card */
.presets-card {
  padding: 0;
  overflow: hidden;
}

.presets-preview-inner {
  display: flex;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.presets-half {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 20px;
  overflow: hidden;
}

/* Dot pattern with individual mask per half */
.presets-half::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.presets-half > * {
  position: relative;
  z-index: 1;
}

.presets-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  align-self: stretch;
}

.presets-label {
  position: absolute;
  bottom: 12px;
  font-size: 0.7rem;
  color: var(--white-35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Keyboard pill in presets */
.presets-kb-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 1.5rem;
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.3s ease;
  /* defaults = minimal */
  background: #1a1a1a;
  color: #FFFFFF;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.presets-kb-pill span {
  display: inline-block;
  line-height: 1;
}

/* Cursor area */
.presets-cursor {
  overflow: hidden;
}

.presets-cursor-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.presets-cursor-img {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Mobile */
@media (max-width: 640px) {
  .presets-preview-inner { flex-direction: column; }
  .presets-half { min-height: 200px; padding: 24px 16px 28px; }
  .presets-divider { width: 100%; height: 1px; }
  .presets-row { gap: 8px; }
  .preset-pill { padding: 8px 16px; font-size: 0.8rem; }
}


/* ==========================================
   PRICING
   ========================================== */

.section-pricing { text-align: center; }

/* Pricing grid */
.pricing-grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 580px;
  margin: 0 auto 40px;
  align-items: stretch;
}
.pricing-grid--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 40px;
  align-items: stretch;
}

/* Cards */
.pricing-card {
  position: relative;
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 15px 0 rgba(255, 255, 255, 0.06),
    0 0 40px 0 rgba(255, 255, 255, 0.03);
}

/* Free card — compact */
.pricing-card--free {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Featured card — Direct */
.pricing-card--featured {
  border-color: rgba(89, 63, 140, 0.5);
  background: linear-gradient(170deg, rgba(89, 63, 140, 0.1) 0%, rgba(89, 63, 140, 0.02) 100%);
  box-shadow:
    0 0 40px rgba(89, 63, 140, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card--featured:hover {
  border-color: rgba(89, 63, 140, 0.7);
  transform: translateY(-2px);
}

/* "Best value" ribbon */
.pricing-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-lavender), var(--accent-orange));
  color: #fff;
  white-space: nowrap;
}

/* Card header */
.pricing-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.pricing-via {
  font-size: 0.7rem;
  color: var(--white-35);
  letter-spacing: 0.03em;
}

.pricing-tagline {
  font-size: 0.7rem;
  color: var(--white-35);
}

/* Price display */
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 600;
}

.price-period {
  font-size: 0.9rem;
  color: var(--white-35);
  font-weight: 400;
  margin-left: 1px;
}

.price-amount-old {
  font-size: 0.95rem;
  color: var(--white-35);
  text-decoration: line-through;
  margin-right: 6px;
}

/* Billing row */
.pricing-billing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white-35);
}

.discount-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  color: #000;
  letter-spacing: 0.01em;
}

/* CTA buttons */
.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pricing-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.pricing-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-cta--accent {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-lavender));
  border-color: rgba(89, 63, 140, 0.4);
}

.pricing-cta--accent:hover {
  border-color: rgba(89, 63, 140, 0.7);
  box-shadow: 0 4px 16px rgba(89, 63, 140, 0.3);
}

/* Note & perks */
.pricing-note {
  font-size: 0.72rem;
  color: var(--white-35);
  line-height: 1.4;
}

.pricing-perks {
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 0;
}

.pricing-perks li {
  font-size: 0.75rem;
  color: var(--white-60);
  padding: 4px 0;
}

.pricing-perks li::before {
  content: "\2713\0020";
  color: #2aaa66;
  font-weight: 700;
}

/* ---- Feature comparison tables ---- */
.pricing-tables {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
  table-layout: fixed;
}


.pricing-table thead th {
  background: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--white-75);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-table thead th:last-child,
.pricing-table tbody td:last-child {
  border-right: none;
}

.pricing-table thead th:not(:first-child) {
  background: rgba(255, 255, 255, 0.05);
}

.pricing-table thead th:first-child {
  text-align: left;
}

.pricing-table thead th small {
  font-weight: 400;
  color: var(--white-35);
  font-size: 0.68rem;
  display: block;
  margin-top: 2px;
}

.pricing-table thead .pt-col--featured {
  background: rgba(89, 63, 140, 0.1);
}

.pricing-table tbody td {
  padding: 9px 16px;
  color: var(--white-60);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}


.pricing-table tbody td:first-child {
  text-align: left;
  color: var(--white-60);
}

.pricing-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

/* Group header rows */
.pt-group td {
  background: rgba(89, 63, 140, 0.08) !important;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--white-60) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 16px !important;
  border-left: 3px solid var(--brand-lavender);
}

/* Check / dash */
.pt-yes {
  color: #2aaa66 !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.pt-no {
  color: rgba(255, 255, 255, 0.12) !important;
  font-size: 0.9rem;
}

/* Featured column continuous wash */
.pricing-table tbody td:last-child {
  background: rgba(89, 63, 140, 0.03);
}

.pricing-table tbody tr:nth-child(even) td:last-child {
  background: rgba(89, 63, 140, 0.05);
}

/* Mobile: cards stack, table scrolls */
@media (max-width: 768px) {
  .pricing-grid--2,
  .pricing-grid--3 {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .pricing-card--featured {
    order: -1;
  }
}

@media (max-width: 640px) {
  .pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-table {
    min-width: 520px;
  }
  .pricing-table tbody td:first-child,
  .pricing-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #0e0b16;
  }
  .pricing-table tbody tr:nth-child(even) td:first-child {
    background: #100d18;
  }
  .pt-group td {
    position: sticky;
    left: 0;
    z-index: 1;
  }
}

.pricing-features {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pricing-features p {
  font-size: 0.85rem;
  color: var(--white-35);
  line-height: 1.8;
}


/* ==========================================
   FAQ
   ========================================== */

.section-faq {
  text-align: left;
}

.section-faq .feature-header {
  text-align: center;
  margin-bottom: 8px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-q {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 0.92rem;
  color: var(--white-75);
  line-height: 1.65;
}


/* ==========================================
   FINAL CTA
   ========================================== */

.section-final-cta {
  text-align: center;
  padding: 100px 24px;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta-content p {
  font-size: 1.05rem;
  color: var(--white-60);
  margin-bottom: 36px;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}


/* ==========================================
   SUB-PAGE STYLES (privacy / support)
   ========================================== */

.page-header { padding-top: 16px; margin-bottom: 40px; }

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header .subtitle { font-size: 0.95rem; color: var(--white-60); }
.page-header .last-updated { font-size: 0.85rem; color: var(--white-35); margin-top: 4px; }

.section { margin-bottom: 36px; }
.section h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; color: var(--white); }
.section p { color: var(--white-75); margin-bottom: 12px; font-size: 0.95rem; }
.section ul { list-style: none; padding: 0; margin-bottom: 12px; }
.section ul li { color: var(--white-75); font-size: 0.95rem; padding-left: 20px; position: relative; margin-bottom: 6px; }
.section ul li::before { content: "\2014"; position: absolute; left: 0; color: var(--white-35); }
.section a { color: var(--accent-yellow); }
.section a:hover { color: var(--accent-orange); }

.faq-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.faq-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.faq-card p { font-size: 0.9rem; color: var(--white-75); line-height: 1.55; }

.faq-card kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 0.85em;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  margin-bottom: 36px;
}

.contact-card p { color: var(--white-75); font-size: 0.95rem; margin-bottom: 8px; }
.contact-card a { color: var(--accent-yellow); font-weight: 500; }
.contact-card .response-time { font-size: 0.85rem; color: var(--white-35); margin-top: 4px; margin-bottom: 0; }


/* ==========================================
   FOOTER
   ========================================== */

.footer {
  text-align: center;
  padding: 32px 24px 28px;
  font-size: 0.85rem;
  color: var(--white-35);
}

.footer a { color: var(--white-35); }
.footer a:hover { color: var(--white-75); }
.footer-sep { margin: 0 6px; }


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 48px;
    min-height: auto;
  }

  .hero-logo img { width: 44px; height: 44px; }
  .hero-logo span { font-size: 1.3rem; }

  .hero-halo { width: 400px; height: 300px; }

  .lp-section { padding: 60px 20px; }

  .bento-grid--4,
  .bento-grid--3,
  .bento-grid--2 {
    grid-template-columns: 1fr;
  }

  .bento-lg { grid-column: auto; }

  .preset-pill { padding: 8px 18px; font-size: 0.8rem; }

  .badge { font-size: 0.8rem; padding: 10px 22px; }

  .faq-card { padding: 20px; }
  .content { padding: 0 20px; }
  .lang-bar { top: 16px; right: 16px; }
  .top-bar { padding: 16px 20px; }

  .section-demo { padding-bottom: 40px; }

  .feature-header h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
  .feature-header p { font-size: 0.85rem; }

  .kb-screen-pill { font-size: 0.9rem; padding: 5px 12px; gap: 6px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .mouse-modes { gap: 12px; }
  .presets-row { gap: 8px; }
  .preset-pill { padding: 7px 14px; font-size: 0.75rem; }

  .cam-card-body { padding: 8px; gap: 6px; }
  .cam-card-icon { font-size: 0.8rem; }
  .cam-card-title { font-size: 0.65rem; }
}

/* Privacy page divider */
.privacy-divider {
  border: none;
  border-top: 1px solid var(--white-12);
  margin: 3rem 0;
}

/* ============================================
   Cookie consent banner
   ============================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 10, 78, 0.95);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: var(--white-75);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn--accept {
  background: var(--brand-lavender);
  color: var(--white);
}

.cookie-btn--accept:hover {
  background: var(--brand-purple);
}

.cookie-btn--refuse {
  background: transparent;
  color: var(--white-60);
  border: 1px solid var(--white-12);
}

.cookie-btn--refuse:hover {
  color: var(--white);
  border-color: var(--white-35);
}
