/* ========================================================================
   ANCHORDRAFT LANDING PAGE
   Scrollytelling design for municipal planning professionals
   ======================================================================== */

@import url('fonts.css');
@import url('tokens.css');
@import url('intro.css');

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

:root {
  /* Landing-page-only overrides (tokens.css is the base) */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
}

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

body.landing-body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
.landing-body h1,
.landing-body h2,
.landing-body h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

/* --- Navigation --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 400ms ease, box-shadow 400ms ease, backdrop-filter 400ms ease;
}

.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--navy);
}

.nav-brand .brand-logo {
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.nav-brand-beta {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms ease;
  padding: 0.25rem 0;
}

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

.nav-signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  transition: all 200ms ease;
  background: transparent;
  cursor: pointer;
}

.nav-signin:hover {
  background: var(--navy);
  color: #fff;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* --- Hero Section (two-column with app mockup) --- */
.hero {
  display: flex;
  align-items: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.125rem);
  color: var(--navy);
  margin-bottom: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-proof svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--teal);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-cta-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-cta-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-cta-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-cta-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.btn-cta-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* --- Hero App Mockup --- */
.hero-mockup-wrap {
  position: relative;
  min-width: 0;
}

.hero-app {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
  border: 1px solid var(--warm-line);
}

.hero-app-chrome {
  background: var(--navy);
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.hero-app-traffic-lights {
  display: flex;
  gap: 5px;
}

.hero-app-traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.9;
}

.hero-app-url {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}

.hero-app-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.59rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-app-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 340px;
}

.hero-app-sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--border-light);
  padding: 0.75rem 0.5rem;
  font-size: 0.65625rem;
  color: var(--text-secondary);
}

.hero-app-sidebar-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.375rem 0.5rem;
}

.hero-app-sidebar-item {
  padding: 5px 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
  margin-bottom: 1px;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 150ms ease;
}

.hero-app-sidebar-item.active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.hero-app-sidebar-divider {
  border-top: 1px solid var(--border-light);
  margin: 0.625rem 0 0.625rem;
}

.hero-app-sidebar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.375rem;
}

.hero-app-sidebar-meta svg {
  width: 9px;
  height: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-app-pill {
  font-size: 0.5625rem;
  font-weight: 700;
  background: var(--teal-subtle);
  color: var(--teal-deep);
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.hero-app-main {
  padding: 0.875rem 1.125rem;
  background: #fff;
  min-width: 0;
}

.hero-app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.65625rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.hero-app-breadcrumb svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

.hero-app-breadcrumb-active {
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-mono);
}

.hero-app-edit-tag {
  margin-left: auto;
  font-size: 0.59375rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  white-space: nowrap;
}

.hero-app-section-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.hero-app-code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.hero-app-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.hero-app-line-num {
  display: inline-block;
  color: var(--text-muted);
  margin-right: 0.5rem;
  min-width: 1.25rem;
  user-select: none;
}

.hero-app-add {
  background: var(--success-bg);
  border-left: 2px solid var(--success);
  padding: 1px 6px;
  margin: 0 -6px;
}

.hero-app-add strong {
  color: var(--success);
  font-weight: 700;
}

.hero-app-del {
  background: var(--error-bg);
  border-left: 2px solid var(--error);
  padding: 1px 6px;
  margin: 2px -6px;
  text-decoration: line-through;
  color: #9b2c2c;
}

.hero-app-del .hero-app-line-num {
  text-decoration: none;
}

.hero-app-alert {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--teal-subtle);
  border-radius: 6px;
  border: 1px solid rgba(26, 122, 109, 0.25);
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.hero-app-alert svg {
  width: 14px;
  height: 14px;
  color: var(--teal-deep);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-app-alert > div {
  font-size: 0.6875rem;
  color: var(--teal-deep);
  flex: 1;
  line-height: 1.5;
}

.hero-app-alert a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-style: dotted;
  font-weight: 600;
}

.hero-app-alert-cta {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

/* Floating badges */
.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.71875rem;
  border: 1px solid var(--warm-line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-badge-top {
  top: -14px;
  right: -22px;
  padding: 9px 13px;
  transform: rotate(2deg);
}

.hero-badge-top span:not(.hero-badge-dot) {
  color: var(--text-secondary);
}

.hero-badge-top strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
  flex-shrink: 0;
}

.hero-badge-bottom {
  bottom: -18px;
  left: -22px;
  padding: 10px 13px;
  transform: rotate(-1.5deg);
  font-size: 0.65625rem;
  gap: 0.625rem;
}

.hero-badge-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-badge-label {
  font-size: 0.59375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-badge-value {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 1px;
}

.hero-badge-warn {
  color: #9a3412;
}

/* --- Hero Entrance (CSS keyframes, auto-plays on load) --- */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 700ms var(--ease-out) forwards;
}
.hero-enter-1 { animation-delay: 0.3s; }
.hero-enter-2 { animation-delay: 0.5s; }
.hero-enter-3 { animation-delay: 0.7s; }
.hero-enter-4 { animation-delay: 0.9s; }

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

/* --- Scroll Reveal System --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }

/* --- Section Spacing --- */
.landing-section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Problem Section --- */
.problem-section {
  background: var(--surface);
}

.problem-header {
  text-align: center;
  margin-bottom: 4rem;
}

.problem-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.problem-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.problem-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.problem-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--sand);
}

.problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Solution Section --- */
.solution-section {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.solution-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

.solution-inner {
  position: relative;
  z-index: 1;
}

.solution-header {
  text-align: center;
  margin-bottom: 4rem;
}

.solution-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.solution-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.solution-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.solution-pillar {
  text-align: left;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 300ms ease;
}

.solution-pillar:hover {
  background: rgba(255,255,255,0.09);
}

.pillar-number {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  margin-bottom: 0.875rem;
}

.solution-pillar h3 {
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.solution-pillar p {
  font-size: 0.78125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* --- Features Section --- */
.features-section {
  background: var(--sand);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.features-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reversed {
  direction: rtl;
}

.feature-row.reversed > * {
  direction: ltr;
}

.feature-text .feature-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.feature-text h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.55rem;
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.feature-mockup {
  padding: 1.5rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 260px;
}

.feature-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  background: var(--sand);
  border-bottom: 1px solid var(--border);
}

.feature-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.mockup-gutter {
  color: var(--text-muted);
  opacity: 0.5;
  min-width: 1.5rem;
  text-align: right;
  user-select: none;
}

.mockup-keyword {
  color: var(--teal);
  font-weight: 600;
}

.mockup-string {
  color: #8b5e3c;
}

.mockup-comment {
  color: var(--text-muted);
  font-style: italic;
}

.mockup-added {
  background: rgba(21, 128, 61, 0.08);
  color: #15803d;
  border-left: 2px solid #15803d;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.mockup-removed {
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
  text-decoration: line-through;
  border-left: 2px solid #b91c1c;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
}

.mockup-ref {
  display: inline-block;
  background: var(--teal-subtle);
  color: var(--teal);
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mockup-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.mockup-stage-draft {
  background: #fef3c7;
  color: #92400e;
}

.mockup-stage-review {
  background: #dbeafe;
  color: #1e40af;
}

.mockup-stage-approved {
  background: #dcfce7;
  color: #166534;
}

.mockup-stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mockup-stage-draft .mockup-stage-dot { background: #f59e0b; }
.mockup-stage-review .mockup-stage-dot { background: #3b82f6; }
.mockup-stage-approved .mockup-stage-dot { background: #22c55e; }

/* --- Workflow Section --- */
.workflow-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.workflow-header {
  text-align: center;
  margin-bottom: 4rem;
}

.workflow-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.workflow-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
}

.workflow-steps {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-connector {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

.workflow-connector-fill {
  width: 100%;
  height: 0%;
  background: var(--teal);
  transition: height 1.8s var(--ease-out);
  transition-delay: 0.4s;
}

.workflow-steps.connector-active .workflow-connector-fill {
  height: 100%;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}

.workflow-step-marker {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.workflow-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 500ms var(--ease-out), border-color 500ms var(--ease-out), color 500ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.workflow-step.visible .workflow-step-number {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.workflow-step.visible:hover .workflow-step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.25);
}

.workflow-step-content {
  padding-top: 0.625rem;
}

.workflow-step-content h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.workflow-step-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Social Proof Section --- */
.proof-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.proof-inner {
  text-align: center;
}

.proof-header {
  margin-bottom: 3rem;
}

.proof-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.proof-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.proof-case {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
}

.proof-case::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.proof-quote {
  font-size: 1.125rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.proof-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.proof-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.proof-title {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 3rem auto 0;
}

.proof-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.proof-stat-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--teal);
  margin-top: 0.0625rem;
}

.proof-stat-icon svg {
  width: 100%;
  height: 100%;
}

.proof-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Pricing Section --- */
.pricing-section {
  background: var(--sand);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.pricing-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1140px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pricing-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Beta stand-in for a price. The paid tiers are invite-only during the pilot,
   so the cards keep their shape and feature lists but carry a badge where the
   figure was. Sized to occupy roughly the same block as
   .pricing-price + .pricing-sub (~2.25rem + ~1.5rem) so the four cards' feature
   lists stay on the same baseline as the free tier's. */
.pricing-beta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  min-height: 3.25rem;
  justify-content: center;
}

.pricing-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep, #15665b);
  background: var(--teal-subtle, #e8f5f3);
  border: 1px solid color-mix(in srgb, var(--teal, #1a7a6d) 22%, transparent);
  border-radius: var(--radius-pill, 999px);
  padding: 0.3125rem 0.75rem;
}

.pricing-beta-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.pricing-desc {
  font-size: 0.78125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
  flex: 1;
}

.pricing-features li {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.pricing-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pricing-check svg {
  width: 10px;
  height: 10px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  font-family: inherit;
  order: 3; /* button before features list visually -> but we want button after price/desc */
}

.pricing-btn-primary {
  background: var(--navy);
  color: #fff;
}

.pricing-btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.pricing-btn-secondary {
  background: transparent;
  color: var(--navy);
}

.pricing-btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

/* --- Pricing justification --- */
.pricing-justification {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--warm-line);
}

/* --- Pricing comparison table --- */
.pricing-compare {
  max-width: 1140px;
  margin: 4rem auto 0;
  padding-top: 3.5rem;
  border-top: 1px solid var(--warm-line);
}

.pricing-compare-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-compare-header h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: var(--navy);
  margin-top: 0.625rem;
  letter-spacing: -0.02em;
}

.pricing-compare-table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pc-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
}

.pc-row:last-child { border-bottom: none; }

.pc-row-head {
  background: var(--surface-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.pc-cell {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-cell-feature {
  text-align: left;
  justify-content: flex-start;
  font-weight: 500;
  color: var(--text-primary);
}

.pc-cell-featured {
  background: rgba(26, 39, 68, 0.025);
  color: var(--navy);
  font-weight: 500;
  position: relative;
}

.pc-row-head .pc-cell-featured {
  background: var(--navy-subtle);
  position: relative;
}

.pc-row-head .pc-cell-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}

.pc-group .pc-cell-group {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  background: var(--surface-2);
  padding: 0.625rem 1rem;
}

.pc-group {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pc-group .pc-cell {
  background: var(--surface-2);
}

.pc-included {
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
}

.pc-excluded {
  color: var(--text-faint);
}

.pc-text {
  font-size: 0.78125rem;
  color: var(--text-secondary);
}

.pricing-disclaimer {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--surface);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header .section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.faq-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  font-family: inherit;
  line-height: 1.4;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--teal);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 300ms var(--ease-out);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out), padding 400ms var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Final CTA --- */
.cta-section {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-cta-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-cta-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.landing-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-text {
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.footer-text {
  font-size: 0.8125rem;
}

/* --- Login Modal --- */
/* --- Login Modal: Two-Column Layout --- */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  display: flex;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  width: 780px;
  max-width: 92vw;
  border: 1px solid var(--warm-line);
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms var(--ease-out);
}
.login-modal-overlay.active .login-modal {
  transform: translateY(0) scale(1);
}

/* Left panel — brand visual */
.login-left {
  width: 320px;
  flex-shrink: 0;
  background: var(--sand);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left-grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.login-left-top { position: relative; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.login-brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.login-welcome {}
.login-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.login-welcome h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.login-welcome p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.login-preview-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.login-preview-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md, 8px);
  padding: 0.625rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--warm-line);
}
.login-preview-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.78rem;
  margin-bottom: 0.125rem;
}

/* Right panel — form */
.login-right {
  flex: 1;
  padding: 2.75rem;
}
.login-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.login-right-header h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.login-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 150ms ease, color 150ms ease;
}
.login-modal-close:hover {
  background: var(--border-light);
  color: var(--navy);
}

.login-modal .login-field {
  margin-bottom: 0.75rem;
}
.login-modal .login-field label {
  display: block;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.login-modal .login-field input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  color: var(--text-primary);
  background: #fff;
}
.login-modal .login-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.12);
}

.login-modal .login-btn {
  width: 100%;
  padding: 0.75rem 1.125rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease;
  margin-top: 0.75rem;
}
.login-modal .login-btn:hover {
  background: var(--navy-light, #243454);
}

.login-sso-note {
  margin-top: 1.25rem;
  padding: 0.75rem 0.875rem;
  background: var(--surface-2, #f5f4f0);
  border-radius: var(--radius);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.login-sso-note svg { flex-shrink: 0; margin-top: 0.125rem; }

.login-modal .flash-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  border: 1px solid #fecaca;
  margin-bottom: 1rem;
}
.login-modal .flash-success {
  background: #f0fdf4;
  color: #15803d;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  border: 1px solid #bbf7d0;
  margin-bottom: 1rem;
}

/* Mobile: collapse to single column */
@media (max-width: 640px) {
  .login-modal {
    flex-direction: column;
    max-height: 95vh;
    overflow-y: auto;
  }
  .login-left {
    width: 100%;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }
  .login-preview-cards { display: none; }
  .login-welcome h2 { font-size: 1.25rem; }
  .login-right { padding: 1.5rem 1.25rem; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-mockup-wrap {
    max-width: 560px;
    margin: 0 auto;
  }
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
  .solution-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .solution-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-row.reversed {
    direction: ltr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .pricing-grid-4 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* Comparison table: switch to a stacked card layout */
  .pricing-compare-table {
    display: none;
  }
  .pricing-compare {
    display: none;
  }

  .workflow-steps {
    max-width: 100%;
  }

  .proof-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .landing-nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-signin {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    border-radius: 0;
  }

  .nav-links .nav-signin {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
  }

  .nav-hamburger {
    display: block;
  }

  .landing-section {
    padding: 4rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: auto;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Hide floating badges on small screens (no room) */
  .hero-badge {
    display: none;
  }

  /* Tighten the app mockup */
  .hero-app-body {
    grid-template-columns: 110px 1fr;
    min-height: 280px;
  }
  .hero-app-edit-tag {
    display: none;
  }

  .pipeline-flow {
    gap: 0.35rem;
  }

  .proof-case {
    padding: 2rem 1.5rem;
  }

  .proof-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Hero Logo Entrance Animation --- */
.hero-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.hero-logo .hl-1 {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: hero-draw 0.8s var(--ease-out) 0.2s forwards;
}
.hero-logo .hl-2 {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: hero-draw-short 0.8s var(--ease-out) 0.5s forwards;
}
.hero-logo .hl-3 {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: hero-draw 0.8s var(--ease-out) 0.8s forwards;
}
@keyframes hero-draw {
  0%   { stroke-dashoffset: 16; opacity: 0; }
  30%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hero-draw-short {
  0%   { stroke-dashoffset: 12; opacity: 0; }
  30%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* --- Problem Card Icon Draw Animation --- */
.icon-animate svg {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.reveal.visible .icon-animate svg {
  stroke-dashoffset: 0;
}

/* --- Animated Lifecycle Pipeline --- */
.pipeline-stage,
.pipeline-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.mockup-animate.visible .pipeline-stage:nth-child(1) { transition-delay: 0.2s; }
.mockup-animate.visible .pipeline-arrow:nth-child(2) { transition-delay: 0.35s; }
.mockup-animate.visible .pipeline-stage:nth-child(3) { transition-delay: 0.5s; }
.mockup-animate.visible .pipeline-arrow:nth-child(4) { transition-delay: 0.65s; }
.mockup-animate.visible .pipeline-stage:nth-child(5) { transition-delay: 0.8s; }
.mockup-animate.visible .pipeline-arrow:nth-child(6) { transition-delay: 0.95s; }
.mockup-animate.visible .pipeline-stage:nth-child(7) { transition-delay: 1.1s; }
.mockup-animate.visible .pipeline-stage,
.mockup-animate.visible .pipeline-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Hero Background Parallax --- */
.hero-bg-pattern {
  will-change: transform;
  transition: transform 0s linear;
}

/* --- Feature Mockup Line-by-Line Reveal --- */
.mockup-animate .mockup-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.mockup-animate.visible .mockup-line {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger each line — tighter intervals */
.mockup-animate.visible .mockup-line:nth-child(1)  { transition-delay: 0.1s; }
.mockup-animate.visible .mockup-line:nth-child(2)  { transition-delay: 0.17s; }
.mockup-animate.visible .mockup-line:nth-child(3)  { transition-delay: 0.24s; }
.mockup-animate.visible .mockup-line:nth-child(4)  { transition-delay: 0.31s; }
.mockup-animate.visible .mockup-line:nth-child(5)  { transition-delay: 0.38s; }
.mockup-animate.visible .mockup-line:nth-child(6)  { transition-delay: 0.45s; }
.mockup-animate.visible .mockup-line:nth-child(7)  { transition-delay: 0.52s; }
.mockup-animate.visible .mockup-line:nth-child(8)  { transition-delay: 0.59s; }
.mockup-animate.visible .mockup-line:nth-child(9)  { transition-delay: 0.66s; }
.mockup-animate.visible .mockup-line:nth-child(10) { transition-delay: 0.73s; }

/* Also stagger non-.mockup-line direct children in styled mockups */
.mockup-animate .feature-mockup > div {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.mockup-animate.visible .feature-mockup > div {
  opacity: 1;
  transform: translateY(0);
}
.mockup-animate.visible .feature-mockup > div:nth-child(1) { transition-delay: 0.15s; }
.mockup-animate.visible .feature-mockup > div:nth-child(2) { transition-delay: 0.35s; }
.mockup-animate.visible .feature-mockup > div:nth-child(3) { transition-delay: 0.55s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-enter {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .hero-scroll-indicator {
    animation: none;
    opacity: 0.5;
  }

  .hero-logo .hl-1,
  .hero-logo .hl-2,
  .hero-logo .hl-3 {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .mockup-animate .mockup-line,
  .mockup-animate .feature-mockup > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .icon-animate svg {
    stroke-dashoffset: 0;
    transition: none;
  }

  .pipeline-stage,
  .pipeline-arrow {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .workflow-connector-fill {
    height: 100% !important;
    transition: none;
  }

  .workflow-step-number {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========================================================================
   SECURITY & TRUST (landing teaser)
   The full treatment lives on /security (security.css). This is the
   summary block + footer links on the landing page itself.
   ======================================================================== */
.security-teaser { background: var(--sand); }
.security-teaser-header { max-width: 720px; margin-bottom: 2.5rem; }
.security-teaser-header p { color: var(--text-secondary); font-size: 1.0625rem; margin-top: 0.75rem; }

.security-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.security-teaser-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.security-teaser-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.security-teaser-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-subtle);
  color: var(--teal-deep);
  border-radius: var(--radius);
  margin-bottom: 0.875rem;
}
.security-teaser-icon svg { width: 20px; height: 20px; }
.security-teaser-card h3 { font-size: 1rem; color: var(--navy); font-weight: 600; margin-bottom: 0.375rem; }
.security-teaser-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.security-teaser-cta { margin-top: 2.25rem; }

/* Footer links shared with the marketing footer */
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.8125rem; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .security-teaser-grid { grid-template-columns: 1fr; }
}
