:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --ink: #111113;
  --muted: #62626b;
  --line: #e7e7ea;
  --brand: #ff5a1f;
  --brand-ink: #c2410c;
  --pane: #f3f3f5;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #18181b;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2a2a2f;
    --brand-ink: #ff8a5c;
    --pane: #1f1f23;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a, button, summary { cursor: pointer; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 12px; background: var(--surface); }

/* header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 22px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 28px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* home */
.hero { padding-block: 88px 56px; text-align: center; }
.hero .badge { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13.5px; }
.hero h1 { text-wrap: balance; margin: 20px auto 16px; max-width: 760px; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.hero p { margin: 0 auto; max-width: 600px; text-wrap: pretty; color: var(--muted); font-size: 19px; }
.hero .actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform 0.12s, background-color 0.15s; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: color-mix(in srgb, var(--brand), #fff 10%); transform: translateY(-1px); }
.button.secondary { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.button.secondary:hover { background: var(--pane); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }

/* the app, drawn as HTML with made-up mail */
.app { margin: 8px auto 0; max-width: 980px; border: 1px solid var(--line); border-radius: 16px; background: var(--pane); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.35); overflow: hidden; }
.app-bar { display: flex; gap: 7px; padding: 14px 16px; }
.app-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.app-bar span:nth-child(1) { background: #ff5f57; }
.app-bar span:nth-child(2) { background: #febc2e; }
.app-bar span:nth-child(3) { background: #28c840; }
.app-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; padding: 0 8px 8px; min-height: 360px; }
.app-side { padding: 4px 8px; font-size: 13.5px; color: var(--muted); }
.app-side .compose { display: block; margin-bottom: 12px; padding: 7px 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; text-align: center; }
.app-side li { padding: 6px 10px; border-radius: 8px; list-style: none; }
.app-side li.on { background: var(--surface); color: var(--ink); font-weight: 600; }
.app-side ul { margin: 0; padding: 0; }
.app-list, .app-reader { border-radius: 12px; background: var(--surface); padding: 12px; }
.app-list ol { margin: 0; padding: 0; list-style: none; }
.app-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; padding: 10px; border-radius: 10px; font-size: 13px; }
.app-list li.on { background: var(--pane); }
.app-list .av { font-style: normal; grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.av.a { background: #3b82f6; } .av.b { background: #16a34a; } .av.c { background: #e11d48; } .av.d { background: #f59e0b; }
.app-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-list time { color: var(--muted); font-size: 12px; }
.app-list span { grid-column: 2 / 4; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-reader { font-size: 14px; }
.app-reader h2 { margin: 4px 0 12px; font-size: 18px; letter-spacing: -0.01em; }
.app-reader .from { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.app-reader p { margin: 0 0 10px; }

/* features */
.features { padding-block: 96px 0; }
.features h2, .doc h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.features .lede { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* privacy promise band */
.promise { margin-top: 96px; padding: 40px; border-radius: 20px; background: var(--ink); color: var(--bg); }
.promise h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; }
.promise p { margin: 0 0 18px; max-width: 680px; opacity: 0.8; }
.promise a { color: var(--bg); font-weight: 600; }

/* policy pages */
.doc { padding-top: 64px; max-width: 760px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink), var(--muted) 35%); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note { padding: 16px 18px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; }

@media (max-width: 820px) {
  .app-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .app-side { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-reader { display: none; }
  .site-header nav { gap: 14px; }
  .promise { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
