/* Signally — site styles. No build step; plain CSS. */

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: oklch(1 0 0);
  --surface: oklch(0.975 0.007 160);
  --ink: oklch(0.23 0.02 165);
  --muted: oklch(0.45 0.018 165);
  --line: oklch(0.9 0.01 160);

  --brand: oklch(0.4 0.087 160);
  --brand-hover: oklch(0.34 0.08 160);
  --brand-tint: oklch(0.955 0.03 160);
  --on-brand: oklch(0.99 0.005 160);

  --accent: oklch(0.74 0.14 68);
  --accent-ink: oklch(0.47 0.11 60);

  --deep: oklch(0.27 0.055 162);
  --deep-ink: oklch(0.97 0.01 160);
  --deep-muted: oklch(0.84 0.03 160);

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.75rem;
  --measure: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.165 0.008 165);
    --surface: oklch(0.205 0.011 165);
    --ink: oklch(0.94 0.008 160);
    --muted: oklch(0.76 0.015 160);
    --line: oklch(0.31 0.014 165);

    --brand: oklch(0.8 0.11 160);
    --brand-hover: oklch(0.86 0.1 160);
    --brand-tint: oklch(0.255 0.04 162);
    --on-brand: oklch(0.18 0.03 165);

    --accent: oklch(0.8 0.13 70);
    --accent-ink: oklch(0.84 0.12 72);

    --deep: oklch(0.235 0.045 162);
    --deep-ink: oklch(0.96 0.01 160);
    --deep-muted: oklch(0.82 0.025 160);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Header ---------- */

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* The dot of the "i" is the brand accent: a dotless ı with a drawn dot. */
.wordmark__i {
  position: relative;
}

.wordmark__i::before {
  content: "";
  position: absolute;
  top: 0.16em;
  left: 50%;
  width: 0.21em;
  height: 0.21em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.button:hover {
  background: var(--brand-hover);
}

.button--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--quiet:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--muted);
}

/* ---------- Home: hero (always dark) ---------- */

.page-home {
  --h-bg: oklch(0.155 0.014 165);
  --h-ink: oklch(0.97 0.006 160);
  --h-muted: oklch(0.78 0.018 160);
  --h-faint: oklch(0.62 0.016 160);
  --h-line: oklch(1 0 0 / 0.08);
  --h-line-strong: oklch(1 0 0 / 0.14);
  --h-mint: oklch(0.83 0.12 160);
  --h-panel: oklch(0.19 0.013 165);
  --h-panel-2: oklch(0.235 0.014 165);
  --h-chrome: oklch(0.172 0.012 165);
  --h-out: oklch(0.42 0.088 160);
}

.page-home .site-header {
  border-bottom-color: var(--h-line);
  background: var(--h-bg);
  color-scheme: dark;
  --brand: var(--h-mint);
}

.page-home .wordmark {
  color: var(--h-ink);
}

.page-home .site-nav a {
  color: var(--h-muted);
}

.page-home .site-nav a:hover {
  color: var(--h-ink);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  background: var(--h-bg);
  color: var(--h-ink);
  color-scheme: dark;
  --brand: var(--h-mint);
  --brand-hover: oklch(0.9 0.1 160);
  --on-brand: oklch(0.2 0.04 165);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--h-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
  background-position: center top;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
}

.hero__glow {
  position: absolute;
  top: 62%;
  left: 50%;
  z-index: -1;
  width: min(1200px, 150vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, oklch(0.56 0.13 160 / 0.42), oklch(0.5 0.1 160 / 0.12) 55%, transparent);
  filter: blur(30px);
  transform: translate(-50%, -50%);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border: 1px solid var(--h-line-strong);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  color: var(--h-muted);
  font-size: 0.875rem;
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--h-mint);
  box-shadow: 0 0 0 4px oklch(0.83 0.12 160 / 0.18);
}

