:root {
  --bg: #f3ede4;
  --surface: #fffaf3;
  --surface-strong: #fff;
  --text: #211b17;
  --muted: #66594f;
  --accent: #d65f41;
  --accent-dark: #9f3924;
  --line: rgba(33, 27, 23, 0.08);
  --shadow: 0 24px 60px rgba(40, 22, 12, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(214, 95, 65, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f1e7db 100%);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(247, 241, 232, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-shell {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f29f7d, #d65f41);
  color: #fff;
  font-weight: 800;
}
.header-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(214, 95, 65, 0.12);
  color: var(--accent-dark);
}
.hero,
.section,
.legal-main,
.app-fallback {
  padding: 72px 0;
}
.hero-grid,
.trust-shell,
.cta-shell,
.legal-shell {
  display: grid;
  gap: 32px;
}
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: center; }
.hero-copy h1,
.section-heading h2,
.cta-shell h2,
.legal-sidebar h1,
.fallback-shell h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-text,
.legal-sidebar p,
.fallback-shell p {
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-visual,
.trust-card,
.fallback-shell,
.feature-card,
.step-card,
.legal-content {
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero-visual,
.trust-card { padding: 20px; }
.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.preview-callout {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(159, 57, 36, 0.16);
  background: rgba(255, 250, 243, 0.9);
  color: var(--text);
  box-shadow: var(--shadow);
}
.preview-callout p {
  margin: 8px 0 0;
  color: var(--muted);
}
.preview-callout code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95em;
}
.store-badge img {
  height: 56px;
  width: auto;
}
.section-heading { margin-bottom: 28px; max-width: 720px; }
.feature-grid,
.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card,
.step-card {
  padding: 24px;
}
.feature-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.feature-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
}
.step-index {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214, 95, 65, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
}
.section-contrast {
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.16));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; }
.cta-section { padding-top: 0; }
.cta-shell {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 28px 32px;
  background: linear-gradient(135deg, #291712, #53342d);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.cta-shell .eyebrow,
.cta-shell p { color: rgba(255,255,255,0.82); }
.site-footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--line);
}
.footer-shell {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-copy { color: var(--muted); margin: 8px 0 0; max-width: 420px; }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.legal-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}
.legal-content {
  padding: 36px;
}
.prose h1, .prose h2, .prose h3 { line-height: 1.1; margin: 1.7em 0 0.55em; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #3c312a; }
.prose a { color: var(--accent-dark); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(33, 27, 23, 0.08);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: rgba(214, 95, 65, 0.08);
  color: var(--accent-dark);
}
.table-scroll { overflow-x: auto; }
.fallback-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
}

@media (max-width: 960px) {
  .hero-grid,
  .trust-shell,
  .cta-shell,
  .legal-shell,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .header-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero,
  .section,
  .legal-main,
  .app-fallback { padding: 56px 0; }
  .legal-content,
  .feature-card,
  .step-card,
  .fallback-shell,
  .cta-shell { padding: 22px; }
  .store-badge img { height: 50px; }
}