/* ===========================================================
   Garmenly — design system
   Ink Navy #0A1A3F · Garment Teal #2BC4C4 · Off White #F4F7FB · Slate #788496
   =========================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.15vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-14: 3.5rem;
  --space-18: 4.5rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1180px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #fafcfe;
  --color-surface-offset: #eaf0f8;
  --color-surface-deep: #0a1a3f;
  --color-border: #d8e1ee;
  --color-divider: #e6ecf5;

  --color-text: #0a1a3f;
  --color-text-muted: #55637d;
  --color-text-faint: #8592a8;
  --color-text-inverse: #f4f7fb;

  --color-primary: #0a1a3f;
  --color-primary-hover: #142c62;
  --color-on-primary: #ffffff;

  --color-accent: #2bc4c4;
  --color-accent-ink: #0b7278;
  --color-accent-soft: #dff6f6;

  --color-success: #1f7a4d;
  --color-success-soft: #dff2e8;
  --color-warn: #9a5b12;
  --color-warn-soft: #fbeeda;
  --color-danger: #a52f3b;
  --color-danger-soft: #fbe4e6;

  --shadow-sm: 0 1px 2px rgba(10, 26, 63, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 26, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 63, 0.12);
  --shadow-frame: 0 24px 64px rgba(10, 26, 63, 0.18);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
  --color-bg: #060f24;
  --color-surface: #0c1a38;
  --color-surface-2: #112247;
  --color-surface-offset: #16294f;
  --color-surface-deep: #030a19;
  --color-border: #1e3260;
  --color-divider: #17284c;

  --color-text: #e7eefa;
  --color-text-muted: #9aabc6;
  --color-text-faint: #6d7f9d;
  --color-text-inverse: #0a1a3f;

  --color-primary: #2bc4c4;
  --color-primary-hover: #55d6d6;
  --color-on-primary: #04121f;

  --color-accent: #2bc4c4;
  --color-accent-ink: #6fdede;
  --color-accent-soft: #0d3b46;

  --color-success: #58c58c;
  --color-success-soft: #10321f;
  --color-warn: #d9a25a;
  --color-warn-soft: #3a2a10;
  --color-danger: #e5808c;
  --color-danger-soft: #3b1519;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #060f24;
    --color-surface: #0c1a38;
    --color-surface-2: #112247;
    --color-surface-offset: #16294f;
    --color-surface-deep: #030a19;
    --color-border: #1e3260;
    --color-divider: #17284c;
    --color-text: #e7eefa;
    --color-text-muted: #9aabc6;
    --color-text-faint: #6d7f9d;
    --color-text-inverse: #0a1a3f;
    --color-primary: #2bc4c4;
    --color-primary-hover: #55d6d6;
    --color-on-primary: #04121f;
    --color-accent-ink: #6fdede;
    --color-accent-soft: #0d3b46;
    --color-success: #58c58c;
    --color-success-soft: #10321f;
    --color-warn: #d9a25a;
    --color-warn-soft: #3a2a10;
    --color-danger: #e5808c;
    --color-danger-soft: #3b1519;
  }
}

/* ===================== base ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
p,
li,
figcaption {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: rgba(43, 196, 196, 0.28);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a,
button,
[role='button'],
input,
textarea,
select,
summary {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

/* ===================== layout ===================== */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}
.section--alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}
.section--deep {
  background: var(--color-surface-deep);
  color: #e7eefa;
}
.section--deep h1,
.section--deep h2,
.section--deep h3 {
  color: #ffffff;
}
.section--deep .lede,
.section--deep .muted {
  color: #a9bdd8;
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--reverse > *:first-child {
    order: 2;
  }
}

