/* ==========================================================================
   core.css - shared FaaStr landing-page framework (hand-written, no build).
   Theme-agnostic: every colour, font, radius and size comes from the --ds-*
   custom properties a product defines in tokens/tokens.css (contract in
   design-systems/_core/README.md). Canonical copy lives here; each product
   bundle and each consuming site holds a byte-identical copy, enforced by
   `node tools/ds-check.mjs --check`. Edit THIS file, then run
   `node tools/ds-check.mjs --sync`.
   ========================================================================== */

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ds-font-body);
  font-size: var(--ds-step-0);
  line-height: 1.55;
  color: var(--ds-ink);
  background: var(--ds-surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
.ds-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- layout -------------------------------------------------------------- */
.ds-wrap { width: 100%; max-width: var(--ds-maxw); margin-inline: auto; padding-inline: var(--ds-space-5); }
.ds-section { padding-block: var(--ds-space-9); }
.ds-section--tight { padding-block: var(--ds-space-7); }
.ds-section--flush { padding-block: 0; }
.ds-section--alt { background: var(--ds-surface-alt); }
.ds-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-8); align-items: center;
}
.ds-split--reverse > :first-child { order: 2; }
.ds-stack { display: flex; flex-direction: column; gap: var(--ds-space-5); }
.ds-center { text-align: center; align-items: center; }
@media (max-width: 900px) {
  .ds-section { padding-block: var(--ds-space-8); }
  .ds-split { grid-template-columns: 1fr; gap: var(--ds-space-6); }
  .ds-split--reverse > :first-child { order: 0; }
}

/* ---- type ---------------------------------------------------------------- */
.ds-display {
  margin: 0;
  font-family: var(--ds-font-display);
  font-weight: var(--ds-display-weight, 400);
  font-size: var(--ds-step-4);
  line-height: var(--ds-display-leading, .92);
  letter-spacing: var(--ds-display-tracking, -.01em);
  text-transform: var(--ds-display-transform, uppercase);
}
.ds-display--accent { color: var(--ds-accent); }
.ds-display--primary { color: var(--ds-primary); }
.ds-display--xl { font-size: var(--ds-step-5); }
.ds-display--xxl { font-size: var(--ds-step-6); }
.ds-lead { font-size: var(--ds-step-1); line-height: 1.5; color: var(--ds-ink); }
.ds-muted { color: var(--ds-muted); }
.ds-hand {
  font-family: var(--ds-font-hand);
  font-weight: 500;
  font-size: var(--ds-step-2);
  line-height: 1.12;
  color: var(--ds-ink);
}
.ds-link { font-weight: 700; text-underline-offset: 3px; }
.ds-link:hover { color: var(--ds-accent); }

/* ---- buttons ------------------------------------------------------------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2);
  border: 0; cursor: pointer; text-decoration: none;
  font: 700 var(--ds-step-1)/1 var(--ds-font-body);
  padding: .85em 2.2em;
  border-radius: var(--ds-radius-btn, var(--ds-radius-pill));
  background: var(--ds-btn-bg, var(--ds-primary)); color: var(--ds-on-primary);
  transition: filter .15s ease, transform .1s ease;
}
.ds-btn:hover { filter: brightness(1.18); }
.ds-btn:active { transform: scale(.97); }
.ds-btn:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 3px; }
.ds-btn[disabled], .ds-btn.is-disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.ds-btn--accent { background: var(--ds-accent); color: var(--ds-on-accent); }
.ds-btn--ghost { background: transparent; color: var(--ds-primary); box-shadow: inset 0 0 0 2px var(--ds-primary); }
.ds-btn--ghost:hover { filter: none; background: var(--ds-primary); color: var(--ds-on-primary); }
.ds-btn--xl { font-size: var(--ds-step-2); padding: .8em 3.2em; }
.ds-btn--sm { font-size: var(--ds-step-0); padding: .65em 1.5em; }

/* ---- navigation ---------------------------------------------------------- */
.ds-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); padding-block: var(--ds-space-4); }
.ds-nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.ds-nav__brand img { height: 30px; width: auto; display: block; }
.ds-nav__links { display: flex; align-items: center; gap: var(--ds-space-6); font-weight: 600; }
.ds-nav__links a:not(.ds-btn) { text-decoration: none; color: var(--ds-muted); }
.ds-nav__links a:not(.ds-btn):hover { color: var(--ds-ink); }
@media (max-width: 640px) { .ds-nav__links a:not(.ds-btn) { display: none; } }

