:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-raised: #18202b;
  --border: #243040;
  --text: #e6edf3;
  --text-secondary: #a9b6c2;
  --text-muted: #6e7e8c;
  --accent: #4c93ff;
  --accent-ink: #0b0f14;
  --danger: #c4313b;
  --input-border: #5a6b7d;
  --radius: 18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --border: #d8dee4;
    --text: #1f2328;
    --text-secondary: #4a5560;
    --text-muted: #5f6b77;
    --accent: #0969da;
    --input-border: #8c959f;
    --accent-ink: #ffffff;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

/* A ring that shows on every surface, the blue buttons included. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button:focus-visible {
  outline-color: var(--text);
}

/* Hidden until a keyboard user tabs to it, then the first thing on the page. */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.brand svg {
  width: 40px;
  height: auto;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 64px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

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

.note {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 14px;
}

.shots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.shots img {
  width: 31%;
  max-width: 220px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.shots img:nth-child(2) {
  transform: translateY(-24px);
}

section.band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section.band h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

section.band p {
  color: var(--text-secondary);
  max-width: 640px;
}

/* A feature beside its screenshots, alternating sides. */
section.showcase {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase.reverse .showcase-text {
  order: 2;
}

.showcase h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.showcase p {
  color: var(--text-secondary);
  margin: 0;
}

.showcase p.stat {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.stat span {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-right: 6px;
}

.showcase-shots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.showcase-shots img {
  width: 48%;
  max-width: 240px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-shots.two img:nth-child(2) {
  transform: translateY(32px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 15px;
}

.store-slot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--text-muted);
  font-size: 15px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}

footer.site a {
  display: inline-block;
  min-height: 24px;
  color: var(--text-secondary);
  text-decoration: none;
}

footer.site a:hover,
footer.site a:focus-visible {
  text-decoration: underline;
}

/* Documents: policies, deletion, profile. */
main.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

main.doc h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 8px 0 6px;
}

main.doc h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

main.doc p,
main.doc li {
  color: var(--text-secondary);
}

.draft {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* The error region stays in the page so its text is announced; empty, it takes no space. */
.draft:empty {
  padding: 0;
  border: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

/* The panel's padding is the gap; a paragraph's own margin on top of it doubled the top. */
.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel .actions {
  margin-top: 16px;
}

input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.profile {
  text-align: center;
  padding-top: 40px;
}

/* The social-card avatar, cropped to its coloured disc: the card image sits on the dark
   background chat apps draw it against, which reads as a ring on a light page. */
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: block;
  object-fit: cover;
  object-position: center;
  clip-path: circle(32% at 50% 50%);
  transform: scale(1.5);
  transform-origin: center;
}

.profile .actions {
  justify-content: center;
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block-start: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .shots img:nth-child(2) {
    transform: none;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase.reverse .showcase-text {
    order: 0;
  }

  section.showcase {
    padding: 48px 0;
  }

  .showcase-shots.two img:nth-child(2) {
    transform: none;
  }
}
