/*
 * borsazekam.com: the same identity as the Mini App (Iznik cobalt, Bricolage Grotesque
 * for headings, Instrument Sans for text). Fonts are served from this site, so a page
 * makes no third-party requests (the cookie policy says so).
 * The HTML is generated by backend/src/cosmo/site/; edit this file by hand.
 */
@font-face {
  font-family: 'Bricolage';
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Instrument';
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument';
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}


/*
 * Two surfaces: "night" bands (deep cobalt with faint chart-paper grid lines) carry
 * the header, the hero and every page title; the reading parts sit on cool paper.
 * The one loud element is the example Telegram conversation in the hero.
 */
:root {
  --paper: #eef1f6;
  --sheet: #ffffff;
  --rule: #dbe1ec;
  --ink: #121c33;
  --ink-soft: #59657f;
  --cobalt: #2447a8;
  --cobalt-deep: #1a3683;
  --cobalt-wash: #e3e9f8;
  --on-cobalt: #ffffff;
  --night: #0e1a3a;
  --night-raised: #172751;
  --night-ink: #eef2ff;
  --night-soft: #a8b5d8;
  --night-rule: rgba(168, 181, 216, 0.16);
  --grid: rgba(168, 181, 216, 0.07);
  --rise: #17794f;
  --rise-wash: #ddf1e6;
  --fall: #c13a30;
  --fall-wash: #fbe5e2;
  --amber: #8f5400;
  --amber-wash: #fbefd9;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --text: 'Instrument', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1226;
    --sheet: #131d38;
    --rule: #243155;
    --ink: #e7ecf6;
    --ink-soft: #95a1bd;
    --cobalt: #8aa8ff;
    --cobalt-deep: #aec3ff;
    --cobalt-wash: #1d2d5c;
    --on-cobalt: #08102a;
    --night: #08102a;
    --night-raised: #142249;
    --rise: #4fd394;
    --rise-wash: #123a30;
    --fall: #ff7d70;
    --fall-wash: #43202a;
    --amber: #f2b553;
    --amber-wash: #3d3020;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 760;
}

h3 {
  font-size: 21px;
  font-weight: 720;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sheet);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- night bands ---------- */
.night {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
}

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

/* Chart paper: a faint grid that fades out towards the bottom of each band. */
.hero::before,
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}

.hero > .wrap,
.page-head > .wrap {
  position: relative;
}

/* ---------- header ---------- */
.bar {
  z-index: 5;
  border-bottom: 1px solid var(--night-rule);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.menu-wide ul,
.menu-narrow ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-wide ul {
  display: flex;
  gap: 4px;
}

.menu-wide a,
.menu-narrow a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--night-soft);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.menu-wide a:hover,
.menu-narrow a:hover {
  color: var(--night-ink);
  background: var(--night-raised);
}

.menu-wide a[aria-current='page'],
.menu-narrow a[aria-current='page'] {
  color: var(--night-ink);
  background: var(--night-raised);
}

.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--night-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.night .bar-cta {
  color: var(--night);
}

.bar-cta svg {
  width: 18px;
  height: 18px;
}

.menu-narrow {
  display: none;
}

.menu-narrow summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--night-rule);
  border-radius: 12px;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.menu-narrow summary::-webkit-details-marker {
  display: none;
}

.menu-narrow[open] summary {
  background: var(--night-raised);
}

.menu-narrow nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--gutter) 16px;
  background: var(--night);
  border-bottom: 1px solid var(--night-rule);
}

.menu-narrow a {
  padding: 12px;
  font-size: 18px;
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.night .cta {
  background: var(--night-ink);
  color: var(--night);
}

.cta:hover {
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  width: 20px;
  height: 20px;
}

.ghost {
  font-weight: 650;
}

/* ---------- hero ---------- */
.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 790;
  line-height: 1.02;
  max-width: 12ch;
}

.lead {
  margin: 24px 0 0;
  max-width: 33em;
  color: var(--night-soft);
  font-size: clamp(18px, 2vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 34px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--night-soft);
  font-size: 15px;
}

/* The example conversation: a light phone screen on the dark band. */
.phone {
  justify-self: center;
  width: min(100%, 384px);
  margin: 0;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 0 0 8px var(--night-raised),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}

.phone-top img {
  border-radius: 50%;
}

