/* ─── Design tokens ─────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f4f0;
  --bg-card:     #ffffff;
  --border:      #e6e4de;
  --border-subtle: #eeece7;
  --text:        #111111;
  --text-muted:  #6b6a65;
  --text-subtle: #a3a29d;
  --accent:      #2563eb;
  --accent-hover:#1d4ed8;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-hover:0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
  --radius:      16px;
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ─── Layout ─────────────────────────────────────── */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

/* ─── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo img { border-radius: 8px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ─── Sections ─────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.section-head {
  max-width: 560px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ─── Landing hero ──────────────────────────────── */
.hero {
  padding: 64px 0 56px;
}

.hero-inner {
  max-width: 680px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-subtle);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* ─── App cards (landing) ───────────────────────── */
.apps-section {
  padding: 64px 0;
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d0cec8;
  transform: translateY(-1px);
  color: var(--text);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card-body { min-width: 0; }

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.app-card-meta h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.platform-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
}

.app-card-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
}

.app-card-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.app-card:hover .app-card-arrow {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

/* ─── App hero two-column layout ───────────────── */
.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Desktop scene (screenshot) ───────────────── */
.desktop-scene {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
}

.desktop-wallpaper {
  position: absolute;
  inset: 0;
  background-image: url("/assets/macos-sequoia-light.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.desktop-app-window {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3.5vw, 2.25rem) clamp(5%, 5vw, 9%) clamp(1.25rem, 4vw, 2.75rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.desktop-app-window img {
  width: 100%;
  max-width: 880px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.08),
    0 20px 50px rgba(15,23,42,0.18),
    0 4px 12px rgba(15,23,42,0.10);
}

/* ─── Feature grid ──────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── App sub-page hero ─────────────────────────── */
.app-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.app-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.app-icon-lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.app-icon-lg img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.app-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.app-hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* ─── Buttons ───────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  background: #333;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: #b0aea8;
  color: var(--text);
}

/* ─── CTA band ──────────────────────────────────── */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-band h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cta-band p { color: var(--text-muted); margin-bottom: 32px; }
.store-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── Steps ─────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; }

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  counter-increment: step;
}

.step:last-child { border-bottom: none; }

.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-subtle);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { color: var(--text-muted); font-size: 0.875rem; }

/* ─── Back link ─────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 36px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

/* ─── Legal pages ───────────────────────────────── */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--text-subtle); margin-bottom: 48px; }
.legal h2 { font-size: 1rem; font-weight: 700; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-hover); }
.legal-back { margin-top: 56px; }
.legal strong { color: var(--text); font-weight: 600; }

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}

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

.footer-copy { font-size: 13px; color: var(--text-subtle); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section, .apps-section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }

  .app-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    padding: 20px;
    gap: 16px;
  }

  .app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-card-arrow { display: none; }
  .app-card-body { grid-column: 1 / -1; }

  .app-hero-inner { flex-direction: column; gap: 20px; }
  .site-header .inner { height: 56px; }
  .nav-links { gap: 18px; }
}
