/* ==========================================================================
   ROOMAN QUANTIX — EDITORIAL / STUDIO DESIGN SYSTEM
   Premium, flowing, typography-led. Off-white ground, navy + red accents.
   No dashboard cards, no heavy boxes — waves, watermarks, asymmetric type.
   ========================================================================== */

:root {
  /* Mapped onto the shared teal palette in theme.css (load it first). The
     legacy names (--navy, --red, ...) are kept so every rule below follows. */
  --bg-page: var(--ra-surface);
  --bg-alt: var(--ra-app-bg);
  --bg-ink: var(--ra-navy);

  --navy: var(--ra-navy);
  --navy-2: var(--ra-teal-deep);
  --red-deep: var(--ra-teal-deep);
  --red: var(--ra-teal);
  --red-2: var(--ra-yellow);
  --black: var(--ra-teal);
  --gray: var(--ra-muted);
  --gray-soft: var(--ra-border-strong);

  /* kept for backward-compat with inline styles in the markup */
  --bg-subtle: var(--ra-surface-alt);
  --bg-card: var(--ra-surface);
  --bg-surface: var(--ra-teal-50);
  --border-subtle: var(--ra-border);
  --border-medium: var(--ra-border-strong);
  --border-focus: var(--ra-teal);

  --text-primary: var(--ra-navy);
  --text-secondary: var(--ra-navy-soft);
  --text-muted: var(--ra-muted);
  --text-dim: var(--ra-muted);

  --color-brand: var(--ra-teal);
  --color-brand-hover: var(--ra-teal-hover);
  --color-accent: var(--ra-teal);
  --color-accent-subtle: var(--ra-teal-50);

  --font-sans: var(--ra-font);
  --font-mono: var(--ra-font-mono);

  --radius-sm: 6px;
  --radius-md: var(--ra-radius-sm);
  --radius-lg: 12px;
  --radius-xl: var(--ra-radius);
  --radius-full: var(--ra-radius-pill);

  --shadow-sm: var(--ra-shadow-sm);
  --shadow-card: 0 1px 3px rgba(31, 42, 74, 0.05), 0 14px 30px -12px rgba(31, 42, 74, 0.12);
  --shadow-card-hover: 0 4px 10px rgba(31, 42, 74, 0.06), 0 20px 40px -12px rgba(31, 42, 74, 0.16);

  --ease-flow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.bg-ambient-orb { display: none !important; }

/* ==================== Global decorative layer ==================== */
.decor-defs { position: absolute; width: 0; height: 0; }

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb.red { background: radial-gradient(circle, rgba(35, 160, 148,0.30), rgba(35, 160, 148,0) 70%); }
.glow-orb.navy { background: radial-gradient(circle, rgba(31, 42, 74,0.28), rgba(31, 42, 74,0) 70%); }

.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 140%;
  max-width: none;
  margin-left: -20%;
  will-change: transform;
  animation: wave-drift 26s var(--ease-flow) infinite alternate;
}
.wave-divider.slow svg { animation-duration: 38s; }
.wave-divider.fast svg { animation-duration: 18s; animation-direction: alternate-reverse; }

@keyframes wave-drift {
  0%   { transform: translateX(-2%) translateY(0); }
  100% { transform: translateX(2%) translateY(6px); }
}

.watermark {
  position: absolute;
  z-index: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--navy);
  opacity: 0.045;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.watermark.red { color: var(--red); }
.watermark.num { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.02em; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-flow), transform 0.9s var(--ease-flow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-divider svg,
  .glow-orb,
  .device-illustration,
  .floating-chip,
  .dv-scan,
  .dv-bar,
  .ac-line,
  .ac-point,
  .flow-dash {
    animation: none !important;
  }
  .ac-line { stroke-dashoffset: 0; }
  .dv-bar { transform: scaleY(1) !important; }
  .flow-dot { display: none; }
}

/* ==================== Navigation Bar ==================== */
.landing-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 42, 74, 0.08);
  z-index: 1000;
  transition: all 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 9px;
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(31, 42, 74, 0.25);
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1.5px;
  background: var(--red);
  transition: right 0.25s var(--ease-flow);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { right: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-signin {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 6px;
  transition: color 0.15s ease;
}

.btn-signin:hover { color: var(--text-primary); }

/* Pill CTA buttons (teal theme) */
.btn-free-trial,
.btn-hero-primary,
.btn-hero-secondary,
.btn-workspace-active {
  border-radius: var(--ra-radius-pill);
}

.btn-free-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 9px 20px;
  border: none;
  transition: all 0.2s var(--ease-flow);
}

.btn-free-trial:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.btn-workspace-active {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border: none;
  transition: all 0.2s ease;
}

/* ==================== Hero Section ==================== */
.hero-section {
  position: relative;
  padding: 96px 0 40px;
  overflow: hidden;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  min-height: 500px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-copy { max-width: 640px; }

/* ---- Optional CMS-driven hero logo / image (hidden unless /api/landing supplies one) ---- */
.hero-data-logo {
  max-height: 40px;
  width: auto;
  margin: 16px 0;
  display: block;
}
.hero-data-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.hero-wave-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-wave-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Hero illustrated analytics device ---- */
.hero-analytics {
  position: relative;
  z-index: 1;
  height: 400px;
}

.device-illustration {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  animation: float-y 6.5s ease-in-out infinite;
}
.device-illustration svg { width: 100%; height: auto; display: block; overflow: visible; }

.dv-scan {
  animation: scan-sweep 3.6s ease-in-out infinite;
}
@keyframes scan-sweep {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(186px); opacity: 0; }
}

.dv-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow 2.6s ease-in-out infinite;
  animation-delay: var(--bd);
}
@keyframes bar-grow {
  0%, 100% { transform: scaleY(0.78); }
  50% { transform: scaleY(1); }
}

.ac-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 3.4s ease-in-out infinite alternate;
}
@keyframes draw-line {
  0% { stroke-dashoffset: 300; }
  100% { stroke-dashoffset: 0; }
}

.ac-point {
  fill: var(--red);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ac-stats-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 320px;
  margin: 18px auto 0;
  padding: 14px 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  border-radius: var(--ra-radius);
}
.ac-stats-strip div { display: flex; flex-direction: column; align-items: center; }
.ac-stats-strip strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-mono);
}
.ac-stats-strip span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
  text-align: center;
}

.floating-chip {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy);
  padding: 9px 13px;
  border-radius: var(--ra-radius-pill);
  animation: float-y 7s ease-in-out infinite;
}
.floating-chip.c1 { top: 4px; left: -6px; animation-delay: 0.6s; }
.floating-chip.c2 { bottom: 70px; right: -10px; animation-delay: 2.1s; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(35, 160, 148,0.15);
}

.pill-tag {
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  border-right: 1px solid var(--border-medium);
  padding-right: 9px;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -2.4px;
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--text-primary);
}

.hero-desc {
  position: relative;
  z-index: 1;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-desc strong { color: var(--navy); font-weight: 700; }

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 26px;
  border: none;
  transition: all 0.2s var(--ease-flow);
}

.btn-hero-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.btn-hero-primary .arrow { transition: transform 0.2s ease; }
.btn-hero-primary:hover .arrow { transform: translateX(3px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 24px;
  border: 1px solid var(--border-medium);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--navy);
  background: rgba(31, 42, 74,0.03);
}

.hero-perks {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  max-width: 620px;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.perk-item svg { color: var(--red); }

/* ==================== Section Headers ==================== */
.section-header {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 0 56px;
}

.section-header.centered { max-width: 680px; margin: 0 auto 56px; text-align: center; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-badge::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--red);
}

