/*
 * Octos's look, derived from its public pages: https://octos.gt/new-page/
 * (primary reference), https://octos.gt/kraken-360/ and https://octos.gt/.
 * These pages are a non-binding reference, not a requirement.
 *
 * The connector's sign-in and consent pages carry a copy of these tokens.
 * The two origins are deliberately independent — neither loads from the
 * other — so change both together.
 */
:root {
  color-scheme: light dark;
  --background: #f6f2fc;
  --surface: #fff;
  --tint: #efe7fb;
  --border: #e2d6f5;
  --text: #241a35;
  --heading: #3b1a6e;
  --muted: #6a5a85;
  --label: #7c3aed;
  --label-background: #efe7fb;
  --accent: #7c3aed;
  --on-accent: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191320;
    --surface: #251d33;
    --tint: #251d33;
    --border: #3a2f4d;
    --text: #f4f0fa;
    --heading: #f4f0fa;
    --muted: #b6abc7;
    --label: #b6abc7;
    --label-background: transparent;
    --accent: #b592ea;
    --on-accent: #191320;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1,
h2 {
  color: var(--heading);
}

h1 {
  margin-bottom: 0.25rem;
}

h2 {
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
}

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

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

/* The brand header: the "Octos" label above the product wordmark, which is
   drawn here so the pages' own text stays as it was. */
.brand {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.5rem;
  color: var(--label);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The Octos icon beside the label: two variants, one shown at a time. */
.octos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .icon-light {
    display: none;
  }

  .icon-dark {
    display: block;
  }
}

.wordmark {
  color: var(--heading);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.wordmark::before {
  content: "Kraken 360";
}

.wordmark::after {
  content: "°";
  color: var(--accent);
}

.label {
  display: inline-block;
  margin: 0;
  padding: 0.1rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--label-background);
  color: var(--label);
  font-size: 0.85rem;
}

.url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.url code {
  padding: 0.5rem 0.75rem;
  background: var(--tint);
  border-radius: 0.5rem;
  font-size: 1rem;
  word-break: break-all;
}

button,
.button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

details {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
}

summary {
  color: var(--heading);
  font-weight: 600;
  cursor: pointer;
}
