/* Tincan website. Host Grotesk throughout, self-hosted (assets/fonts, SIL Open Font License) so
   the site makes no third-party requests. The UI mock-ups use the desktop app's own theme colours
   (apps/desktop/src/renderer/styles.css). */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/host-grotesk-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #161616;
  --ink-soft: #5f5f5a;
  --ink-faint: #8e8e88;
  --rule: #e6e6e1;
  --line: #b9b9b2;
  --accent: #4b2a9a;
  --ok: #2f7d4f;
  --no: #b23a2a;
  --shadow-ui: 0 30px 60px -24px rgba(20, 20, 40, 0.28), 0 2px 8px rgba(20, 20, 40, 0.06);
  --radius: 14px;
  --gutter: 20px;
  --max: 1160px;
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", monospace;
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}

pre code {
  font-size: inherit;
}

:not(pre) > code {
  padding: 0.08em 0.35em;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 72px;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

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

.nav-link {
  margin-left: auto;
  margin-right: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link + .nav-link {
  margin-left: 0;
}

.btn.nav {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13.5px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn.compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn.secondary {
  border-color: var(--rule);
  background: var(--surface);
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Hero */

.hero {
  padding: 56px 0 0;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 24px auto 56px;
  text-align: center;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(40px, 5.6vw, 66px);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Plates: soft backdrops in each theme's colours that the app windows sit on. */

.plate {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 56px);
}

.plate.bleed {
  padding-bottom: 0;
}

.plate.bleed > .shot {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.plate.p-periwinkle {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #e3e0fc, #bdb4f2 55%, #9d90ea);
}

.plate.p-sand {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #f4ebde, #e5cfb3 60%, #d7b48e);
}

.plate.p-midnight {
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(110, 168, 255, 0.35), transparent 60%),
    linear-gradient(165deg, #1d2848, #0a0f1c);
}

.plate.p-ocean {
  background:
    radial-gradient(80% 70% at 15% 0%, rgba(47, 212, 199, 0.3), transparent 60%),
    linear-gradient(165deg, #0d3a45, #041a20);
}

.plate.p-sky {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #e4efff, #b7d3fb 60%, #8db8f5);
}

.plate.p-mint {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #e5f4ee, #b8e2d2 60%, #8fd0b9);
}

.plate.p-graphite {
  background:
    radial-gradient(80% 70% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(165deg, #3a3a3a, #121212);
}

.plate.p-fog {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #eef0f3, #cfd5dd 60%, #b3bcc8);
}

.plate.p-coral {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(160deg, #fff0ea, #ffcdb9 60%, #ffab8e);
}

.plate.p-light {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.8), transparent 60%),
    linear-gradient(160deg, #eef3fb, #d6e2f2 60%, #bccde6);
}

.plate.p-plum {
  background:
    radial-gradient(80% 70% at 15% 0%, rgba(232, 121, 185, 0.32), transparent 60%),
    linear-gradient(165deg, #3a2240, #140e17);
}

.plate.p-forest {
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(95, 209, 139, 0.26), transparent 60%),
    linear-gradient(165deg, #183424, #07110b);
}

/* Sections */

.section {
  padding: 120px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.section-head p {
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .section {
    padding-top: 88px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
}

.statement {
  max-width: 900px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

@media (max-width: 860px) {
  .about-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
}

.about-points p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.split.flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.split.flip > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split.flip > :first-child {
    order: 0;
  }
}

.split h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.split .lede {
  margin-top: 16px;
}

/* Made for the big screen */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}

.feature + .feature {
  margin-top: 72px;
}

.feature.flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.feature.flip .feature-text {
  order: 2;
}

@media (max-width: 860px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .feature.flip .feature-text {
    order: 0;
  }

  .feature + .feature {
    margin-top: 56px;
  }
}

.feature .plate {
  padding: clamp(16px, 3vw, 36px);
}

.feature-text h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feature-text p {
  margin-top: 12px;
  max-width: 420px;
  font-size: 17px;
  color: var(--ink-soft);
}

.subhead {
  margin-top: 104px;
  margin-bottom: 28px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .minis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .minis {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mini .plate {
  aspect-ratio: 4 / 3;
  padding: 14px;
}

.mini h3 {
  margin-top: 14px;
}

.mini p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Made-to-fit pictures for the feature cards: app parts on their own in a 400×300 scene, which
   shots.js scales to the card (the card is 4:3 too, so the gaps stay even). */
.mini .plate.scene {
  display: grid;
  place-items: center;
  padding: 0;
}

.app-shot.mini-scene {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 400px;
  height: 300px;
  padding: 24px;
  background: transparent;
}

.app-shot.mini-scene .scene-card {
  width: 100%;
  border: 1px solid rgba(20, 20, 40, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-ui);
}

.app-shot.mini-scene .thread-list {
  padding: 8px;
  overflow: visible;
  mask-image: none;
}

.app-shot.mini-scene .palette {
  width: 100%;
  box-shadow: var(--shadow-ui);
}

.app-shot.mini-scene .palette-list {
  max-height: none;
}

.app-shot.scene-menu {
  place-items: start;
}

.app-shot.scene-menu .scene-card {
  width: 262px;
}

.app-shot.scene-menu .context-menu {
  right: 24px;
  bottom: 24px;
  min-width: 150px;
  box-shadow: var(--shadow-ui);
}

.app-shot.scene-menu .context-menu .hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

.app-shot.scene-themes .scene-card {
  padding: 14px 20px 22px;
  background: var(--bg-elevated);
}

.app-shot.scene-themes .setting {
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.app-shot .chip-grid {
  display: grid;
  gap: 14px;
}

.app-shot .chip-row {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  justify-content: space-between;
}

.app-shot.mini-scene .theme-chip.selected {
  box-shadow:
    inset 0 0 0 1px rgba(127, 127, 127, 0.35),
    0 0 0 2px var(--bg-elevated),
    0 0 0 4px var(--accent);
}

/* Works / doesn't */

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 800px) {
  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ledger > div {
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (max-width: 560px) {
  .ledger > div {
    padding: 22px 20px;
  }
}

.ledger h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}

.checklist {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.checklist li {
  position: relative;
  padding: 7px 0 7px 28px;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 7px;
  font-weight: 500;
}

.checklist.yes li::before {
  content: "✓";
  color: var(--ok);
}

.checklist.no li::before {
  content: "×";
  top: 4px;
  font-size: 20px;
  color: var(--no);
}

.checklist small {
  display: block;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Agents */

.stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.terminal {
  min-width: 0;
  border-radius: 12px;
  background: #151515;
  color: #ededed;
  overflow: hidden;
}

/* A GNOME-style header bar: the title centred, round window buttons on the right. */
.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1e1e1e;
}

.terminal-title {
  font-size: 13px;
  font-weight: 600;
  color: #dedede;
}

.terminal-controls {
  position: absolute;
  top: 0;
  right: 10px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-controls svg {
  width: 22px;
  height: 22px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  fill: none;
  stroke: #dedede;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.terminal pre {
  margin: 0;
  padding: 16px 20px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.terminal .dim {
  color: #8f8f8f;
}

.terminal .hl {
  color: #b9adff;
}

/* Agents: the two ways in (MCP, CLI) as a pair of cards, then what keeps you in the loop. */

.agent-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .agent-ways {
    grid-template-columns: minmax(0, 1fr);
  }
}

.agent-way {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 32px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.agent-way:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-ui);
}

.agent-way:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .agent-way {
    padding: 22px 20px 16px;
  }
}

.agent-way-kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}

.agent-way h3 {
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
}

.agent-way > p:not(.agent-way-kicker) {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}

.agent-way .terminal {
  margin-top: 20px;
}

.agent-way .terminal pre {
  font-size: 12.5px;
}

.agent-safety {
  margin-top: 72px;
}

.agent-safety-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.agent-safety .checklist {
  margin-top: 16px;
}

.agent-risk-link {
  margin-top: 24px;
  font-size: 15px;
}

.agent-risk-link a {
  color: var(--ink);
  font-weight: 500;
}

/* Closing */

.finale {
  padding: 140px 0 120px;
  text-align: center;
}

.finale h2 {
  font-size: clamp(32px, 4.2vw, 48px);
}

.finale p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-soft);
}

.finale .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 36px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-faint);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.site-footer .brand {
  font-size: 17px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer nav a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: var(--ink);
}

.footer-legal {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-legal a {
  color: inherit;
}

/* ---------- Download page ---------- */

.download-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter) 96px;
}

.download-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10vh 0 48px;
  text-align: center;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.head-icon {
  width: 56px;
  height: 56px;
  flex: none;
}

.download-head h1 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.head-meta {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 14px;
}

.head-meta a {
  color: var(--ink-faint);
  text-decoration-color: transparent;
}

.head-meta a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.platforms {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 720px;
}

.platform-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* A dotted rule that runs from the title to the end of the row. */
.platform-header::after {
  content: "";
  flex: 1;
  height: 2px;
  margin-left: 6px;
  background: radial-gradient(circle, var(--line) 0.9px, transparent 1.3px) 0 50% / 6px 2px repeat-x;
}

.platform-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-faint);
}

.platform-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.download-card:hover {
  border-color: var(--line);
  box-shadow: 0 6px 18px -10px rgba(20, 20, 40, 0.25);
  transform: translateY(-1px);
}

.download-card:active {
  transform: none;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.card-name {
  font-size: 15px;
  font-weight: 600;
}

.card-format {
  font-size: 13px;
  color: var(--ink-faint);
}

.note {
  font-size: 14px;
  color: var(--ink-faint);
}

.note a,
.releases-link a {
  color: var(--ink-soft);
}

.note code {
  font-size: 0.9em;
}

.cli-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
}

.cli-line code {
  padding: 0;
  border: 0;
  background: none;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13.5px;
  scrollbar-width: none;
}

.copy-button {
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--line);
  color: var(--ink);
}

.requirements {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.requirements li {
  position: relative;
  padding: 4px 0 4px 22px;
}

.requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
}

.releases-link {
  margin-top: 56px;
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 640px) {
  .download-head {
    padding-top: 6vh;
  }

  .head-inner {
    flex-direction: column;
    gap: 14px;
  }

  .download-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Docs page ---------- */

.docs-head {
  padding-top: 48px;
  padding-bottom: 40px;
}

.docs-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
}

.docs-head .lede {
  max-width: 620px;
  margin-top: 14px;
}

/* Sits at the top of the docs, right above Requirements. */
.docs .docs-lede {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.docs .docs-alpha {
  display: block;
  margin: 0 0 28px;
  padding: 9px 14px;
  border: 1px solid #e3c77f;
  border-radius: 10px;
  background: #fdf7e8;
  font-size: 14px;
  line-height: 1.5;
  color: #5c460c;
}

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 112px;
}

.docs-toc {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  font-size: 14px;
  scrollbar-width: thin;
}

.docs-toc-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.docs-toc ol {
  padding: 0;
  border-left: 1px solid var(--rule);
  list-style: none;
}

.docs-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.docs-toc a:hover {
  border-left-color: var(--line);
  color: var(--ink);
}

.docs-toc a[aria-current="location"] {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .docs-head {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 88px;
  }

  .docs-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 14px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .docs-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }

  .docs-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: 0;
    padding: 4px 11px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--bg);
    font-size: 13.5px;
  }

  .docs-toc a:hover,
  .docs-toc a[aria-current="location"] {
    border-color: var(--line);
    color: var(--ink);
  }
}

.docs {
  max-width: 700px;
  min-width: 0;
  font-size: 16.5px;
  line-height: 1.65;
}

.docs section {
  scroll-margin-top: 28px;
}

.docs section + section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
}

.docs h2 {
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.18;
}

.docs h3 {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: 28px;
}

.docs h2 + h3 {
  margin-top: 18px;
}

.heading-anchor {
  margin-left: 0.35em;
  color: var(--ink-soft);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition:
    opacity 0.15s,
    color 0.15s;
}

.docs :is(h2, h3):hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--accent);
}