/* ---- hero ---------------------------------------------------------------- */
.ds-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--ds-space-7); align-items: center; }
.ds-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-5); }
.ds-hero__logo { width: min(560px, 100%); height: auto; display: block; }
.ds-hero__media { align-self: end; max-height: 600px; overflow: hidden; }
@media (max-width: 900px) {
  .ds-hero { grid-template-columns: 1fr; text-align: center; }
  .ds-hero__copy { align-items: center; }
  .ds-hero__logo { margin-inline: auto; }
  .ds-hero__media { max-height: 520px; }
}

/* ---- phone mockup: screenshot seated behind a transparent device frame ----
   The screenshot is stretched to fill the frame opening, as in the source artwork.
   Default frame = dynamic-island phone (774x1588); --notch = notched phone (543x1099). */
.ds-phone {
  --ds-phone-w: 300px;
  --hole-l: 4.6%; --hole-t: 2%; --hole-w: 91.1%; --hole-h: 96%;
  position: relative; width: var(--ds-phone-w); max-width: 100%;
  aspect-ratio: 774 / 1588; margin-inline: auto;
  filter: drop-shadow(0 24px 36px rgba(17, 17, 24, .16));
}
.ds-phone--notch { aspect-ratio: 543 / 1099; --hole-l: 5%; --hole-t: 2%; --hole-w: 90%; --hole-h: 96%; }
.ds-phone--sm { --ds-phone-w: 200px; }
.ds-phone--md { --ds-phone-w: 260px; }
.ds-phone--lg { --ds-phone-w: 340px; }
.ds-phone__screen {
  position: absolute; left: var(--hole-l); top: var(--hole-t); width: var(--hole-w); height: var(--hole-h);
  object-fit: fill; background: #fff;
}
.ds-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- how-it-works callout map ------------------------------------------- */
.ds-howmap {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--ds-space-6) var(--ds-space-7); align-items: center;
}
.ds-howmap__col { display: flex; flex-direction: column; gap: var(--ds-space-7); }
.ds-howmap__foot { grid-column: 1 / -1; display: flex; justify-content: center; }
.ds-callout { display: flex; align-items: center; gap: var(--ds-space-4); }
.ds-callout--r { flex-direction: row-reverse; }
.ds-callout__crop {
  flex: none; width: 112px; aspect-ratio: 393 / 665; object-fit: cover; object-position: top;
  border: 1px solid var(--ds-line); border-radius: 14px; background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 24, .1);
}
.ds-callout__text { max-width: 15ch; }
.ds-callout--r .ds-callout__text { text-align: left; }
.ds-callout--l .ds-callout__text { text-align: right; }
.ds-callout__arrow { flex: none; width: 84px; height: 52px; color: var(--ds-hand-ink); overflow: visible; }
.ds-callout--r .ds-callout__arrow { transform: scaleX(-1); }
.ds-callout--foot { flex-direction: row; }
.ds-callout--foot .ds-callout__text { max-width: 22ch; text-align: left; }
.ds-callout--foot .ds-callout__arrow { transform: rotate(-90deg); }
@media (max-width: 900px) {
  .ds-howmap { grid-template-columns: 1fr; gap: var(--ds-space-5); }
  .ds-howmap > .ds-phone { order: -1; }
  .ds-howmap__col { display: contents; }
  .ds-callout, .ds-callout--r, .ds-callout--foot {
    flex-direction: row; background: #fff; border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius-card); padding: var(--ds-space-4);
  }
  .ds-callout__text, .ds-callout--l .ds-callout__text, .ds-callout--foot .ds-callout__text { max-width: none; text-align: left; }
  .ds-callout__arrow { display: none; }
  .ds-callout__crop { width: 84px; }
  .ds-howmap__foot { display: contents; }
}