.section-title {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}
.section-header.centered .section-subtitle { max-width: 100%; margin: 0 auto; }

/* ==================== About (data-driven; hidden unless the CMS provides content) ==================== */
.about-section {
  position: relative;
  padding: 90px 0;
  background: var(--bg-page);
  overflow: hidden;
}
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ==================== Workspace Showcase ==================== */
.showcase-section {
  position: relative;
  padding: 120px 0 100px;
  background: var(--bg-alt);
  isolation: isolate;
}

.workspace-mockup {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
  transform: rotate(-0.4deg);
  transition: transform 0.4s var(--ease-flow);
}
.workspace-mockup:hover { transform: rotate(0deg); }

.mockup-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots { display: flex; gap: 7px; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-medium); }

.mockup-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.mockup-status-tag { font-size: 12px; font-weight: 700; color: var(--navy); }

.mockup-nav-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.mockup-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mockup-tab-btn:hover { color: var(--text-primary); }

.mockup-tab-btn.active {
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--border-subtle);
  border-bottom: 1px solid #FFFFFF;
  border-top: 2px solid var(--red);
  margin-bottom: -1px;
}

.tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.mockup-panel { display: none; padding: 28px; background: #FFFFFF; }
.mockup-panel.active { display: block; }

/* ==================== Capabilities — editorial index list (no cards) ==================== */
.features-section {
  position: relative;
  padding: 130px 0 110px;
  background: var(--bg-page);
  overflow: hidden;
}

.capability-list {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
}

.capability-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr 1.15fr;
  gap: 36px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding-left 0.35s var(--ease-flow);
}

.capability-row:hover { padding-left: 14px; }

.capability-row::before {
  content: '';
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-flow);
}
.capability-row:hover::before { transform: scaleY(1); }

.cap-index {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 4px;
  transition: color 0.3s ease;
}
.capability-row:hover .cap-index { color: var(--red); }

.cap-head { display: flex; align-items: flex-start; gap: 14px; }

.card-icon-wrap {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.3s ease;
}
.capability-row:hover .card-icon-wrap {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.25;
  padding-top: 2px;
}

.card-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.tag-chip {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.tag-chip:not(:last-child)::after { content: ' \00b7 '; color: var(--gray-soft); }

/* ==================== ASK BRO Interactive Playground ==================== */
.copilot-section {
  position: relative;
  padding: 130px 0;
  background: var(--navy);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

.copilot-section .section-badge { color: var(--red-2); }
.copilot-section .section-title { color: #FFFFFF; }
.copilot-section .section-subtitle { color: rgba(255,255,255,0.68); }

.copilot-box {
  position: relative;
  z-index: 1;
  padding: 0;
}

.copilot-chips-wrap { margin-bottom: 28px; }

.chips-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.copilot-chips { display: flex; gap: 10px; flex-wrap: wrap; }

.copilot-chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.copilot-chip:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.5); }

.copilot-chip.active {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.copilot-chat-window {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(6px);
}

.chat-bubble {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.bubble-user {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #FFFFFF;
  font-weight: 500;
}

.bubble-agent {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border-left: 2px solid var(--red);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 10px;
}

/* ==================== Workflow — numbered flow, no boxes ==================== */
.workflow-section {
  position: relative;
  padding: 130px 0;
  background: var(--bg-page);
  overflow: hidden;
}

.pipeline-flow-art {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}
.pipeline-flow-art svg { width: 100%; height: 64px; display: block; }
.flow-dash { animation: flow-move 1.1s linear infinite; }
@keyframes flow-move { to { stroke-dashoffset: -14; } }

.pipeline-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step-card {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--border-medium);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step-card:nth-child(2) { transform: translateY(30px); }
.step-card:nth-child(4) { transform: translateY(30px); }
.step-card:hover { border-color: var(--red); transform: translateY(-4px); }
.step-card:nth-child(2):hover, .step-card:nth-child(4):hover { transform: translateY(26px); }

.step-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--gray-soft);
  font-family: var(--font-mono);
  margin-bottom: 18px;
  transition: color 0.3s ease;
}
.step-card:hover .step-number { color: var(--red); }

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== Pricing — spec columns, no boxed cards ==================== */
.pricing-section {
  position: relative;
  padding: 130px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.pricing-card {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--border-subtle);
}
.pricing-card:first-child { border-left: none; }

.pricing-card.featured { background: var(--bg-page); }
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.pricing-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.plan-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 26px;
  min-height: 38px;
  line-height: 1.6;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1.4px;
  margin-bottom: 28px;
}

.plan-price .period {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: normal;
}

.plan-features { list-style: none; margin-bottom: 30px; flex: 1; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 13px;
}

.feature-item svg { color: var(--red); flex-shrink: 0; }

/* Bundled module names on a dynamically-rendered plan card (/api/landing plans[].modules) */
.plan-modules {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.plan-modules .tag-chip { font-size: 11px; }

/* ==================== FAQ — thin dividers, no card boxes ==================== */
.faq-section {
  position: relative;
  padding: 130px 0;
  background: var(--bg-page);
  overflow: hidden;
}

.faq-list {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border-medium);
}

.faq-item {
  border-bottom: 1px solid var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 24px 2px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--red); }

.faq-toggle-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.3s var(--ease-flow);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-answer {
  display: none;
  padding: 0 2px 26px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }

/* ==================== CTA Banner — full bleed, no card ==================== */
.cta-banner-section {
  position: relative;
  padding: 140px 0;
  background: var(--black);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-banner-card { position: relative; z-index: 1; }

.cta-banner-title {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.cta-banner-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.62);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-banner-section .btn-hero-secondary {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.28);
}
.cta-banner-section .btn-hero-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.06);
}

/* ==================== Footer — bold abstract composition ==================== */
.landing-footer {
  position: relative;
  background: var(--black);
  padding: 80px 0 30px;
  overflow: hidden;
}

.footer-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}
.footer-art svg { width: 100%; height: 100%; display: block; }

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 56px;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--red-2);
  text-transform: uppercase;
  margin: 14px 0 14px;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links { list-style: none; }

.footer-link {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13.5px;
  display: block;
  margin-bottom: 11px;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--red-2); }

.footer-social-links { margin-top: 14px; }
.footer-social-links .footer-link { display: inline-block; margin-bottom: 0; }

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 990px) {
  .hero-section .container { grid-template-columns: 1fr; min-height: auto; }
  .hero-analytics { height: 320px; order: -1; margin-bottom: 16px; }
  .floating-chip { display: none; }
  .capability-row { grid-template-columns: 60px 1fr; }
  .capability-row .cap-desc-col { grid-column: 1 / -1; }
  .pipeline-flow-art { display: none; }
  .pipeline-steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step-card:nth-child(2), .step-card:nth-child(4) { transform: none; }
  .step-card:hover { transform: translateY(-4px); }
  .pricing-grid { grid-template-columns: 1fr; border-left: none; border-right: none; }
  .pricing-card { border-left: none; border-top: 1px solid var(--border-subtle); }
  .pricing-card:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .capability-row { grid-template-columns: 1fr; gap: 12px; }
  .cap-index { padding-top: 0; }
  .pipeline-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1.4px; }
}

/* ==========================================================================
   MINIMAL CMS-DRIVEN LAYOUT (landing.html + js/landing_page.js)
   Same palette, type and components as above; fewer decorations.
   ========================================================================== */
