/*
 * Traceplain pre-launch landing. Tokens come from tokens.css (a copy of docs/brand/design-system/tokens.css).
 * Brand rules: colour means risk (risk-* only on risk badges), Lumen accent only for interaction, IBM Plex,
 * 4/6/8 px radii, rules instead of cards, no decorative shadows. Light (bone) and dark (ink) themes: the page follows
 * the system until the visitor picks one with the toggle (data-theme on <html>, see tokens.css).
 */
@import url('tokens.css');

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--accent-hover);
}

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

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

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  background: var(--surface-raised);
  padding: var(--space-2) var(--space-4);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 var(--space-6);
  }
}

/* Type */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0;
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 54px;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (min-width: 768px) {
  .display {
    font-size: 72px;
    line-height: 78px;
    letter-spacing: -0.015em;
  }
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}

@media (min-width: 768px) {
  .h2 {
    font-size: 48px;
    line-height: 54px;
  }
}

.h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 0;
}

.lead {
  color: var(--ink-secondary);
  max-width: 36rem;
  margin: var(--space-6) 0 0;
}

.muted {
  color: var(--ink-secondary);
}

.small {
  font-size: 14px;
  line-height: 20px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--ink);
}

.logo img {
  width: 28px;
  height: 28px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 14px;
  line-height: 20px;
}

.header-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The mark: ink stroke and Lumen trail, both from tokens so it reverses in the dark theme. */
.mark-ink {
  stroke: var(--ink);
}

.mark-accent {
  stroke: var(--accent);
}

.mark-dot {
  fill: var(--accent);
}

/* Language menu: plain links, so every language has its own shareable URL. */
.lang-menu {
  position: relative;
}

.lang-menu summary,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

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

.lang-menu summary:hover,
.theme-toggle:hover {
  background: var(--surface-alt);
}

.lang-menu summary svg,
.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 220px;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface-overlay);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}

.header-nav .lang-menu a {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}

.header-nav .lang-menu a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.header-nav .lang-menu a[aria-current] {
  font-weight: 600;
}

.lang-menu a .mono {
  width: 2ch;
  color: var(--ink-muted);
  font-size: 12px;
}

.theme-toggle {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun {
    display: block;
  }

  :root:not([data-theme='light']) .icon-moon {
    display: none;
  }
}

:root[data-theme='dark'] .icon-sun {
  display: block;
}

:root[data-theme='dark'] .icon-moon {
  display: none;
}

.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hide-sm {
    display: inline;
  }
}

/* Buttons and form */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 16px/24px var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* .btn's own display would otherwise win over the browser's default [hidden] rule (same specificity, later in the
   cascade) and show a hidden button, e.g. the native-share one before main.js confirms navigator.share exists. */
.btn[hidden] {
  display: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-control);
}

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

.waitlist {
  margin-top: var(--space-8);
  max-width: 34rem;
}

.waitlist .row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .waitlist .row {
    flex-direction: row;
  }
}

.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
}

.waitlist input[type='email']::placeholder {
  color: var(--ink-muted);
}

/* Optional audience select, same control styling as the email field. */
.audience {
  margin-top: var(--space-4);
}

.audience select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-2);
  padding: 0 calc(var(--space-4) + 20px) 0 var(--space-4);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  /* Own chevron, 16px in from the border (the native arrow sat on it), drawn with the theme's ink so it follows
     light/dark. */
  -webkit-appearance: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.75px), var(--ink-secondary) calc(50% - 0.75px),
      var(--ink-secondary) calc(50% + 0.75px), transparent calc(50% + 0.75px)) calc(100% - 22px) 50% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent calc(50% - 0.75px), var(--ink-secondary) calc(50% - 0.75px),
      var(--ink-secondary) calc(50% + 0.75px), transparent calc(50% + 0.75px)) calc(100% - 16px) 50% / 6px 6px no-repeat,
    var(--surface-raised);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  cursor: pointer;
}

.consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-4);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-secondary);
}

.consent input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}

.form-note {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.form-status {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  min-height: 20px;
}

.form-status[data-kind='setup'] {
  border: 1px dashed var(--border-control);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Hero */
.hero {
  padding: var(--space-16) 0;
}

.hero .wrap {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--space-24) 0;
  }

  .hero .wrap {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }
}

.hero .display {
  margin-top: var(--space-4);
}

/* Example reading (illustrative, mirrors the product's reading card) */
.reading {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  padding: var(--space-6);
}

.reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.badges {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  border: 1px solid transparent;
}

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

