:root {
  --surface: #f5f6fa;
  --card: #ffffff;
  --soft: #e8eefd;
  --ok: #17803f;
  --no: #b4233a;
  --phone-edge: #1a1d27;
  --shadow: 0 24px 48px -24px rgba(20, 28, 60, 0.35);
  --bluesky: #1185fe;
  --threads: #101014;
  --mastodon: #6364ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #17171c;
    --card: #1d1d23;
    --soft: #1c2748;
    --ok: #4cc27c;
    --no: #ff7a8e;
    --phone-edge: #2c2f3b;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    --threads: #ececf1;
    --mastodon: #8b8cff;
  }
}

.wide { max-width: 1080px; }

.home main { padding: 0; }

.home section { padding: 72px 0; }
.home section + section { border-top: 1px solid var(--rule); }
.home section.tinted { background: var(--surface); }

.home h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.home h3 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--link); }
}

.intro { max-width: 640px; margin-bottom: 40px; }
.intro p { color: var(--muted); font-size: 19px; margin: 0; }

.intro h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px -10px rgba(29, 78, 216, 0.6);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero .lead { max-width: 34ch; }

.networks li { display: inline-flex; align-items: center; gap: 8px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.bluesky { background: var(--bluesky); }
.dot.threads { background: var(--threads); }
.dot.mastodon { background: var(--mastodon); }

.promises { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.promises li { display: flex; align-items: center; gap: 12px; margin: 0; }
.promises .icon { color: var(--ok); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--cobalt);
  color: #fff;
}

.button.quiet { background: var(--soft); color: var(--text); }
.button .icon { width: 18px; height: 18px; }

/* Phone frames */

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 1304;
  border-radius: 44px;
  padding: 8px;
  background: var(--phone-edge);
  box-shadow: var(--shadow);
}

.phone > img, .phone > video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  background: #fff;
}

.phone.small { border-radius: 34px; padding: 6px; }
.phone.small > img { border-radius: 28px; }

/* Demo */

.demo { max-width: 320px; margin: 0 auto; }

.play {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 36px;
  background: linear-gradient(to top, rgba(10, 14, 30, 0.55), rgba(10, 14, 30, 0) 55%);
  cursor: pointer;
  color: #fff;
  font: inherit;
}

.play span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 55%;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: var(--cobalt);
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

.play .icon { fill: currentColor; stroke: none; }
.play[hidden] { display: none; }