.hero h1 {
  max-width: 17ch;
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero__accent {
  color: var(--h-mint);
}

.lede {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--h-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero .button {
  min-height: 3.125rem;
  padding-inline: 1.5rem;
  box-shadow: 0 0 0 1px oklch(0.83 0.12 160 / 0.4), 0 10px 30px -10px oklch(0.7 0.14 160 / 0.6);
}

.hero .button--quiet {
  color: var(--h-ink);
  box-shadow: inset 0 0 0 1px var(--h-line-strong);
}

.hero .button--quiet:hover {
  background: oklch(1 0 0 / 0.06);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.28);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--h-muted);
  font-size: 0.9375rem;
  list-style: none;
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__proof svg {
  flex: none;
  color: var(--h-mint);
}

/* Product illustration */

.stage {
  position: relative;
  max-width: 68rem;
  margin: clamp(3rem, 7vw, 4.75rem) auto 0;
}

.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--h-line-strong);
  border-radius: 1rem;
  background: var(--h-panel);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.06),
    0 0 0 1px oklch(0 0 0 / 0.5),
    0 50px 100px -30px oklch(0 0 0 / 0.75),
    0 0 140px -50px oklch(0.62 0.14 160 / 0.6);
  color: var(--h-ink);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: left;
}

/* A thin light that travels along the window's top edge. */
.window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 40%;
  height: 1px;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--h-mint), transparent);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.75rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--h-line);
  background: var(--h-chrome);
}

.window__dots {
  display: flex;
  gap: 0.4rem;
}

.window__dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.14);
}

.window__search {
  display: none;
  align-items: center;
  gap: 0.5rem;
  width: min(22rem, 45%);
  height: 1.75rem;
  margin-inline: auto;
  padding-inline: 0.625rem;
  border: 1px solid var(--h-line);
  border-radius: 0.5rem;
  background: oklch(1 0 0 / 0.04);
  color: var(--h-faint);
}

.window__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--h-muted);
  font-size: 0.75rem;
}

.window__live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--h-mint);
  box-shadow: 0 0 10px var(--h-mint);
}

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

.rail,
.list {
  display: none;
}

.rail {
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem 0.625rem;
  border-right: 1px solid var(--h-line);
  background: var(--h-chrome);
}

.rail__ws {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.875rem;
  font-weight: 650;
}

.rail__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.625rem;
  border-radius: 0.5rem;
  color: var(--h-muted);
}

.rail__item--active {
  background: oklch(1 0 0 / 0.07);
  color: var(--h-ink);
}

.rail__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.rail__count {
  color: var(--h-faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.rail__foot {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding: 0.875rem 0.625rem 0.25rem;
  border-top: 1px solid var(--h-line);
}

.rail__foot-label {
  color: var(--h-faint);
  font-size: 0.75rem;
}

.rail__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--h-mint);
  font-size: 0.75rem;
  font-weight: 600;
}

.list {
  overflow: hidden;
  border-right: 1px solid var(--h-line);
}

.list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem 0.75rem;
  font-weight: 650;
}

.list__tabs {
  display: flex;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.list__tab {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: var(--h-faint);
}

.list__tab--on {
  background: oklch(1 0 0 / 0.08);
  color: var(--h-ink);
}

.conv {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.15rem 0.625rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--h-line);
}

.conv--active {
  background: oklch(0.6 0.12 160 / 0.13);
}

.conv__avatar {
  display: grid;
  place-items: center;
  grid-row: span 3;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  color: var(--h-muted);
}

.conv__num {
  overflow: hidden;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv__time {
  color: var(--h-faint);
  font-size: 0.75rem;
}

.conv__preview,
.conv__tags {
  grid-column: 2 / 4;
}

.conv__preview {
  overflow: hidden;
  color: var(--h-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv__tags {
  margin-top: 0.25rem;
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--h-line-strong);
  border-radius: 999px;
  color: var(--h-muted);
  font-size: 0.6875rem;
  white-space: nowrap;
}

.tag--new {
  border-color: transparent;
  background: oklch(0.74 0.14 68 / 0.2);
  color: oklch(0.86 0.11 75);
}

.tag--you {
  border-color: transparent;
  background: oklch(0.83 0.12 160 / 0.14);
  color: var(--h-mint);
}

.thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.thread__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--h-line);
}