.badge-caution {
  color: var(--risk-caution);
  background: var(--risk-caution-bg);
  border-color: color-mix(in srgb, var(--risk-caution) 30%, transparent);
}

.reading-title {
  margin: var(--space-4) 0 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reading-body {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
}

.evidence {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.evidence li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-secondary);
}

.evidence .mono {
  color: var(--ink);
  font-weight: 500;
}

.reading-foot {
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.meter {
  display: flex;
  gap: 3px;
  margin-top: var(--space-1);
}

.meter span {
  width: 28px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--border-control);
}

.meter span.on {
  background: var(--ink);
  border-color: var(--ink);
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }
}

.section-alt {
  background: var(--surface-alt);
}

.split {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-16);
  }
}

.prose p {
  margin: 0 0 var(--space-4);
  color: var(--ink-secondary);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.cols {
  margin-top: var(--space-12);
  display: grid;
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .cols > * + * {
    border-left: 1px solid var(--rule);
  }

  .cols.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.col {
  padding: var(--space-6) 0;
}

@media (min-width: 768px) {
  .col {
    padding: var(--space-6);
  }

  .col:first-child {
    padding-left: 0;
  }

  .col:last-child {
    padding-right: 0;
  }
}

.col p {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
}

.steps {
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-4);
}

.steps .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-muted);
}

.steps .h3 {
  margin-top: var(--space-2);
}

.steps p {
  margin: var(--space-2) 0 0;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
}

/* Demo video. In cinema mode (main.js) the screen grows as it nears the viewport centre while a fixed backdrop darkens
   the rest of the page; label and caption fade with it. The video streams from Mux (scripts/build.py); a language
   without a Mux asset gets a striped placeholder. */
/* Narrower than the column at rest, so cinema mode has room to grow it. The top margin leaves room for that growth
   (up to 1.6x, ~150px upwards on wide screens) without covering the steps above (.tmp/ops/landing_mux/overlap_check.mjs). */
.demo {
  max-width: 880px;
  margin: calc(var(--space-24) + var(--space-8)) auto 0;
}

.demo-screen {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #0b0d10;
  transform-origin: center;
}

.demo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  background: var(--surface)
    repeating-linear-gradient(
      135deg,
      transparent 0 8px,
      color-mix(in srgb, var(--rule) 70%, transparent) 8px 9px
    );
  border: 1.5px dashed var(--border-control);
}

.demo-caption {
  margin: var(--space-4) 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-secondary);
}

.cinema-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40; /* under the sticky header (50): the header never changes */
  background: #08090c;
  opacity: 0;
  pointer-events: none;
}

.demo.is-cinema {
  position: relative;
  z-index: 45;
}

.limits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.limits li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-secondary);
}

.limits strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* Founder */
.founder {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

@media (max-width: 639px) {
  .founder {
    flex-direction: column;
    gap: var(--space-4);
  }
}

.portrait {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-control);
  object-fit: cover;
  background: var(--surface-raised);
}

/* FAQ */
.faq {
  margin-top: var(--space-8);
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) var(--space-8) var(--space-4) 0;
  font-weight: 600;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: var(--space-4);
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 var(--space-4);
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
  max-width: 48rem;
}


/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-8) 0 var(--space-12);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-secondary);
}

.site-footer .wrap {
  display: grid;
  gap: var(--space-6);
}

.disclaimer {
  margin: 0;
  max-width: 56rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--ink-secondary);
}

/* Simple pages (thanks, legal) */
.page {
  padding: var(--space-16) 0 var(--space-24);
}

.page .wrap {
  max-width: 760px;
}

.page h2 {
  font-size: 20px;
  line-height: 28px;
  margin: var(--space-8) 0 var(--space-2);
}

.page p,
.page li {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 24px;
}

.draft {
  border: 1px dashed var(--border-control);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
  margin-top: var(--space-6);
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* The trace: drawn once on load (400-800 ms, ease-out); static when motion is reduced. */
.trace-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 700ms ease-out 150ms forwards;
}

.trace-dot {
  opacity: 0;
  animation: appear 250ms ease-out forwards;
}

.trace-dot:nth-of-type(1) {
  animation-delay: 650ms;
}

