/**
 * Landing page only — Finwise-style premium SaaS.
 * Clean, structured, high-end. Used only by /index.
 */

:root {
  --landing-bg: #ffffff;
  --landing-bg-subtle: #f8fafc;
  --landing-text: #0f172a;
  --landing-text-muted: #64748b;
  --landing-border: #e2e8f0;
  --landing-border-light: #f1f5f9;
  --landing-hero-from: #0f172a;
  --landing-hero-to: #1e293b;
  --landing-accent-from: #0d9488;
  --landing-accent-to: #0f766e;
  --landing-accent-hover-from: #0f766e;
  --landing-accent-hover-to: #115e59;
  --landing-container: 68rem;
  --landing-nav-h: 4rem;
  --landing-space: 1.5rem;
  --landing-space-lg: 2rem;
  --landing-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);
  --landing-shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.landing-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--landing-text);
  background: var(--landing-bg);
  -webkit-font-smoothing: antialiased;
}

.landing-container {
  width: 100%;
  max-width: var(--landing-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--landing-space);
  padding-right: var(--landing-space);
}

@media (min-width: 1024px) {
  .landing-container {
    padding-left: var(--landing-space-lg);
    padding-right: var(--landing-space-lg);
  }
}

/* ----- Navbar ----- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--landing-nav-h);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--landing-border);
  backdrop-filter: blur(8px);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.landing-nav-logo {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--landing-text);
  text-decoration: none;
}

.landing-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .landing-nav-links {
    display: flex;
  }
}

.landing-nav-links a {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: var(--landing-text);
}

.landing-nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-nav-ctas a:first-child {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-nav-ctas a:first-child:hover {
  color: var(--landing-text);
}

/* Navbar CTA: match hero primary (white, dark text, decisive) */
.landing-nav-ctas .landing-btn-primary {
  background: #fff;
  color: var(--landing-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--landing-border);
}

.landing-nav-ctas .landing-btn-primary:hover {
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Primary button (hero): white, dark text, subtle shadow, decisive */
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--landing-text);
  background: #fff;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.landing-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.landing-btn-primary:active {
  transform: translateY(0);
}

/* ----- Hero: large, centered, minimal, tighter spacing ----- */
.landing-hero {
  padding-top: calc(var(--landing-nav-h) + 3.5rem);
  padding-bottom: 4.25rem;
  background: var(--landing-hero-from);
  background: linear-gradient(160deg, var(--landing-hero-from) 0%, var(--landing-hero-to) 100%);
}

@media (min-width: 640px) {
  .landing-hero {
    padding-top: calc(var(--landing-nav-h) + 4.5rem);
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .landing-hero {
    padding-top: calc(var(--landing-nav-h) + 5rem);
    padding-bottom: 5.5rem;
  }
}

.landing-hero-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
}

.landing-hero-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .landing-hero-sub {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }
}

.landing-hero-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .landing-hero-ctas {
    flex-direction: row;
    justify-content: center;
    gap: 0.875rem;
    margin-top: 2rem;
  }
}

/* Hero primary: white bg, dark text, subtle shadow, hover lift */
.landing-hero-ctas .landing-btn-primary {
  width: 100%;
  max-width: 12.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--landing-hero-from);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.landing-hero-ctas .landing-btn-primary:hover {
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Secondary: transparent/dark, subtle border, no heavy fill */
.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  text-decoration: none;
  width: 100%;
  max-width: 12.5rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
  .landing-btn-ghost {
    width: auto;
  }
}

/* ----- Sections: significant vertical spacing ----- */
.landing-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 640px) {
  .landing-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .landing-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

.landing-section--alt {
  background: var(--landing-bg-subtle);
  border-top: 1px solid var(--landing-border-light);
  border-bottom: 1px solid var(--landing-border-light);
}

/* Strong H2 scale */
.landing-section-title {
  margin: 0;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
  color: var(--landing-text);
}

.landing-section-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  color: var(--landing-text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .landing-section-lead {
    margin-top: 1.25rem;
  }
}

/* ----- Use-case strip: premium, calm, not a hard break ----- */
.landing-strip {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: #fafbfc;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: none;
}

@media (min-width: 640px) {
  .landing-strip {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.landing-strip-tag {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
}

.landing-strip-list {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}

.landing-strip-list span.sep {
  display: none;
}

@media (min-width: 640px) {
  .landing-strip-list span.sep {
    display: inline;
    color: #cbd5e1;
    user-select: none;
    margin: 0 -0.25rem;
  }
}

/* ----- Feature grid: equal height, subtle border, soft shadow ----- */
.landing-features {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .landing-features {
    margin-top: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .landing-features {
    margin-top: 4rem;
  }
}

.landing-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .landing-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.landing-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--landing-bg);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  min-height: 12.5rem;
  box-shadow: var(--landing-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .landing-card {
    min-height: 13.75rem;
  }
}

.landing-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--landing-shadow-card-hover);
}

.landing-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--landing-bg-subtle);
  border-radius: 0.5rem;
  color: var(--landing-text-muted);
  flex-shrink: 0;
}

.landing-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.landing-card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--landing-text);
}

.landing-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--landing-text-muted);
}

/* ----- How it works ----- */
.landing-steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .landing-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
  }
}

.landing-step {
  text-align: center;
}

.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--landing-text);
  background: var(--landing-bg);
  box-shadow: var(--landing-shadow-card);
}

.landing-step h3 {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--landing-text);
}

.landing-step p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--landing-text-muted);
}

/* ----- Infrastructure list ----- */
.landing-list {
  margin-top: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  list-style: none;
}

.landing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--landing-text-muted);
}

.landing-list li::before {
  content: '';
  margin-top: 0.6rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

/* ----- Pricing preview ----- */
.landing-pricing-wrap {
  text-align: center;
}

.landing-pricing-cta {
  margin-top: 2.25rem;
}

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--landing-text);
  background: var(--landing-bg);
  border: 1px solid var(--landing-border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--landing-shadow-card);
}

.landing-btn-secondary:hover {
  background: var(--landing-bg-subtle);
  border-color: #cbd5e1;
  box-shadow: var(--landing-shadow-card-hover);
}

/* ----- FAQ ----- */
.landing-faq {
  margin-top: 3rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-faq details {
  border-bottom: 1px solid var(--landing-border);
}

.landing-faq summary {
  padding: 1.125rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--landing-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--landing-text-muted);
  flex-shrink: 0;
}

.landing-faq details[open] summary::after {
  content: '−';
}

.landing-faq-content {
  padding-bottom: 1.125rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--landing-text-muted);
}

/* ----- Footer ----- */
.landing-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--landing-border);
}

@media (min-width: 640px) {
  .landing-footer {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .landing-footer-inner {
    flex-direction: row;
  }
}

.landing-footer-brand {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.landing-footer-links a {
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer-links a:hover {
  color: var(--landing-text);
}
