/* ============================================================
   BoardPortal — Landing Page Styles (v2)
   Rhythm: --space-7/8/9 (editorial landing)
   ============================================================ */

/* --- Navigation (Part 4.1.1) --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard),
              background-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}

.landing-nav.scrolled {
  background-color: var(--surface-raised);
  border-bottom-color: var(--border-default);
  box-shadow: var(--shadow-float);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-landing);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 18px;
  height: 18px;
  color: var(--accent-on);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  margin-left: var(--space-2);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  z-index: var(--z-overlay);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: var(--text-body-lg);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-default);
}


/* --- Hero Section (Part 4.1.2) --- */
.hero {
  padding: calc(var(--space-9) + var(--topbar-height)) 0 var(--space-9);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px var(--space-4);
  background-color: var(--secondary-soft);
  margin-bottom: var(--space-6);
}

.hero-badge svg {
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5.5vw, var(--text-display));
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto var(--space-6);
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-7);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-trial-note {
  display: block;
  font-size: var(--text-caption);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
}


/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-headline);
  font-size: var(--text-h2);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Alias for demo-header usage */
.demo-header {
  text-align: center;
  margin-bottom: var(--space-7);
}


/* --- Before/After Demo (Part 4.1.3) --- */
.demo-section {
  padding: var(--space-9) 0;
  background-color: var(--surface-sunken);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.demo-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.demo-panel {
  position: relative;
}

.demo-panel-label {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  z-index: 2;
  font-weight: 500;
}

.demo-panel-label.before-label {
  background-color: var(--status-blocked-soft);
  color: var(--status-blocked);
}

.demo-panel-label.after-label {
  background-color: var(--status-done-soft);
  color: var(--status-done);
}

.demo-mock {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  position: relative;
}

.demo-mock-before {
  background-color: #F0F0F0;
  padding: var(--space-4);
}

.demo-mock-after {
  background-color: var(--surface-raised);
}

.demo-caption {
  text-align: center;
  font-family: var(--font-headline);
  font-size: var(--text-body-lg);
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-5);
}


/* --- How It Works (Part 4.1.4) --- */
.how-section {
  padding: var(--space-9) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-7);
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-soft);
  margin: 0 auto var(--space-5);
}

.step-title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}


/* --- Integration Bar (Part 4.1.6) --- */
.integrations-section {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background-color: var(--surface-sunken);
}

.integrations-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: var(--space-6);
}

.integrations-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 100px;
}

.integration-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-default);
  padding: 10px;
}

.integration-item.coming-soon .integration-icon {
  opacity: 0.4;
}

.integration-name {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
}

.integration-item.coming-soon .integration-name {
  color: var(--text-tertiary);
}

.integration-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* --- Social Proof (Part 4.1.7) --- */
.proof-section {
  padding: var(--space-9) 0;
  text-align: center;
}

.proof-stat {
  font-family: var(--font-headline);
  font-size: var(--text-h1);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.proof-stat-label {
  font-size: var(--text-body);
  color: var(--text-secondary);
}


/* --- Pricing Section (Part 4.1.1 pricing cards) --- */
.pricing-section {
  padding: var(--space-9) 0;
  background-color: var(--surface-sunken);
  border-top: 1px solid var(--border-default);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-7);
}

.pricing-toggle-label {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.pricing-switch {
  width: 48px;
  height: 26px;
  background-color: var(--border-strong);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.pricing-switch.annual {
  background-color: var(--accent);
}

.pricing-switch-knob {
  width: 20px;
  height: 20px;
  background-color: var(--surface-raised);
  border-radius: var(--radius-full);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--duration-base) var(--ease-standard);
}

.pricing-switch.annual .pricing-switch-knob {
  transform: translateX(22px);
}

.pricing-save-badge {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  color: var(--status-done);
  background-color: var(--status-done-soft);
  padding: 3px 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-xs);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-none);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.pricing-card:hover {
  border-color: var(--border-strong);
}