.trace-dot:nth-of-type(2) {
  animation-delay: 750ms;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

/* Signup dock: a compact copy of the signup form, bottom right, that main.js fades in (same scroll-linked fade as
   the sections) while no in-page form is on screen. Under the cinema backdrop (40) so cinema mode darkens it too. */
.signup-dock {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 30;
  width: 22rem;
  max-width: calc(100vw - 2 * var(--space-4));
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgb(12 15 20 / 14%);
  opacity: 0;
  will-change: opacity, transform;
}

.signup-dock .waitlist {
  margin: 0;
}

.signup-dock .waitlist .row {
  flex-direction: row;
  gap: var(--space-2);
}

.signup-dock .waitlist input[type='email'] {
  min-height: 44px;
}

.signup-dock .btn {
  min-height: 44px;
  white-space: nowrap;
}

/* Same optional select as the hero form, tightened to fit the compact dock. */
.signup-dock .audience {
  margin-top: var(--space-3);
}

.signup-dock .audience select {
  min-height: 40px;
  margin-top: var(--space-1);
}

.signup-dock .consent {
  margin-top: var(--space-3);
  font-size: 12px;
  line-height: 16px;
}

.signup-dock .consent input {
  width: 16px;
  height: 16px;
  margin-top: 0;
}

.signup-dock .form-status:empty {
  display: none;
}

@media (max-width: 639px) {
  /* Cinema mode barely grows the screen at this width: the default gap is enough. */
  .demo {
    margin-top: var(--space-12);
  }

  .signup-dock {
    right: var(--space-4);
    left: var(--space-4);
    bottom: var(--space-4);
    width: auto;
    max-width: none;
  }
}

@media print {
  .signup-dock {
    display: none !important;
  }
}

/* Scroll fade: main.js sets each item's opacity/offset from its position (fades in from the bottom, out under the
   sticky header, both directions). Before main.js runs, html.reveal hides only below-the-hero items so nothing
   flashes; without JS, with reduced motion or in print everything is simply visible. */
.reveal:not(.reveal-live) main > section:not(.hero) > .wrap > * {
  opacity: 0;
}

.reveal [data-reveal] {
  will-change: opacity, transform;
}

@media print {
  .reveal [data-reveal],
  .demo > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .cinema-backdrop {
    display: none;
  }
}

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

  .reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .trace-path,
  .trace-dot {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Spacing helpers that replace inline styles. */
.after-label {
  margin-top: var(--space-4);
}

.waitlist .row {
  margin-top: var(--space-3);
}

.back {
  margin-top: var(--space-12);
}

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

/* Share band (bottom of the landing) and share widget (also on the thanks page). */
.btn-x {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.btn-x:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--surface));
  border-color: color-mix(in srgb, var(--ink) 85%, var(--surface));
  color: var(--surface);
}

/* LinkedIn's own blue: white on it is 5.6:1 in both themes. */
.btn-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.btn-linkedin:hover {
  background: #004182;
  border-color: #004182;
  color: #ffffff;
}

/* WhatsApp's own dark teal (not the brighter brand green, which fails contrast): white on it is 7.7:1. */
.btn-whatsapp {
  background: #075e54;
  border-color: #075e54;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #054940;
  border-color: #054940;
  color: #ffffff;
}

/* A darker shade of Telegram's blue (the brand sky blue fails contrast): white on it is 5.7:1. */
.btn-telegram {
  background: #176c9c;
  border-color: #176c9c;
  color: #ffffff;
}

.btn-telegram:hover {
  background: #11536f;
  border-color: #11536f;
  color: #ffffff;
}

/* Touch-only share buttons (OS share sheet + WhatsApp/Telegram), kept in the same row and order as X/LinkedIn/copy:
   touch primary input, not screen width, so a desktop browser never shows them just because its window is narrow.
   The native-share button additionally stays hidden (see main.js) where navigator.share doesn't exist. */
.share-touch-only {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .share-touch-only {
    display: inline-flex;
  }
}

.share .btn svg {
  width: 18px;
  height: 18px;
}

/* LinkedIn's square mark reads smaller than X's at the same size. */
.share .btn-linkedin svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 639px) {
  .share .btn {
    flex: 1 1 100%;
  }
}

.share-band .lead-sm {
  margin: var(--space-3) 0 0;
  max-width: 40rem;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-secondary);
}

.share-band {
  padding: var(--space-12) 0;
}

.share-band .wrap {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.share-band p {
  margin: var(--space-1) 0 0;
}

@media (min-width: 1024px) {
  .share-band .wrap {
    grid-template-columns: 1fr auto;
  }

  .share-band .share {
    margin-top: 0;
  }
}

.share-widget .form-status {
  min-height: 0;
}

/* Traceplain's own accounts in the footer. */
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.footer-social a:hover {
  color: var(--ink);
}

/* Icon-only link (X): a 32 px tap area around the 16 px logo, without moving it. */
.footer-social a.icon-only {
  padding: 8px;
  margin: -8px -2px;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}