/* ---- forms --------------------------------------------------------------- */
.ds-form { display: grid; gap: var(--ds-space-3); }
.ds-field {
  width: 100%; font: inherit; font-size: var(--ds-step-0); color: var(--ds-ink); background: #fff;
  padding: .9em 1.3em; border: 2px solid var(--ds-line); border-radius: var(--ds-radius-field, var(--ds-radius-pill));
}
.ds-field:focus-visible { outline: none; border-color: var(--ds-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 25%, transparent); }
.ds-form__consent { display: flex; gap: var(--ds-space-3); align-items: flex-start; font-size: var(--ds-step--1); color: var(--ds-muted); cursor: pointer; }
.ds-form__consent input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ds-primary); }
.ds-form__consent a { color: var(--ds-primary); font-weight: 700; }
.ds-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ds-form__msg { font-size: var(--ds-step--1); font-weight: 700; }
.ds-form__msg--err { color: #b3001b; }
.ds-form__ok { font-size: var(--ds-step-2); font-weight: 700; color: var(--ds-primary); text-align: center; }
.ds-form .cf-turnstile { min-height: 65px; display: flex; justify-content: center; }

/* ---- modal (native <dialog>) -------------------------------------------- */
.ds-modal {
  position: fixed; inset: 0; margin: auto; border: 0; color: var(--ds-ink); background: #fff;
  border-radius: var(--ds-radius-card); padding: var(--ds-space-7) var(--ds-space-6);
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  box-shadow: 0 30px 80px rgba(17, 17, 24, .35);
}
.ds-modal::backdrop { background: var(--ds-backdrop, color-mix(in srgb, var(--ds-primary) 60%, transparent)); backdrop-filter: blur(3px); }
.ds-modal__close {
  position: absolute; top: var(--ds-space-3); right: var(--ds-space-3);
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ds-muted); font-size: 28px; line-height: 1;
}
.ds-modal__close:hover { background: var(--ds-surface-alt); color: var(--ds-ink); }
.ds-modal__close:focus-visible { outline: 3px solid var(--ds-primary); }
.ds-modal__title { margin: 0 0 var(--ds-space-3); }

/* ---- badge + footer ------------------------------------------------------ */
.ds-badge {
  display: inline-block; padding: .2em .75em; border-radius: var(--ds-radius-pill);
  font-size: var(--ds-step--1); font-weight: 700; background: var(--ds-surface-alt); color: var(--ds-ink);
}
.ds-badge--primary { background: var(--ds-primary); color: var(--ds-on-primary); }
.ds-footer { padding-block: var(--ds-space-7); text-align: center; font-size: var(--ds-step--1); color: var(--ds-muted); }
.ds-footer a { color: inherit; text-underline-offset: 3px; }
.ds-footer a:hover { color: var(--ds-ink); }
.ds-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--ds-space-5); margin-bottom: var(--ds-space-3); }

/* ==========================================================================
   Generic page components (used by Battle Buddy, Advocari, LinkedUp).
   Optional tokens, each with a fallback: --ds-header-bg --ds-header-fg
   --ds-header-line --ds-hero-bg --ds-on-hero --ds-on-hero-muted --ds-dark-bg
   --ds-on-dark --ds-on-dark-muted --ds-tint-bg --ds-kicker --ds-danger
   --ds-card-bg --ds-card-accent --ds-radius-btn --ds-radius-field
   --ds-display-weight --ds-display-leading --ds-display-tracking
   --ds-display-transform --ds-title-weight --ds-device
   ========================================================================== */

