/* OpenStep landing — calm & warm design system */

:root {
  --bg:#FBF7F2;
  --surface:#FFFFFF;
  --ink:#2E3A37;
  --muted:#6B7A75;
  --primary:#5E8B7E;
  --primary-ink:#FFFFFF;
  --accent:#D98C6A;
  --line:#ECE3D8;
  --radius:18px;
  --shadow:0 10px 30px rgba(46,58,55,.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

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

img { max-width: 100%; }

.muted { color: var(--muted); }

.center { text-align: center; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(46,58,55,.16); }

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

.btn--sm { padding: 9px 18px; font-size: .92rem; }

/* Cards & grids */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--primary); font-weight: 700;
  margin-bottom: 14px;
}

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:not(.btn):hover { color: var(--primary); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-icon { display: block; height: 30px; width: 30px; border-radius: 7px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: #2E3A37; line-height: 1; }
.brand-name span { color: var(--primary); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 26px 0 16px; }
.trust { font-size: .9rem; }

/* Phone device frame */
.device {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.device > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 27px;
  background: var(--surface);
}
.device--lg { max-width: 320px; }

/* Sections helpers */
.section-head { max-width: 60ch; margin-bottom: 36px; }

.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* App Store badge + app icon */
.appstore-badge { display: inline-flex; line-height: 0; }
.appstore-badge img { height: 52px; width: auto; display: block; }
.appstore-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.app-icon { width: 84px; height: 84px; border-radius: 22%; box-shadow: var(--shadow); display: block; }
.app-icon--lg { width: 112px; height: 112px; }

/* Download band */
.download-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-inner { display: flex; align-items: center; gap: 28px; }
.download-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 600px) {
  .download-inner { flex-direction: column; text-align: center; }
  .download-cta { justify-content: center; }
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); }
.disclaimer { font-size: .85rem; color: var(--muted); max-width: 70ch; }

/* Legal pages */
.legal { max-width: 760px; margin: 56px auto; }
.legal h1 { margin-bottom: .25rem; }
.legal h2 { margin-top: 40px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--ink); }
.legal a { color: var(--primary); }
.legal ul { padding-left: 1.2rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .device { order: -1; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.btn) { display: none; }
}