.chapters {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.chapters li { margin: 0; }

.chapters button {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}

.chapters button[aria-current="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chapters time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.chapters button[aria-current="true"] time { color: rgba(255, 255, 255, 0.8); }

.demo-note { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Tour */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature { border-top: 1px dashed var(--rule); }
.feature.flip .copy { order: 2; }
.feature .copy p { margin: 0 0 12px; max-width: 46ch; }
.feature .copy p.aside { color: var(--muted); font-size: 16px; }

.shots { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.shots figure { margin: 0; flex: 1 1 0; min-width: 0; max-width: 240px; }
.shots figure:nth-child(2) { margin-top: 40px; }
.home figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.more figure { margin: 0; }
.more .phone { max-width: 220px; margin: 0 auto; }

/* Network table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

.home table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 16px; }
.home th, .home td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.home tr:last-child td { border-bottom: 0; }
.home thead th { font-weight: 600; white-space: nowrap; }
.home thead .dot { display: inline-block; margin-right: 6px; }
.home tbody th { font-weight: 400; color: var(--muted); }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--no); font-weight: 600; }

/* Privacy */

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

.pillar {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
}

.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

.pillars.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillars.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.intro .meta { font-size: 15px; margin-top: 12px; }

/* Policy */

.policy { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; }
.toc ol { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

.clauses { max-width: 680px; }
.clause { padding: 28px 0; scroll-margin-top: 16px; }
.clause + .clause { border-top: 1px solid var(--rule); }
.clause:first-child { padding-top: 0; }
.home .clause h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 14px; }
.clause .badge { margin: 0; width: 40px; height: 40px; border-radius: 11px; }
.clause .badge .icon { width: 22px; height: 22px; }
.clause p, .clause ul { margin: 0 0 12px; }
.clause ul { padding-left: 22px; }
.clause li { margin-bottom: 8px; }

.badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--cobalt);
  margin-bottom: 16px;
}

@media (prefers-color-scheme: dark) {
  .badge { color: var(--link); }
}

.home .subhead { margin: 64px 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.subintro { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

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

.route {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
}

.flow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
}

.flow .node {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--cobalt);
}

@media (prefers-color-scheme: dark) {
  .flow .node { color: var(--link); }
}

.flow .node.lock { background: var(--ok); color: var(--card); }
.flow .link { flex: 1; height: 0; border-top: 2px solid var(--rule); min-width: 12px; }
.flow .link.dashed { border-top-style: dashed; }
.flow .icon { width: 22px; height: 22px; }

.route h3 { font-size: 19px; }
.route .where { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.route ul { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.route li { padding: 10px 0; border-top: 1px solid var(--rule); margin: 0; }
.route li strong { display: block; }
.route li span { color: var(--muted); }

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

.ledger > div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
}

.ledger h3 { display: flex; align-items: center; gap: 10px; }
.ledger ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ledger li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 8px 0; }
.ledger li .icon { width: 20px; height: 20px; margin-top: 3px; }
.ledger .never .icon { color: var(--no); }
.ledger .sent .icon { color: var(--ok); }
.ledger p { margin: 16px 0 0; color: var(--muted); font-size: 16px; }

.controls { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }

.controls li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.controls .icon { color: var(--cobalt); margin-top: 2px; }

@media (prefers-color-scheme: dark) {
  .controls .icon { color: var(--link); }
}

.controls p { margin: 0; }
.controls p + p { color: var(--muted); font-size: 16px; }

.policy-link { margin: 40px 0 0; font-size: 18px; }

/* Policy references */

.policy-ref { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; text-decoration: none; }
.policy-ref:hover { text-decoration: underline; }
.route .policy-ref { margin-top: auto; padding-top: 14px; }

/* Section links */

.section-links { margin-top: 40px; }
.section-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.section-links li { margin: 0; }
.section-links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.section-links a:hover { border-color: var(--cobalt); }

/* Not found */

.notfound { text-align: center; }
.notfound .app-icon { margin: 0 auto 20px; }
.notfound h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.025em; margin: 0 0 12px; }
.notfound .lead { margin: 0 auto 36px; max-width: 34ch; }
.pillars.links { text-align: left; max-width: 820px; margin: 0 auto; }
.notfound .section-links { max-width: 820px; margin: 40px auto 0; }
.notfound .section-links ul { justify-content: center; }
a.pillar { display: block; color: inherit; text-decoration: none; }
a.pillar:hover { border-color: var(--cobalt); }
a.pillar .badge { display: grid; }

/* Closing */

.closing { text-align: center; }
.closing .app-icon { margin: 0 auto 16px; }
.closing p { color: var(--muted); margin: 0 auto 8px; max-width: 46ch; }

@media (max-width: 900px) {
  .pillars.four { grid-template-columns: 1fr 1fr; }
  .policy { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
  .hero, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .copy { order: 0; }
  .pillars, .routes { grid-template-columns: 1fr 1fr; }
  .routes .route:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .home section { padding: 52px 0; }
  .pillars, .pillars.two, .routes, .ledger, .controls { grid-template-columns: 1fr; }
  .pillars.four { grid-template-columns: 1fr; gap: 10px; }
  .pillars.four .pillar { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .pillars.four .badge { grid-row: span 2; margin: 0; }
  .pillars.four h3 { margin: 0 0 2px; font-size: 18px; }
  .toc ol { columns: 1; }
  .routes .route:last-child { grid-column: auto; }
  .more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .shots { gap: 14px; }
  .shots figure:nth-child(2) { margin-top: 24px; }
  .demo { max-width: 280px; }
}