.landing-minimal .lp-hero { padding: 72px 0 56px; }
.landing-minimal .lp-hero-grid { grid-template-columns: 0.9fr 1.1fr; min-height: 0; gap: 48px; }
.landing-minimal .hero-title { font-size: clamp(36px, 4.6vw, 56px); }
.landing-minimal .hero-pill { margin-bottom: 20px; }
.landing-minimal [hidden] { display: none !important; }
.lp-note { font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.lp-note.centered { text-align: center; margin-top: 28px; }
.lp-frame {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.lp-frame .mockup-header { padding: 10px 14px; }
.lp-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--bg-alt); }
.lp-frame-wide { max-width: 1040px; margin: 0 auto; }

.lp-section { padding: 96px 0; }
.lp-alt { background: var(--bg-alt); }
.lp-narrow { max-width: 820px; }

.lp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 24px; }
.lp-tab {
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  color: var(--text-secondary);
  font: 600 13px var(--font-sans);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lp-tab:hover { color: var(--navy); border-color: var(--navy); }
.lp-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.lp-caption { text-align: center; color: var(--text-secondary); font-size: 14.5px; margin: 18px auto 0; max-width: 640px; min-height: 24px; }

.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.lp-feature { background: var(--bg-page); padding: 28px 26px; }
.lp-feature-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--red); background: var(--color-accent-subtle); margin-bottom: 14px; }
.lp-feature h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.2px; }
.lp-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.lp-step { border-top: 2px solid var(--navy); padding-top: 18px; }
.lp-step-num { display: inline-block; font: 700 13px var(--font-mono); color: var(--red); margin-bottom: 8px; }
.lp-step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.lp-step p { font-size: 14px; color: var(--text-secondary); }

.lp-period { display: flex; width: max-content; margin: -24px auto 28px; border: 1px solid var(--border-medium); border-radius: var(--radius-full); padding: 3px; background: #FFFFFF; }
.lp-period button { border: none; background: none; height: 34px; padding: 0 16px; border-radius: var(--radius-full); font: 600 13px var(--font-sans); color: var(--text-secondary); cursor: pointer; }
.lp-period button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.lp-pricing-grid { grid-template-columns: repeat(var(--lp-cols, 3), minmax(0, 1fr)); background: #FFFFFF; border: 1px solid var(--border-medium); border-radius: 12px; overflow: hidden; }
.lp-pricing-grid .plan-price { margin: 10px 0 8px; }
.lp-pricing-grid .plan-tagline { margin-bottom: 14px; }
.lp-pricing-grid .plan-features { flex: 1; }
.lp-plan-btn { width: 100%; justify-content: center; margin-top: 18px; }
.lp-modules { margin-top: 40px; }
.lp-modules-title { font-size: 16px; color: var(--navy); margin-bottom: 14px; text-align: center; }
.lp-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 920px; margin: 0 auto; }
.lp-module { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.lp-module strong { display: block; font-size: 14px; color: var(--navy); }
.lp-module span { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.lp-module-price { font: 700 14px var(--font-mono); color: var(--text-primary); white-space: nowrap; }
.lp-module-price small { font: 500 12px var(--font-sans); color: var(--text-muted); }

.lp-cta { padding: 96px 0; background: var(--navy); color: #FFFFFF; }
.lp-cta .centered { text-align: center; }
.lp-cta-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 10px; }
.lp-cta-desc { color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; }

.lp-footer { padding: 48px 0 28px; border-top: 1px solid var(--border-subtle); background: var(--bg-page); }
.lp-footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lp-footer-desc { color: var(--text-secondary); font-size: 14px; margin: 12px 0 8px; max-width: 420px; }
.lp-footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.lp-footer-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.lp-footer-link:hover { color: var(--red); }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 990px) {
  .landing-minimal .lp-hero-grid { grid-template-columns: 1fr; }
  .landing-minimal .nav-menu { display: none; }
  .lp-features, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-pricing-grid { grid-template-columns: 1fr; }
  .lp-module-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-section, .lp-cta { padding: 64px 0; }
  .landing-minimal .nav-actions .btn-signin { display: none; }
}
@media (max-width: 480px) {
  .landing-minimal .brand-badge { display: none; }
  .landing-minimal .btn-free-trial { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
}
.lp-pricing-grid .plan-modules .tag-chip { font-family: var(--font-sans); }

/* ==================== Hero: centred text over a faint animated chart (js/hero_morph.js) ==================== */
.landing-minimal .lp-hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.landing-minimal .lp-hero-grid { display: block; position: relative; z-index: 2; }
.landing-minimal .lp-hero .hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.landing-minimal .lp-hero .hero-title { font-size: clamp(42px, 6vw, 80px); max-width: none; margin-left: auto; margin-right: auto; }
.landing-minimal .lp-hero .hero-desc { margin-left: auto; margin-right: auto; max-width: 620px; }
.landing-minimal .lp-hero .hero-pill { margin-left: auto; margin-right: auto; }
.landing-minimal .lp-hero .hero-actions { justify-content: center; }

/* The animation sits only behind the text block and fades out at its edges */
.hero-morph {
  position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none;
  width: min(1100px, 100vw); aspect-ratio: 2 / 1; translate: -50% -50%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-blob {
  position: absolute; inset: 12% 18%; filter: blur(60px); opacity: 0.75;
  background: radial-gradient(circle at 30% 35%, rgba(35, 160, 148, 0.25), transparent 60%),
              radial-gradient(circle at 72% 65%, rgba(143, 211, 223, 0.25), transparent 62%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: hm-morph 16s ease-in-out infinite alternate;
}
@keyframes hm-morph {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 63% 37% 41% 59% / 58% 61% 39% 42%; transform: rotate(10deg) scale(1.08); }
  100% { border-radius: 37% 63% 52% 48% / 46% 38% 62% 54%; transform: rotate(-8deg) scale(0.96); }
}

.hm-dot { transition: transform 1.3s var(--ease-flow); }
.hm-dot circle {
  fill: var(--navy); stroke: var(--navy); stroke-width: 2; opacity: 0.22;
  transition: fill 0.6s ease, stroke 0.6s ease, opacity 0.6s ease;
}
.hero-morph[data-stage="0"] .hm-dot circle { animation: hm-float 4s ease-in-out infinite; }
.hero-morph[data-stage="0"] .hm-dot.is-dirty circle,
.hero-morph:not([data-stage]) .hm-dot.is-dirty circle { fill: transparent; stroke: var(--gray); stroke-dasharray: 3 3; opacity: 0.65; }
@keyframes hm-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }
.hero-morph[data-stage="1"] .hm-dot.is-dirty circle { fill: var(--red); stroke: var(--red); opacity: 0.6; }
.hero-morph[data-stage="2"] .hm-dot circle { opacity: 0.25; }
.hero-morph[data-stage="3"] .hm-dot circle { opacity: 0.18; }
.hero-morph[data-stage="3"] .hm-dot.is-key circle { opacity: 0.6; fill: var(--red); stroke: var(--red); }

.hm-line {
  stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dashoffset: var(--hm-len, 1200); opacity: 0;
}
.hero-morph[data-stage="3"] .hm-line { opacity: 0.55; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-flow) 0.2s, opacity 0.2s ease; }

.hero-morph.is-static .hm-dot, .hero-morph.is-static .hm-line { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .hm-blob { animation: none; } }
@media (max-width: 640px) {
  .landing-minimal .lp-hero { padding: 56px 0 64px; }
  .hero-morph { width: 170vw; }
}

/* ==================== Try Auto Clean (landing: import box only) ==================== */
.tc-section { padding: 40px 0 16px; }
.tc-container { max-width: 1240px; }
.tc-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); text-align: center; margin: 0 0 18px; }
.tc-subtitle { text-align: center; color: var(--text-secondary); font-size: 15.5px; max-width: 720px; margin: 0 auto 28px; }
.tc-subtitle:empty { display: none; }
.tc-card { background: #fff; border: 1px solid var(--ra-border); border-radius: 4px; padding: 24px; }
.tc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  border: 2px dashed var(--ra-border-strong); border-radius: 2px; padding: 56px 20px; cursor: pointer; transition: background .15s, border-color .15s; }
.tc-drop:hover, .tc-drop.dragover { background: var(--ra-surface-alt); border-color: var(--ra-teal); }
.tc-drop-title { font-size: 18px; font-weight: 700; color: var(--ra-navy); }
.tc-drop-formats { font-size: 14px; color: var(--ra-muted); }
.tc-drop-note { font-size: 12.5px; color: var(--ra-muted); }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 700 14px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px; border-radius: 2px; margin-top: 12px; }
.tc-btn-red { background: var(--ra-teal); color: #fff; border: 1px solid var(--ra-teal-hover); }
.tc-btn-red:hover { background: var(--ra-teal-hover); }
.tc-btn:disabled { opacity: .6; cursor: progress; }
.tc-btn-lg { font-size: 15px; padding: 16px 32px; }
.tc-ready { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 12px; }
.tc-file { display: flex; align-items: center; gap: 12px; color: var(--ra-navy-soft); flex-wrap: wrap; justify-content: center; }
.tc-file strong { display: block; color: var(--ra-navy); word-break: break-all; }
.tc-file span { font-size: 12.5px; color: var(--ra-muted); }
.tc-link { background: none; border: 0; color: var(--ra-teal); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 13px; }
.tc-status { margin-top: 16px; padding: 12px 14px; border-radius: 4px; font-size: 14px; background: var(--ra-teal-50); color: var(--ra-navy-soft); text-align: center; }
.tc-status.error { background: var(--ra-teal-50); color: var(--ra-danger); }
.tc-status.busy::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid var(--ra-border-strong); border-top-color: var(--ra-teal); border-radius: 50%; animation: tc-spin .8s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }

