:root {
  --ground: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --rule: #e2e8f0;
  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-deep: #3730a3;
  --accent-soft: #eef2ff;
  --warm: #d97706;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --code-bg: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.06);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0f19;
    --surface: #131b2e;
    --surface-alt: #1a243b;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --subtle: #64748b;
    --rule: #1e293b;
    --accent: #6366f1;
    --accent-ink: #818cf8;
    --accent-deep: #a5b4fc;
    --accent-soft: #1e1b4b;
    --warm: #f59e0b;
    --ok: #10b981;
    --ok-soft: #064e3b;
    --code-bg: #1a243b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  padding-inline: clamp(16px, 4vw, 40px);
  padding-block: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0; }

.mono { font-family: var(--mono); font-size: 0.9em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.fineprint { font-size: 14px; color: var(--muted); }

/* Navigation */
.nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  flex-wrap: wrap;
}
.nav nav a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 15.5px;
}
.nav nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.brand:hover { text-decoration: none; }

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.app-badge-link {
  display: inline-block;
  line-height: 0;
  transition: transform 120ms ease, opacity 120ms ease;
}
.app-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.app-badge-img {
  height: 44px;
  width: auto;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.store-badges.center {
  justify-content: center;
}

/* Layout */
main {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: clamp(64px, 9vw, 112px);
  padding-block: clamp(24px, 5vw, 64px) 96px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}
.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 580px;
}
.hero-copy h1 {
  text-wrap: balance;
}
.hero-copy .lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-cta-group {
  display: grid;
  gap: 12px;
  align-items: start;
}
.hero-shot {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
.hero-shot img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* How It Works */
.how-it-works {
  display: grid;
  gap: 36px;
}
.section-head {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 840px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 {
  font-size: 21px;
}
.step-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.step-shot {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.step-shot img {
  width: 100%;
}

/* Two Ways / Features */
.features-section {
  display: grid;
  gap: 48px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
@media (min-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .feature-row.reverse .feature-copy {
    order: 2;
  }
}
.feature-copy {
  display: grid;
  gap: 16px;
}
.feature-copy p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
}
.feature-copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 15.5px;
}
.feature-shot-container {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
  max-width: 480px;
  justify-self: center;
}

/* Why It's Different */
.why-section {
  display: grid;
  gap: 36px;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  align-content: start;
}
.diff-icon {
  font-size: 26px;
  line-height: 1;
}
.diff-card h3 {
  font-size: 20px;
}
.diff-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

/* Pricing */
.pricing-section {
  display: grid;
  gap: 36px;
  max-width: 960px;
  margin-inline: auto;
  width: 100%;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  align-content: start;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.pricing-card:hover {
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  background: linear-gradient(180deg, #fbfaff, var(--surface));
}
.pricing-card h3 {
  font-size: 24px;
  margin: 0;
}
.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  justify-self: start;
}
.pricing-tag.purple {
  background: var(--accent-soft);
  color: var(--accent);
}
.pricing-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.pricing-features {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 4px;
}
.pricing-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.check-icon {
  color: var(--ok);
  font-weight: bold;
}
.pricing-cta {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 18px;
}

/* FAQ */
.faq-section {
  display: grid;
  gap: 24px;
  max-width: 840px;
  margin-inline: auto;
  width: 100%;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease;
}
.faq details[open] {
  border-color: var(--accent);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
  transition: transform 150ms ease;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.faq details ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Document Pages (privacy, support, 404) */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding-block: 20px 80px;
  display: grid;
  gap: 24px;
  width: 100%;
}
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: clamp(22px, 3.2vw, 28px); margin-top: 20px; }
.doc h3 { font-size: clamp(18px, 2.4vw, 22px); margin-top: 12px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.doc .meta { color: var(--subtle); font-size: 15px; }
.doc ul, .doc ol { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

/* Termly cleanup for privacy.html */
[data-custom-class='body'] {
  color: inherit !important;
  font-family: inherit !important;
}
[data-custom-class='title'], [data-custom-class='heading_1'], [data-custom-class='heading_2'] {
  color: var(--ink) !important;
  font-family: var(--display) !important;
}
[data-custom-class='subtitle'], [data-custom-class='body_text'] {
  color: var(--muted) !important;
  font-family: var(--body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
[data-custom-class='link'] {
  color: var(--accent-ink) !important;
  font-family: var(--body) !important;
}

/* Footer */
footer {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding-block: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer .fineprint {
  color: var(--subtle);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 15px;
}
footer nav a {
  color: var(--muted);
}
footer nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