/* ===================== type helpers ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section--deep .eyebrow {
  color: var(--color-accent);
}

h1 {
  font-size: var(--text-2xl);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
}

.display {
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 30em;
  font-weight: 400;
}
.muted {
  color: var(--color-text-muted);
}
.small {
  font-size: var(--text-sm);
}
.xs {
  font-size: var(--text-xs);
}
.prose p {
  max-width: 30em;
}
.prose p + p {
  margin-top: var(--space-4);
}
.prose h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.prose ul,
.prose ol {
  margin: var(--space-4) 0 var(--space-4) var(--space-5);
  max-width: 30em;
}
.prose li {
  margin-bottom: var(--space-2);
}
.prose a {
  color: var(--color-accent-ink);
  text-underline-offset: 3px;
}
.section-head {
  max-width: 30em;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-head p {
  margin-top: var(--space-4);
}
.teal {
  color: var(--color-accent-ink);
}
.section--deep .teal {
  color: var(--color-accent);
}

/* ===================== buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--color-accent);
  color: #04222a;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: #4fd3d3;
  border-color: #4fd3d3;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--onDeep {
  background: #ffffff;
  color: #0a1a3f;
  border-color: #ffffff;
}
.btn--onDeep:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #04222a;
}
.btn--outlineDeep {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outlineDeep:hover {
  border-color: #ffffff;
}
.btn--sm {
  padding: 0.6rem 1rem;
  font-size: var(--text-xs);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent-ink);
  text-decoration: none;
}
.arrow-link svg {
  transition: transform var(--transition-interactive);
}
.arrow-link:hover svg {
  transform: translateX(3px);
}
.section--deep .arrow-link {
  color: var(--color-accent);
}

/* ===================== header ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.header--scrolled {
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
  border-bottom-color: var(--color-divider);
  box-shadow: 0 1px 12px rgba(10, 26, 63, 0.06);
}
@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--color-bg); }
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}
.brand__dot {
  color: var(--color-accent);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
@media (min-width: 1200px) {
  .nav {
    display: flex;
  }
}
.nav a {
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
}
.header__actions {
  display: none;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 1200px) {
  .header__actions {
    display: flex;
  }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.menu-btn {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
@media (min-width: 1200px) {
  .menu-btn {
    display: none;
  }
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-nav.open {
  display: block;
}
@media (min-width: 1200px) {
  .mobile-nav.open {
    display: none;
  }
}
.mobile-nav a {
  display: block;
  padding: 0.7rem var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}
.mobile-nav a:hover {
  background: var(--color-surface-offset);
}
.mobile-nav .btn-row {
  margin: var(--space-4) var(--space-6) 0;
}

/* ===================== hero ===================== */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-24));
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(43, 196, 196, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero__text {
  max-width: 40rem;
}
.hero .display {
  margin-bottom: var(--space-6);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.badge svg {
  color: var(--color-accent-ink);
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  margin-bottom: var(--space-6);
}
.pill__tag {
  background: var(--color-accent);
  color: #04222a;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===================== cards ===================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.card--link {
  text-decoration: none;
  display: block;
}
.card--link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.section--deep .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.section--deep .card p {
  color: #a9bdd8;
}
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  margin-bottom: var(--space-5);
}
.section--deep .card__icon {
  background: rgba(43, 196, 196, 0.16);
  color: var(--color-accent);
}

.stat {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.section--deep .stat__label {
  color: #a9bdd8;
}

/* checklist */
.checklist {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
}
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30em;
}
.checklist li strong {
  color: var(--color-text);
  font-weight: 700;
}
.checklist svg {
  color: var(--color-accent-ink);
  margin-top: 0.2rem;
}
.section--deep .checklist li {
  color: #a9bdd8;
}
.section--deep .checklist li strong {
  color: #ffffff;
}
.section--deep .checklist svg {
  color: var(--color-accent);
}

/* numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-5);
  align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}
.steps h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.steps p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30em;
}
.section--deep .steps li::before {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-accent);
}
.section--deep .steps p {
  color: #a9bdd8;
}

/* ===================== app mockup frames ===================== */
.frame {
  container-type: inline-size;
  container-name: frame;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-frame);
  color: #0a1a3f;
  font-size: 13px;
  line-height: 1.45;
}
[data-theme='dark'] .frame {
  border-color: #1e3260;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #eef3fa;
  border-bottom: 1px solid #dde5f1;
}
.frame__dots {
  display: flex;
  gap: 0.3rem;
}
.frame__dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #cbd6e6;
  display: block;
}
.frame__url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #74839b;
  background: #ffffff;
  border: 1px solid #dde5f1;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.7rem;
  margin-inline: auto;
}
.frame__body {
  background: #f4f7fb;
}