.tc-result { margin-top: 24px; }
.tc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tc-stat { background: #fff; border: 1px solid var(--ra-border); border-radius: 4px; padding: 14px 16px; }
.tc-stat b { display: block; font-size: 22px; color: var(--ra-navy); }
.tc-stat span { font-size: 12.5px; color: var(--ra-muted); }
.tc-stat.good b { color: var(--ra-teal); }
.tc-studio { background: #fff; border: 1px solid var(--ra-border); border-radius: 4px; padding: 20px; }
.tc-studio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ra-border); margin-bottom: 16px; }
.tc-studio-title { font-size: 17px; font-weight: 800; text-transform: uppercase; color: var(--ra-navy); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-studio-sub { font-size: 12.5px; color: var(--ra-muted); margin-top: 4px; }
.tc-chip { font: 600 12px var(--font-mono); background: var(--ra-border); color: var(--ra-navy-soft); padding: 4px 8px; border-radius: 3px; text-transform: none; }
.tc-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-tool { background: var(--ra-surface-alt); border: 1px solid var(--ra-border); padding: 7px 12px; font: 600 12.5px var(--font-sans); cursor: pointer; border-radius: 2px; color: var(--ra-navy); }
.tc-tool:hover { background: var(--ra-teal-50); }
.tc-rows { font-size: 13px; color: var(--ra-navy-soft); display: flex; align-items: center; gap: 6px; }
.tc-rows select, .tc-tools input { border: 1px solid var(--ra-border); padding: 7px 10px; font: 13px var(--font-sans); border-radius: 2px; background: #fff; color: var(--ra-navy); }
.tc-tools input { min-width: 220px; }
.tc-table-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--ra-border); }
.tc-table { border-collapse: collapse; width: max-content; min-width: 100%; font: 13.5px var(--font-mono); }
.tc-table th { position: sticky; top: 0; background: var(--ra-surface-alt); text-align: left; padding: 12px 18px; font: 700 13px var(--font-sans);
  text-transform: uppercase; color: var(--ra-navy); border-bottom: 1px solid var(--ra-border); border-right: 1px solid var(--ra-border); white-space: nowrap; z-index: 1; }
.tc-table th:first-child, .tc-table td:first-child { position: sticky; left: 0; background: var(--ra-surface-alt); z-index: 2; font-weight: 700; }
.tc-table th:first-child { z-index: 3; }
.tc-table td { padding: 11px 18px; border-bottom: 1px solid var(--ra-border); border-right: 1px solid var(--ra-border); white-space: nowrap; color: var(--ra-navy-soft); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.tc-table tr:hover td { background: var(--ra-surface-alt); }
.tc-table td.null { color: var(--ra-border-strong); font-style: italic; }
.tc-type { font: 700 10px var(--font-sans); letter-spacing: .05em; padding: 3px 6px; border-radius: 3px; margin-left: 8px; vertical-align: 1px; }
.tc-type-categorical { background: var(--ra-yellow-soft); color: var(--ra-warning); }
.tc-type-datetime { background: rgba(248, 183, 200, 0.3); color: var(--ra-navy); }
.tc-type-numeric { background: var(--ra-sky); color: var(--ra-info); }
.tc-type-text, .tc-type-identifier, .tc-type-boolean { background: var(--ra-border); color: var(--ra-navy-soft); }
.tc-foot { font-size: 12.5px; color: var(--ra-muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tc-foot button { margin-left: 6px; }
.tc-download-row { text-align: center; margin-top: 20px; }
.tc-download-note { font-size: 13px; color: var(--ra-muted); margin-top: 10px; }
@media (max-width: 720px) {
  .tc-section { padding: 28px 0 40px; }
  .tc-card, .tc-studio { padding: 14px; }
  .tc-drop { padding: 36px 12px; }
  .tc-tools input { min-width: 0; flex: 1 1 100%; }
  .tc-btn-lg { width: 100%; }
}

/* ==========================================================================
   v6 — cohesive public site (landing, about, contact)
   Hero = CMS headline beside the "try Auto Clean" card; cards with depth;
   scroll reveal (js/site.js); animated mesh, gradient border, marquee.
   ========================================================================== */
@property --tc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---- Header: condenses on scroll; menu button on small screens ---- */
.landing-nav { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.landing-nav .nav-inner { transition: height .25s var(--ease-flow); }
.landing-nav.is-scrolled { background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 24px -12px rgba(31, 42, 74, 0.25); }
.landing-nav.is-scrolled .nav-inner { height: 64px; }
.nav-panel { display: flex; align-items: center; gap: 30px; }
.nav-menu-static { gap: 30px; }
.nav-menu li[hidden] { display: none !important; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-medium); background: #fff; border-radius: 10px; cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease-flow), opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-current="page"]::after { right: 0; }

@media (max-width: 990px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle);
    padding: 8px 16px 16px; box-shadow: 0 18px 30px -18px rgba(31, 42, 74, 0.3);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease-flow);
  }
  .nav-open .nav-panel { opacity: 1; transform: none; pointer-events: auto; }
  .landing-minimal .nav-panel .nav-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-panel .nav-link { display: block; padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--border-subtle); }
  .nav-panel .nav-link::after { display: none; }
}
@media (max-width: 640px) {
  .nav-actions { gap: 10px; }
  .landing-minimal .nav-actions .btn-signin { display: none; }
}

