@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fira-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fira-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fira-sans-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/* KyUI 0.11.0 Nord Light (paper) and Nord Dark (nord), from src/themes.js. */
:root {
  color-scheme: light;
  --bg: #eceff4;
  --panel: #ffffff;
  --ink: #4c566a;
  --ink-strong: #2e3440;
  --accent: #4a6a94;
  --line: #c5cdd9;
  --line-strong: color-mix(in srgb, var(--line) 60%, var(--ink-strong));
  --button-text: #ffffff;
  --deep: #2e3440;
  --ink-quiet: #4c566a;
  --switch-bg: var(--panel);
  --switch-thumb: var(--ink-strong);
  --switch-thumb-text: var(--panel);
  --switch-thumb-border: transparent;
  --art-shadow: color-mix(in srgb, #2e3440 30%, transparent);
  --rail-w: 0rem;
  --font: "Fira Sans", system-ui, sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2e3440;
  --panel: #3b4252;
  --ink: #d8dee9;
  --ink-strong: #eceff4;
  --accent: #88c0d0;
  --line: #4c566a;
  --line-strong: #5e81ac;
  --button-text: #0d0f14;
  --deep: #242933;
  --ink-quiet: #81a1c1;
  --switch-bg: var(--deep);
  --switch-thumb: var(--panel);
  --switch-thumb-text: var(--ink-strong);
  --switch-thumb-border: var(--line-strong);
  --art-shadow: color-mix(in srgb, #0d0f14 62%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #2e3440;
    --panel: #3b4252;
    --ink: #d8dee9;
    --ink-strong: #eceff4;
    --accent: #88c0d0;
    --line: #4c566a;
    --line-strong: #5e81ac;
    --button-text: #0d0f14;
    --deep: #242933;
    --ink-quiet: #81a1c1;
    --switch-bg: var(--deep);
    --switch-thumb: var(--panel);
    --switch-thumb-text: var(--ink-strong);
    --switch-thumb-border: var(--line-strong);
    --art-shadow: color-mix(in srgb, #0d0f14 62%, transparent);
  }
}

/* Regions that stay dark in both themes. */
.rail, .signup, .site-footer {
  --ink: #d8dee9;
  --ink-strong: #eceff4;
  --accent: #88c0d0;
  --button-text: #0d0f14;
  --line: #4c566a;
  --line-strong: #5e81ac;
  --rail-panel: #3b4252;
  background: var(--deep);
  color: var(--ink-strong);
}

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

html {
  scrollbar-color: var(--line-strong) var(--deep);
  scroll-padding-top: 6.25rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-strong);
  font: 400 1.0625rem/1.6 var(--font);
  accent-color: var(--accent);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, table { margin: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }

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

::selection {
  background: var(--accent);
  color: var(--button-text);
}

.hero, .page-head, .section, .site-header, .site-footer {
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.wrap {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tab rail: a two-row sticky strip on narrow screens, a fixed right rail on wide ones. */
.rail {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

.rail a:focus-visible,
.rail button:focus-visible { outline-offset: -4px; }

.rail-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline-end: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.rail-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.rail-mark { flex: none; width: 1.75rem; height: 1.75rem; }

.rail-pages,
.rail-account {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.375rem;
}

.rail-pages a,
.rail-account a {
  display: inline-grid;
  place-items: center;
  min-height: 2.375rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 200ms var(--out), color 200ms var(--out), border-color 200ms var(--out);
}

.rail-pages a:hover,
.rail-account a:hover {
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.rail-pages a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--rail-panel);
  color: var(--ink-strong);
}

.rail-account { margin-inline-start: auto; }

.rail-account .rail-signup,
.rail-account .rail-signup:hover {
  background: var(--accent);
  color: var(--button-text);
}

.rail-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.rail-tabs a {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms var(--out), color 200ms var(--out);
}

.rail-tabs a:hover { color: var(--ink-strong); background: color-mix(in srgb, var(--ink) 10%, transparent); }

.rail-tabs a[aria-current] {
  background: var(--accent);
  color: var(--button-text);
}

.rail-theme {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 700 0.75rem/1 var(--font);
  cursor: pointer;
  transition: background-color 200ms var(--out), color 200ms var(--out);
}

html[data-theme] .rail-theme { display: inline-flex; }
.rail-theme:hover { color: var(--ink-strong); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.rail-theme-label { display: none; }
.rail-theme .theme-icon { flex: none; width: 1.125rem; height: 1.125rem; }
.rail-theme .theme-icon-sun,
html[data-theme="dark"] .rail-theme .theme-icon-moon { display: none; }
html[data-theme="dark"] .rail-theme .theme-icon-sun { display: block; }

/* Small phones: keep the sticky top bar single-row with compact links and horizontal scroll fallback. */
@media (max-width: 34rem) {
  .rail-bar { gap: 0.1875rem; padding-inline-end: 0.25rem; min-width: 0; }
  .rail-brand { padding-inline: 0.4375rem; }
  .rail-brand span { display: none; }
  .rail-mark { width: 1.5rem; height: 1.5rem; }
  .rail-pages { min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 0.0625rem; }
  .rail-account { gap: 0.125rem; }
  .rail-pages a,
  .rail-account a { padding-inline: 0.3125rem; font-size: 0.75rem; }
}

@media (min-width: 56rem) {
  :root { --rail-w: 6rem; }
  html { scroll-padding-top: 0; }

  .has-rail :is(.hero, .page-head, .section, .site-footer, .founders-banner) {
    padding-inline-end: calc(clamp(1.25rem, 4vw, 4rem) + var(--rail-w));
  }

  .rail {
    position: fixed;
    inset: 0 0 0 auto;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    background: none;
  }

  .rail-bar {
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
  }

  .rail-brand {
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    height: 4.5rem;
    margin-inline-start: 0.875rem;
    padding: 0;
    border-radius: 0 0 0 0.75rem;
    font-size: 1.0625rem;
  }

  .rail-mark { width: 2rem; height: 2rem; }

  .rail-pages,
  .rail-account {
    display: grid;
    gap: 0.25rem;
    margin-inline-start: 0.875rem;
    padding: 0.375rem;
    border-radius: 0.75rem 0 0 0.75rem;
    background: var(--deep);
  }

  .rail-pages a,
  .rail-account a {
    min-height: 2.125rem;
    padding: 0.25rem 0.3125rem;
    font-size: 0.8125rem;
  }

  .rail-tabs {
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 2px;
    padding-top: 0.5rem;
    overflow-y: auto;
    scrollbar-width: none;
    mask-image: none;
  }

  .rail-tabs a {
    flex: 1 0 auto;
    margin-inline-start: 0.875rem;
    padding: 0.375rem 0;
    border-radius: 0.75rem 0 0 0.75rem;
    background: var(--deep);
    font-size: 0.875rem;
    transition: background-color 200ms var(--out), color 200ms var(--out), margin 300ms var(--out);
  }

  .rail-tabs span { writing-mode: vertical-rl; }

  .rail-tabs a:hover { background: color-mix(in srgb, var(--deep) 86%, var(--ink)); }
  .rail-tabs a[aria-current] {
    margin-inline-start: 0;
    border: 1px solid color-mix(in srgb, var(--deep) 28%, transparent);
    border-inline-end: 0;
    background: var(--accent);
  }

  .rail-theme {
    flex-direction: column;
    gap: 0.25rem;
    min-height: 3.25rem;
    margin-top: 0.5rem;
    margin-inline-start: 0.875rem;
    padding: 0.375rem 0.25rem;
    border-inline-start: 0;
    border-radius: 0.75rem 0 0 0;
    background: var(--deep);
  }

  .rail-theme:hover { background: color-mix(in srgb, var(--deep) 86%, var(--ink)); }
  .rail-theme-label { display: block; }
}

@media (min-width: 56rem) and (max-height: 52rem) {
  .rail-tabs a { font-size: 0.8125rem; }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.375rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 200ms var(--out);
}

.button:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink-strong)); }

.arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 0.875rem;
  width: 0.875rem;
  height: 0.875rem;
}

.arrow::before, .arrow::after {
  position: absolute;
  top: 50%;
  right: 0.125rem;
  content: "";
}

.arrow::before {
  width: 0.625rem;
  border-top: 2px solid;
  transform: translateY(-50%);
}

.arrow::after {
  width: 0.375rem;
  height: 0.375rem;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}

.arrow-up { transform: rotate(-45deg); }
.arrow-down { transform: rotate(90deg); }

/* Numbered key shared by the diagram and the blocks it points to. */
.key {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--button-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.hero { overflow: clip; }

.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.75rem, 5.2vw, 5rem); }
.page-head h1 span { display: block; color: var(--accent); }
.page-head .hero-description { max-width: 38rem; }
.page-head .slot { margin-top: 1.75rem; }

