:root {
  --background: #fbf8f1;
  --paper: #f5f1e6;
  --ink: #2e2a21;
  --ink-muted: #6b6558;
  --olive: #55692f;
  --olive-dark: #3f4f22;
  --olive-light: #a7b876;
  --olive-tint: #e4e9d6;
  --terracotta: #c97b5d;
  --terracotta-dark: #a85c40;
  --terracotta-tint: #f6dfcb;
  --water-blue: #4e86b8;
  --water-blue-tint: #dceaf7;
  --sun-amber: #c98a2e;
  --sun-amber-tint: #fbebd1;
  --attention-red: #c15b3d;
  --outline: #cabd94;
  --outline-subtle: #e0d7bd;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.1rem; line-height: 1.2; }
h3 { font-size: 1.4rem; }

p { margin: 0; }

a { color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: default;
}

.btn-primary {
  background: var(--olive);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--outline);
  color: var(--ink);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--sun-amber-tint);
  color: var(--sun-amber);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px;
}

.hero-copy p.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ---- Phone mockup ---- */
.phone {
  width: 230px;
  border-radius: 34px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(46, 42, 33, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone.tilt-back { transform: rotate(-4deg) translateY(18px); }
.phone.tilt-front { transform: rotate(3deg); z-index: 1; }

/* ---- Sections ---- */
section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 48px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---- Features ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--outline-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

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

/* ---- Screenshot gallery ---- */
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 20px;
  scrollbar-width: thin;
}

.gallery .phone {
  width: 200px;
  flex-shrink: 0;
}

/* ---- Dark mode showcase ---- */
.duo {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.duo figure {
  margin: 0;
  text-align: center;
}

.duo figcaption {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---- CTA band ---- */
.cta {
  background: var(--olive-tint);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}

.cta p {
  color: var(--olive-dark);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--outline-subtle);
  padding: 36px 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

footer .links {
  display: flex;
  gap: 20px;
}

footer a {
  text-decoration: none;
  color: var(--ink-muted);
}

footer a:hover {
  color: var(--olive-dark);
}

/* ---- Legal pages ---- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 12px;
}

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

.legal a.back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--olive-dark);
  text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }
  .hero-copy { order: 2; text-align: center; }
  .hero-art { order: 1; margin-bottom: 20px; }
  .hero-actions { justify-content: center; }
  .hero-copy p.lede { margin-left: auto; margin-right: auto; }
  h1 { font-size: 2.3rem; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