/* ---- Hero: headline beside the import card ---- */
.landing-minimal .lp-hero { position: relative; overflow: hidden; padding: 64px 0 0; isolation: isolate; }
.landing-minimal .lp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  position: relative; z-index: 2; min-height: 0; padding-top: 0; padding-bottom: 0;
}
.landing-minimal .lp-hero .hero-copy { max-width: 560px; margin: 0; text-align: left; }
.landing-minimal .lp-hero .hero-title { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.04; letter-spacing: -1.6px; margin: 0 0 18px; max-width: 560px; }
.landing-minimal .lp-hero .hero-desc { margin: 0 0 28px; max-width: 520px; }
.landing-minimal .lp-hero .hero-pill { margin: 0 0 18px; padding: 6px 12px; background: rgba(255,255,255,.7); border: 1px solid var(--border-subtle); border-radius: 999px; backdrop-filter: blur(6px); }
.landing-minimal .lp-hero .hero-actions { justify-content: flex-start; margin-bottom: 22px; }
.landing-minimal .lp-hero .lp-note { margin: 0 0 14px; }
.landing-minimal .lp-hero .lp-note:empty { display: none; }
.hero-title { background: linear-gradient(100deg, var(--text-primary) 0%, var(--navy-2) 55%, var(--red) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-secondary); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(35, 160, 148,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323A094' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Animated mesh behind the hero */
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-hero-bg .mesh { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.lp-hero-bg .m1 { width: 520px; height: 520px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(35, 160, 148,.35), transparent 65%); animation: mesh-a 18s ease-in-out infinite alternate; }
.lp-hero-bg .m2 { width: 620px; height: 620px; right: -200px; top: -120px; background: radial-gradient(circle, rgba(143, 211, 223,.30), transparent 65%); animation: mesh-b 22s ease-in-out infinite alternate; }
.lp-hero-bg .m3 { width: 440px; height: 440px; left: 38%; bottom: -260px; background: radial-gradient(circle, rgba(143, 211, 223,.22), transparent 65%); animation: mesh-a 26s ease-in-out infinite alternate-reverse; }
.lp-grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(31, 42, 74,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 42, 74,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
@keyframes mesh-a { to { transform: translate(80px, 60px) scale(1.12); } }
@keyframes mesh-b { to { transform: translate(-90px, 70px) scale(.92); } }

/* Hero entrance */
.lp-hero .hero-copy > *, .tc-panel { animation: rise-in .9s var(--ease-flow) both; }
.lp-hero .hero-copy > :nth-child(2) { animation-delay: .06s; }
.lp-hero .hero-copy > :nth-child(3) { animation-delay: .12s; }
.lp-hero .hero-copy > :nth-child(4) { animation-delay: .18s; }
.lp-hero .hero-copy > :nth-child(n+5) { animation-delay: .24s; }
.tc-panel { animation-delay: .15s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- Import card: glass panel with a slowly turning gradient border ---- */
.tc-panel { position: relative; }
.tc-panel .tc-card {
  position: relative; border: 1px solid transparent; border-radius: 18px; padding: 22px;
  background:
    linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.93)) padding-box,
    conic-gradient(from var(--tc-angle), rgba(35, 160, 148,.65), rgba(143, 211, 223,.35), rgba(35, 160, 148,.1), rgba(143, 211, 223,.5), rgba(35, 160, 148,.65)) border-box;
  box-shadow: 0 30px 60px -28px rgba(31, 42, 74,.35), 0 2px 6px rgba(31, 42, 74,.06);
  animation: tc-turn 9s linear infinite;
}
@keyframes tc-turn { to { --tc-angle: 360deg; } }
.tc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tc-card-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.tc-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ra-teal); animation: tc-pulse 2s ease-out infinite; }
@keyframes tc-pulse { 0% { box-shadow: 0 0 0 0 rgba(35, 160, 148,.45); } 100% { box-shadow: 0 0 0 10px rgba(35, 160, 148,0); } }
.tc-card-free { font-size: 12px; color: var(--text-muted); }
.tc-panel .tc-drop { padding: 34px 18px; border-radius: 12px; gap: 10px; background: rgba(248,250,252,.6); }
.tc-panel .tc-drop:hover, .tc-panel .tc-drop.dragover { background: var(--ra-teal-50); border-color: var(--ra-teal); }
.tc-drop-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: var(--ra-teal); background: var(--ra-teal-50); transition: transform .3s var(--ease-flow); }
.tc-drop:hover .tc-drop-icon { transform: translateY(-3px) scale(1.04); }
.tc-panel .tc-drop-title { font-size: 16.5px; }
.tc-panel .tc-drop-formats { font-size: 13px; max-width: 420px; }
.tc-panel .tc-btn { margin-top: 6px; border-radius: 8px; transition: transform .2s var(--ease-flow), box-shadow .2s ease, background .2s ease; }
.tc-btn-red { box-shadow: 0 10px 22px -10px rgba(35, 160, 148,.7); }
.tc-btn-red:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(35, 160, 148,.75); }
.tc-panel .tc-ready { padding: 28px 8px; }
.tc-panel .tc-status { border-radius: 10px; }
.tc-result { margin-top: 40px; }
.tc-stats .tc-stat, .tc-studio { border-radius: 12px; }
.tc-stat { transition: transform .25s var(--ease-flow), box-shadow .25s ease; }
.tc-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.tc-download-row .tc-btn { border-radius: 10px; }

/* ---- Marquee strip closing the hero ---- */
.lp-marquee { position: relative; z-index: 2; margin-top: 64px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.55); overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-marquee-track { display: flex; width: max-content; gap: 40px; animation: marquee 42s linear infinite; }
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
.lp-marquee-track span { font: 600 14px var(--font-sans); color: var(--text-secondary); white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.lp-marquee-track span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Sections: consistent rhythm, cards with depth ---- */
.lp-section { padding: 88px 0; }
.section-header.centered { margin-bottom: 44px; }
.section-title { font-size: clamp(28px, 3.2vw, 42px); }
.lp-features { gap: 18px; background: none; border: 0; border-radius: 0; overflow: visible; }
.lp-feature { position: relative; background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 26px 24px; overflow: hidden;
  transition: transform .35s var(--ease-flow), box-shadow .35s ease, border-color .3s ease, opacity .9s var(--ease-flow); }
.lp-feature::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--navy-2)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-flow); }
.lp-feature.is-visible:hover, .lp-feature:not(.reveal):hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.lp-feature:hover::before { transform: scaleX(1); }
.lp-feature-icon { transition: transform .35s var(--ease-flow); }
.lp-feature:hover .lp-feature-icon { transform: rotate(-6deg) scale(1.08); }
.lp-steps { gap: 20px; }
.lp-step { background: #fff; border: 1px solid var(--border-subtle); border-top: 3px solid var(--navy); border-radius: 14px; padding: 22px; transition: transform .3s var(--ease-flow), box-shadow .3s ease, opacity .9s var(--ease-flow); }
.lp-step.is-visible:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.lp-step-num { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--color-accent-subtle); }
.lp-frame { border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(31, 42, 74,.45); }

.lp-toggles { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -16px 0 28px; }
.lp-toggles .lp-period { margin: 0; }
.lp-pricing-grid { gap: 18px; background: none; border: 0; border-radius: 0; overflow: visible; }
.lp-pricing-grid .pricing-card, .lp-pricing-grid .pricing-card:first-child { background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden;
  transition: transform .35s var(--ease-flow), box-shadow .35s ease, opacity .9s var(--ease-flow); }
.lp-pricing-grid .pricing-card.featured { border-color: rgba(35, 160, 148,.35); background: linear-gradient(180deg, var(--ra-teal-50), #fff 40%); }
.lp-pricing-grid .pricing-card.is-visible:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.faq-list { background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 4px 22px; }
.faq-list .faq-item:last-child { border-bottom: 0; }

.lp-cta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--ra-teal-deep) 0%, var(--ra-teal) 60%, var(--ra-teal-hover) 100%); }
.lp-cta-glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(35, 160, 148,.35), transparent 30%, rgba(255,255,255,.08), transparent 60%); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--red); color: #fff; }

