/* Cal Sans — the app's display face, self-hosted so the site and the app read
   as one thing. SIL Open Font License. */
@font-face {
  font-family: "Cal Sans";
  src: url("assets/CalSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cal Sans";
  src: url("assets/CalSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Shared by index / privacy / support.
   i.html deliberately carries its own copy of everything it needs: it's the
   critical path for an invite, and a 404 on this file must not be able to
   break it. */

:root {
  --field-top: #030308;
  --field-mid: #2A1FC4;
  --field-bottom: #4436FF;
  --accent: #6A5CFF;
  --ink: #fff;
  --ink-dim: rgba(255, 255, 255, 0.74);
  --ink-faint: rgba(255, 255, 255, 0.48);
  --hair: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 40px 24px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  /* Fixed so the gradient doesn't repeat down a long legal page. */
  background: linear-gradient(180deg, var(--field-top) 0%, var(--field-mid) 55%, var(--field-bottom) 100%)
              fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 640px; margin: 0 auto; }
.narrow { max-width: 420px; text-align: center; }

.mark {
  font-family: "Cal Sans", -apple-system, sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1; text-decoration: none; color: var(--ink);
  display: inline-block; margin-bottom: 40px;
}
.mark .accent { color: var(--accent); }

h1, h2, h3 { font-family: "Cal Sans", -apple-system, sans-serif; }
h1 {
  font-size: 44px; line-height: 1.0; letter-spacing: -1.4px;
  margin: 0 0 14px; font-weight: 700;
}
h2 {
  font-size: 22px; letter-spacing: -0.4px; font-weight: 700;
  margin: 36px 0 10px;
}
p, li { font-size: 16px; line-height: 1.6; color: var(--ink-dim); margin: 0 0 14px; }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 650; }
a { color: var(--ink); }

.lede { font-size: 18px; color: var(--ink-dim); }
.stamp { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }

.card {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 0 0 14px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.btn {
  display: block; padding: 19px; border-radius: 31px;
  font-size: 19px; font-weight: 700; text-decoration: none;
  margin-bottom: 12px;
}
.primary { background: #fff; color: var(--field-bottom); }
.secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid var(--hair); }

footer {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px; color: var(--ink-faint);
}
footer a { color: var(--ink-dim); margin-right: 16px; }

@media (max-width: 480px) {
  h1 { font-size: 36px; letter-spacing: -1.2px; }
  body { padding: 28px 20px 48px; }
}

/* ─────────────────────────────────────────────────────────── landing page
   Only index.html uses these. The document pages above keep their narrow
   measure; the landing page runs wider and sets its own rhythm. */

.home { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
body.landing { padding: 0 0 80px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 0; max-width: 1120px; margin: 0 auto;
}
.nav .mark { margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
.nav .mark img { width: 34px; height: 34px; border-radius: 9px; }

/* The App Store call to action, used in the nav and again in the hero. */
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--field-bottom);
  font-family: "Cal Sans", -apple-system, sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
  padding: 13px 22px; border-radius: 30px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cta.small { font-size: 15px; padding: 10px 18px; }
.cta.ghost {
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid var(--hair);
}

/* Hero */
.hero { padding: 76px 0 0; text-align: center; }
.hero h1 {
  font-size: clamp(48px, 9vw, 96px); line-height: .95; letter-spacing: -3px;
  margin: 0 0 18px;
}
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); max-width: 620px; margin: 0 auto 30px; }
.hero-shot {
  margin: 54px auto 0; max-width: 320px; width: 100%;
  border-radius: 34px; display: block;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}

/* A full-width statement between sections. */
.statement { padding: 110px 0 90px; text-align: center; }
.statement h2 {
  font-size: clamp(38px, 7vw, 76px); line-height: .98; letter-spacing: -2.2px;
  margin: 0 0 20px;
}
.statement p { font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 0 auto; }

/* Two-up: art beside copy. Stacks under 800px. */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 40px 0;
}
.split img { width: 100%; border-radius: 26px; display: block; }
.split h2 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.02; letter-spacing: -1.6px;
  margin: 0 0 16px;
}
.split p { font-size: 17px; }

/* Feature grid */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; padding: 20px 0 0;
}
.tile {
  background: var(--glass); border: 1px solid var(--hair);
  border-radius: 22px; padding: 24px;
}
.tile h3 {
  font-size: 20px; letter-spacing: -0.4px; margin: 0 0 8px; font-weight: 700;
}
.tile p { font-size: 15px; margin: 0; }

/* Three phone shots in a row */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 46px 0 0;
}
.shots img {
  width: 100%; border-radius: 22px; display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.section-label {
  font-family: "Cal Sans", -apple-system, sans-serif;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 14px;
}

.home footer { margin-top: 90px; }
.home footer a { margin-right: 18px; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .statement { padding: 76px 0 60px; }
  .nav .cta { display: none; }
}