.phone-top div {
  display: grid;
  line-height: 1.25;
}

.phone-top strong {
  font-size: 16px;
}

.phone-top div span {
  color: var(--ink-soft);
  font-size: 13px;
}

.example {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amber-wash);
  color: var(--amber);
  font-size: 13px;
  font-weight: 650;
}

.thread {
  display: grid;
  gap: 10px;
  padding: 16px 14px 18px;
}

.msg {
  margin: 0;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.msg.me {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.msg.bot {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.msg.bot p {
  margin: 0;
}

.msg.card {
  max-width: 94%;
  padding: 14px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.card-head strong {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.card-head span {
  color: var(--ink-soft);
  font-size: 13px;
}

.msg.card .card-view {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.chip {
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
}

.chip.rise {
  background: var(--rise-wash);
  color: var(--rise);
}

.msg.card .card-text {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.msg.card .fit-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.fit {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.4;
}

.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.mark.ok {
  background: var(--rise-wash);
  color: var(--rise);
}

.mark.fail {
  background: var(--fall-wash);
  color: var(--fall);
}

.msg.bot .score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.score strong {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--amber);
}

.score span {
  color: var(--ink-soft);
  font-size: 13px;
}

.phone figcaption {
  padding: 12px 18px 16px;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

/* The one orchestrated moment: the conversation arrives message by message. */
@media (prefers-reduced-motion: no-preference) {
  .thread > * {
    animation: arrive 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .thread > :nth-child(2) {
    animation-delay: 0.5s;
  }

  .thread > :nth-child(3) {
    animation-delay: 1.3s;
  }

  .thread > :nth-child(4) {
    animation-delay: 1.8s;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- home ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.promises > div {
  padding: 0 28px;
  border-left: 1px solid var(--rule);
}

.promises > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.promises h2 {
  font-size: 22px;
}

.promises p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.block {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--rule);
}

.block-head {
  max-width: 40em;
  margin-bottom: 36px;
}

.block-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

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

.tile {
  display: block;
  padding: 26px;
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.tile:hover {
  border-color: var(--cobalt);
}

.tile p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.markets li {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
  font-weight: 650;
  font-size: 15px;
}

/* ---------- plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  padding: 28px;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.plan.pro {
  border: 2px solid var(--cobalt);
}

.plan h3 {
  font-size: 24px;
}

.price {
  margin: 6px 0 20px;
  color: var(--ink-soft);
}

.price strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.plan li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan li span:last-child {
  font-weight: 650;
  text-align: right;
}

/* ---------- closing band ---------- */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(48px, 7vw, 88px);
  padding-top: clamp(32px, 5vw, 52px);
  padding-bottom: clamp(32px, 5vw, 52px);
  border-radius: 28px;
  background: var(--night);
  color: var(--night-ink);
  /* the wrap's side padding becomes the panel's inner padding */
  max-width: calc(1120px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  padding-left: clamp(24px, 5vw, 56px);
  padding-right: clamp(24px, 5vw, 56px);
}

.closing p {
  margin: 10px 0 0;
  color: var(--night-soft);
}

.closing .cta {
  background: var(--night-ink);
  color: var(--night);
}

/* ---------- inner pages ---------- */
.page-head .wrap {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-head h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 780;
}

.page-head p {
  margin: 14px 0 0;
  max-width: 38em;
  color: var(--night-soft);
  font-size: 19px;
}

.features {
  padding-top: 24px;
  padding-bottom: 32px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 16px 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 16px;
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row h2 {
  font-size: 26px;
}

.feature-row p {
  margin: 0 0 14px;
  max-width: 40em;
}

.feature-row ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.feature-row li + li {
  margin-top: 6px;
}

/* A real sequence, so it is numbered. */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 40px 0 16px;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 36px 76px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 780;
}

/* the line joining the numbers */
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}

.steps h2 {
  padding-top: 8px;
  font-size: 24px;
}

.steps p {
  margin: 8px 0 0;
  max-width: 36em;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--rule);
}

.split h2 {
  font-size: 24px;
}

.split p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

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

.qa-grid h2 {
  font-size: 22px;
}

.qa-grid p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.faq {
  max-width: 820px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--cobalt);
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: -6px 0 24px;
  max-width: 40em;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.contact-card {
  display: block;
  padding: 26px;
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.contact-card:hover {
  border-color: var(--cobalt);
}

.contact-card h2 {
  font-size: 15px;
  font-family: var(--text);
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.contact-card p {
  margin: 6px 0 10px;
  color: var(--cobalt);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-card span {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- about ---------- */
.maker p {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--ink-soft);
}

.about {
  display: grid;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.about p {
  margin: 14px 0 0;
  max-width: 40em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.principles > div {
  padding: 24px;
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.principles p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- blog ---------- */
.blog {
  padding-top: 40px;
  padding-bottom: 72px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}

.post-card:hover {
  border-color: var(--cobalt);
}

.post-card :is(h2, h3) {
  font-size: 21px;
  line-height: 1.2;
}

.post-card :is(h2, h3) a {
  color: var(--ink);
  text-decoration: none;
}

/* the whole card is the link target */
.post-card {
  position: relative;
}

.post-card :is(h2, h3) a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.post-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.post-card .post-meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
}

.post-meta span::before,
.byline span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.6;
}

.post-head h1 {
  max-width: 22ch;
  font-size: clamp(32px, 4.6vw, 52px);
}

.crumbs {
  margin: 0 0 14px !important;
  font-size: 15px;
}

.crumbs a {
  color: var(--night-soft);
  font-weight: 650;
}

.page-head .byline {
  margin-top: 20px;
  font-size: 16px;
}

.byline a {
  font-weight: 650;
}

.post {
  max-width: calc(720px + 2 * var(--gutter));
  padding-top: 48px;
  padding-bottom: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.post h2 {
  margin: 44px 0 12px;
  font-size: 27px;
}

.post p {
  margin: 0 0 18px;
}

.post ul,
.post ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.post li + li {
  margin-top: 8px;
}

.post table {
  width: 100%;
  margin: 8px 0 22px;
  border-collapse: collapse;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-size: 16px;
}

.post th,
.post td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.post tr:last-child th,
.post tr:last-child td {
  border-bottom: 0;
}

.post th {
  width: 48%;
  color: var(--ink-soft);
  font-weight: 500;
}

.post td {
  font-weight: 650;
}

.post-note {
  margin-top: 40px !important;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--amber-wash);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.post-author {
  color: var(--ink-soft);
  font-size: 16px;
}

.related {
  padding-top: 40px;
  padding-bottom: 16px;
  border-top: 1px solid var(--rule);
}

.related > h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

/* ---------- legal documents ---------- */
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.toc {
  position: sticky;
  top: 24px;
  font-size: 15px;
}

.toc p {
  margin: 0 0 10px;
  font-weight: 700;
}

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

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
}

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

.doc-body {
  max-width: 720px;
}

.doc-body section {
  scroll-margin-top: 16px;
}

.doc-body section + section {
  margin-top: 40px;
}

.doc-body h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.doc-body p {
  margin: 0 0 14px;
}

.doc-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-body li + li {
  margin-top: 6px;
}

/* ---------- footer ---------- */
.foot {
  padding: 56px 0 48px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot .brand {
  color: var(--ink);
  margin-right: 0;
}

.foot-brand p {
  margin: 14px 0 0;
  max-width: 24em;
}

.foot-grid > nav > p,
.foot-grid > div > p:first-child:not(:only-child) {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
}

.foot ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot ul a {
  color: var(--ink-soft);
  text-decoration: none;
}

.foot ul a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.disclaimer {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  
  font-size: 14px;
}

/* ---------- small screens ---------- */
/* Six menu items need about 1040px next to the logo and the button. */
@media (max-width: 1040px) {
  .menu-wide {
    display: none;
  }

  .menu-narrow {
    display: block;
  }
}

@media (max-width: 900px) {
  .bar-row {
    gap: 10px;
  }

  .hero-grid,
  .plans,
  .tiles,
  .split,
  .qa-grid,
  .contact,
  .principles,
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0;
  }

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

  .promises > div {
    padding: 0;
    border-left: 0;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--sheet);
    border: 1px solid var(--rule);
  }

  .doc {
    gap: 32px;
    padding-top: 32px;
  }
}

@media (max-width: 420px) {
  .bar-cta span {
    display: none;
  }

  .bar-cta {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .tile,
  .post-card,
  .contact-card,
  .faq summary::after {
    transition: none;
  }
}
