/* Our Space Landing Page Styles */

/* CSS Custom Properties - Theme Colors */
:root {
  /* Professional Theme - Matching App Design */
  --color-navy: #2C3E50;
  --color-navy-dark: #1E3A5F;  /* App sidebar color */
  --color-gold: #C9A66B;       /* App secondary/highlight color */
  --color-coral: #FF6B6B;
  --color-sage: #8FBC8F;
  --color-sage-dark: #4A7C59;
  --color-cream: #F5F5F0;      /* Matched to app */
  --color-white: #FFFFFF;
  --color-text: #4A5568;
  --color-text-light: #718096;
  --color-border: #E8E5E0;

  /* Blue overlay colors - #3498DB (Dodger Blue) with varying opacity */
  --color-card-bg: #3498DB26;        /* 15% opacity - card backgrounds */
  --color-card-bg-light: #3498DB15;  /* 8% opacity - subtle overlays */
  --color-card-bg-hover: #3498DB25;  /* 14% opacity - hover states */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Font families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* Header - Dark navy to match app sidebar */
.header {
  background: linear-gradient(180deg, #1a2d42 0%, var(--color-navy-dark) 100%);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(201, 166, 107, 0.2);
}

.header .container {
  display: flex;
  justify-content: flex-start;
  max-width: 100%;
  padding-left: clamp(var(--space-md), 3vw, 80px);
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo-couple {
  height: 88px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  margin-top: -8px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-brand {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.logo-tld {
  color: var(--color-gold);
}

.logo-powered {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.logo-delpha {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 500;
}

.logo {
  height: 48px;
  width: auto;
}

@media (max-width: 600px) {
  .header {
    padding: var(--space-md) 0;
  }

  .header-logo-group {
    gap: var(--space-md);
  }

  .logo-couple {
    height: 64px;
  }

  .logo-brand {
    font-size: 1.5rem;
  }

  .logo-powered {
    font-size: 0.75rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  padding: var(--space-2xl) 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-content {
  text-align: left;
}

.tagline {
  color: var(--color-gold);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-md);
  max-width: 700px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  max-width: 400px;
  width: 100%;
}

.hero-signature {
  width: 200px;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Social Proof Badge */
.social-proof-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(143, 188, 143, 0.1);
  border-radius: var(--radius-full);
  width: fit-content;
}

.proof-number {
  font-weight: 700;
  color: var(--color-gold);
  font-size: 1.1rem;
}

.proof-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-lg);
  }

  .hero-image {
    max-width: 280px;
  }

  .hero-signature {
    width: 160px;
  }

  .social-proof-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Signup Form */
.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-group input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2);
}

.form-group input::placeholder {
  color: var(--color-text-light);
}

.btn-primary {
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-sage-dark);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.btn-primary:hover {
  background: #3a6447;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  display: inline;
}

.btn-loading {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Value Pillars Section - Dark theme */
.value-pillars {
  padding: var(--space-2xl) 0;
  background: var(--color-navy-dark);
}

.value-pillars .section-title {
  color: var(--color-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pillar-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-sans);  /* Inter */
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 166, 107, 0.3);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pillar-coral::before { background: var(--color-coral); }
.pillar-sage::before { background: var(--color-sage); }
.pillar-navy::before { background: var(--color-gold); }

.pillar-icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-emoji {
  font-size: 48px;
}

.ai-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.pillar-title {
  font-family: var(--font-sans);  /* Inter for consistency with app */
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-white);
}

.pillar-hook {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.pillar-description {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  font-size: 0.95rem;
}

.pillar-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-features li {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.pillar-features li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pillar-examples {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-bubble {
  background: var(--color-card-bg-light);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-style: italic;
  border-left: 3px solid var(--color-gold);
  color: rgba(255, 255, 255, 0.95);
  transition: transform 0.2s, background 0.2s;
}

.example-bubble:hover {
  background: var(--color-card-bg-hover);
  transform: translateX(4px);
}

.pillar-stat {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: 0;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-coach-note {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-lg);
  margin-bottom: 0;
  padding: 0.875rem 1rem;
  background: var(--color-card-bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pillar-card {
    padding: var(--space-lg);
  }
}

/* Success / Already Registered Messages */
.success-message,
.already-message {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: #d4edda;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-sage-dark);
}

.success-message h3,
.already-message h3 {
  margin-bottom: var(--space-sm);
}

.success-message p,
.already-message p {
  color: var(--color-text-light);
  margin: 0;
}

/* Features Section - Dark theme */
.features {
  padding: var(--space-2xl) 0;
  background: var(--color-navy-dark);
}

.features .section-title {
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-card-bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
  border-color: rgba(201, 166, 107, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(143, 188, 143, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-sage-dark);
}

.feature-icon-emoji {
  font-size: 40px;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0;
}

.feature-desc {
  margin-bottom: var(--space-sm) !important;
}

.feature-use {
  font-style: italic;
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-sm);
  margin-top: var(--space-sm) !important;
}

/* Trust Section - Dark theme */
.trust-section {
  padding: var(--space-2xl) 0;
  background: var(--color-navy-dark);
}

.trust-section .section-title {
  color: var(--color-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.trust-item {
  text-align: center;
  padding: var(--space-lg);
}

.trust-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.trust-item h4 {
  font-family: var(--font-serif);
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.trust-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

.founder-note {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-gold);
}

.founder-note blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-navy);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
}

.founder-note cite {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: normal;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .trust-item {
    padding: var(--space-md);
  }

  .founder-note blockquote {
    font-size: 1.1rem;
  }
}

/* Early Adopter Section */
.early-adopter {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
}

.early-adopter-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-sage);
}

.badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.early-adopter-card h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.benefits-list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.benefits-list li {
  padding: var(--space-sm) 0;
  color: var(--color-text);
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta {
  background: var(--color-navy-dark);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.cta-note {
  font-size: 0.875rem !important;
  margin-top: var(--space-md) !important;
  opacity: 0.7;
}

.btn-secondary {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
}

/* Footer - Dark navy to match app */
.footer {
  background: var(--color-navy-dark);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: none;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-branding {
  margin-bottom: var(--space-md);
}

.footer-branding .brand-name {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-branding .brand-tld {
  color: var(--color-gold);
}

.footer-branding .brand-powered {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-xs);
}

.footer-branding .brand-delpha {
  color: var(--color-gold);
  font-style: italic;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* Error state for form */
.form-group input.error {
  border-color: var(--color-coral);
}

.form-error {
  color: var(--color-coral);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  text-align: left;
}

/* Honeypot field - completely hidden from real users */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Math challenge group */
.challenge-group {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-sage);
  text-align: center;
}

.challenge-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xs) 0;
}

.challenge-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.challenge-group input {
  width: 180px;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-md);
  background: var(--color-white);
  /* Hide number spinner arrows */
  -moz-appearance: textfield;
}

.challenge-group input::-webkit-outer-spin-button,
.challenge-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.challenge-group input::placeholder {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-style: italic;
}

.challenge-group input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message,
.already-message {
  animation: fadeIn 0.3s ease-out;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