/* POS chrome */
.pos {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  min-height: 26rem;
}
.pos__rail {
  background: #0a1a3f;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.pos__rail i {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  color: #7f93b6;
}
.pos__rail i.on {
  background: rgba(43, 196, 196, 0.18);
  color: #2bc4c4;
}
.pos__main {
  padding: 0.9rem 1rem 1.1rem;
  min-width: 0;
}
.pos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.pos__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #0a1a3f;
}
.pos__sub {
  font-size: 11px;
  color: #74839b;
}
.pos__cols {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@container frame (min-width: 560px) {
  .pos__cols--2 {
    grid-template-columns: 1.35fr 1fr;
  }
  .pos__cols--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@container frame (max-width: 559px) {
  .pos {
    grid-template-columns: 2.9rem 1fr;
  }
  .pos__main {
    padding: 0.8rem 0.75rem 1rem;
  }
}
.panel {
  background: #ffffff;
  border: 1px solid #e2e9f4;
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
}
.panel__t {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8592a8;
  margin-bottom: 0.55rem;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e6ecf5;
}
.row:last-child {
  border-bottom: 0;
}
.row__l {
  min-width: 0;
}
.row__n {
  font-weight: 700;
  color: #0a1a3f;
  overflow-wrap: anywhere;
}
.row__m {
  font-size: 11px;
  color: #74839b;
}
.row__p {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--dc {
  background: #e5edfb;
  color: #1c3f8a;
}
.tag--alt {
  background: #dff6f6;
  color: #0b7278;
}
.tag--ok {
  background: #dff2e8;
  color: #1f7a4d;
}
.tag--warn {
  background: #fbeeda;
  color: #9a5b12;
}
.tag--due {
  background: #fbe4e6;
  color: #a52f3b;
}
.tag--agent {
  background: #ede4fb;
  color: #5b3596;
}
.kv {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  padding: 0.22rem 0;
  font-size: 12px;
}
.kv span:last-child {
  text-align: right;
}
.kv span:first-child {
  color: #74839b;
}
.kv span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.total {
  border-top: 1px solid #e2e9f4;
  margin-top: 0.45rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  background: #f0f4fa;
  border: 1px solid #e2e9f4;
  color: #44536d;
}
.chip--on {
  background: #0a1a3f;
  border-color: #0a1a3f;
  color: #ffffff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.posbtn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #0a1a3f;
  color: #fff;
}
.posbtn--teal {
  background: #2bc4c4;
  color: #04222a;
}
.posbtn--ghost {
  background: #fff;
  color: #0a1a3f;
  border: 1px solid #d8e1ee;
}
.bar {
  height: 0.4rem;
  border-radius: 999px;
  background: #e6ecf5;
  overflow: hidden;
  margin-top: 0.3rem;
}
.bar i {
  display: block;
  height: 100%;
  background: #2bc4c4;
  border-radius: 999px;
}
.metric {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric__l {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8592a8;
  font-weight: 700;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 2.2rem;
  margin-top: 0.4rem;
}
.spark i {
  flex: 1;
  background: #cfe9ec;
  border-radius: 2px 2px 0 0;
  display: block;
}
.spark i.hi {
  background: #2bc4c4;
}

/* garment tag / receipt */
.ticket {
  background: #fff;
  border: 1px solid #e2e9f4;
  border-radius: 0.4rem;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #0a1a3f;
  line-height: 1.5;
}
.ticket hr {
  border: 0;
  border-top: 1px dashed #cbd6e6;
  margin: 0.45rem 0;
}
.ticket .c {
  text-align: center;
}
.ticket .b {
  font-weight: 700;
}
.barcode {
  display: flex;
  gap: 1px;
  height: 2rem;
  align-items: stretch;
  margin: 0.4rem 0 0.2rem;
}
.barcode i {
  background: #0a1a3f;
  display: block;
}

/* caption under mockups */
.frame-caption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  text-align: center;
}

/* ===================== tables ===================== */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.ctable {
  min-width: 720px;
  font-size: var(--text-sm);
}
.ctable th,
.ctable td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-divider);
}
.ctable thead th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 700;
  background: var(--color-surface-offset);
  white-space: nowrap;
}
.ctable tbody tr:last-child td {
  border-bottom: 0;
}
.ctable td:first-child {
  font-weight: 700;
  color: var(--color-text);
}
.ctable .yes {
  color: var(--color-success);
  font-weight: 700;
}
.ctable .no {
  color: var(--color-text-faint);
}
.ctable .part {
  color: var(--color-warn);
  font-weight: 700;
}
.ctable col.us {
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
}

