/* ============================================
   Perch — site-wide styles
   ============================================ */

:root {
  --green-deep: #0e3d27;
  --green: #1a7a4c;
  --green-bright: #2aa967;
  --ink: #17241d;
  --ink-soft: #4a5a51;
  --paper: #ffffff;
  --paper-tint: #f2f7f4;
  --radius: 14px;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 36, 29, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark { display: inline-flex; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--green); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 70%, var(--green-bright) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
  margin-bottom: 32px;
}

.store-badge { display: inline-block; transition: transform 0.15s ease; }
.store-badge:hover { transform: scale(1.04); }

.hero-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Phone mockup */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 260px;
  height: 530px;
  border-radius: 42px;
  background: #0b120e;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(200deg, var(--green-bright), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* ---------- Features ---------- */

.features { padding: 90px 0; }

.features h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--paper-tint);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }

.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta {
  background: var(--paper-tint);
  padding: 70px 0;
}

.cta-inner { text-align: center; }

.cta h2 { font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 10px; }

.cta p { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(23, 36, 29, 0.08);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:first-child { margin-left: 0; }

.footer-links a:hover { color: var(--green); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }

.legal ul { padding-left: 22px; margin-bottom: 12px; }

.legal a { color: var(--green); }

.placeholder-notice {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #7a5c1e;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .lead { margin-left: auto; margin-right: auto; }

  .phone { width: 220px; height: 448px; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}