.hero-inner {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.25rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.hero-main {
  display: grid;
  align-content: start;
  gap: clamp(1.75rem, 3.2vw, 2.5rem);
}

.hero h1 { font-size: clamp(2.75rem, 5vw, 5rem); line-height: 1.04; }
.hero h1 span { display: block; color: var(--accent); }

.hero-description {
  max-width: 28rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
}

.hero-choice {
  max-width: 28rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.who {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.who legend {
  margin-bottom: 0.625rem;
  padding: 0;
  color: var(--ink-strong);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.who-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--switch-bg);
}

.who-track label {
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 450ms var(--out);
}

.who-track label:hover { color: var(--ink-strong); }

.who-thumb {
  position: absolute;
  inset: 0.25rem auto 0.25rem 0.25rem;
  width: calc(50% - 0.25rem);
  border: 1px solid var(--switch-thumb-border);
  border-radius: 999px;
  background: var(--switch-thumb);
  transition: transform 450ms var(--out);
}

#hosting-self:checked ~ .who-track .who-thumb { transform: translateX(100%); }

#hosting-zentri:checked ~ .who-track label[for="hosting-zentri"],
#hosting-self:checked ~ .who-track label[for="hosting-self"],
#hosting-zentri:checked ~ .who-track label[for="hosting-zentri"]:hover,
#hosting-self:checked ~ .who-track label[for="hosting-self"]:hover { color: var(--switch-thumb-text); }

#hosting-zentri:focus-visible ~ .who-track label[for="hosting-zentri"],
#hosting-self:focus-visible ~ .who-track label[for="hosting-self"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.who-panel {
  display: none;
  align-content: start;
  justify-items: start;
  gap: 1.125rem;
  color: var(--ink);
  line-height: 1.55;
}

.who-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-strong); font-weight: 700; }
.text-link:hover { color: var(--accent); }