/* ===================== pricing ===================== */
.plans {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.plan {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -0.75rem;
  left: var(--space-6);
  background: var(--color-accent);
  color: #04222a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}
.plan__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.plan__for {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-height: 3.2em;
}
.plan__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: var(--space-5) 0 var(--space-1);
  letter-spacing: -0.02em;
}
.plan__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}
.plan ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
}
.plan li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan li svg {
  color: var(--color-accent-ink);
  margin-top: 0.25rem;
}
.plan .btn {
  width: 100%;
}

/* ===================== faq / accordion ===================== */
.faq {
  border-top: 1px solid var(--color-divider);
}
.faq details {
  border-bottom: 1px solid var(--color-divider);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--color-text-faint);
  border-bottom: 2px solid var(--color-text-faint);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq summary:hover {
  color: var(--color-accent-ink);
}
.faq p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 30em;
}

/* ===================== forms ===================== */
.form {
  display: grid;
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 196, 196, 0.18);
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.form-status {
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-soft);
  color: var(--color-success);
  display: none;
}
.form-status.show {
  display: block;
}

/* ===================== help centre ===================== */
.help-search {
  display: flex;
  gap: var(--space-2);
  max-width: 34rem;
  margin-top: var(--space-8);
}
.help-search input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.help-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(43, 196, 196, 0.18);
}
.article-list {
  list-style: none;
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-4);
}
.article-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.55rem 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.article-list a:hover {
  color: var(--color-accent-ink);
}
.article-list a svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-accent-ink);
}
.toc {
  position: sticky;
  top: 6rem;
  align-self: start;
  border-left: 2px solid var(--color-divider);
  padding-left: var(--space-5);
}
.toc p {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.toc ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.toc a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--color-accent-ink);
}
.doc-layout {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .doc-layout {
    grid-template-columns: 1fr 15rem;
  }
}
.callout {
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}
.callout strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-accent-ink);
}
[data-theme='dark'] .callout {
  background: rgba(43, 196, 196, 0.08);
}

/* ===================== cta band ===================== */
.cta-band {
  background: var(--color-surface-deep);
  color: #e7eefa;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(43, 196, 196, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #fff;
  max-width: 20ch;
}
.cta-band p {
  color: #a9bdd8;
  max-width: 30em;
  margin-top: var(--space-4);
}