/* ---- sticky header ------------------------------------------------------- */
.ds-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ds-header-bg, var(--ds-surface)); color: var(--ds-header-fg, var(--ds-ink));
  border-bottom: 1px solid var(--ds-header-line, var(--ds-line));
  backdrop-filter: blur(10px);
}
.ds-header .ds-nav__links a:not(.ds-btn) { color: inherit; opacity: .85; }
.ds-header .ds-nav__links a:not(.ds-btn):hover { color: inherit; opacity: 1; }
.ds-nav__name { font: 800 1.125rem/1 var(--ds-font-display); letter-spacing: -.01em; }
.ds-nav__brand { gap: var(--ds-space-3); }
.ds-chip {
  display: inline-flex; align-items: center; gap: var(--ds-space-2); width: max-content;
  padding: .45em 1em; border-radius: var(--ds-radius-pill); text-decoration: none;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: inherit;
}
.ds-chip--light { background: var(--ds-surface-alt); border-color: var(--ds-line); color: var(--ds-ink); }
.ds-chip--brand { background: transparent; border-color: currentColor; padding: .3em .8em; font-size: .625rem; }
@media (max-width: 640px) { .ds-chip--brand { display: none; } }

/* ---- bands (full-bleed coloured sections) -------------------------------- */
.ds-band { position: relative; overflow: hidden; }
.ds-band > .ds-wrap { position: relative; }
.ds-band--hero { background: var(--ds-hero-bg, var(--ds-primary)); color: var(--ds-on-hero, #fff); }
.ds-band--hero .ds-lead { color: var(--ds-on-hero-muted, rgba(255, 255, 255, .85)); }
.ds-band--dark { background: var(--ds-dark-bg, var(--ds-ink)); color: var(--ds-on-dark, #fff); }
.ds-band--dark .ds-lead, .ds-band--dark .ds-muted { color: var(--ds-on-dark-muted, rgba(255, 255, 255, .75)); }
.ds-band--tint { background: var(--ds-tint-bg, var(--ds-surface-alt)); }
.ds-band__ring { position: absolute; border-radius: 50%; border: 80px solid rgba(255, 255, 255, .04); pointer-events: none; }
.ds-band__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0); background-size: 26px 26px;
}

/* ---- headings and eyebrows ----------------------------------------------- */
.ds-h1 {
  margin: 0; font-family: var(--ds-font-display); font-weight: var(--ds-title-weight, 800);
  font-size: var(--ds-step-4); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance;
}
.ds-title {
  margin: 0; font-family: var(--ds-font-display); font-weight: var(--ds-title-weight, 800);
  font-size: var(--ds-step-3); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
}
.ds-kicker { font: 700 .75rem/1 var(--ds-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ds-kicker, var(--ds-accent)); }
.ds-sec-head { display: flex; flex-direction: column; gap: var(--ds-space-3); max-width: 680px; }
.ds-sec-head--center { margin-inline: auto; text-align: center; align-items: center; }
.ds-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-4); align-items: center; }
.ds-stats { display: flex; flex-wrap: wrap; gap: var(--ds-space-6) var(--ds-space-7); }
.ds-stat strong { display: block; font: 800 1.75rem/1.1 var(--ds-font-display); letter-spacing: -.02em; }
.ds-stat span { font-size: var(--ds-step--1); opacity: .8; }
.ds-btn--light { background: #fff; color: var(--ds-primary); }
.ds-btn--light:hover { filter: none; background: var(--ds-surface-alt); }
.ds-btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.ds-btn--outline-light:hover { filter: none; box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, .08); }

