:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --bg-rgb: 242, 242, 247;
  --surface: #ffffff;
  --surface-soft: #ebebf2;
  --ink: #000000;
  --muted: #8e8e93;
  --faint: #a3a3ab;
  --border: #c6c6ca;
  --accent: #f03e64;
  --accent-strong: #de2f58;
  --accent-soft: rgba(240, 62, 100, 0.1);
  --practice: #5a52d9;
  --editable: #c32c79;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --phone-start: #ffffff;
  --phone-end: #f7f4f8;
  --phone-border: #e7e7ee;
  --shadow: 0 18px 50px rgba(25, 20, 30, 0.08);
  --brand-shadow: 0 8px 24px rgba(17, 19, 23, 0.12);
  --button-shadow: 0 14px 30px rgba(240, 62, 100, 0.25);
  --radius-card: 14px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-rgb: 0, 0, 0;
    --surface: #1c1c1e;
    --surface-soft: #2c2c2e;
    --ink: #ffffff;
    --muted: #98989f;
    --faint: #8e8e93;
    --border: #38383a;
    --accent: #ff2d62;
    --accent-strong: #ff5a7f;
    --accent-soft: rgba(255, 45, 98, 0.22);
    --practice: #7154ff;
    --editable: #eb2e90;
    --success: #32d064;
    --warning: #ff9e1e;
    --danger: #ff464d;
    --phone-start: #1c1c1e;
    --phone-end: #111113;
    --phone-border: #38383a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    --brand-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
    --button-shadow: 0 14px 30px rgba(255, 45, 98, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img,
svg {
  max-width: 100%;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.icon-button {
  width: 1em;
  height: 1em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(var(--bg-rgb), 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--brand-shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-weight: 720;
  letter-spacing: 0;
  text-decoration: none;
}

.button {
  background: var(--accent);
  color: white;
  box-shadow: var(--button-shadow);
}

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

.button-muted {
  background: var(--surface-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 50px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 64px);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.34;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .button,
.hero-actions .button-secondary {
  max-width: 100%;
}

.note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14px;
}

.device-card,
.card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.device-card {
  padding: 18px;
}

.app-screenshot-card {
  overflow: hidden;
  padding: 10px;
  background: #101012;
  border-color: #2f2f33;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header p {
  color: var(--muted);
  font-size: 20px;
}

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

.card {
  padding: 24px;
}

.card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-weight: 750;
  font-size: 14px;
}

.workflow {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.workflow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  list-style: none;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  counter-increment: steps;
}

.workflow li::before {
  content: counter(steps);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.workflow-content {
  min-width: 0;
}

.legal-layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
}

.legal-card {
  padding: 34px;
}

.legal-card h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 26px;
}

.legal-card h3 {
  margin-top: 24px;
}

.legal-card ul {
  padding-left: 22px;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.faq-item h2 {
  margin-top: 0;
  font-size: 24px;
}

.faq-item p {
  margin-bottom: 0;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 24px 56px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--faint);
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .nav-links .button {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
    overflow: hidden;
  }

  .hero > * {
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .button-secondary {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  h1,
  .lead,
  .note,
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 48px);
  }
}