/* ===================== footer ===================== */
.footer {
  background: var(--color-surface-deep);
  color: #a9bdd8;
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f93b6;
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer a {
  color: #c7d5e8;
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-accent);
}
.footer .brand {
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__tag {
  max-width: 30ch;
  color: #8fa5c4;
  font-size: var(--text-sm);
}
.footer__base {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #7f93b6;
}

/* ===================== reveal on scroll ===================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- overflow guards (grid children must be allowed to shrink) ---- */
.split > *,
.grid > *,
.pos,
.pos__main,
.pos__cols > *,
.panel,
.frame,
.frame__body {
  min-width: 0;
}
.hero {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20)) clamp(var(--space-12), 6vw, var(--space-24));
}
.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
}

/* hero gives the product shot more room */
@media (min-width: 900px) {
  .hero .split--wide-left {
    grid-template-columns: 1fr 1.18fr;
  }
}

/* ---------- Demo form card ---------- */
.hero--form { padding-bottom: 3.5rem; }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.form-card__title { margin: 0 0 0.25rem; font-size: var(--text-xl); }
.form-card__sub { margin: 0 0 1.5rem; color: var(--color-text-muted); font-size: var(--text-sm); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field legend {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  padding: 0;
}
fieldset.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }

.opt { font-weight: 400; color: var(--color-text-faint); font-size: 0.85em; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check:hover { border-color: var(--color-accent); }
.check input { width: 1rem; height: 1rem; accent-color: var(--color-accent-ink); flex: none; }
.check:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-soft); }

.btn--block { width: 100%; justify-content: center; margin-top: 0.35rem; }

.quote {
  border-left: 3px solid var(--color-accent);
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text);
}
.quote p { margin: 0; }

/* ---------- Text-only heroes: tighter, no empty right column ---------- */
.hero:not(:has(.split)) {
  padding-block: clamp(var(--space-10), 5vw, var(--space-18)) clamp(var(--space-8), 4vw, var(--space-14));
}
.hero:not(:has(.split)) .hero__text {
  max-width: 44rem;
}
.hero:not(:has(.split))::before {
  inset: -40% -18% auto auto;
  width: 38rem;
  height: 38rem;
}

/* display type inside a two-column hero should not run to four lines */
@media (min-width: 900px) {
  .hero .split .display {
    font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  }
}

/* paragraphs sitting directly in a section column need rhythm */
.split > div > h2 + p,
.split > div > p + p {
  margin-top: var(--space-4);
}
.split > div > p {
  color: var(--color-text-muted);
  max-width: 30em;
}
.split > div > p.lede {
  color: var(--color-text);
}

/* ---------- Help centre category cards ---------- */
.card > h2 {
  font-size: var(--text-lg);
  margin: 0 0 0.9rem;
  line-height: 1.25;
}
.card > h2 > a {
  text-decoration: none;
  color: var(--color-text);
  background: none;
}
.card > h2 > a:hover { color: var(--color-accent-ink); }

/* ---------- Single-column splits should not leave a dead column ---------- */
@media (min-width: 900px) {
  .split:has(> *:only-child) { grid-template-columns: 1fr; }
  .split:has(> *:only-child) > * { max-width: 62rem; }
}

/* ---------- Breadcrumb + article head rhythm ---------- */
.breadcrumb { margin-bottom: var(--space-4); }
.hero h1 + .lede { margin-top: var(--space-5); }

/* ---------- Help article: keep long content inside the viewport ---------- */
.doc-layout,
.doc-layout > * { min-width: 0; }
.prose { min-width: 0; }
.prose h2,
.prose h3,
.prose p,
.prose li,
.prose td,
.prose th,
.checklist li,
.steps li { overflow-wrap: anywhere; }
.prose pre,
.prose table { max-width: 100%; overflow-x: auto; }
.display + .lede,
h1 + .lede { margin-top: var(--space-6); }