/* ---- Footer ---- */
.lp-footer { padding: 56px 0 28px; background: #fff; }
.lp-footer .lp-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.lp-footer-col h4 { font: 700 12px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.lp-footer-col ul { list-style: none; display: grid; gap: 10px; }
.lp-footer-col .lp-footer-links { display: grid; gap: 10px; }
.lp-footer-social:has(#footer-links:empty) { display: none; }
@media (max-width: 860px) { .lp-footer .lp-footer-grid { grid-template-columns: 1fr 1fr; } .lp-footer-brand { grid-column: 1 / -1; } }

/* ---- Responsive hero ---- */
@media (max-width: 990px) {
  .landing-minimal .lp-hero { padding-top: 40px; }
  .landing-minimal .lp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .landing-minimal .lp-hero .hero-copy { max-width: 680px; }
  .lp-marquee { margin-top: 48px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .landing-minimal .lp-hero { padding-top: 28px; }
  .landing-minimal .lp-hero .hero-title { letter-spacing: -1px; }
  .tc-panel .tc-card { padding: 14px; border-radius: 14px; }
  .tc-panel .tc-drop { padding: 26px 12px; }
  .lp-section { padding: 64px 0; }
  .lp-toggles { margin-top: -8px; }
  .lp-period button { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-bg .mesh, .tc-panel .tc-card, .tc-live, .lp-marquee-track, .lp-cta-glow,
  .lp-hero .hero-copy > *, .tc-panel { animation: none !important; }
  .lp-feature, .pricing-card, .lp-step, .tc-stat { transition: none; }
}

/* ==========================================================================
   About & Contact pages
   ========================================================================== */
.pg-hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 56px; }
.pg-hero .container { position: relative; z-index: 2; }
.pg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.pg-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--red); }
.pg-title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.05; max-width: 820px; margin-bottom: 18px;
  background: linear-gradient(100deg, var(--text-primary) 0%, var(--navy-2) 60%, var(--red) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-lead { font-size: clamp(15.5px, 1.3vw, 18px); color: var(--text-secondary); max-width: 680px; line-height: 1.7; }
.pg-hero .pg-title, .pg-hero .pg-lead, .pg-hero .pg-eyebrow { animation: rise-in .9s var(--ease-flow) both; }
.pg-hero .pg-title { animation-delay: .06s; }
.pg-hero .pg-lead { animation-delay: .12s; }

.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ab-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 26px 24px; transition: transform .35s var(--ease-flow), box-shadow .35s ease, opacity .9s var(--ease-flow); }
.ab-card.is-visible:hover, .ab-card:not(.reveal):hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.ab-card .lp-feature-icon { margin-bottom: 14px; }
.ab-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.ab-card p { font-size: 14px; color: var(--text-secondary); }
.ab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ab-split h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px; }
.ab-split p { color: var(--text-secondary); margin-bottom: 12px; }
.ab-panel { position: relative; border-radius: 20px; padding: 28px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--ra-teal-deep), var(--ra-teal) 65%, var(--ra-teal-hover)); box-shadow: 0 40px 70px -40px rgba(31, 42, 74,.6); }
.ab-panel::after { content: ''; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(35, 160, 148,.35), transparent 35%); animation: spin 20s linear infinite; }
.ab-flow { list-style: none; display: grid; gap: 12px; counter-reset: flow; }
.ab-flow li { counter-increment: flow; display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; }
.ab-flow li::before { content: counter(flow, decimal-leading-zero); font: 700 13px var(--font-mono); color: var(--ra-yellow); padding-top: 2px; }
.ab-flow strong { display: block; font-size: 15px; }
.ab-flow span { font-size: 13px; color: rgba(255,255,255,.72); }
.ab-audience { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ab-audience .ab-card { padding: 30px; display: flex; flex-direction: column; }
.ab-audience ul { list-style: none; display: grid; gap: 8px; margin: 14px 0 22px; flex: 1; }
.ab-audience li { font-size: 14px; color: var(--text-secondary); padding-left: 22px; position: relative; }
.ab-audience li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--red); opacity: .8; }
.ab-audience .btn-hero-primary, .ab-audience .btn-hero-secondary { align-self: flex-start; }
.ab-company { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 28px 30px; }
.ab-company h2 { font-size: 22px; margin-bottom: 4px; }
.ab-company p { color: var(--text-secondary); font-size: 14.5px; max-width: 640px; }