@media (hover: none) {
  .heading-anchor {
    opacity: 0.6;
  }
}

.docs p,
.docs ul,
.docs ol,
.docs pre,
.docs .code-block,
.docs .table-wrap,
.docs .callout {
  margin-top: 14px;
}

.docs ul,
.docs ol {
  padding-left: 22px;
}

.docs ul ul,
.docs ol ul {
  margin-top: 8px;
}

.docs li + li {
  margin-top: 7px;
}

.docs li::marker {
  color: var(--ink-soft);
}

.docs strong {
  font-weight: 600;
}

.docs .code-block {
  position: relative;
}

.docs .code-block pre {
  margin-top: 0;
  padding: 14px 72px 14px 18px;
}

.docs pre {
  padding: 14px 18px;
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-radius: 12px;
  background: #151515;
  color: #ededed;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.docs pre .cm {
  color: #9a9a94;
}

.code-copy {
  position: absolute;
  top: 9px;
  right: 9px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  /* Opaque, with a halo of the block's background, so long lines scrolling under it never show through. */
  background: #2a2a2a;
  box-shadow: 0 0 0 6px #151515;
  color: #deded8;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.code-copy:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #3a3a3a;
  color: #fff;
}

.code-copy:focus-visible {
  outline: 2px solid #b9adff;
  outline-offset: 2px;
}

