/* Leadlock Digital: one stylesheet for every page.
   Colours come from the logo (blue, teal, green on cream). Every text pair
   is at least 4.5:1, every control edge at least 3:1. No text below 16px. */

@font-face {
  font-family: "Caprasimo";
  src: url("/assets/fonts/caprasimo-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5ead8;          /* the logo's own background */
  --surface: #fbf7f0;
  --surface-2: #efe2cc;
  --text: #16212b;
  --muted: #44505c;
  --line: #5a6672;        /* control borders, 5.5:1 on surface */
  --hairline: rgba(22, 33, 43, .14);
  --blue: #005a91;        /* logo blue, darkened for text and buttons */
  --blue-dark: #004f80;
  --teal: #006a84;        /* logo teal, darkened for text */
  --green: #0b6b44;       /* logo green, darkened for text */
  --dark: #0c2536;
  --on-dark: #f5ead8;
  --on-dark-muted: #b9cbd8;
  --on-dark-accent: #7fd6ee;
  --on-dark-green: #7ddc9a;
  --focus: #005a91;
  --brand-gradient: linear-gradient(90deg, #0064a0, #00a0c8 55%, #14b478);
  --radius: 24px;
  --radius-lg: 36px;
  --gutter: 16px;
  --max: 72rem;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Caprasimo", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;   /* 18px */
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }
svg { flex: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 100;
  padding: 12px 20px;
  min-height: 48px;
  background: var(--dark);
  color: var(--on-dark);
  font-weight: 700;
  border-radius: 12px;
  transform: translateY(-150%);
}
.skip:focus { transform: none; color: var(--on-dark); }

/* ---------- Buttons and tap targets (48px minimum) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 48px;
  padding: 10px 26px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 700 1.0625rem/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  flex-wrap: wrap;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn svg { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 700;
}
.link-arrow svg { width: 18px; height: 18px; }

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.chip-link:hover { color: var(--text); background: #fff; text-decoration: none; }
.chip-link svg { width: 18px; height: 18px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 44px; height: 44px; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; letter-spacing: -.01em; }
.brand-name span { font-size: 1rem; font-weight: 800; letter-spacing: .26em; color: var(--muted); margin-top: 4px; }

.nav-desk { display: none; }
.nav-desk a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.nav-desk a:hover { background: var(--surface); }
.nav-desk a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.head-cta { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }

.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 18px 30px rgba(12, 37, 54, .12);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.menu-panel ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.menu-panel .btn { width: 100%; margin-top: 16px; }

@media (max-width: 359px) {
  .brand-name b { font-size: 1.25rem; }
  .site-header .wrap { gap: 8px; }
  .icon-btn { padding: 0 10px; }
}
@media (min-width: 1100px) {
  .nav-desk { display: flex; gap: 2px; }
  .head-cta { display: inline-flex; min-height: 48px; padding: 8px 20px; font-size: 1rem; }
  .menu, .head-call { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.measure { max-width: 46rem; }
.small-print { font-size: 1rem; color: var(--muted); }

.grid-2 {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(12, 37, 54, .08);
}
a.card:hover { background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 10px 26px rgba(12, 37, 54, .12); }
.card h3, .card .card-title { font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.2; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 700; font-size: 1rem; }
.tag {
  align-self: flex-start;
  padding: 2px 12px;
  border-radius: 999px;
  background: #d9ecd9;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
}
.num { font-family: var(--font-display); color: var(--teal); font-size: 1.125rem; }

.panel-dark {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  --focus: var(--on-dark-accent);
}
.panel-dark a:not(.btn) { color: var(--on-dark-accent); }
.panel-dark .eyebrow { color: var(--on-dark-accent); }
.panel-dark .muted, .panel-dark .lead { color: var(--on-dark-muted); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; margin-top: 3px; color: var(--green); }
.panel-dark .check-list svg { color: var(--on-dark-green); }

.brand-bar { height: 6px; border-radius: 6px; background: var(--brand-gradient); width: 96px; margin-bottom: 20px; }

/* ---------- Hero ---------- */

.hero { padding-block: 20px clamp(40px, 6vw, 88px); }
.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: center;
}
.hero h1 { margin-bottom: 14px; }
.hero .lead { margin-bottom: 20px; }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn { width: 100%; }
.services-link { justify-self: start; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 1rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--green); }
.home-h1 span { display: block; }
.home-h1 .accent { color: var(--blue); }