.thread__who {
  display: grid;
}

.thread__who span {
  color: var(--h-faint);
  font-size: 0.75rem;
}

.thread__msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  gap: 0.625rem;
  overflow: hidden;
  padding: 1rem 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, oklch(0.6 0.12 160 / 0.08), transparent 45%),
    var(--h-panel);
}

.sync {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: oklch(0.83 0.12 160 / 0.1);
  color: var(--h-mint);
  font-size: 0.75rem;
  font-weight: 600;
}

.msg {
  max-width: 80%;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 0.875rem;
}

.msg--in {
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
  background: var(--h-panel-2);
}

.msg--out {
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
  background: var(--h-out);
  color: oklch(0.98 0.005 160);
}

.msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  opacity: 0.72;
}

.msg--out .msg__meta svg,
.tpl .msg__meta svg {
  color: var(--h-mint);
}

.tpl {
  display: grid;
  align-self: flex-end;
  width: min(18rem, 80%);
  overflow: hidden;
  border-radius: 0.875rem;
  border-bottom-right-radius: 0.25rem;
  background: var(--h-out);
  color: oklch(0.98 0.005 160);
}

.tpl__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  background: oklch(0 0 0 / 0.18);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tpl__body {
  padding: 0.55rem 0.8rem 0.45rem;
}

.tpl__btn {
  padding: 0.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.14);
  color: oklch(0.92 0.07 160);
  font-weight: 600;
  text-align: center;
}

.typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.875rem;
  border-bottom-left-radius: 0.25rem;
  background: var(--h-panel-2);
}

.typing span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--h-muted);
  opacity: 0.5;
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--h-line);
}

.composer__input {
  display: flex;
  flex: 1;
  align-items: center;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--h-line);
  border-radius: 0.5rem;
  background: oklch(1 0 0 / 0.04);
  color: var(--h-faint);
  white-space: nowrap;
}

.composer__btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--h-line-strong);
  border-radius: 0.5rem;
  color: var(--h-muted);
}

.composer__send {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--h-mint);
  color: oklch(0.2 0.04 165);
}

.float {
  position: absolute;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border: 1px solid var(--h-line-strong);
  border-radius: 0.875rem;
  background: oklch(0.215 0.014 165);
  box-shadow: 0 24px 50px -16px oklch(0 0 0 / 0.7), inset 0 1px 0 oklch(1 0 0 / 0.06);
  color: var(--h-ink);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: left;
}

.float strong {
  display: block;
  font-weight: 650;
}

.float strong + span {
  color: var(--h-muted);
  font-size: 0.75rem;
}

.float__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.6rem;
  background: oklch(0.83 0.12 160 / 0.14);
  color: var(--h-mint);
}

/* Placed over empty parts of the window: the title bar, the rail's
   free space, and the right of the incoming message. */
.float--a {
  top: -1.6rem;
  left: -3.5rem;
}

.float--b {
  top: 9rem;
  right: -3.75rem;
}

.float--c {
  top: 17rem;
  left: -4rem;
}

@media (min-width: 40rem) {
  .window__search,
  .composer__btn {
    display: inline-flex;
  }
}

@media (min-width: 48rem) {
  .window__body {
    grid-template-columns: 17rem minmax(0, 1fr);
    height: 33rem;
  }

  .list {
    display: block;
  }
}

@media (min-width: 64rem) {
  .window__body {
    grid-template-columns: 12.5rem 18rem minmax(0, 1fr);
  }

  .rail {
    display: flex;
  }
}

