:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --primary-muted: #eff6ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.06);
  --content: 44rem;
  --page: 72rem;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.header-nav a[aria-current='page'] {
  color: var(--text);
  background: #eff6ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

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

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

.legal-page {
  flex: 1;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-shell {
  max-width: var(--page);
  margin: 0 auto;
}

.legal-hero {
  max-width: var(--content);
  margin: 0 auto 2rem;
  text-align: center;
}

.legal-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.legal-updated {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-article {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.legal-article h2 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article p,
.legal-article ul {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.legal-article p:last-child,
.legal-article ul:last-child {
  margin-bottom: 0;
}

.legal-article ul {
  padding-left: 1.25rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article li::marker {
  color: var(--accent);
}

.legal-article strong {
  color: var(--text);
  font-weight: 600;
}

.legal-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
}

.legal-article a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.home-card {
  width: 100%;
  max-width: 28rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.home-card h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-card > p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.home-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-links a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-subtle);
}

.home-links a:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  gap: 2rem;
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-columns {
  display: grid;
  gap: 2rem;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .legal-article {
    padding: 1.75rem 1.25rem;
  }
}

/* ——— Marketing landing page ——— */

.marketing-body {
  background: #ffffff;
}

.brand-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-icon {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
  color: var(--text);
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 45%, #ffffff 100%);
}

.hero-unified {
  padding: 0;
}

.hero-top {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.hero-app-icon {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .hero-app-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 1.25rem;
  }
}

.hero-top h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

.hero-lead-centered {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 72rem;
  list-style: none;
}

.hero-highlights li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero-cta {
  margin-top: 2.25rem;
  text-align: center;
  padding: 0 1.5rem 2.5rem;
}

.hero-cta .hero-note {
  margin-top: 0.75rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-inner-single {
  max-width: 42rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: min(100%, 20rem);
  height: auto;
  border-radius: 1.75rem;
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.screenshots-section {
  padding: 0 1.5rem 3rem;
}

.screenshots-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.screenshot-card {
  flex: 0 0 auto;
  margin: 0;
}

.screenshot-card img {
  display: block;
  width: auto;
  height: 200px;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .screenshot-card img {
    height: 240px;
  }
}

@media (min-width: 768px) {
  .screenshot-card img {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .screenshots-strip {
    flex-wrap: nowrap;
    gap: 0.625rem;
    max-width: 80rem;
  }

  .screenshot-card img {
    height: 300px;
  }
}

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading .section-kicker {
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-heading p {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.features-section {
  background: #ffffff;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.feature-label {
  margin: 0 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.steps-section {
  background: var(--bg-subtle);
}

.steps-grid {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-number {
  display: block;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.step-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.download-section {
  padding-bottom: 5rem;
}

.download-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.download-icon {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.download-card h2 {
  margin: 1.25rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.download-card > p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}

.download-actions {
  margin-top: 1.5rem;
}

.download-support {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 1.5rem 6rem;
  }
}