@media (min-width: 600px) {
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; }
  .hero-actions .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero { padding-top: clamp(40px, 6vw, 72px); }
}
/* Phone held sideways: keep the essentials above the fold */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 12px; }
  .home-h1 { font-size: 2rem; }
  .home-h1 span { display: inline; }
  .hero .lead { margin-bottom: 12px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}

/* Example conversation card */
.example {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 12px 32px rgba(12, 37, 54, .14);
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}
.example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.example-head .eyebrow { margin: 0; }
.badge { padding: 2px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 1rem; font-weight: 700; }
.bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 16px; border-radius: 20px; font-size: 1rem; line-height: 1.5; }
.bubble b { display: block; font-size: 1rem; }
.bubble.them { align-self: flex-start; background: #e6dccb; color: var(--text); border-bottom-left-radius: 6px; }
.bubble.us { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.example .check-list { font-size: 1rem; }
.example-status { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--green); font-weight: 700; font-size: 1rem; }
.example-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #14b478; flex: none; }

/* Industry list */
.industries { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.industries li { padding: 4px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 1rem; }

/* Steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 1rem; }
.step blockquote { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid #00a0c8; background: var(--bg); border-radius: 0 12px 12px 0; font-size: 1rem; }
.step blockquote p { margin: 0 0 4px; color: var(--text); }
.step blockquote footer { color: var(--green); font-weight: 700; }

/* Stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.stats li { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; }
.stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1; color: var(--blue); }
.stats span { color: var(--muted); font-size: 1rem; }

/* Founder */
.avatar {
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #00a0c8;
  color: #fff; font-family: var(--font-display); font-size: 2rem;
}
.nowrap { white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.3;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

/* Article */
.article-body { max-width: 44rem; }
.article-body h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
.article-body h3 { margin-top: 1.4em; }
.article-body ul { padding-left: 1.25em; }
.article-body li { margin-bottom: .5em; }
.pullquote { margin: 28px 0; padding: 26px 30px; border-radius: var(--radius-lg); background: #dcefe2; }
.pullquote p { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; color: #0a4f33; }
.summary-box { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; max-width: 44rem; }
.summary-box h2 { font-size: 1.375rem; margin-bottom: 12px; }
.summary-box ul { margin: 0; padding-left: 1.2em; }
.summary-box li { margin-bottom: 8px; }
.author { display: flex; gap: 18px; align-items: flex-start; max-width: 44rem; margin-top: 40px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--surface); }
.author .avatar { width: 56px; height: 56px; font-size: 1.25rem; flex: none; }
.author p { margin-bottom: 8px; }
.article-meta { color: var(--teal); font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.post:hover { background: #fff; color: var(--text); text-decoration: none; }
.post .card-title { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.15; display: block; margin: 6px 0 8px; }
.post p { margin: 0; color: var(--muted); }
.post .go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: var(--on-dark); }
.post .go svg { width: 22px; height: 22px; }
@media (max-width: 479px) { .post { grid-template-columns: 1fr; } .post .go { display: none; } }

/* Legal */
.toc { list-style: none; margin: 0; padding: 0; columns: 2 18rem; column-gap: 32px; }
.toc a { display: flex; gap: 12px; align-items: center; min-height: 48px; break-inside: avoid; border-bottom: 1px solid var(--hairline); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.toc a:hover { color: var(--blue); }
.toc .num { min-width: 3ch; }
.legal-section { max-width: 48rem; padding-top: 32px; }
.legal-section h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem); }
.legal-section h3 { margin-top: 1.4em; font-size: 1.25rem; }
.legal-section ul { padding-left: 1.25em; }
.legal-section li { margin-bottom: .5em; }
.info-box { background: var(--surface); border-radius: var(--radius); padding: 22px 26px; }

/* Forms */
.form-card { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 12px 32px rgba(12, 37, 54, .12); --focus: var(--blue); }
.form-card a { color: var(--blue); }
.fields { display: grid; gap: 16px; }
@media (min-width: 560px) { .fields .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.fields .pair { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1rem; }
.field input, .field select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: 400 1.0625rem/1.3 var(--font-body);  /* 17px: no zoom on iPhone */
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316212b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus-visible, .field select:focus-visible { outline-offset: 2px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #a4161a; }
.field .error { display: block; margin-top: 6px; color: #a4161a; font-weight: 700; font-size: 1rem; }
.field .error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 8px 0; font-size: 1rem; color: var(--muted); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-status { margin: 12px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); }
.form-status.bad { color: #a4161a; }
.hp { display: none !important; }

/* CTA band */
.cta-band { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
.cta-band h2 { color: var(--on-dark); max-width: 14ch; }

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

.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 64px 0 28px; margin-top: 0; --focus: var(--on-dark-accent); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid h2 { font-size: 1.125rem; color: var(--on-dark); margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: flex; align-items: center; min-height: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 14px; }
.footer-brand .brand-name b { color: var(--on-dark); }
.footer-brand .brand-name span { color: var(--on-dark-muted); }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(245, 234, 216, .12); }
.socials svg { width: 22px; height: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(245, 234, 216, .18); font-size: 1rem; }
.linkish { background: none; border: 0; padding: 0; min-height: 48px; color: var(--on-dark); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Cookie choice ---------- */

.consent-bar {
  position: fixed;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 46rem;
  margin-inline: auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(12, 37, 54, .3);
  --focus: var(--on-dark-accent);
}
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1 1 16rem; }
.consent-bar a { color: var(--on-dark-accent); }
.consent-bar .btn-row { gap: 8px; }
.consent-bar .btn { min-height: 48px; padding: 6px 18px; font-size: 1rem; }
.consent-bar .btn-ghost { color: var(--on-dark); border-color: var(--on-dark-muted); }
.consent-bar .btn-ghost:hover { background: rgba(245, 234, 216, .12); color: #fff; }

@media print {
  .site-header, .site-footer, .consent-bar, .menu { display: none !important; }
  body { background: #fff; }
}

.card > svg { width: 28px; height: 28px; color: var(--blue); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--hairline); color: var(--text); font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--blue); }
.wrap.measure { max-width: calc(var(--max) + var(--gutter) * 2); }
.wrap.measure > * { max-width: 46rem; }

/* ---------- Motion (only when the visitor hasn't asked for less) ----------
   site.js adds .js-motion to <html> only when prefers-reduced-motion is
   "no-preference" and IntersectionObserver exists. With reduced motion or
   no JavaScript none of this applies and everything is simply visible.
   Enter = opacity + small rise + blur, on a no-overshoot curve. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-soft: cubic-bezier(.32, .72, 0, 1); }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal {
    opacity: 0; transform: translateY(12px); filter: blur(4px);
    transition: opacity .5s var(--ease-soft), transform .5s var(--ease-out), filter .5s var(--ease-soft);
    transition-delay: var(--delay, 0ms);
  }
  .js-motion .reveal.is-in { opacity: 1; transform: none; filter: none; }

  .js-motion [data-demo].is-ready .bubble,
  .js-motion [data-demo].is-ready .example-status {
    opacity: 0; transform: translateY(8px) scale(.97); filter: blur(3px);
    transition: opacity .32s var(--ease-soft), transform .32s var(--ease-out), filter .32s var(--ease-soft);
  }
  .js-motion [data-demo].is-ready .bubble.us { transform-origin: bottom right; }
  .js-motion [data-demo].is-ready .bubble.them { transform-origin: bottom left; }
  .js-motion [data-demo].is-ready .is-in { opacity: 1; transform: none; filter: none; }

  /* hover and press feedback: small and quick */
  .js-motion a.card, .js-motion .post { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s linear; }
  .js-motion a.card:hover, .js-motion .post:hover { transform: translateY(-2px); }
  .js-motion .btn { transition: background-color .15s linear, border-color .15s linear, transform .12s var(--ease-out); }
  .js-motion .btn:active { transform: scale(.98); }
}
/* Safety net: if the preference flips while the page is open, end all motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.typing { display: none; }
.bubbles { position: relative; }
.js-motion [data-demo].is-ready .typing {
  position: absolute; left: 0;   /* sits in the next message's slot: no layout shift */
  display: inline-flex; gap: 5px; align-items: center;
  padding: 14px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: #e6dccb;
}
.js-motion [data-demo].is-ready .typing.us { left: auto; right: 0; background: #d7e4ee; border-radius: 20px; border-bottom-right-radius: 6px; }
.js-motion [data-demo].is-ready .typing[hidden] { display: none; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #44505c; animation: ll-dot 1s cubic-bezier(.45, 0, .55, 1) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ll-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.replay {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 12px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--text);
  font: 700 1rem/1 var(--font-body); cursor: pointer;
}
.replay:hover { background: var(--bg); }
.replay svg { width: 18px; height: 18px; }
.replay[hidden] { display: inline-flex; visibility: hidden; } /* space kept so nothing jumps when it appears */

@media print {
  .reveal, .bubble, .example-status { opacity: 1 !important; transform: none !important; }
  .typing, .replay { display: none !important; }
}
