/* Landing page and legal documents. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.site-header .brand-mark { color: var(--purple); font-size: 22px; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a.btn { color: #fff; }
.site-nav a.btn:hover { background: var(--purple-dark); color: #fff; }

/* --- hero --- */

.hero {
  padding: 84px 20px 72px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(84, 101, 255, .16), transparent 70%),
    var(--ground);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero p {
  font-size: clamp(16.5px, 2.2vw, 19px);
  color: var(--ink-2);
  margin: 0 auto 30px;
  max-width: 52ch;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* --- app preview --- */

.preview {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  transform: translateY(-36px);
}
.preview-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview-body { padding: 22px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.mock-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.mock-head { padding: 18px; color: #fff; min-height: 88px; display: flex; flex-direction: column; justify-content: center; }
.mock-head strong { font-size: 16px; }
.mock-head span { font-size: 13px; opacity: .88; margin-top: 4px; }
.mock-body { padding: 14px 18px 16px; background: var(--surface); }
.mock-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mock-progress i { display: block; height: 100%; border-radius: 99px; }
.mock-meta { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

/* --- sections --- */

.section-block { max-width: var(--max); margin: 0 auto; padding: 56px 20px; }
.section-block h2 {
  font-size: clamp(25px, 3.6vw, 33px);
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 12px;
}
.section-lead {
  text-align: center;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 40px;
  font-size: 16.5px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--tint);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.sync-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  align-items: start;
}
.sync-step { display: flex; gap: 14px; }
.sync-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.sync-step h3 { font-size: 16px; margin-bottom: 5px; }
.sync-step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.cta-band { text-align: center; padding: 64px 20px 76px; }
.cta-band h2 { font-size: clamp(25px, 3.6vw, 33px); margin-bottom: 12px; letter-spacing: -.025em; }
.cta-band p { color: var(--ink-2); margin: 0 auto 26px; max-width: 46ch; }

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--purple); text-decoration: underline; }

/* --- legal documents --- */

.doc {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 20px 80px;
}
.doc h1 { font-size: clamp(28px, 4.6vw, 38px); margin-bottom: 8px; letter-spacing: -.025em; }
.doc-meta { color: var(--ink-3); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc h3 { font-size: 16.5px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 650; color: var(--ink); }
.doc td { color: var(--ink-2); }
.doc-callout {
  background: var(--tint);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.doc-callout p { margin: 0; }
.doc-table-wrap { overflow-x: auto; }

@media (max-width: 640px) {
  .hero { padding: 56px 18px 52px; }
  .preview { transform: translateY(-24px); }
  .section-block { padding: 44px 18px; }
}

/* On a phone the two section links push the header past the viewport and the whole page
   gains a horizontal scrollbar. The CTA is the only one that matters at this width. */
@media (max-width: 560px) {
  .site-header { padding-inline: 16px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { padding: 9px 15px; font-size: 14px; }
}