#hosting-zentri:checked ~ .who-panel-zentri,
#hosting-self:checked ~ .who-panel-self { display: grid; }

.diagram { position: relative; }

.diagram img {
  width: min(100%, 26rem);
  margin-inline: auto;
  filter: drop-shadow(0 1.5rem 1.75rem var(--art-shadow));
}

.leaders { display: none; }

.callouts {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.callouts a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.875rem;
  text-decoration: none;
}

.callouts .key { grid-row: span 2; }
.callouts strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.callouts a > span:last-child { color: var(--ink); font-size: 0.9375rem; line-height: 1.4; }
.callouts a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.callouts .key { transition: transform 300ms var(--out); }
.callouts a:hover .key { transform: scale(1.12); }

@media (min-width: 56rem) {
  .who-panel { min-height: 7.75rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .diagram img { width: 100%; }
}

@media (min-width: 80rem) {
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 1rem; }

  .diagram {
    align-self: center;
    aspect-ratio: 10 / 9;
  }

  .diagram img {
    position: absolute;
    top: 13%;
    left: 3%;
    width: 78%;
    max-width: none;
  }

  .leaders {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .leaders path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.3;
    stroke-dasharray: 1;
  }

  .leaders circle { fill: var(--accent); }

  .callouts { display: block; margin: 0; }
  .callouts li { position: absolute; width: 11.5rem; }
  .callouts li:nth-child(1) { top: -3%; left: 70%; }
  .callouts li:nth-child(2) { top: 60%; left: 76%; }
  .callouts li:nth-child(3) { top: 82%; left: 8%; }
  .callouts a { grid-template-columns: 1fr; row-gap: 0.125rem; }
  .callouts .key { grid-row: auto; margin-bottom: 0.5rem; }

  @media (prefers-reduced-motion: no-preference) {
    .leaders path { animation: draw 900ms var(--out) backwards; }
    .leaders circle { animation: appear 300ms var(--out) backwards; }
    .callouts li { animation: rise 700ms var(--out) backwards; }
    .leaders :nth-child(1), .callouts li:nth-child(1) { animation-delay: 150ms; }
    .leaders :nth-child(2), .callouts li:nth-child(2) { animation-delay: 300ms; }
    .leaders :nth-child(3), .callouts li:nth-child(3) { animation-delay: 450ms; }
    .leaders circle { animation-delay: 900ms; }
  }
}