/* Featured card: 3px top accent border + MOST POPULAR eyebrow */
.pricing-card.featured {
  border-top: 3px solid var(--accent);
  position: relative;
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 3px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
}

.pricing-plan-name {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-1);
}

.pricing-amount {
  font-family: var(--font-headline);
  font-size: var(--text-h1);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-tertiary);
}

.pricing-annual-note {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
  min-height: 18px;
}

.pricing-features {
  flex: 1;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing-feature .check {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature .cross {
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-tertiary);
  margin-top: var(--space-5);
  font-style: italic;
}


/* --- CTA Banner (Part 4.1.9) --- */
.cta-section {
  padding: var(--space-9) 0;
  text-align: center;
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.cta-section .section-eyebrow {
  color: var(--accent);
}

.cta-section .section-title {
  font-family: var(--font-headline);
  color: var(--dark-text);
  margin-bottom: var(--space-4);
}

.cta-section .section-subtitle {
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-6);
}


/* --- Footer (Part 4.1.10) --- */
.landing-footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border-default);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.footer-brand-desc {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-small);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}

.footer-copy {
  font-size: var(--text-caption);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: calc(var(--space-8) + var(--topbar-height)) 0 var(--space-8); }

  .demo-section { padding: var(--space-8) 0; }
  .demo-container { grid-template-columns: 1fr; }

  .how-section { padding: var(--space-8) 0; }
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-6); }

  .pricing-section { padding: var(--space-8) 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .proof-section { padding: var(--space-8) 0; }
  .cta-section { padding: var(--space-8) 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--space-7) + var(--topbar-height)) 0 var(--space-7); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
  .integrations-grid { gap: var(--space-5); }
}

/* ============================================================
   NEW EDITORIAL & VISUAL STORYTELLING CLASSES
   ============================================================ */

/* Soft Gradients & Backgrounds */
.bg-gradient-warm {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--surface-sunken) 100%);
}

.bg-gradient-fade {
  background: linear-gradient(180deg, var(--surface-sunken) 0%, var(--bg-primary) 100%);
}

.bg-blueprint {
  background-image: 
    linear-gradient(rgba(138, 129, 119, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 129, 119, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Depth Layers */
.layer-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.layer-mid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.layer-front {
  position: relative;
  z-index: 3;
}

/* Floating Elements & Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element.delay-1 { animation-delay: -2s; }
.floating-element.delay-2 { animation-delay: -4s; animation-name: float-reverse; }

/* Sticky Notes & Paper Elements */
.sticky-note {
  background-color: #F8F3D6; /* Warm yellow/beige */
  padding: var(--space-3);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: var(--text-small);
  color: var(--text-primary);
  box-shadow: 2px 4px 12px rgba(29,27,24,0.08);
  transform: rotate(-3deg);
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 140px;
  position: absolute;
  pointer-events: none;
}

.sticky-note::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transform: translateX(-50%) rotate(-2deg);
}

.paper-card {
  background-color: var(--surface-raised);
  padding: var(--space-4);
  box-shadow: 0 8px 32px rgba(29,27,24,0.06), 0 2px 8px rgba(29,27,24,0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-none);
  position: absolute;
}

/* Editorial Arrows */
.editorial-arrow {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 50 Q 30 20, 50 20 M 40 10 L 50 20 L 40 30" stroke="%23A43C23" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.6;
}

/* Product Showcase Specifics */
.blur-overlay {
  filter: blur(8px) grayscale(40%);
  opacity: 0.6;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin: var(--space-8) auto;
  max-width: 1200px;
  perspective: 1000px;
}

.showcase-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 900px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-modal);
  z-index: 10;
  transition: transform 0.5s ease;
}

/* Enhanced Typography */
.editorial-quote {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: var(--text-h2);
  line-height: 1.4;
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-5);
  margin-left: var(--space-5);
}

/* Cursor Parallax wrapper */
.parallax-wrapper {
  position: relative;
  overflow: visible;
}
