@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #ffffff;
  --fg: #0f0f10;
  --muted: #6b6b72;
  --border: #e8e8ed;
  --border-strong: #d6d6dc;
  --radius: 14px;
  --serif: "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.6;
}

a { color: inherit; }

.font-serif { font-family: var(--serif); letter-spacing: -0.01em; }

.container {
  max-width: 1100px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.container-narrow {
  max-width: 720px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Background blob */
.corner-blob {
  position: fixed; pointer-events: none;
  inset: auto -20vw -25vh auto;
  width: 80vw; height: 80vh;
  background:
    radial-gradient(closest-side at 60% 60%, rgba(244, 114, 182, 0.55), transparent 70%),
    radial-gradient(closest-side at 40% 80%, rgba(167, 139, 250, 0.5), transparent 70%),
    radial-gradient(closest-side at 75% 35%, rgba(251, 146, 60, 0.4), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px; margin: 0 auto;
}
.brand { font-family: var(--serif); font-size: 26px; text-decoration: none; }
.brand i { font-style: italic; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  font-size: 15px; font-weight: 500;
  color: var(--fg); text-decoration: none;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-link:hover { background: rgba(15, 15, 16, 0.06); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: #0f0f10; color: #fff; border-color: #0f0f10; }
.btn-primary:hover { background: #25252b; border-color: #25252b; }
.btn-secondary { background: #fff; color: #0f0f10; border-color: var(--border-strong); }
.btn-secondary:hover { background: #f5f5f7; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { padding-block: 64px 32px; text-align: center; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 88px);
  margin: 0 0 20px;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero p {
  font-size: 18px; color: var(--muted);
  margin: 0 auto 32px; max-width: 580px;
}
.hero-cta {
  display: inline-flex; gap: 12px; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { height: 44px; width: auto; display: block; }

/* ─── Phone screenshots row ──────────────────────────────── */
.screens { padding-block: 32px 16px; }
.screens-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px; margin: 0 auto;
}
.phone {
  margin: 0;
  aspect-ratio: 1260 / 2736;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 30px 60px -20px rgba(244, 114, 182, 0.15),
    0 20px 40px -25px rgba(167, 139, 250, 0.18);
  border: 1px solid var(--border);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .screens { padding-block: 32px; }
  .screens-row {
    grid-template-columns: repeat(4, 64vw);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 20px 24px;
    margin: 0 -20px;
    max-width: none;
  }
  .phone { scroll-snap-align: center; border-radius: 22px; }
}

/* ─── Section ────────────────────────────────────────────── */
.section { padding-block: 56px; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section p.lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; }

/* ─── Feature cards w/ thumbnails ────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.12);
}
.feature-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  margin-bottom: 14px;
}
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 {
  font-family: var(--serif); font-size: 22px;
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ─── Note box ───────────────────────────────────────────── */
.note {
  background: #fafafa; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.note .label { font-weight: 600; margin-bottom: 4px; display: block; }

/* ─── Forms ──────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form label > span:first-child { font-weight: 500; color: var(--fg); }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--border-strong); background: #fff;
  padding: 12px 14px; border-radius: 12px;
  font-size: 16px; font-family: inherit;
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(15,15,16,0.08);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .checkbox {
  display: block;
  font-size: 14px; color: var(--muted);
  line-height: 1.5;
}
.form .checkbox input {
  margin-right: 10px;
  vertical-align: middle;
}
.form button[type="submit"] {
  margin-top: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0f0f10; color: #fff; border: none;
  font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .15s ease;
  align-self: start;
}
.form button[type="submit"]:hover { background: #25252b; }

/* ─── Long-form (legal) ──────────────────────────────────── */
.prose h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); margin-bottom: 8px; line-height: 1.05; }
.prose h2 { font-family: var(--serif); font-size: 28px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-size: 20px; margin: 26px 0 6px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: #1c1c1f; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

/* ─── Confirmation ───────────────────────────────────────── */
.confirm {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.confirm h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); margin: 0 0 12px; }
.confirm p { color: var(--muted); font-size: 18px; max-width: 460px; margin: 0 0 28px; }
.checkmark {
  width: 64px; height: 64px; border-radius: 999px;
  background: #0f0f10; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px; padding: 28px 0;
  background: #fafafa;
  position: relative; z-index: 1;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--muted);
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .container, .container-narrow {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .site-header {
    padding: 16px max(20px, env(safe-area-inset-left)) 16px max(20px, env(safe-area-inset-right));
  }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .hero { padding-block: 48px 32px; }
  .hero p { font-size: 17px; margin-bottom: 28px; }
  .section { padding-block: 48px; }
  .section p.lead { margin-bottom: 24px; }
  .feature-grid { gap: 14px; }
  .prose h2 { margin-top: 32px; }
  .prose h3 { margin-top: 22px; }
  .prose p, .prose li { line-height: 1.75; }
  .site-footer { margin-top: 56px; padding: 32px 0 max(32px, env(safe-area-inset-bottom)); }
}
