/* =============================================
   StayPut — Landing Page Stylesheet
   Fonts: Fraunces (display serif) + DM Sans
   Palette: Deep Forest Green + Warm Amber
   ============================================= */

:root {
  --bg: #FAFAF5;
  --bg-alt: #F0EDE6;
  --fg: #1C2127;
  --fg-muted: #5A5E66;
  --fg-faint: #9A9FA7;
  --accent: #D4A853;
  --accent-dark: #B8923F;
  --forest: #1B4332;
  --forest-mid: #2D6A4F;
  --forest-light: #3D8B66;
  --border: #E0DBD2;
  --radius: 12px;
  --radius-lg: 20px;
  --section-pad: 96px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }

/* ─── HERO ─── */
.hero-image-frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(27,67,50,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-gradient-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(27,67,50,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 48px 0 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,67,50,0.06);
  border: 1px solid rgba(27,67,50,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--forest-mid);
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--forest);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 48px;
  max-width: 460px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--fg-faint);
  font-weight: 400;
  line-height: 1.4;
  max-width: 90px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 0 64px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.device-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.device-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27,67,50,0.1);
}
.device-card-main {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  border-color: var(--forest);
  color: white;
}
.device-card-main .device-label,
.device-card-main .device-desc {
  color: rgba(255,255,255,0.9);
}
.device-icon {
  margin-bottom: 14px;
}
.device-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 4px;
}
.device-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─── SECTIONS ─── */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.section-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ─── WHAT WE DO ─── */
.what-we-do {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cap-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27,67,50,0.08);
}
.cap-icon {
  width: 52px;
  height: 52px;
  background: rgba(27,67,50,0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cap-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cap-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: var(--section-pad) 0;
}
.steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--border));
}
.step {
  padding: 0 40px 0 0;
  position: relative;
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(27,67,50,0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--forest-mid);
  background: rgba(27,67,50,0.07);
  border: 1px solid rgba(27,67,50,0.12);
  border-radius: 100px;
  padding: 4px 12px;
  font-weight: 500;
}
.step-connector {
  position: absolute;
  top: 28px;
  right: 0;
  width: 1px;
  height: calc(100% - 56px);
  background: var(--border);
  display: none;
}

/* ─── MANIFESTO ─── */
.manifesto {
  background: var(--forest);
  padding: var(--section-pad) 0;
  color: white;
}
.manifesto-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-quote .open-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}
.manifesto-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ─── PRICING ─── */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27,67,50,0.08);
}
.price-card-featured {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.price-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 100px;
}
.price-tier {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.price-card-featured .price-tier {
  color: rgba(255,255,255,0.6);
}
.price-amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-card-featured .price-amount {
  color: white;
}
.price-per {
  font-size: 1.4rem;
}
.price-note {
  font-size: 0.8rem;
  color: var(--fg-faint);
  margin-bottom: 28px;
}
.price-card-featured .price-note {
  color: rgba(255,255,255,0.5);
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest-light);
}
.price-card-featured .price-features li {
  color: rgba(255,255,255,0.8);
}
.price-card-featured .price-features li::before {
  background: var(--accent);
}

/* ─── CLOSING ─── */
.closing {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.closing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--forest);
  padding: 56px 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: white;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
}

/* ─── SOCIAL PROOF ─── */
.social-proof { padding: var(--section-pad) 0; background: var(--bg); }
.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: start;
}
.sp-headline-col .section-headline { margin-bottom: 16px; }
.sp-testimonials { display: flex; flex-direction: column; gap: 24px; }
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.testimonial-quote-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 5rem;
  color: rgba(27,67,50,0.12);
  line-height: 0.6;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--fg); }
.testimonial-sub { font-size: 0.78rem; color: var(--fg-faint); }
.sp-numbers {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  border: 1px solid var(--border);
}
.sp-stat { display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.sp-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
  line-height: 1;
}
.sp-stat-label { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.4; }
.sp-stat-divider { width: 1px; height: 48px; background: var(--border); margin: 0 32px; }
@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: 1fr; gap: 40px; }
  .sp-numbers { flex-direction: column; gap: 24px; }
  .sp-stat-divider { width: 40px; height: 1px; margin: 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: 1fr; gap: 40px; }
  .steps-track::before { display: none; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 0 48px;
    gap: 0;
  }
  .hero-inner { padding: 0 24px; max-width: 100%; }
  .hero-visual { padding: 40px 24px 0; }
  .device-cluster { max-width: 100%; }
  .nav-links { display: none; }
  .section-inner { padding: 0 24px; }
  .capability-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .footer-inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .section-headline { font-size: 1.7rem; }
  .closing-headline { font-size: 1.8rem; }
}