:root {
  --bg: #f7faff;
  --paper: rgba(255, 255, 255, 0.92);
  --ink: #071a4c;
  --body: #22325f;
  --muted: #465678;
  --line: rgba(7, 26, 76, 0.12);
  --brand: #073dce;
  --brand-2: #11c3c7;
  --brand-3: #061c78;
  --brand-4: #66d900;
  --soft: #eef5ff;
  --soft-2: #e9fbfc;
  --lime-soft: #f1ffe2;
  --shadow: 0 24px 70px rgba(7, 26, 76, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 48%, #e9fbfc 100%) fixed;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
main { overflow: hidden; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 820;
  letter-spacing: 0;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(7, 61, 206, 0.22);
}

.logo span:last-child { font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 740;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(7, 61, 206, 0.18);
}

.button:hover,
.nav-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

button.button {
  cursor: pointer;
  font: inherit;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  border-color: rgba(7, 61, 206, 0.28);
  box-shadow: none;
}

.button.soft {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.app-store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.app-store-badge img {
  display: block;
  width: 132px;
  height: auto;
}

.nav-store-badge img {
  width: 124px;
}

.hero {
  padding: 78px 0 64px;
}

.hero.slim {
  padding: 58px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 4.35vw, 4.45rem);
}

.slim h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 3.65vw, 3.85rem);
}

h2 {
  font-size: clamp(2.05rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--body);
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  line-height: 1.46;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-pill,
.pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.app-preview-card {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 251, 252, 0.78)), var(--paper);
  box-shadow: var(--shadow);
}

.app-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}

.app-preview-header .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.app-preview-header span {
  display: block;
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.app-preview-header strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.app-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(7, 26, 76, 0.12);
}

.section {
  padding: 72px 0;
}

section[id] {
  scroll-margin-top: 92px;
}

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

.section-header p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); }
.card ul,
.content ul,
.content ol {
  color: var(--muted);
  padding-left: 22px;
}

.card li,
.content li {
  margin: 8px 0;
}

.badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--brand-3);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}

.screen-card {
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(7, 26, 76, 0.08);
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 416 / 900;
  object-fit: contain;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}

.screen-card-copy {
  align-self: center;
}

.screen-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

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

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.dark-band {
  padding: 74px 0;
  background: linear-gradient(135deg, var(--brand-3), #08205f 62%, #073dce);
  color: #fff;
}

.dark-band .eyebrow {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--brand-3);
}

.dark-band .lead,
.dark-band p {
  color: rgba(255, 255, 255, 0.78);
}

.dark-band .card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dark-band .card p,
.dark-band .card ul {
  color: rgba(255, 255, 255, 0.76);
}

.dark-band .button {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.dark-band .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.example {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.example .label {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.example strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.example p {
  margin-bottom: 0;
  color: var(--muted);
}

.example-solution {
  margin-top: 16px;
}

.example-solution summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(7, 61, 206, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand);
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.example-solution summary::-webkit-details-marker { display: none; }
.example-solution[open] summary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.formula {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 740;
  overflow-wrap: anywhere;
}

.content {
  max-width: 850px;
}

.content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.content h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a.button,
.content a.button:hover,
.content a.button:focus-visible,
.content a.app-store-badge,
.content a.app-store-badge:hover,
.content a.app-store-badge:focus-visible,
a.button,
a.button:hover,
a.button:focus-visible,
a.nav-cta,
a.nav-cta:hover,
a.nav-cta:focus-visible,
a.app-store-badge,
a.app-store-badge:hover,
a.app-store-badge:focus-visible {
  text-decoration: none;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand-2);
  border-radius: 0 16px 16px 0;
  background: #eaf8ff;
  color: var(--muted);
}

.breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.share-box,
.search-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.share-box h3,
.search-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.share-note {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--muted);
}

.share-copy {
  white-space: pre-line;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.share-button {
  min-height: 40px;
  padding: 0 16px;
}

.search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1.05rem;
  font-weight: 760;
}

.search-pill span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(238, 245, 255, 0.86);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.75fr;
  gap: 28px;
}

.footer-grid strong { color: var(--ink); }
.footer-grid a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .nav {
    position: relative;
    display: block;
    min-height: auto;
    padding: 12px 0;
  }

  .logo {
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding-right: 136px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .logo span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .nav-links {
    display: flex;
    width: calc(100% + 40px);
    margin: 10px -20px 0;
    padding: 0 20px 2px;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:not(.nav-cta):not(.nav-store-badge) {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links .nav-cta,
  .nav-links .nav-store-badge {
    position: absolute;
    top: 12px;
    right: 0;
    display: inline-flex;
    flex: 0 0 auto;
    width: 124px;
    min-height: 40px;
    padding: 0;
  }

  .nav-store-badge img {
    width: 118px;
  }

  .hero { padding: 54px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-preview-card { max-width: 430px; }
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .section-header p { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  h2 { font-size: clamp(1.9rem, 7vw, 3rem); }
}

@media (max-width: 520px) {
  .container,
  .nav {
    width: auto;
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }

  .logo { padding-right: 136px; }

  .nav-links {
    width: calc(100% + 28px);
    margin: 10px -14px 0;
    padding: 0 14px 2px;
  }

  h1 { max-width: 11ch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .app-store-badge {
    justify-content: center;
    width: 100%;
  }
  .app-preview-card { padding: 14px; }
  .app-preview-image {
    max-height: none;
    object-fit: contain;
  }
  .screen-card {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .screen-card img {
    border-radius: 18px;
  }
  .search-pill {
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
  }
  .share-button { width: 100%; }
}

@media (max-width: 340px) {
  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo span:last-child { font-size: 0.88rem; }
  .nav-links .nav-cta,
  .nav-links .nav-store-badge {
    width: 116px;
  }

  .nav-store-badge img {
    width: 112px;
  }
}
