:root {
  --terracotta: #C1440E;
  --terracotta-dark: #9E3609;
  --cream: #FFFDF9;
  --panel: #FFFFFF;
  --dark: #2B221B;
  --muted: #6B5D50;
  --border: #EEE6DB;
  --green: #3E7B3C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 14px;
}

.site-nav a:not(.nav-cta):hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
}

.nav-cta:hover { background: var(--terracotta-dark); }

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 900;
  color: var(--dark);
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

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

.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 36px;
  border: 10px solid var(--dark);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(43, 34, 27, 0.35);
  background: var(--dark);
}

.phone-frame img {
  display: block;
  width: 100%;
}

/* App Store badge */

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.app-store-badge:hover { background: #171310; }

.app-store-badge small {
  display: block;
  font-size: 11px;
  line-height: 1;
  opacity: 0.85;
}

.app-store-badge strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

/* Web app CTA */

.web-app-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.web-app-cta:hover {
  background: var(--dark);
  color: var(--cream);
}

/* Features */

.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

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

.section-heading h2 {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F0EAE2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* CTA band */

.cta-band {
  background: var(--terracotta);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 28px;
  opacity: 0.92;
}

.cta-band .app-store-badge {
  background: #fff;
  color: var(--dark);
}

.cta-band .app-store-badge:hover { background: #F0EAE2; }

.cta-band-ctas {
  justify-content: center;
}

.cta-band .web-app-cta {
  border-color: #fff;
  color: #fff;
}

.cta-band .web-app-cta:hover {
  background: #fff;
  color: var(--terracotta);
}

/* Legal pages */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page .legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.legal-content h1 {
  font-size: 30px;
  margin-top: 0;
}

.legal-content h2 {
  font-size: 19px;
  margin-top: 32px;
}

.legal-content p, .legal-content li {
  color: var(--muted);
  font-size: 15px;
}

.legal-content .updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: -8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 13px; }
  .legal-page .legal-content { padding: 24px; }
}

@media (max-width: 520px) {
  .header-inner { height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .brand span { font-size: 15px; }
  /* Keep the header from wrapping/overlapping on narrow phones — only the
     download CTA stays, the rest of the nav lives in the footer already. */
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav { gap: 0; }
  .nav-cta { padding: 7px 14px; font-size: 12px; }
  .phone-frame { width: 210px; }
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1C1712;
    --panel: #262019;
    --dark: #FFFDF9;
    --muted: #C9BCAE;
    --border: #3A2F26;
  }
  .site-header { background: rgba(28, 23, 18, 0.92); }
  .feature-icon { background: #3A2F26; }
}