@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes appear { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section p { color: var(--ink); }

.section-heading {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}

.section-heading p { max-width: 36rem; font-size: 1.125rem; }

.stack a, .source a, .apps-tour a, .mailboxes a, .setup a, .questions a, .apps a, .signup p a, .legal-content a {
  color: var(--accent);
  font-weight: 700;
}

.stack { background: var(--panel); }

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.parts article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-content: start;
  gap: 0.625rem 1.125rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink-strong);
  scroll-margin-top: 1.5rem;
}

.parts article:not(:has(.key)) { grid-template-columns: 1fr; }
.parts h3 { align-self: center; font-size: 1.75rem; }
.parts p { grid-column: 2; max-width: 32rem; }
.parts h3:first-child { grid-column: 1 / -1; }
.parts h3:first-child ~ p { grid-column: 1 / -1; }

/* App screens: text beside a screenshot, one app per row. */
.app-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.app-list article {
  display: grid;
  align-items: start;
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink-strong);
}

.app-list h3 { margin-bottom: 0.625rem; font-size: 1.75rem; }
.app-list p { max-width: 26rem; }
.app-list img { width: 100%; border: 1px solid var(--line); }

@media (min-width: 56rem) {
  .app-list article { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Apps tour: pick an app from the parts list, its screen fades in beside it. */
.apps-tour { background: var(--panel); }

.tour {
  display: grid;
  gap: 2rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tour-list { display: grid; align-content: start; border-top: 2px solid var(--ink-strong); }

.tour-list label {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.25rem 0.875rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.tour-list label::before {
  grid-row: span 2;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.4rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  transition: background 300ms var(--out);
}

.tour-list strong {
  color: var(--ink-strong);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 300ms var(--out);
}

.tour-list label > span { color: var(--ink); font-size: 0.9375rem; line-height: 1.4; }
.tour-list label:hover strong { color: var(--accent); }

#app-mail:checked ~ .tour-list [for="app-mail"],
#app-contacts:checked ~ .tour-list [for="app-contacts"],
#app-cal:checked ~ .tour-list [for="app-cal"],
#app-tasks:checked ~ .tour-list [for="app-tasks"],
#app-chat:checked ~ .tour-list [for="app-chat"],
#app-drive:checked ~ .tour-list [for="app-drive"],
#app-vault:checked ~ .tour-list [for="app-vault"],
#app-notes:checked ~ .tour-list [for="app-notes"] { --picked: var(--accent); }

.tour-list label::before { background: var(--picked, transparent); }
.tour-list label strong { color: var(--picked, var(--ink-strong)); }

#app-mail:focus-visible ~ .tour-list [for="app-mail"],
#app-contacts:focus-visible ~ .tour-list [for="app-contacts"],
#app-cal:focus-visible ~ .tour-list [for="app-cal"],
#app-tasks:focus-visible ~ .tour-list [for="app-tasks"],
#app-chat:focus-visible ~ .tour-list [for="app-chat"],
#app-drive:focus-visible ~ .tour-list [for="app-drive"],
#app-vault:focus-visible ~ .tour-list [for="app-vault"],
#app-notes:focus-visible ~ .tour-list [for="app-notes"] {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.tour-shots { display: grid; align-content: start; }

.tour-shots picture {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms var(--out), visibility 0s 450ms;
}

.tour-shots img { display: block; width: 100%; border: 1px solid var(--line); }
.tour-note { margin-top: 0.75rem; font-size: 0.875rem; }

#app-mail:checked ~ .tour-shots .shot-mail,
#app-contacts:checked ~ .tour-shots .shot-contacts,
#app-cal:checked ~ .tour-shots .shot-cal,
#app-tasks:checked ~ .tour-shots .shot-tasks,
#app-chat:checked ~ .tour-shots .shot-chat,
#app-drive:checked ~ .tour-shots .shot-drive,
#app-vault:checked ~ .tour-shots .shot-vault,
#app-notes:checked ~ .tour-shots .shot-notes {
  opacity: 1;
  visibility: visible;
  transition: opacity 450ms var(--out);
}

@media (min-width: 56rem) {
  .tour { grid-template-columns: minmax(16rem, 1fr) minmax(0, 2.4fr); gap: clamp(2rem, 4vw, 3.5rem); }
}

/* The limits region is drenched in the accent in both themes. */
.limits {
  --ink: var(--button-text);
  --line: color-mix(in srgb, var(--button-text) 28%, transparent);
  background: var(--accent);
  color: var(--button-text);
}

.limits ::selection { background: var(--button-text); color: var(--accent); }
.limits :focus-visible { outline-color: var(--button-text); }
.limits a { font-weight: 700; }

/* A key on a section heading, sized to the heading. */
.section-heading h2 .key {
  width: 1.6em;
  height: 1.6em;
  margin-inline-end: 0.6em;
  font-size: 0.5em;
  vertical-align: 0.32em;
}

.limits h2 .key { background: var(--button-text); color: var(--accent); }

.limits-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-variant-numeric: tabular-nums;
}

.limits-table th, .limits-table td {
  padding: 1.25rem 2rem 1.25rem 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.limits-table thead th { border-top: 0; padding-block: 0 0.75rem; font-weight: 700; }
.limits-table tbody th { width: 22%; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.limits-table td { width: 39%; }
.limits-table td:last-child { padding-inline-end: 0; }
.limits-table tbody tr:first-child > * { border-top: 2px solid var(--button-text); }

.plan-table th, .plan-table td { padding-inline-end: clamp(1rem, 2vw, 1.75rem); }
.plan-table tbody th, .plan-table td { width: 16.66%; }
.plan-table td[colspan] { width: auto; text-wrap: pretty; }
.plan-table th:last-child, .plan-table td:last-child { padding-inline-end: 0; }
.table-note { margin-top: 1.5rem; font-weight: 700; }

/* Billing cycle toggle inside the plans table section (annual default). */
.billing-picker { display: grid; gap: 1.5rem; }
.billing-bar { display: grid; gap: 1rem; align-items: center; }

@media (min-width: 56rem) {
  .billing-bar { grid-template-columns: auto 1fr; gap: 1.75rem; }
}

.billing-track {
  width: fit-content;
  max-width: 100%;
  border-color: color-mix(in srgb, var(--button-text) 45%, transparent);
  background: transparent;
}

.billing-track label,
.billing-track label:hover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.35em;
  padding: 0.5rem 1.25rem;
  color: var(--button-text);
}

.billing-track .billing-save { white-space: nowrap; }

@media (min-width: 30rem) {
  .billing-track label { flex-wrap: nowrap; white-space: nowrap; }
}

.billing-thumb {
  border-color: transparent;
  background: var(--button-text);
}

#billing-monthly:checked ~ .billing-bar .billing-thumb { transform: translateX(100%); }

#billing-annual:checked ~ .billing-bar label[for="billing-annual"],
#billing-monthly:checked ~ .billing-bar label[for="billing-monthly"],
#billing-annual:checked ~ .billing-bar label[for="billing-annual"]:hover,
#billing-monthly:checked ~ .billing-bar label[for="billing-monthly"]:hover { color: var(--accent); }

#billing-annual:focus-visible ~ .billing-bar label[for="billing-annual"],
#billing-monthly:focus-visible ~ .billing-bar label[for="billing-monthly"] {
  outline: 2px solid var(--button-text);
  outline-offset: 2px;
}

.billing-note { display: none; max-width: 38rem; font-size: 0.9375rem; line-height: 1.5; }
#billing-annual:checked ~ .billing-bar .billing-note-annual,
#billing-monthly:checked ~ .billing-bar .billing-note-monthly { display: block; }

.price-annual, .price-monthly { display: none; }
#billing-annual:checked ~ .plan-table .price-annual,
#billing-monthly:checked ~ .plan-table .price-monthly,
#billing-annual:checked ~ .founders-table span.price-annual,
#billing-monthly:checked ~ .founders-table span.price-monthly { display: inline; }
#billing-annual:checked ~ .founders-table a.button.price-annual,
#billing-monthly:checked ~ .founders-table a.button.price-monthly { display: inline-flex; }

.plan-table-annual, .plan-table-monthly { display: none; }
#billing-annual:checked ~ .plan-table-annual,
#billing-monthly:checked ~ .plan-table-monthly { display: table; }
.plan-table-monthly tbody th, .plan-table-monthly td { width: 25%; }
.plan-table-monthly td[colspan] { width: auto; }

/* Founders landing page components (flat Nord Parts Diagram system). */
.founders-banner {
  padding-inline: clamp(1.25rem, 4vw, 4rem);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.founders-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
}

.founders-banner .tag { margin-inline-start: 0; }
.founders-banner p { color: var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.founders-banner strong { color: var(--ink-strong); }

.founders-eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.founders-hero .hero-description { max-width: 44rem; }
.founders-cta-row { margin-top: 2rem; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.trust-strip li::before {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.founders-table th,
.founders-table td {
  width: auto;
  padding-inline-end: clamp(0.875rem, 1.8vw, 1.5rem);
}

@media (min-width: 62rem) {
  .founders-table tbody th { width: 19%; }
  .founders-table td:nth-child(2) { width: 19%; }
  .founders-table td:nth-child(3) { width: 17%; }
  .founders-table td:nth-child(4) { width: 29%; }
  .founders-table td.plan-action { width: 16%; padding-inline-end: 0; text-align: end; }
  .founders-table .plan-featured th { padding-inline-start: 0.875rem; }
  .founders-table .plan-featured td.plan-action { padding-inline-end: 0.875rem; }
}

.plan-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.88;
}

.price-figure {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.price-equiv {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.88;
}

.limits .tag,
.limits .tag-on-accent {
  border-color: color-mix(in srgb, var(--button-text) 65%, transparent);
  color: var(--button-text);
}

.button-invert {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--button-text);
  color: var(--accent);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.button-invert:hover {
  background: color-mix(in srgb, var(--button-text) 88%, var(--accent));
}

.founders-table .plan-featured > * {
  background: color-mix(in srgb, var(--button-text) 8%, transparent);
}

.founders-fine-print {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem clamp(2rem, 6vw, 4rem);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.compare-list {
  display: grid;
  gap: 0.875rem;
  margin: 0.5rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--ink);
}

.compare-list strong { color: var(--ink-strong); }

.security-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem clamp(1.75rem, 4vw, 3.5rem);
}

@media (max-width: 61.99rem) {
  .founders-table,
  .founders-table tbody,
  .founders-table tr,
  .founders-table th,
  .founders-table td { display: block; width: auto; }
  .founders-table thead { display: none; }
  .founders-table tbody th,
  .founders-table td { padding: 0; border: 0; text-align: start; }
  .founders-table tbody tr {
    display: grid;
    gap: 0.875rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
  }
  .founders-table tbody tr:first-child { border-top: 2px solid var(--button-text); }
  .founders-table tbody tr:first-child > * { border-top: 0; }
  .founders-table .plan-featured {
    padding-inline: 1rem;
    background: color-mix(in srgb, var(--button-text) 8%, transparent);
  }
  .founders-table .plan-featured > * { background: transparent; }
  .founders-table td::before {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    opacity: 0.85;
    content: attr(data-label);
  }
  .founders-table td.plan-action::before { content: none; }
  .founders-table td.plan-action { margin-top: 0.25rem; text-align: start; }
}
.edge-list, .source-list { display: grid; gap: 0.75rem; max-width: 48rem; padding-inline-start: 1.25rem; }
.source-list { font-size: 0.9375rem; }

@media (min-width: 48rem) {
  .limits-table td:empty::after { content: "—"; }
  .plan-table td.span-center { text-align: center; }
}

.address-line {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.section .address-line { color: var(--ink-quiet); }
.address-line i { color: var(--accent); font-style: normal; }
.address-line span:last-child { color: var(--ink-strong); }

.address-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink-strong);
}

.address-notes article { display: grid; align-content: start; gap: 0.625rem; }

/* Leaders tie each note to the part of the address it describes. */
@media (min-width: 48rem) {
  .address-line { padding-bottom: 0.5rem; }
  .address-notes { grid-template-columns: 1fr 1.25fr; padding-top: 0; border-top: 0; }
  .address-notes article { position: relative; padding-top: 4.25rem; }

  .address-notes article::before {
    position: absolute;
    top: 0.375rem;
    left: 1.25rem;
    height: 3rem;
    border-inline-start: 2px solid var(--accent);
    content: "";
  }

  .address-notes article::after {
    position: absolute;
    top: 0;
    left: calc(1.25rem - 0.25rem + 1px);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    content: "";
  }
}
.address-notes p { max-width: 28rem; }

.tag {
  display: inline-block;
  margin-inline-start: 0.375rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  vertical-align: 0.2em;
  white-space: nowrap;
}

.setup { background: var(--panel); }

.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.setup-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 2.25rem 2rem 0 0;
  border-top: 2px solid var(--line-strong);
  counter-increment: step;
}

.setup-steps li:last-child { padding-inline-end: 0; }

.setup-steps li::before {
  position: absolute;
  top: -0.9375rem;
  left: 0;
  padding: 0.3125rem 0.75rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-strong);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  content: "Step " counter(step);
}

.questions-inner {
  display: grid;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

@media (min-width: 64rem) {
  .questions-inner { grid-template-columns: 0.8fr 1.2fr; }
}

details { border-top: 1px solid var(--line-strong); scroll-margin-top: 1.5rem; }
.question-list details:last-child { border-bottom: 1px solid var(--line-strong); }

summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 1rem 0.125rem 1rem 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  position: absolute;
  inset-inline-end: 0.5625rem;
  top: 50%;
  height: 1rem;
  border-inline-start: 2px solid var(--accent);
  transform: translateY(-50%);
  content: "";
}

summary::after {
  flex: 0 0 1rem;
  border-top: 2px solid var(--accent);
  content: "";
}

details[open] summary::before { content: none; }
summary:hover { color: var(--accent); }

details p {
  max-width: 36rem;
  padding: 0 2rem 1.375rem 0;
}

.migration-steps {
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
  margin: 0 0 0.75rem;
  padding-inline-start: 1.25rem;
  color: var(--ink);
}

.signup-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}