/* ---------- Inline source citations ---------- */
.src {
  font-size: 0.82em;
  color: var(--color-text-muted);
  white-space: normal;
}
.src a { color: var(--color-text-muted); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.src a:hover { color: var(--color-accent-ink); }
.ctable .src { display: inline; }

/* ---------- Operator results ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-8);
}
.result__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  display: block;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums lining-nums;
}
.result__label {
  margin-top: var(--space-3);
  font-weight: 700;
  line-height: 1.35;
}
.result__note {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.section--deep .result__label { color: #eaf1fa; }
.section--deep .result__note { color: #a9bdd8; }
.section--deep .result__num { color: var(--color-accent); }

.disclosure {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30em;
  line-height: 1.6;
}
.section--deep .disclosure {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: #a9bdd8;
}

/* ---------- Cost stack ---------- */
.stack {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.stack__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.stack__row--out { border-style: dashed; }
.stack__row--in {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.stack__what { font-weight: 700; }
.stack__sub {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.stack__amt {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.stack__row--out .stack__amt { text-decoration: line-through; color: var(--color-text-muted); }
.stack__row--in .stack__amt { color: var(--color-accent-ink); }
@media (max-width: 540px) {
  .stack__row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Release badge ---------- */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent);
  vertical-align: middle;
  margin-left: var(--space-3);
  white-space: nowrap;
}

/* --- Deep-section text contrast guard (must stay last) --- */
.section--deep p,
.section--deep li,
.section--deep .lede,
.section--deep .muted,
.section--deep .disclosure {
  color: #b7c8e0;
}
.section--deep .lede {
  color: #dbe6f6;
}
.section--deep strong,
.section--deep b {
  color: #ffffff;
}
.section--deep .card p,
.section--deep .card li {
  color: #b7c8e0;
}

/* --- Flow spacing after lists (guards against collisions) --- */
.checklist + p,
.checklist + h2,
.checklist + h3,
.results + p,
.results + h2,
.results + h3,
.stack + p,
.stack + h3,
.steps + p {
  margin-top: var(--space-8);
}

/* --- Cost stack inside deep sections --- */
.section--deep .stack__row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}
.section--deep .stack__row--out {
  border-style: dashed;
}
.section--deep .stack__row--in {
  background: rgba(43, 196, 196, 0.12);
  border-color: var(--color-accent);
}
.section--deep .stack__what {
  color: #ffffff;
}
.section--deep .stack__sub {
  color: #a9bdd8;
}
.section--deep .stack__amt {
  color: #e7eefa;
}
.section--deep .stack__row--out .stack__amt {
  color: #93a8c6;
}
.section--deep .stack__row--in .stack__amt {
  color: var(--color-accent);
}

/* --- Heading-to-paragraph rhythm --- */
h2 + p,
h3 + p,
h4 + p {
  margin-top: var(--space-3);
}

/* --- Deep-section split override (beats .split > div > p specificity) --- */
.section--deep .split > div > p,
.section--deep .split > div > li,
.section--deep .split > div .checklist li {
  color: #b7c8e0;
}
.section--deep .split > div > p.lede {
  color: #dbe6f6;
}
.section--deep .split > div > p strong,
.section--deep .split > div .checklist li strong {
  color: #ffffff;
}
.section--deep .split > div > p.result__note {
  color: #93a8c6;
}

/* --- Anchor targets clear the sticky header --- */
section[id] { scroll-margin-top: 6rem; }

/* Typography: constrain measure on documentation pages (ch overshoots in Satoshi) */
.lede,
.doc-layout > div p,
.doc-layout > div li,
.prose p,
.prose li {
  max-width: 30em;
}
.faq p {
  max-width: 30em;
}

/* ---------- Measure control ----------
   `ch` overstates line length ~1.6x in Satoshi (1ch = 0.71em, avg glyph = 0.45em),
   so caps are set in rem against measured characters-per-line (target 45-75). */
.section p,
.cta-band p {
  max-width: 30em;
}
.section p.lede,
.section p.disclosure,
.section p.small,
.section p.src,
.section p.result__note {
  max-width: 30em;
}
.section p.frame-caption {
  max-width: none;
}