/* ---- grid + cards -------------------------------------------------------- */
.ds-grid {
  display: grid; gap: var(--ds-space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ds-grid-min, 280px)), 1fr));
}
.ds-card {
  display: flex; flex-direction: column; gap: var(--ds-space-3); overflow: hidden;
  background: var(--ds-card-bg, #fff); border: 1px solid var(--ds-card-line, var(--ds-line));
  box-shadow: var(--ds-card-shadow, none);
  border-radius: var(--ds-radius-card); padding: var(--ds-space-6);
}
.ds-card h3 { margin: 0; font: 700 1.375rem/1.2 var(--ds-font-display); letter-spacing: -.02em; }
.ds-card p { color: var(--ds-muted); line-height: 1.6; }
.ds-card--dark { background: var(--ds-dark-bg, var(--ds-ink)); border-color: var(--ds-dark-bg, var(--ds-ink)); color: var(--ds-on-dark, #fff); }
.ds-card--dark p { color: var(--ds-on-dark-muted, rgba(255, 255, 255, .75)); }
.ds-card--accent { border-top: 4px solid var(--ds-card-accent, var(--ds-primary)); }
.ds-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  background: var(--ds-surface-alt); color: var(--ds-card-accent, var(--ds-primary)); font: 800 1.25rem var(--ds-font-display);
}
.ds-shot {
  display: block; width: 100%; height: auto; margin-top: auto;
  border-radius: 18px 18px 0 0; border: 6px solid var(--ds-device, #0b1622); border-bottom: 0;
}
.ds-shot--bleed { margin-bottom: -140px; }
.ds-shot--device { border: 9px solid var(--ds-device, #0b1622); border-radius: 32px; box-shadow: 0 30px 60px rgba(0, 10, 20, .25); }

/* ---- steps, checklist, banner, quote ------------------------------------- */
.ds-steps { display: grid; gap: var(--ds-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ds-step { display: flex; flex-direction: column; gap: var(--ds-space-3); border-top: 3px solid var(--ds-primary); padding-top: var(--ds-space-5); }
.ds-step__n { font: 900 2.75rem/1 var(--ds-font-display); color: var(--ds-step-n, var(--ds-line)); }
.ds-step h3 { margin: 0; font: 700 1.25rem/1.2 var(--ds-font-display); letter-spacing: -.02em; }
.ds-step p { color: var(--ds-muted); line-height: 1.6; }
.ds-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ds-space-4); }
.ds-checklist li { display: flex; gap: var(--ds-space-3); align-items: flex-start; }
.ds-checklist strong { display: block; }
.ds-check {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--ds-check-bg, var(--ds-primary)); color: var(--ds-check-fg, var(--ds-on-primary)); font-size: .8125rem; font-weight: 900;
}
.ds-banner { background: var(--ds-danger, #c4121f); color: #fff; text-align: center; padding: var(--ds-space-3) var(--ds-space-5); font-size: var(--ds-step--1); font-weight: 600; }
.ds-banner strong { margin-right: var(--ds-space-3); font-weight: 800; letter-spacing: .04em; }
.ds-banner a { color: #fff; font-weight: 800; text-decoration: underline; }
.ds-quote { margin: 0; padding: var(--ds-space-6); border-radius: var(--ds-radius-card); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.ds-quote blockquote { margin: 0 0 var(--ds-space-4); font-size: var(--ds-step-1); line-height: 1.6; font-weight: 500; }
.ds-quote figcaption { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--ds-space-4); }
.ds-quote figcaption strong { display: block; }
.ds-quote figcaption span { font-size: var(--ds-step--1); opacity: .75; }

/* ---- FAQ accordion (native <details>, no JS) ------------------------------ */
.ds-faq { display: flex; flex-direction: column; gap: var(--ds-space-3); }
.ds-faq details { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-card); overflow: hidden; }
.ds-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); cursor: pointer; list-style: none;
  padding: var(--ds-space-5); font: 600 1.125rem/1.3 var(--ds-font-display); letter-spacing: -.01em;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary:focus-visible { outline: 3px solid var(--ds-primary); outline-offset: -3px; }
.ds-faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ds-surface-alt); color: var(--ds-muted); font-size: 1.25rem; transition: transform .25s;
}
.ds-faq details[open] summary::after { transform: rotate(45deg); background: var(--ds-primary); color: var(--ds-on-primary); }
.ds-faq details > p { margin: 0; padding: 0 var(--ds-space-5) var(--ds-space-5); color: var(--ds-muted); line-height: 1.65; max-width: 68ch; }

/* ---- footer (columns), inline waitlist, alerts ---------------------------- */
.ds-footer--dark { background: var(--ds-dark-bg, var(--ds-ink)); color: var(--ds-on-dark-muted, rgba(255, 255, 255, .75)); text-align: left; padding-block: var(--ds-space-8) var(--ds-space-6); }
.ds-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-7) var(--ds-space-8); }
.ds-footer__brand { display: flex; flex-direction: column; gap: var(--ds-space-3); max-width: 340px; }
.ds-footer__col { display: flex; flex-direction: column; gap: var(--ds-space-3); }
.ds-footer__h { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ds-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-4); margin-top: var(--ds-space-7); padding-top: var(--ds-space-5); border-top: 1px solid rgba(255, 255, 255, .1); }
.ds-inline-form { display: flex; gap: var(--ds-space-3); width: 100%; max-width: 520px; }
.ds-inline-form .ds-field { flex: 1; min-width: 0; }
@media (max-width: 560px) { .ds-inline-form { flex-direction: column; } }
.ds-alert { padding: .7em 1.2em; border-radius: var(--ds-radius-btn, 12px); font-size: var(--ds-step--1); font-weight: 700; }
.ds-alert--ok { background: #e5f3ea; color: #1a6b3a; }
.ds-alert--err { background: #fdeaee; color: #a1102f; }

/* ---- CSS-drawn device for HTML app screens (no screenshot available) ------ */
.ds-device {
  width: var(--ds-device-w, 270px); max-width: 100%; aspect-ratio: 270 / 552; padding: 11px;
  background: #111; border-radius: 42px; box-shadow: 0 30px 60px rgba(0, 0, 0, .28), inset 0 0 0 2px #2a2a2a;
}
.ds-device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ds-surface); border-radius: 32px; }
.ds-device__screen::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 2; width: 34%; height: 22px; transform: translateX(-50%); background: #111; border-radius: 12px; }
.ds-device__body { position: absolute; inset: 0; padding-top: 44px; }
@media (max-width: 900px) { .ds-stats { justify-content: center; } }