.signup h2 span { color: var(--accent); }
.signup h2 + p { max-width: 26rem; margin-top: 1.25rem; font-size: 1.125rem; }
.signup-actions { display: grid; justify-items: start; gap: 1rem; }

/* Checkout status: a hollow dot until it opens. */
.slot { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; }

.slot::before {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.site-footer { border-top: 1px solid var(--line); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.wordmark img { flex: none; border-radius: 0.375rem; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 5.75rem;
  padding-block: 1.25rem;
}

.footer-brand { display: grid; gap: 0.4rem; }
.footer-inner p, .footer-contact { color: var(--ink); font-size: 0.875rem; }
.footer-contact { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.footer-contact:hover { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

.legal-content { max-width: calc(46rem + clamp(2.5rem, 8vw, 8rem)); }
.legal-content h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.legal-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }
.legal-content section { margin-top: 2.25rem; }
.legal-content p { margin-top: 0.75rem; }
.legal-content li + li { margin-top: 0.5rem; }
.legal-content ul { padding-inline-start: 1.5rem; color: var(--ink); }
.legal-effective { font-weight: 700; }

.legal-content .legal-summary {
  margin-top: 1.75rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem);
  border-top: 2px solid var(--ink-strong);
  background: var(--panel);
}

.legal-content .legal-summary h2 { font-size: 1.25rem; }
.legal-content .legal-intro { margin-top: 2rem; }
.legal-content .legal-summary ul { margin-top: 0.75rem; }
.legal-content .legal-summary li + li { margin-top: 0.375rem; }

@media (max-width: 47.99rem) {
  .limits-table, .limits-table tbody, .limits-table tr, .limits-table th, .limits-table td { display: block; width: auto; }
  #billing-annual:checked ~ .plan-table-annual,
  #billing-monthly:checked ~ .plan-table-monthly { display: block; }
  #billing-annual:checked ~ .plan-table-monthly,
  #billing-monthly:checked ~ .plan-table-annual { display: none; }
  .limits-table thead, .limits-table td:empty { display: none; }
  .limits-table tbody th, .limits-table td { width: auto; padding: 0; border: 0; }
  .limits-table tbody tr { display: grid; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
  .limits-table tbody tr:first-child { border-top: 2px solid var(--button-text); }
  .limits-table tbody tr:first-child > * { border-top: 0; }
  .limits-table td::before { display: block; font-size: 0.875rem; font-weight: 700; content: attr(data-label); }
  .plan-table tbody tr { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .plan-table tbody th, .plan-table td[colspan] { grid-column: 1 / -1; }
  .footer-inner > p { order: 1; flex-basis: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