@media (min-width: 80rem) {
  .float {
    display: flex;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.9s var(--ease-out) both;
  }

  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.32s; }

  .stage {
    animation: rise-far 1.2s 0.3s var(--ease-out) both;
  }

  .hero__glow {
    animation: breathe 9s ease-in-out infinite;
  }

  .hero__badge-dot {
    animation: ping 2.4s var(--ease-out) infinite;
  }

  .window::before {
    animation: scan 7s linear 1.5s infinite;
  }

  .thread__msgs > * {
    animation: rise 0.7s var(--ease-out) both;
  }

  .thread__msgs > :nth-child(1) { animation-delay: 0.9s; }
  .thread__msgs > :nth-child(2) { animation-delay: 1.2s; }
  .thread__msgs > :nth-child(3) { animation-delay: 1.8s; }
  .thread__msgs > :nth-child(4) { animation-delay: 2.4s; }
  .thread__msgs > :nth-child(5) { animation-delay: 3s; }

  .typing span {
    animation: blink 1.3s ease-in-out infinite;
  }

  .typing span:nth-child(2) { animation-delay: 0.15s; }
  .typing span:nth-child(3) { animation-delay: 0.3s; }

  .float {
    animation: bob 7s ease-in-out infinite;
  }

  .float--b { animation-delay: -2.3s; }
  .float--c { animation-delay: -4.6s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

@keyframes rise-far {
  from {
    opacity: 0;
    transform: translateY(2.5rem) scale(0.98);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.65;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 oklch(0.83 0.12 160 / 0.5);
  }

  100% {
    box-shadow: 0 0 0 10px oklch(0.83 0.12 160 / 0);
  }
}

@keyframes scan {
  to {
    transform: translateX(250%);
  }
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Home: sections ---------- */

.section-title {
  max-width: 22ch;
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  letter-spacing: -0.026em;
}

.features {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.75rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.feature p {
  max-width: 46ch;
  margin-top: 0.625rem;
  color: var(--muted);
}

.how {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--surface);
}

.how__grid {
  display: grid;
  gap: 2.5rem;
}

.how__intro p {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.steps h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.steps p {
  max-width: 52ch;
  margin-top: 0.375rem;
  color: var(--muted);
}

@media (min-width: 60rem) {
  .how__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
  }

  .how__intro {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.trust {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.trust__inner {
  display: grid;
  gap: 1.25rem;
}

.trust p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 60rem) {
  .trust__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

.cta {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--deep);
  color: var(--deep-ink);
}

.cta h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 48ch;
  margin-top: 0.875rem;
  color: var(--deep-muted);
}

.cta a {
  color: var(--deep-ink);
}

.cta :focus-visible {
  outline-color: var(--deep-ink);
}

.cta .cta__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  max-width: none;
  margin-top: 2rem;
}

.cta__email {
  font-size: clamp(1.375rem, 0.95rem + 2.1vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

.cta__email:hover {
  text-decoration-thickness: 3px;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  letter-spacing: -0.03em;
}

.page-head__meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page-head__summary {
  max-width: 60ch;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
}

.toc {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
}

.toc__title {
  margin-bottom: 0.5rem;
  font-weight: 650;
}

.toc ol {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (min-width: 60rem) {
  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }

  .toc {
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0;
    background: none;
  }
}

.prose {
  max-width: var(--measure);
}

.prose > section + section {
  margin-top: 2.75rem;
}

.prose h2 {
  margin-bottom: 0.875rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 1.5rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose li::marker {
  color: var(--brand);
}

.prose strong {
  font-weight: 650;
}

.table-scroll {
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 650;
}

.callout {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Contact details */

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

.facts > div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.contact {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
}

.contact__aside h2 {
  font-size: 1.25rem;
}

.contact__aside p {
  max-width: 42ch;
  margin-top: 0.625rem;
  color: var(--muted);
}

.contact__aside p + h2 {
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .contact {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 4rem;
  }
}

.not-found {
  padding-block: clamp(4rem, 12vw, 8rem);
}

.not-found h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

.not-found p {
  max-width: 48ch;
  margin-top: 1rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 3rem;
}

.site-footer__name {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.site-footer__about p + p {
  margin-top: 0.5rem;
}

.site-footer__heading {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer__links {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

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