:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --text: #17202a;
  --muted: #607084;
  --line: #d9e1ea;
  --brand: #145766;
  --brand-2: #0f3f4a;
  --accent: #e04962;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-shell {
  color-scheme: dark;
  --bg: #101114;
  --surface: #191b20;
  --surface-2: #22252b;
  --text: #f5f2ea;
  --muted: #b8b1aa;
  --line: #30343b;
  --brand: #4fc0a5;
  --brand-2: #f5f2ea;
  --accent: #f05d7e;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.62; }
a { color: var(--brand); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.legal-shell .site-header { background: rgba(16, 17, 20, .92); backdrop-filter: blur(16px); }
.nav { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; }
.brand img { border-radius: 8px; background: var(--surface-2); }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 7px 9px; border-radius: 7px; font-weight: 650; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-2); background: var(--surface-2); }
.nav-links a.nav-web-app,
.home-links a.nav-web-app {
  color: #ffffff;
  background: var(--accent);
}
.legal-shell .nav-links a.nav-web-app {
  color: #101114;
  background: var(--brand);
}
.nav-links a.nav-web-app:hover,
.home-links a.nav-web-app:hover {
  filter: brightness(1.08);
}
.page-wrap { max-width: 1040px; margin: 0 auto; padding: 34px 20px 48px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 24px; }
.hero h1 { margin: 0 0 10px; font-size: 3rem; line-height: 1.05; letter-spacing: 0; }
.hero p { margin: 0; max-width: 680px; color: var(--muted); font-size: 1rem; }
.hero-mark { width: 124px; height: 124px; border-radius: 26px; background: var(--surface); display: grid; place-items: center; border: 1px solid var(--line); }
.hero-mark img { width: 76px; height: 76px; border-radius: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); min-height: 112px; }
.card:hover { border-color: var(--brand); }
.legal-shell .card { box-shadow: 0 18px 46px rgba(0, 0, 0, .18); }
.legal-shell .card:hover { border-color: var(--accent); background: var(--surface-2); }
.card h3 { margin: 0 0 6px; font-size: .98rem; }
.card h3,
.legal-doc h1,
.legal-doc h2,
.legal-doc h3 {
  hyphens: auto;
  overflow-wrap: break-word;
}
.card p { margin: 0; color: var(--muted); font-size: .91rem; }
.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 880px; }
.legal-shell .legal-doc { box-shadow: 0 18px 46px rgba(0, 0, 0, .2); }
.legal-doc h1 { margin: 0 0 16px; font-size: 2.35rem; line-height: 1.14; }
.legal-doc h2 { margin: 28px 0 9px; font-size: 1.22rem; line-height: 1.25; }
.legal-doc h3 { margin: 22px 0 7px; font-size: 1.02rem; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 18px 22px; padding: 0; }
.site-footer { max-width: 1040px; margin: 0 auto; padding: 20px 20px 28px; display: flex; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .hero-mark { width: 92px; height: 92px; }
  .hero-mark img { width: 58px; height: 58px; }
  .grid { grid-template-columns: 1fr; }
  .legal-doc h1 { font-size: 1.75rem; }
  .legal-doc { padding: 22px; }
  .site-footer { flex-wrap: wrap; }
}

.home-shell {
  color-scheme: dark;
  --home-bg: #101114;
  --home-panel: #191b20;
  --home-panel-2: #22252b;
  --home-text: #f5f2ea;
  --home-muted: #b8b1aa;
  --home-line: #30343b;
  --home-accent: #f05d7e;
  --home-accent-2: #4fc0a5;
  --home-soft: #27212a;
}

.home-page {
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-text);
  line-height: 1.55;
}

.home-page a {
  color: inherit;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 17, 20, .92);
  border-bottom: 1px solid var(--home-line);
  backdrop-filter: blur(16px);
}

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

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.home-brand img {
  border-radius: 8px;
  background: var(--home-panel);
}

.home-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.home-links a {
  text-decoration: none;
  color: var(--home-muted);
  padding: 7px 9px;
  border-radius: 7px;
  font-weight: 700;
  font-size: .94rem;
}

.home-links a:hover {
  color: var(--home-text);
  background: var(--home-panel-2);
}

.home-hero {
  border-bottom: 1px solid var(--home-line);
}

.home-hero-inner {
  max-width: 1040px;
  min-height: 470px;
  margin: 0 auto;
  padding: 54px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .66fr);
  gap: 30px;
  align-items: center;
}

.home-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: 3.95rem;
  line-height: 1;
  letter-spacing: 0;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: var(--home-accent-2);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-lead {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 1.02rem;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-actions.centered {
  justify-content: center;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.home-button-primary {
  background: var(--home-accent);
  color: #fff;
}

.home-button-secondary {
  background: transparent;
  color: var(--home-text);
  border-color: var(--home-line);
}

.home-button:hover {
  filter: brightness(1.08);
}

.phone-preview {
  width: 100%;
  max-width: 330px;
  justify-self: end;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-panel);
  padding: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .3);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-line);
}

.phone-top img {
  border-radius: 8px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  color: var(--home-muted);
  font-size: .9rem;
}

.chat-preview {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.message-row {
  display: flex;
}

.message-row span {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .95rem;
}

.message-left span {
  background: var(--home-panel-2);
  color: var(--home-text);
}

.message-right {
  justify-content: flex-end;
}

.message-right span {
  background: var(--home-accent);
  color: #fff;
}

.live-panel {
  margin-top: 6px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #15171b;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-panel strong,
.live-panel span {
  display: block;
}

.live-panel span {
  color: var(--home-muted);
  font-size: .9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--home-accent-2);
  box-shadow: 0 0 0 6px rgba(79, 192, 165, .13);
  flex: 0 0 auto;
}

.home-section,
.home-band,
.home-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.home-section {
  padding-top: 46px;
  padding-bottom: 48px;
}

.home-section.compact {
  padding-top: 42px;
  padding-bottom: 48px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 20px;
}

.section-heading h2,
.home-band-copy h2 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.home-band-copy p {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: .98rem;
}

.home-grid {
  display: grid;
  gap: 14px;
}

.home-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-panel);
  padding: 18px;
}

.card-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--home-soft);
  color: var(--home-accent-2);
  font-weight: 850;
}

.home-card h3 {
  margin: 0 0 7px;
  font-size: 1.04rem;
}

.home-card p {
  margin: 0;
  color: var(--home-muted);
}

.home-band {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-stack {
  display: grid;
  gap: 10px;
}

.home-stack div {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-panel);
  padding: 14px;
}

.home-stack strong,
.home-stack span {
  display: block;
}

.home-stack strong {
  color: var(--home-accent-2);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-stack span {
  margin-top: 6px;
  color: var(--home-text);
}

.home-footer {
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--home-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--home-muted);
}

.home-footer strong,
.home-footer span {
  display: block;
}

.home-footer strong {
  color: var(--home-text);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: var(--home-text);
}

@media (max-width: 920px) {
  .home-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .phone-preview {
    justify-self: start;
  }

  .home-grid.three,
  .home-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .home-links {
    justify-content: flex-start;
  }

  .home-hero-inner,
  .home-section,
  .home-band,
  .home-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero-inner {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .home-copy h1 {
    font-size: 2.45rem;
  }

  .section-heading h2,
  .home-band-copy h2 {
    font-size: 2rem;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
