:root {
  --paper: #FAF7F2;
  --paper-deep: #F3EEE3;
  --cream: #EBE4D6;
  --ink: #1A1A1A;
  --ink-soft: #2E2A24;
  --mute: #8A8070;
  --mute-deep: #6B6356;
  --mute-soft: #ADA392;
  --rule: rgba(26, 26, 26, 0.08);
  --accent: #C74A2E;
  --success: #6b8e5a;

  --sans: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --serif: 'Lora', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.nav {
  padding: 28px 0 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--mute-deep);
}

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

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.5;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--rule);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--paper-deep);
  text-decoration: none;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 100%;
  max-width: 320px;
  border-radius: 44px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 40px 80px -20px rgba(26, 26, 26, 0.25),
    0 12px 24px -8px rgba(26, 26, 26, 0.12);
  display: block;
}

/* Section dividers */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Features */
.features {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-head p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute-deep);
  font-size: 18px;
  margin: 0;
}

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

.feature {
  padding: 28px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 18px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  margin-bottom: 18px;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--mute-deep);
  font-size: 15px;
  line-height: 1.55;
}

/* Screenshots */
.shots {
  padding: 40px 0 96px;
  background: linear-gradient(to bottom, transparent, var(--paper-deep) 30%, var(--paper-deep) 70%, transparent);
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 24px 0;
}

.shot-strip-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shot img {
  width: 100%;
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 20px 40px -16px rgba(26, 26, 26, 0.2);
  display: block;
}

.shot-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* How it works */
.how {
  padding: 96px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step {
  position: relative;
  padding-top: 24px;
}

.step-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
}

.step p {
  color: var(--mute-deep);
  margin: 0;
  font-size: 15px;
}

/* Workflow callout */
.callout {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
}

.callout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.callout h2 { color: var(--paper); }

.callout p {
  color: var(--mute-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0;
}

.code-card {
  font-family: var(--mono);
  font-size: 13px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
  color: #d4cfc3;
  line-height: 1.7;
  overflow-x: auto;
}

.code-card .k { color: var(--accent); }
.code-card .c { color: #6b6356; }
.code-card .s { color: var(--success); }

/* Footer */
footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--mute-deep);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a { color: var(--mute-deep); }

/* Privacy page */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.prose h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}

.prose .updated {
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 12px;
}

.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.prose strong { color: var(--ink); }

.release {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.release:first-of-type { border-top: 0; padding-top: 0; }

.release h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
}

.release ul {
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 32px;
    gap: 40px;
  }
  .hero-art { order: -1; }
  .phone { max-width: 260px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .callout-inner { grid-template-columns: 1fr; gap: 32px; }
  .shot-strip { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
  .shot-strip-4 { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
  .nav-links { display: none; }
}
