/* Known's site: the app's look on the web. System font, neutral greys, system blue as the only accent; the warm
   colours stay in the logo. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #e5e5ea;
  --accent: #007aff;
  --on-accent: #ffffff;
  --lit: rgba(0, 122, 255, 0.07);
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --blue: #007aff;
  --card-edge: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.07);
  --draft-bg: #fff4e5;
  --draft-text: #7a4b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --card: #141416;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: #2c2c2e;
    --accent: #0a84ff;
    --lit: rgba(10, 132, 255, 0.14);
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;
    --blue: #0a84ff;
    --card-edge: rgba(255, 255, 255, 0.08);
    --card-shadow: none;
    --draft-bg: #2b2111;
    --draft-text: #ffcc80;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.5 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* Frame */

.top,
.foot,
.hero,
.board,
.steps,
.doc,
.handoff {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.brand img {
  border-radius: 7px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

.foot nav {
  display: flex;
  gap: 24px;
}

.foot a {
  color: var(--text-2);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.button.secondary {
  background: var(--bg-soft);
  color: var(--accent);
}

.soon {
  margin: 0;
  color: var(--text-3);
  font-size: 15px;
}

/* Home */

.hero {
  padding: 88px 0 48px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lede {
  max-width: 34em;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: clamp(19px, 2.4vw, 21px);
  line-height: 1.45;
}

.board {
  padding: 16px 0 88px;
}

.board-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 6px 8px 8px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 14px 10px;
}

.board-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.board-count {
  color: var(--text-3);
  font-size: 14px;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
}

.row + .row {
  margin-top: 2px;
}

.row.lit {
  background: var(--lit);
}

.name {
  font-weight: 600;
}

.meta {
  grid-column: 1;
  color: var(--text-3);
  font-size: 14px;
}

.state {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.dot.green {
  color: var(--green);
}

.dot.orange {
  color: var(--orange);
}

.dot.red {
  color: var(--red);
}

.dot.blue {
  color: var(--blue);
}

.steps {
  padding: 56px 0 96px;
  border-top: 1px solid var(--line);
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.steps p {
  margin: 0;
  color: var(--text-2);
}

/* Documents: privacy, terms, support */

.doc {
  max-width: 680px;
  padding: 56px 0 96px;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 44px);
  letter-spacing: -0.025em;
}

.doc .lede {
  margin: 0 0 8px;
  max-width: none;
}

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

.doc h3 {
  margin: 28px 0 4px;
  font-size: 17px;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 14px;
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
}

.doc li {
  margin: 6px 0;
}

.doc li::marker {
  color: var(--text-3);
}

.doc strong {
  font-weight: 600;
}

.doc table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.draft {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--draft-bg);
  color: var(--draft-text);
  font-size: 15px;
}

/* Hand-off pages: /i/, /join, 404 */

.handoff {
  max-width: 520px;
  padding: 72px 0 104px;
  text-align: center;
}

.handoff-mark {
  margin-bottom: 28px;
  border-radius: 15px;
}

.handoff h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 42px);
  letter-spacing: -0.025em;
}

.handoff .lede {
  margin-bottom: 28px;
  font-size: 19px;
}

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

.actions .button {
  min-width: 260px;
}

.fine {
  margin: 28px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.handoff:has(+ .features) {
  padding-bottom: 56px;
}

/* What the app does, under the /i/ and /join hand-off */

.features {
  width: min(100% - 40px, 720px);
  margin-inline: auto;
  padding: 48px 0 96px;
  border-top: 1px solid var(--line);
}

.features h2 {
  margin: 0 0 24px;
  font-size: 24px;
  letter-spacing: -0.015em;
  text-align: center;
}

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

.features li {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.features span {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .features ul {
    grid-template-columns: 1fr;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 0 36px;
  }

  .board {
    padding-bottom: 64px;
  }

  .steps {
    padding: 40px 0 64px;
  }

  .steps ol {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc {
    padding: 36px 0 72px;
  }

  .handoff {
    padding: 48px 0 80px;
  }

  .actions .button {
    width: 100%;
  }
}