.ct-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.ct-info { display: grid; gap: 14px; }
.ct-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 18px; transition: transform .3s var(--ease-flow), box-shadow .3s ease, opacity .9s var(--ease-flow); }
.ct-item.is-visible:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.ct-item .lp-feature-icon { margin: 0; flex-shrink: 0; }
.ct-item h3 { font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.ct-item p, .ct-item a { font-size: 14px; color: var(--text-secondary); text-decoration: none; word-break: break-word; }
.ct-item a:hover { color: var(--red); }
.ct-form { background: #fff; border: 1px solid var(--border-subtle); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px -36px rgba(31, 42, 74,.35); }
.ct-form h2 { font-size: 22px; margin-bottom: 4px; }
.ct-form-lead { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 6px; margin-bottom: 14px; }
.ct-field label { font: 600 12.5px var(--font-sans); color: var(--text-primary); }
.ct-field label .req { color: var(--red); margin-left: 2px; }
.ct-field label .opt { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.ct-field input, .ct-field textarea { width: 100%; font: 14.5px var(--font-sans); color: var(--text-primary); background: var(--bg-page); border: 1px solid var(--border-medium); border-radius: 10px; padding: 11px 13px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.ct-field textarea { min-height: 140px; resize: vertical; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(143, 211, 223,.1); }
.ct-err { font-size: 12px; color: var(--ra-danger); }
.ct-err:empty { display: none; }
.ct-field.invalid input, .ct-field.invalid textarea { border-color: var(--ra-danger); }
.ct-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; cursor: pointer; border-radius: 10px; padding: 14px 20px; font: 700 15px var(--font-sans); color: #fff; background: var(--navy); transition: background .2s ease, transform .2s var(--ease-flow); }
.ct-submit:hover { background: var(--red); transform: translateY(-1px); }
.ct-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.ct-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.ct-msg.ok { background: var(--ra-success-bg); color: var(--ra-teal-deep); border: 1px solid var(--ra-teal-100); }
.ct-msg.error { background: var(--ra-teal-50); color: var(--ra-danger); border: 1px solid var(--ra-danger-bg); }
.ct-done { text-align: center; padding: 30px 10px; }
.ct-done .lp-feature-icon { margin: 0 auto 14px; color: var(--ra-teal); background: var(--ra-success-bg); width: 54px; height: 54px; border-radius: 50%; }
.ct-done h2 { margin-bottom: 6px; }
.ct-done p { color: var(--text-secondary); margin-bottom: 18px; }

@media (max-width: 900px) {
  .ab-grid { grid-template-columns: 1fr 1fr; }
  .ab-split, .ab-audience, .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 40px 0 32px; }
  .ab-grid, .ct-row { grid-template-columns: 1fr; }
  .ct-form { padding: 20px 16px; }
  .ab-company { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-panel::after, .pg-hero .pg-title, .pg-hero .pg-lead, .pg-hero .pg-eyebrow { animation: none !important; }
}
/* The results container inside the hero is a plain block, not the old 500px hero grid. */
.landing-minimal .lp-hero .container:not(.lp-hero-grid) { display: block; min-height: 0; padding-top: 0; padding-bottom: 0; }
.landing-minimal .lp-hero .lp-hero-grid { min-height: 0; }
.hero-title, .pg-title { background-image: linear-gradient(100deg, var(--text-primary) 0%, var(--text-primary) 45%, var(--navy-2) 100%); }
@media (max-width: 640px) {
  .landing-minimal .lp-hero-grid { gap: 22px; }
  .landing-minimal .lp-hero .hero-title { font-size: 31px; margin-bottom: 12px; }
  .landing-minimal .lp-hero .hero-desc { font-size: 15px; margin-bottom: 18px; }
  .landing-minimal .lp-hero .hero-actions { margin-bottom: 0; gap: 10px; }
  .landing-minimal .lp-hero .hero-actions a { padding: 12px 18px; font-size: 14px; }
  .landing-minimal .lp-hero .lp-note, .hero-points { display: none; }
}
.tc-result, #try-clean, .lp-section, .lp-cta { scroll-margin-top: 84px; }

/* ==================== Layout v6: full-screen import, then the classic hero ==================== */
/* 1. Try Auto Clean: a plain, full-screen first section (no glow, no animated border). */
.landing-minimal .tc-section {
  min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  display: flex; align-items: center; padding: 56px 0;
  background: #fff; border-bottom: 1px solid var(--border-subtle);
}
.landing-minimal .tc-container { width: 100%; }
.tc-intro { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.landing-minimal .tc-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 12px; }
.landing-minimal .tc-subtitle { font-size: 16px; line-height: 1.6; margin: 0 auto; max-width: 620px; }
.landing-minimal .tc-card {
  background: #fff; border: 1px solid var(--ra-border); border-radius: 12px; padding: 24px;
  box-shadow: 0 1px 2px rgba(31, 42, 74, .04); animation: none;
}
.landing-minimal .tc-drop {
  padding: 72px 24px; gap: 12px; border-radius: 10px; background: var(--ra-surface-alt);
  border: 2px dashed var(--ra-border-strong);
}
.landing-minimal .tc-drop:hover, .landing-minimal .tc-drop.dragover { background: var(--ra-teal-50); border-color: var(--ra-muted); }
.landing-minimal .tc-drop-icon { background: var(--ra-teal-50); color: var(--ra-teal); border-radius: 12px; }
.landing-minimal .tc-drop:hover .tc-drop-icon { transform: none; }
.landing-minimal .tc-drop-title { font-size: 19px; }
.landing-minimal .tc-drop-formats { font-size: 14px; max-width: 640px; }
.landing-minimal .tc-btn { border-radius: 6px; margin-top: 8px; transition: background .15s ease; }
.landing-minimal .tc-btn-red, .landing-minimal .tc-btn-red:hover { box-shadow: none; transform: none; }
.landing-minimal .tc-ready { padding: 56px 12px; }
.landing-minimal .tc-result { margin-top: 28px; }
.landing-minimal .tc-studio, .landing-minimal .tc-stat { border-radius: 10px; box-shadow: none; }

/* 2. The classic hero, centred, over the morph background (hero_morph.js). */
.landing-minimal .lp-hero.lp-hero-classic { position: relative; overflow: hidden; padding: 112px 0 0; isolation: isolate; }
.landing-minimal .lp-hero-classic .lp-hero-grid { display: block; position: relative; z-index: 2; min-height: 0; }
.landing-minimal .lp-hero-classic .hero-copy { max-width: 880px; margin: 0 auto; text-align: center; }
.landing-minimal .lp-hero-classic .hero-title {
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 860px; margin: 0 auto 20px; overflow-wrap: break-word;
}
.landing-minimal .lp-hero-classic .hero-desc { margin: 0 auto 30px; max-width: 640px; }
.landing-minimal .lp-hero-classic .hero-pill { margin: 0 auto 22px; }
.landing-minimal .lp-hero-classic .hero-actions { justify-content: center; margin-bottom: 16px; }
.landing-minimal .lp-hero-classic .lp-note { text-align: center; margin: 0 auto; }
.landing-minimal .lp-hero-classic .lp-note:empty { display: none; }
.landing-minimal .lp-hero-classic .lp-marquee { margin-top: 96px; }
@media (max-width: 720px) {
  .landing-minimal .tc-section { min-height: 0; padding: 36px 0 40px; }
  .tc-intro { margin-bottom: 20px; }
  .landing-minimal .tc-card { padding: 12px; }
  .landing-minimal .tc-drop { padding: 40px 14px; }
  .landing-minimal .lp-hero.lp-hero-classic { padding-top: 64px; }
  .landing-minimal .lp-hero-classic .lp-marquee { margin-top: 56px; }
}

/* Layout v6.1: the import section fits exactly in the visible window (below the nav). */
.landing-minimal .tc-section {
  height: calc(100vh - var(--nav-h, 76px)); height: calc(100svh - var(--nav-h, 76px));
  min-height: 460px; padding: clamp(20px, 4vh, 40px) 0; align-items: stretch;
}
.landing-minimal .tc-section:has(#tc-result:not([hidden])) { height: auto; }
.landing-minimal .tc-container { display: flex; flex-direction: column; min-height: 0; }
.landing-minimal .tc-intro { margin: 0 auto clamp(14px, 2.6vh, 26px); flex: none; }
.landing-minimal .tc-title { font-size: clamp(26px, min(3vw, 5vh), 42px); margin: 0 0 8px; }
.landing-minimal .tc-subtitle { font-size: clamp(14px, 1.9vh, 16px); }
.landing-minimal .tc-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: clamp(10px, 2vh, 20px); }
.landing-minimal .tc-section:has(#tc-result:not([hidden])) .tc-card { flex: none; }
.landing-minimal .tc-drop, .landing-minimal .tc-ready { flex: 1 1 auto; min-height: 0; justify-content: center; padding: clamp(16px, 3vh, 40px) 20px; gap: clamp(6px, 1.4vh, 12px); }
.landing-minimal .tc-drop-icon { width: clamp(40px, 6vh, 54px); height: clamp(40px, 6vh, 54px); }
.landing-minimal .tc-btn { margin-top: clamp(2px, 1vh, 8px); }
@media (max-width: 720px) {
  .landing-minimal .tc-section { height: auto; min-height: 0; }
  .landing-minimal .tc-card { flex: none; }
}
.landing-minimal .tc-result { scroll-margin-top: calc(var(--nav-h, 76px) + 16px); }

/* ==========================================================================
   Teal theme (v7): tokens from theme.css. Teal pill buttons, navy headings,
   yellow for the one key highlight, sky-blue soft backgrounds.
   ========================================================================== */
body { background: var(--ra-surface); color: var(--ra-navy); }
.landing-nav, .landing-nav.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.brand-badge { color: var(--ra-teal-deep); background: var(--ra-teal-50); border-color: var(--ra-teal-100); border-radius: var(--ra-radius-pill); }
.btn-signin:hover, .nav-link:hover { color: var(--ra-teal-deep); }

/* Buttons: teal pills */
.btn-free-trial, .btn-hero-primary, .btn-workspace-active { background: var(--ra-teal); color: #fff; }
.btn-free-trial:hover, .btn-hero-primary:hover { background: var(--ra-teal-hover); color: #fff; }
.btn-hero-secondary { background: #fff; color: var(--ra-navy); border: 1px solid var(--ra-border-strong); border-radius: var(--ra-radius-pill); }
.btn-hero-secondary:hover { border-color: var(--ra-teal); color: var(--ra-teal-deep); background: var(--ra-teal-50); }
.btn-hero-primary, .btn-free-trial { box-shadow: 0 10px 22px -14px rgba(35, 160, 148, 0.9); }
.tc-btn, .landing-minimal .tc-btn, .tc-panel .tc-btn, .tc-download-row .tc-btn { border-radius: var(--ra-radius-pill); }
.tc-btn-red, .landing-minimal .tc-btn-red { background: var(--ra-teal); color: #fff; border: 1px solid var(--ra-teal); }
.tc-btn-red:hover, .landing-minimal .tc-btn-red:hover { background: var(--ra-teal-hover); border-color: var(--ra-teal-hover); }
.tc-link { color: var(--ra-teal-deep); }
.tc-tool { border-radius: var(--ra-radius-pill); }
.tc-tool:hover { border-color: var(--ra-teal); color: var(--ra-teal-deep); }
.tc-rows select, .tc-tools input { border-radius: var(--ra-radius-sm); }
.tc-rows select:focus, .tc-tools input:focus { outline: none; border-color: var(--ra-teal); box-shadow: 0 0 0 3px var(--ra-teal-100); }
.tc-chip { background: var(--ra-teal-50); color: var(--ra-teal-deep); border-radius: 6px; }
.tc-stat.good b { color: var(--ra-teal); }
.tc-table th, .tc-table th:first-child, .tc-table td:first-child { background: var(--ra-surface-alt); color: var(--ra-navy); }
.tc-table tr:hover td { background: var(--ra-teal-50); }

/* Import box: full-screen and plain, on a soft sky ground */
.landing-minimal .tc-section { background: var(--ra-app-bg); }
.landing-minimal .tc-title { color: var(--ra-navy); }
.landing-minimal .tc-card { border-color: var(--ra-border); border-radius: var(--ra-radius-lg); box-shadow: var(--ra-shadow-sm); }
.landing-minimal .tc-drop { border-color: var(--ra-sky-strong); background: var(--ra-surface-alt); border-radius: var(--ra-radius); }
.landing-minimal .tc-drop:hover, .landing-minimal .tc-drop.dragover { background: var(--ra-teal-50); border-color: var(--ra-teal); }
.landing-minimal .tc-drop-icon { background: var(--ra-sky); color: var(--ra-teal-deep); border-radius: 50%; }

/* Hero: navy title, yellow pill dot, soft sky/teal glow */
.hero-title, .pg-title, .landing-minimal .lp-hero-classic .hero-title {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ra-navy);
}
.pill-dot { background: var(--ra-yellow); box-shadow: 0 0 0 4px var(--ra-yellow-soft); }
.landing-minimal .lp-hero .hero-pill { background: var(--ra-teal-50); border-color: var(--ra-teal-100); color: var(--ra-teal-deep); font-weight: 600; }
.hm-blob {
  background: radial-gradient(circle at 30% 35%, rgba(143, 211, 223, 0.45), transparent 60%),
              radial-gradient(circle at 72% 65%, rgba(35, 160, 148, 0.18), transparent 62%);
}
.hm-dot circle { fill: var(--ra-sky-strong); stroke: var(--ra-sky-strong); opacity: 0.45; }
.hero-morph[data-stage="0"] .hm-dot.is-dirty circle,
.hero-morph:not([data-stage]) .hm-dot.is-dirty circle { fill: transparent; stroke: var(--ra-muted); stroke-dasharray: 3 3; opacity: 0.7; }
.hero-morph[data-stage="1"] .hm-dot.is-dirty circle { fill: var(--ra-teal); stroke: var(--ra-teal); opacity: 0.7; }
.hero-morph[data-stage="2"] .hm-dot circle { opacity: 0.4; }
.hero-morph[data-stage="3"] .hm-dot circle { opacity: 0.3; }
.hero-morph[data-stage="3"] .hm-dot.is-key circle { fill: var(--ra-yellow); stroke: var(--ra-yellow); opacity: 0.95; }
.hm-line { stroke: var(--ra-teal); }
.hero-morph[data-stage="3"] .hm-line { opacity: 0.7; }
.lp-marquee-track span::after { background: var(--ra-teal); }

/* Sections */
.section-title { color: var(--ra-navy); }
.lp-alt { background: var(--ra-app-bg); }
.lp-feature, .lp-step, .ab-card, .ct-item, .faq-list, .ab-company { border-color: var(--ra-border); border-radius: var(--ra-radius); }
.lp-feature::before { background: linear-gradient(90deg, var(--ra-teal), var(--ra-sky-strong)); }
.lp-feature-icon { color: var(--ra-teal-deep); background: var(--ra-teal-50); border-radius: 12px; }
.lp-step { border-top-color: var(--ra-teal); }
.lp-step-num { color: var(--ra-teal); }
.lp-tab { border-radius: var(--ra-radius-pill); }
.lp-tab[aria-selected="true"], .lp-period button[aria-pressed="true"] { background: var(--ra-teal); border-color: var(--ra-teal); color: #fff; }
.lp-tab:hover { color: var(--ra-teal-deep); border-color: var(--ra-teal); }
.lp-pricing-grid .pricing-card.featured { border-color: var(--ra-teal); background: linear-gradient(180deg, var(--ra-teal-50), #fff 40%); box-shadow: var(--ra-shadow); }
.faq-question:hover { color: var(--ra-teal-deep); }

/* Call to action: teal band, yellow button (the one thing to notice) */
.lp-cta { background: linear-gradient(135deg, var(--ra-teal) 0%, var(--ra-teal-hover) 100%); color: #fff; }
.lp-cta .lp-cta-title { color: #fff; }
.lp-cta .lp-cta-desc { color: rgba(255, 255, 255, 0.85); }
.lp-cta-glow { background: radial-gradient(circle at 80% 20%, rgba(214, 240, 245, 0.25), transparent 40%), radial-gradient(circle at 15% 90%, rgba(255, 214, 107, 0.18), transparent 35%); animation: none; }
.btn-on-dark { background: var(--ra-yellow); color: var(--ra-navy); border-radius: var(--ra-radius-pill); }
.btn-on-dark:hover { background: #fff; color: var(--ra-teal-deep); }

/* Footer */
.lp-footer { background: var(--ra-surface); border-top: 1px solid var(--ra-border); }
.lp-footer-link:hover { color: var(--ra-teal-deep); }

/* About / Contact */
.pg-eyebrow { color: var(--ra-teal-deep); }
.pg-eyebrow::before { background: var(--ra-teal); }
.ab-panel { background: linear-gradient(135deg, var(--ra-teal) 0%, var(--ra-teal-hover) 100%); box-shadow: var(--ra-shadow-lg); }
.ab-panel::after { background: radial-gradient(circle at 85% 15%, rgba(214, 240, 245, 0.28), transparent 45%); animation: none; }
.ab-flow li { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.ab-flow li::before { color: var(--ra-yellow); }
.ab-flow span { color: rgba(255, 255, 255, 0.85); }
.ab-audience li::before { background: var(--ra-teal); }
.ct-form { border-color: var(--ra-border); border-radius: var(--ra-radius-lg); box-shadow: var(--ra-shadow); }
.ct-field input, .ct-field textarea { border-radius: var(--ra-radius-sm); }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--ra-teal); box-shadow: 0 0 0 3px var(--ra-teal-100); }
.ct-field label .req { color: var(--ra-danger); }
.ct-submit { background: var(--ra-teal); border-radius: var(--ra-radius-pill); }
.ct-submit:hover { background: var(--ra-teal-hover); }
.ct-item a:hover { color: var(--ra-teal-deep); }

/* ---- Small screens: menu button first, then the logo. ---- */
@media (max-width: 990px) {
  .landing-nav .nav-inner.container { gap: 10px; }
  .landing-nav .brand-link { margin-right: auto; }
}
/* Desktop: logo hard left, sign in / sign up hard right, links grouped in
   the centre of the page. */
@media (min-width: 991px) {
  .landing-nav .nav-inner.container { max-width: none; padding: 0 clamp(20px, 3vw, 48px); position: relative; }
  .landing-nav .nav-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
}
