:root {
  --bg: #141417;
  --surface: #1c1c20;
  --surface-raised: #242429;
  --text: #e8e8ec;
  --muted: #a4a4ae;
  --line: #28282e;
  --control-line: #34343c;
  --focus: #e8e8ec;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

h2:focus {
  outline: none;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #ffffff;
}

ul,
ol {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background-color: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.demo-banner {
  background-color: var(--surface);
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-weight: 650;
  padding: 10px 20px;
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.account-bar {
  display: flex;
  justify-content: flex-end;
}

.boot-status {
  margin-bottom: 24px;
  color: var(--muted);
}

.stage {
  min-height: 1px;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
}

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

.actions .btn {
  flex: 1 1 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background-color: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background-color: #ffffff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--control-line);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--surface-raised);
}

.btn-quiet {
  min-height: 44px;
  padding: 0 14px;
  background-color: transparent;
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}

.btn-quiet:hover:not(:disabled) {
  background-color: var(--surface-raised);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form {
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="password"],
input[type="text"],
input:not([type]) {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
}

input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #55555f;
}

.hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-text {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 650;
}

.status-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-line a {
  font-weight: 600;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
}

.fact {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
}

.fact dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.block {
  margin-top: 32px;
}

.block h3 {
  margin-top: 0;
}

.devices {
  display: grid;
  gap: 16px;
}

.devices-intro {
  margin: -4px 0 16px;
  font-size: 0.92rem;
}

.platform-card {
  padding: 18px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
}

.platform-lead {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.platform-seen {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-app {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.guide-button {
  text-decoration: none;
}

.guide-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-intro {
  margin: 0 0 8px;
  font-weight: 700;
}

.guide-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--control-line);
  border-left: 3px solid var(--text);
  border-radius: 8px;
  background-color: var(--surface);
  font-size: 0.92rem;
}

.guide-second {
  margin-top: 14px;
  padding: 12px 0 0 14px;
  border-left: 2px solid var(--line);
}

.guide-alternative {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.guide-title {
  margin: 0 0 10px;
  font-weight: 650;
}

.steps {
  margin: 0 0 12px;
  padding-left: 1.4rem;
  color: var(--text);
}

.steps li {
  margin: 8px 0;
}

.address {
  margin: 0 0 12px;
  color: var(--muted);
}

.address code {
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--surface-raised);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.sync-line {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.disclosure {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.disclosure > summary {
  min-height: 44px;
  padding: 14px 0;
  font-weight: 650;
  cursor: pointer;
}

.disclosure > summary::marker {
  color: var(--muted);
}

.guide-body {
  padding: 0 0 8px;
}

.guide-body h3 {
  margin-top: 20px;
}

.guide-body h3:first-child {
  margin-top: 4px;
}

.sub-disclosure {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.sub-disclosure > summary {
  min-height: 44px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
}

.sub-disclosure > summary::marker {
  color: var(--muted);
}

.account-actions {
  margin-top: 18px;
}

.account-actions .hint {
  margin: 10px 0 0;
}

.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .wrap {
    padding: 20px 14px 40px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .guide-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Password strength, forgotten password, and the xkcd explainer. */
.strength {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.strength-ok {
  color: var(--text);
  font-weight: 600;
}

.forgot {
  margin: 0;
  font-size: 0.9rem;
}

.link-btn {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.forgot-silo {
  margin-right: 10px;
  color: var(--text);
  font-size: 0.9rem;
  text-underline-offset: 3px;
}

.link-btn-secondary {
  color: var(--muted);
  font-size: 0.85rem;
}

.link-btn:hover {
  color: #ffffff;
}

.hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 16px;
}

.hint-row .hint {
  flex: 1 1 16rem;
  margin: 0;
}

.comic {
  margin: 0 0 18px;
}

.comic img {
  display: block;
  width: 100%;
  max-width: 740px;
  height: auto;
  padding: 8px;
  border-radius: var(--radius);
  background-color: #ffffff;
  cursor: zoom-out;
}

.comic figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Copyable prompt for the person's own AI assistant. */
.assistant-help {
  margin: 4px 0 14px;
  border-top: 1px solid var(--line);
}

.assistant-help > summary {
  min-height: 44px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
}

.assistant-help > summary::marker {
  color: var(--muted);
}

.assistant-intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.assistant-prompt {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 12em;
  padding: 10px 12px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background-color: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0 4px;
}

.assistant-status {
  color: var(--muted);
  font-size: 0.9rem;
}

textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Software and device help links on each card. */
.link-group {
  margin: 0 0 12px;
}

.link-group-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.link-list li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

/* Profiles explainer. The table scrolls on its own; the page never does. */
.profiles p {
  margin: 0 0 12px;
}

.table-scroll {
  max-width: 100%;
  margin: 4px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.compare thead th {
  color: var(--muted);
  font-weight: 600;
}

.compare tbody th {
  width: 26%;
  font-weight: 600;
}

@media (max-width: 480px) {
  .compare {
    font-size: 0.84rem;
  }

  .compare th,
  .compare td {
    padding: 7px 6px;
  }
}

.profile-examples {
  margin: 0 0 12px;
  padding-left: 1.3rem;
}

.profile-examples li {
  margin: 4px 0;
}

.profiles-url {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.callout {
  margin: 16px 0 0;
  padding: 14px 16px 2px;
  border: 1px solid var(--control-line);
  border-left: 3px solid var(--text);
  border-radius: 8px;
  background-color: var(--surface);
}