.docs kbd {
  display: inline-block;
  padding: 0.05em 0.42em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.85em;
  line-height: 1.3;
}

.docs .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.docs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

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

.docs th:last-child,
.docs td:last-child {
  padding-right: 0;
}

.docs th {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.docs td:first-child {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .docs td:first-child {
    white-space: normal;
  }

  .docs .code-block pre {
    padding: 14px 66px 14px 14px;
    font-size: 13px;
  }
}

.callout {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Callouts are told apart by color alone: an even border and a tinted fill. */
.callout.note {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

/* Callout text is full-strength ink: the tinted fills need the contrast. */
.callout,
.callout p,
.callout li {
  color: var(--ink);
}

.callout.warn {
  border-color: #e3c77f;
  background: #fdf7e8;
}

.callout p:first-child {
  margin-top: 0;
}

/* ---------- App screenshots ----------
   Rebuilt from the real app's markup and styles (app-ui.css). */

.shot {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(20, 20, 40, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-ui);
  user-select: none;
}

/* The site's own heading styles stay out of the app. */
.app-shot :where(h1, h2, h3, p) {
  font-family: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-wrap: wrap;
}

.app-shot.shot-hero {
  height: 620px;
}

.app-shot.shot-code {
  height: 290px;
}

/* The sidebar dragged wide in a short window: the conversation list, then the timeline. */
.app-shot.shot-dock {
  height: 420px;
}

.app-shot.shot-dock .main {
  display: none;
}

/* The pictures hold whole short conversations, so the bubbles start at the top of the list and
   any spare room sits above the composer. */
.app-shot .message-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* The header's tools sit just left of the round window buttons (3 × 22px, 10px apart, 12px in). */
.shot .app-shot .app:not(.platform-darwin) .conversation-header {
  padding-right: 110px;
}

/* Window buttons in the GNOME style, as on the terminal: round, on the right of the title bar. */
.shot-controls {
  position: absolute;
  top: 0;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  pointer-events: none;
}

.shot-controls svg {
  width: 22px;
  height: 22px;
  padding: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 13%, transparent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}

@media (max-width: 760px) {
  .app-shot.shot-hero {
    height: 540px;
  }

  /* Without the sidebar the conversation takes the whole window, not the sidebar's column. */
  .app-shot.shot-hero .app {
    grid-template-columns: 1fr;
  }

  .app-shot.shot-hero .sidebar {
    display: none;
  }

  /* Narrower bubbles take more lines: keep the newest messages in view, as the app does. */
  .app-shot.shot-hero .message-list {
    justify-content: flex-end;
  }
}

/* On a phone the pictures are narrower than any real window; give the title the controls' room. */
@media (max-width: 560px) {
  .shot-controls {
    display: none;
  }

  .shot .app-shot .app:not(.platform-darwin) .conversation-header {
    padding-right: 12px;
  }
}

/* A focused crop shows only its card: the rest of the conversation is hidden, so the margin
   around the card stays clear on every side. */
.app-shot.focus .message-list {
  visibility: hidden;
}

.app-shot.focus .focus-target {
  visibility: visible;
}

/* Cropped pictures in the small cards: centred, scaled to fit by shots.js. */
.shot.crop {
  display: grid;
  place-items: center;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.shot.crop > .app-shot {
  flex: none;
  border: 1px solid rgba(20, 20, 40, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-ui);
}

/* A conversation whose composer holds a queue of agent drafts. */
.app-shot.shot-drafts {
  height: 470px;
}

/* A reply held for its send delay. */
.app-shot.shot-delay {
  height: 330px;
}

/* A GNOME Shell notification banner, top-centred over the window it came from and overlapping
   its top edge. Sized in em off the picture's width, so it shrinks with the picture on a phone.
   Light like GNOME's default style, dark when the viewer's system is. */
.notify-scene {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notify-scene > .shot {
  align-self: stretch;
}

.gnome-notification {
  --gn-bg: #ffffff;
  --gn-fg: #1f1f24;
  --gn-dim: rgb(31 31 36 / 0.6);
  --gn-button: rgb(31 31 36 / 0.08);
  --gn-edge: rgb(0 0 6 / 0.08);
  position: relative;
  z-index: 1;
  width: min(26em, 100%);
  margin-bottom: -0.9em;
  padding: 0.8em 0.95em 0.9em;
  border-radius: 1.35em;
  background: var(--gn-bg);
  box-shadow:
    0 0 0 1px var(--gn-edge),
    0 1em 2.4em -0.5em rgb(0 0 8 / 0.5),
    0 0.2em 0.5em rgb(0 0 8 / 0.18);
  color: var(--gn-fg);
  font:
    400 clamp(12px, 2.5cqi, 14px) / 1.4 "Adwaita Sans",
    Cantarell,
    var(--ui);
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .gnome-notification {
    --gn-bg: #36363b;
    --gn-fg: #ffffff;
    --gn-dim: rgb(255 255 255 / 0.62);
    --gn-button: rgb(255 255 255 / 0.1);
    --gn-edge: rgb(255 255 255 / 0.1);
  }
}

.gn-header {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.86em;
  color: var(--gn-dim);
}

.gn-header img {
  width: 1.2em;
  height: 1.2em;
}

.gn-app {
  font-weight: 600;
}

.gn-time::before {
  content: "· ";
}

.gn-close {
  width: 1.75em;
  height: 1.75em;
  margin: -0.2em -0.2em -0.2em auto;
  padding: 0.5em;
  border-radius: 50%;
  background: var(--gn-button);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.gn-title {
  margin-top: 0.5em;
  font-weight: 700;
}

.gn-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gn-actions {
  display: flex;
  gap: 0.5em;
  margin-top: 0.75em;
}

.gn-action {
  flex: 1;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: var(--gn-button);
  font-weight: 700;
  text-align: center;
}

/* Privacy: a lock in rings of light, like a Bluetooth signal, over one claim and three facts. */
.feature .plate.privacy {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(95, 209, 139, 0.3), transparent 70%),
    linear-gradient(165deg, #183424, #07110b);
  color: #f2f7f3;
}

.pv {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 28px);
  width: 100%;
  text-align: center;
}

/* Beside its text the picture keeps the other features' proportions; stacked under it on a
   phone, it grows with its content instead of cropping it. */
@media (min-width: 761px) {
  .feature .plate.privacy {
    aspect-ratio: 4 / 3;
  }
}

.pv-rings {
  position: relative;
  display: grid;
  place-items: center;
  width: min(50%, 210px);
  aspect-ratio: 1;
}

.pv-rings > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(142, 230, 170, 0.16);
  border-radius: 50%;
}

.pv-rings > span:nth-child(2) {
  inset: 17%;
  border-color: rgba(142, 230, 170, 0.3);
}

.pv-rings > span:nth-child(3) {
  inset: 34%;
  border-color: rgba(142, 230, 170, 0.5);
}

.pv-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #7fe8a8, #2f9d5f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 24px 56px -16px rgba(95, 209, 139, 0.7);
}

.pv-lock svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: #07110b;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pv-claim {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pv-claim em {
  font-style: normal;
  color: #8ee6aa;
}

.pv-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-facts li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: rgba(242, 247, 243, 0.9);
}
