:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-muted: #f1f4fa;
  --surface-strong: #edf1f8;
  --text: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --blue: #246bff;
  --blue-strong: #0f52d8;
  --mint: #27c281;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1320;
  --surface: #111827;
  --surface-muted: #152033;
  --surface-strong: #19263c;
  --text: #f8fafc;
  --muted: #98a2b3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --blue: #5d94ff;
  --blue-strong: #8cb2ff;
  --mint: #3bd694;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 16px 0 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 600;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 1.97rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.store-badge-link {
  margin-left: 8px;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
}

.theme-icon::before {
  content: "☾";
}

html[data-theme="dark"] .theme-icon::before {
  content: "☀";
}

.theme-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-hero {
  padding: 18px 0 40px;
}

.hero-panel,
.showcase-panel,
.dark-feature,
.cta-panel,
.doc-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.hero-panel {
  padding: 18px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(172, 20, 15, 0.18);
  background: transparent;
  color: black;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 20px 0 0;
  max-width: 11ch;
  font-size: clamp(3.0rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.hero-subhead {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #fff;
}

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

.hero-proof {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
}

.store-badge {
  display: block;
  width: 117px;
  height: auto;
}

.proof-avatars {
  display: flex;
  align-items: center;
}

.proof-avatars span {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe7ff, #bdd0ff);
}

html[data-theme="dark"] .proof-avatars span {
  border-color: var(--surface);
  background: linear-gradient(135deg, #224079, #355497);
}

.proof-avatars span:first-child {
  margin-left: 0;
}

.hero-visual {
  display: grid;
  align-items: center;
}

.phone-frame,
.hero-image-frame {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.phone-frame img,
.hero-image-frame img {
  width: 100%;
}

.hero-image-dark {
  display: none;
}

html[data-theme="dark"] .hero-image-light {
  display: none;
}

html[data-theme="dark"] .hero-image-dark {
  display: block;
}

.section {
  padding: 34px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head-centered {
  justify-content: center;
  text-align: center;
}

.section-kicker {
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.section-copy,
.doc-copy,
.footer-copy {
  max-width: 560px;
  color: var(--muted);
}

.showcase-panel {
  padding: 0;
}

.switcher-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: start;
}

.switcher-nav {
  display: grid;
  gap: 12px;
}

.switcher-nav-cards {
  padding-top: 12px;
}

.switcher-button {
  width: 100%;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.switcher-button:hover,
.switcher-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.switcher-button.is-active {
  border-color: #111827;
  box-shadow: none;
}

.switcher-button strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.switcher-button span {
  color: var(--muted);
  font-size: 0.94rem;
}

.switcher-visual {
  display: grid;
}

.switcher-panel {
  display: none;
  gap: 14px;
}

.switcher-panel.is-active {
  display: grid;
}

.preview-card {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.preview-card img {
  width: 100%;
}

.switcher-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.switcher-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d5dbe7;
}

.switcher-dot.is-active {
  background: #1f2937;
}

.feature-slab {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
}

.feature-copy h3,
.dark-copy h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.feature-copy p,
.dark-copy p {
  margin-top: 14px;
  max-width: 42ch;
  color: var(--muted);
}

.bullet-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.feature-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-shot {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: transparent;
}

.feature-shot img {
  width: 100%;
}

.dark-feature {
  padding: 36px;
  border-radius: 32px;
  background: #0f172a;
}

.dark-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}

.dark-copy {
  color: #f8fafc;
}

.dark-copy .section-kicker,
.dark-copy p {
  color: rgba(248, 250, 252, 0.76);
}

.dark-preview {
  padding: 20px;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.dark-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dark-preview .phone-frame {
  background: #0f1728;
}

.cta-panel {
  padding: 10px 0 0;
}

.cta-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.footer {
  padding: 40px 0 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-page {
  padding-bottom: 52px;
}

.doc-shell {
  padding: 28px;
}

.doc-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.doc-title-wrap {
  max-width: 700px;
}

.doc-title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.doc-meta {
  margin-top: 12px;
  color: var(--muted);
}

.doc-section {
  margin-top: 28px;
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.doc-copy + .doc-copy,
.doc-list + .doc-copy,
.doc-copy + .doc-list {
  margin-top: 12px;
}

.doc-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.doc-list li + li {
  margin-top: 8px;
}

.doc-panel,
.support-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-muted);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.support-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.support-side {
  display: grid;
  gap: 14px;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.pill-link:hover,
.pill-link:focus-visible {
  border-color: var(--line-strong);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .switcher-layout,
  .feature-slab,
  .dark-layout,
  .footer-grid,
  .doc-top,
  .cta-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-visual-grid,
  .resource-grid,
  .support-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .site-nav {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .nav-links {
    display: none;
  }

  .hero-panel,
  .showcase-panel,
  .dark-feature,
  .cta-panel,
  .doc-shell {
    padding: 0;
  }

  .dark-feature {
    padding: 24px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-visual,
  .feature-visual-grid,
  .dark-preview-grid,
  .resource-grid,
  .form-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .form-actions .button {
    width: auto;
  }

  .theme-label {
    display: none;
  }
}
