/* LazyBudget marketing site */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-light: #10b981;
  --emerald-muted: #d1fae5;
  --ink: #141f1b;
  --ink-soft: #243530;
  --dark-bg: #141f1b;
  --dark-bg-mid: #1f3d31;
  --dark-bg-end: #172820;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #eaf2ed;
  --border: #e2e8f0;
  --divider: #d4e0da;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 24px rgba(12, 18, 16, 0.06);
  --shadow-md: 0 20px 60px rgba(12, 18, 16, 0.12);
  --shadow-device: 0 32px 80px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(20, 31, 27, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-brand img {
  border-radius: 9px;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(5, 150, 105, 0.4);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ── Hero (full-bleed background, constrained content) ── */
.hero {
  width: 100%;
  background: linear-gradient(165deg, var(--dark-bg) 0%, var(--dark-bg-mid) 48%, var(--dark-bg-end) 100%);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
  min-height: min(92vh, 900px);
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}

.hero h1 .accent {
  color: var(--emerald-light);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
}

.lead strong {
  color: #fff;
}

.hero-actions {
  margin-bottom: 28px;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--emerald-light);
  font-size: 0.5rem;
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.device-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.42) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* iPhone 3D renders (AppScreen GLB + Three.js export) */
.iphone-3d {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.iphone-3d img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.2));
}

.hero-device,
.feature-media {
  overflow: visible;
}

.iphone-3d--hero {
  width: min(360px, 46vw);
  max-width: 100%;
}

.iphone-3d--hero img {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.26));
}

.iphone-3d--sm {
  width: min(320px, 100%);
  max-width: 380px;
}

.feature-media .iphone-3d--sm {
  width: min(340px, 40vw);
}

/* ── Trust bar ── */
.trust-bar {
  width: 100%;
  background: var(--ink-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-bar-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  text-align: center;
}

.trust-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.trust-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.trust-value-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plaid-mark {
  display: inline-block;
  width: auto;
  height: 22px;
  max-width: 96px;
  flex-shrink: 0;
  object-fit: contain;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

@media (min-width: 900px) {
  .plaid-mark {
    height: 24px;
    max-width: 104px;
  }
}

/* ── Sections (full-bleed bands, constrained content) ── */
.section {
  width: 100%;
  padding: 88px var(--gutter);
}

/* Visible break between light sections (incl. same-colored neighbors) */
.section:not(.section-dark):not(.cta-section) {
  border-top: 1px solid var(--divider);
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section-light {
  background: var(--surface);
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-end) 100%);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: inherit;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Problem cards ── */
.problem-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.problem-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.problem-card-muted {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.problem-card-accent {
  background: linear-gradient(145deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.problem-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 8px;
}

.problem-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.problem-amount-high {
  color: var(--text);
}

.problem-amount-real {
  color: #fff;
}

.problem-caption {
  display: block;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.7;
}

.problem-arrow {
  font-size: 1.5rem;
  color: var(--emerald);
  font-weight: 700;
}

/* ── Feature rows ── */
.feature-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row-reverse .feature-row-inner {
  direction: rtl;
}

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

.feature-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin: 0 0 10px;
}

.section-dark .feature-tag {
  color: var(--emerald-light);
}

.feature-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.section-dark .feature-copy h2 {
  color: #fff;
}

.feature-copy p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.section-dark .feature-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.section-dark .feature-copy strong {
  color: #fff;
}

.benefit-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-dark .benefit-list {
  color: rgba(255, 255, 255, 0.65);
}

.benefit-list li {
  margin-bottom: 6px;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.mini-card-icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
}

.mini-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.mini-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Apple Watch — real hardware photo with composited complication */
.watch-section {
  overflow: visible;
}

.feature-media-watch {
  display: flex;
  justify-content: center;
  align-items: center;
}

.watch-hardware {
  width: min(348px, 44vw);
  max-width: 100%;
}

.watch-hardware img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
}

/* ── Steps ── */
.steps-section {
  background: var(--surface-alt);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.steps p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Perks ── */
.perks-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 32px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.perk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}

.perk h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.perk p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(145deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 28px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--emerald-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: #f0fdf4;
}

/* ── Footer ── */
.footer {
  width: 100%;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 40px var(--gutter);
}

.footer-brand {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.78rem;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .trust-row {
    justify-content: center;
  }

  .hero-device {
    order: -1;
  }

  .iphone-3d--hero {
    width: min(300px, 84vw);
  }

  .iphone-3d--sm,
  .feature-media .iphone-3d--sm {
    width: min(288px, 88vw);
    max-width: none;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row-inner,
  .feature-row-reverse .feature-row-inner {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }

  .watch-hardware {
    width: min(280px, 74vw);
  }

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

  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  .section {
    padding: 64px var(--gutter);
  }

  .hero-inner {
    padding: 92px var(--gutter) 40px;
  }

  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-value-logo {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .plaid-mark {
    height: 22px;
    max-width: 96px;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
  }

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

  .problem-arrow {
    display: none;
  }
}