/* ---- small-screen button + nav tightening --------------------------------- */
.ds-nav__name, .ds-btn--sm { white-space: nowrap; }
@media (max-width: 480px) {
  .ds-btn { padding-inline: 1.4em; }
  .ds-btn--sm { padding: .6em 1em; font-size: .875rem; }
  .ds-nav { gap: var(--ds-space-3); }
}

/* ---- labelled fields ------------------------------------------------------- */
.ds-label { display: block; margin: 0 0 6px; font-size: .8125rem; font-weight: 600; }
.ds-label em { font-style: normal; font-weight: 400; color: var(--ds-muted); }

/* ==========================================================================
   Added for LinkedUp: cropped screenshots, gallery strip, comparison table, toast.
   Optional tokens: --ds-btn-bg (gradient buttons) --ds-card-line --ds-card-shadow --ds-shot-ar
   ========================================================================== */
.ds-shot--crop { aspect-ratio: var(--ds-shot-ar, 9 / 19.5); object-fit: cover; object-position: top center; margin-top: 0; }
.ds-gallery {
  display: flex; gap: var(--ds-space-5); overflow-x: auto; padding-block: var(--ds-space-4);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ds-gallery > figure { flex: 0 0 min(250px, 70vw); margin: 0; scroll-snap-align: start; }
.ds-gallery figcaption { margin-top: var(--ds-space-3); font-size: var(--ds-step--1); color: var(--ds-muted); line-height: 1.45; }
.ds-gallery figcaption strong { display: block; color: var(--ds-ink); font-family: var(--ds-font-display); font-size: 1rem; }
.ds-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--ds-step--1); }
.ds-table th, .ds-table td { padding: var(--ds-space-4) var(--ds-space-4); text-align: left; }
.ds-table thead th { font: 700 .75rem/1.2 var(--ds-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }
.ds-table tbody tr:nth-child(odd) { background: var(--ds-surface-alt); }
.ds-table .is-us { color: var(--ds-primary); font-weight: 700; background: color-mix(in srgb, var(--ds-primary) 8%, transparent); }
.ds-table-wrap { overflow-x: auto; border-radius: var(--ds-radius-card); background: #fff; }
.ds-toast {
  display: flex; align-items: flex-start; gap: var(--ds-space-3); padding: 12px 16px; border-radius: 14px;
  background: #fff; color: var(--ds-ink); font-size: .8125rem; line-height: 1.4; box-shadow: 0 12px 40px rgba(26, 28, 28, .14);
}
.ds-toast strong { display: block; }
.ds-toast__dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--ds-accent); }
