:root {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-soft: #eef7f7;
  --surface: #ffffff;
  --surface-strong: #f9fcff;
  --text: #111827;
  --muted: #5f6f7f;
  --soft: #d8e4ec;
  --line: rgba(30, 58, 80, 0.13);
  --brand: #0f7fb4;
  --brand-strong: #075f91;
  --teal: #22c6b8;
  --orange: #f59f4b;
  --green: #29b981;
  --navy: #0c2333;
  --shadow: 0 22px 60px rgba(15, 45, 68, 0.12);
  --shadow-soft: 0 14px 38px rgba(15, 45, 68, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 198, 184, 0.13), transparent 30rem),
    radial-gradient(circle at 94% 4%, rgba(245, 159, 75, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #f9fbff 100%);
  color: var(--text);
  line-height: 1.6;
}

body.legal-page {
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(7, 95, 145, 0.18);
}

.brand span {
  font-size: 1.12rem;
}

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

.nav-links a {
  text-decoration: none;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 760;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.compact {
  min-height: 42px;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 12px 26px rgba(15, 127, 180, 0.22);
}

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

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge-link:focus-visible {
  outline: 3px solid rgba(15, 127, 180, 0.34);
  outline-offset: 5px;
  border-radius: var(--radius);
}

.app-store-badge-link img {
  width: 180px;
  height: auto;
}

.hero {
  padding: clamp(46px, 5.6vw, 76px) 0 clamp(54px, 5.6vw, 78px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

.hero-copy-block {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: var(--brand-strong);
  background: rgba(34, 198, 184, 0.11);
  border: 1px solid rgba(34, 198, 184, 0.24);
  border-radius: 999px;
  font-weight: 780;
  font-size: 0.86rem;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.1rem, 5.2vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--navy);
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: var(--muted);
}

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

.hero-proof {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.proof-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(15, 45, 68, 0.06);
}

.proof-item strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.proof-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-preview {
  position: relative;
  max-width: 420px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 251, 253, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 28px -10px -12px 38px;
  z-index: -1;
  border-radius: 48px;
  background:
    linear-gradient(135deg, rgba(34, 198, 184, 0.22), rgba(245, 159, 75, 0.14));
}

.preview-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-copy span {
  font-weight: 780;
  color: var(--brand-strong);
}

.preview-copy strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.preview-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.phone-shot {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  background: #101820;
  box-shadow: 0 22px 54px rgba(12, 35, 51, 0.22);
}

.phone-shot.primary {
  width: min(58%, 230px);
}

.phone-shot:not(.primary) {
  width: min(46%, 184px);
}

.phone-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 368 / 800;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
  background: #fff;
}

.phone-shot figcaption {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 760;
  font-size: 0.86rem;
}

.section {
  padding: clamp(54px, 6vw, 72px) 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(236, 248, 247, 0.72));
  border-block: 1px solid rgba(30, 58, 80, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 3.9vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

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

.benefit-card,
.feature-card,
.audience-card,
.legal-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.benefit-card {
  padding: 24px;
}

.benefit-card .marker,
.feature-card .marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--brand-strong);
  background: rgba(34, 198, 184, 0.13);
  border-radius: var(--radius);
  font-weight: 850;
}

.benefit-card p,
.feature-card p,
.audience-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

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

.feature-card {
  min-height: 168px;
  padding: 20px;
}

.feature-card:nth-child(3n + 1) .marker {
  color: var(--brand-strong);
  background: rgba(15, 127, 180, 0.11);
}

.feature-card:nth-child(3n + 2) .marker {
  color: #8a551d;
  background: rgba(245, 159, 75, 0.18);
}

.feature-card:nth-child(3n) .marker {
  color: #147653;
  background: rgba(41, 185, 129, 0.14);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 46px;
}

.system-card {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(15, 45, 68, 0.06);
}

.system-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--brand-strong);
  background: rgba(15, 127, 180, 0.1);
  font-size: 0.86rem;
  font-weight: 850;
}

.system-card:nth-child(4n + 2) .system-step,
.system-card:nth-child(4n + 6) .system-step {
  color: #8a551d;
  background: rgba(245, 159, 75, 0.17);
}

.system-card:nth-child(4n + 3) .system-step,
.system-card:nth-child(4n + 7) .system-step {
  color: #147653;
  background: rgba(41, 185, 129, 0.14);
}

.system-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.screenshot-heading {
  margin-top: 8px;
  scroll-margin-top: 120px;
}

.screenshot-heading h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
}

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

.showcase-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.showcase-card img {
  width: 100%;
  height: auto;
  max-height: 500px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.showcase-card figcaption {
  min-height: 118px;
  padding: 18px;
  color: var(--navy);
  font-weight: 800;
}

.showcase-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
}

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

.audience-card {
  padding: 20px;
}

.cta {
  padding: 76px 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 50px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(12, 35, 51, 0.96), rgba(7, 95, 145, 0.9)),
    var(--navy);
  color: #fff;
  box-shadow: 0 30px 80px rgba(12, 35, 51, 0.2);
}

.cta-box::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(125, 226, 199, 0.2);
  transform: translate(36%, -42%);
}

.cta-box h2 {
  position: relative;
  color: #fff;
  max-width: 720px;
}

.cta-box p {
  position: relative;
  max-width: 680px;
  margin: 16px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.cta-box .button {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links a {
  text-decoration: none;
}

.legal-main {
  padding: 64px 0;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 46px;
}

.legal-card h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 3.45rem;
  line-height: 1;
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal-updated {
  margin: 0 0 24px;
  color: var(--brand-strong);
  font-weight: 760;
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.36rem;
  line-height: 1.2;
}

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

.legal-card a {
  color: var(--brand-strong);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-preview {
    max-width: 480px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card img {
    max-height: 480px;
  }

  .benefit-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .site-header .button {
    display: none;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding: 42px 0 52px;
  }

  .hero h1 {
    font-size: 2.75rem;
    line-height: 1.03;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

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

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

  .app-store-badge-link {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-proof,
  .benefit-grid,
  .feature-grid,
  .system-grid,
  .showcase-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card img {
    max-height: 440px;
  }

  .showcase-card figcaption {
    min-height: auto;
  }

  .system-grid {
    margin-bottom: 38px;
  }

  .system-card {
    min-height: auto;
  }

  .hero-preview {
    padding: 14px;
  }

  .preview-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .preview-phones {
    gap: 10px;
  }

  .phone-shot {
    padding: 7px;
    border-radius: 26px;
  }

  .phone-shot img {
    border-radius: 20px;
  }

  .phone-shot figcaption {
    font-size: 0.78rem;
  }

  .section,
  .cta {
    padding: 48px 0;
  }

  h2 {
    font-size: 2.1rem;
  }

  .cta-box,
  .legal-card {
    padding: 28px;
  }

  .legal-card h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.42rem;
  }

  .preview-phones {
    justify-content: flex-start;
  }

  .phone-shot.primary {
    width: min(100%, 232px);
  }

  .phone-shot:not(.primary) {
    display: none;
  }
}
