/* TrackFlow public website. Plain CSS: no framework, no web fonts, no external requests.
   Mobile first. Colors are tokens on :root so the palette can change in one place. */

:root {
  color-scheme: light;
  --brand: #0f766e;
  --brand-700: #0d5f58;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-100: #fef3c7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --tone-neutral-bg: #f1f5f9;
  --tone-neutral-ink: #334155;
  --tone-info-bg: #e0f2fe;
  --tone-info-ink: #075985;
  --tone-ok-bg: #dcfce7;
  --tone-ok-ink: #14532d;
  --tone-warn-bg: #fef3c7;
  --tone-warn-ink: #78350f;
  --tone-bad-bg: #fee2e2;
  --tone-bad-ink: #7f1d1d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 18px 40px -20px rgb(15 23 42 / 0.28);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1140px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.125rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-700);
  text-underline-offset: 0.2em;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  color: var(--ink);
  word-break: break-word;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Progressive enhancement: controls that only work with the script are hidden without it. */
.needs-js {
  display: none;
}

.js .needs-js {
  display: revert;
}

/* ---------------------------------------------------------------- layout */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-more {
  margin-top: 2rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

/* Any heading followed directly by a lead paragraph, inside or outside .section-head. */
h2 + .lead {
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 42rem;
}

.eyebrow {
  color: var(--brand-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.fine {
  font-size: 0.875rem;
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  margin: 0;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

/* ---------------------------------------------------------------- header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  min-height: 4rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.logo-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font-sans);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  width: 100%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* On small screens the script collapses the menu behind the Menu button. */
.js .site-header.is-collapsed .site-nav {
  display: none;
}

@media (max-width: 899px) {
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: nowrap;
  }
}

/* ---------------------------------------------------------------- buttons, badges, icons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.975rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  font-size: 1.0625rem;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-700);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--accent-600);
  color: var(--ink);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--soft);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--tone-neutral-bg);
  color: var(--tone-neutral-ink);
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.badge[data-tone="info"] {
  background: var(--tone-info-bg);
  color: var(--tone-info-ink);
}

.badge[data-tone="ok"] {
  background: var(--tone-ok-bg);
  color: var(--tone-ok-ink);
}

.badge[data-tone="warn"] {
  background: var(--tone-warn-bg);
  color: var(--tone-warn-ink);
}

.badge[data-tone="bad"] {
  background: var(--tone-bad-bg);
  color: var(--tone-bad-ink);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  background-color: var(--white);
  background-image: radial-gradient(rgb(15 23 42 / 0.09) 1px, transparent 1.3px);
  background-size: 22px 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--brand-50) 0%, rgb(240 253 250 / 0) 72%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row + .fine {
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* Illustrative dashboard. Decorative, so the figure caption carries the "sample" label. */
.mock-figure {
  margin: 0;
  min-width: 0;
}

.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.mock-bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #cbd5e1;
  flex: none;
}

.mock-bar p {
  margin: 0 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  grid-template-columns: 1fr;
}

.mock-side {
  display: none;
}

.mock-main {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.mock-store {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.kpis div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  min-width: 0;
}

.kpis b {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.1;
}

.kpis span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.mock-list {
  display: grid;
}

.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.6rem;
  align-items: center;
  padding: 0.55rem 0.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.mock-row .order {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--ink);
}

.mock-row .order strong,
.mock-row .order .item {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-row .order strong {
  font-weight: 600;
}

.mock-row .order .item {
  color: var(--muted);
  font-size: 0.72rem;
}

.mock-row .carrier {
  color: var(--muted);
}

.mock-head {
  display: none;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.mock-figure figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Header and rows share one fixed status column, so carriers line up under their heading whatever the pill width. */
@media (min-width: 560px) {
  .mock-row,
  .mock-head {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) 8.5rem;
  }

  .mock-row .order {
    grid-column: auto;
  }

  .mock-row .badge,
  .mock-head span:last-child {
    justify-self: end;
  }

  .mock-head {
    display: grid;
    gap: 0.25rem 0.6rem;
    padding: 0.4rem 0.1rem;
  }
}

@media (min-width: 1200px) {
  .mock-body {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .mock-side {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    padding: 1rem 0.6rem;
    border-right: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
  }

  .mock-side span {
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
  }

  .mock-side .is-active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 700;
  }
}

/* ---------------------------------------------------------------- cards and grids */

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}

.card-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

/* ---------------------------------------------------------------- how it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

/* ---------------------------------------------------------------- callouts */

.callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-100);
  border: 1px solid #fcd34d;
  color: var(--tone-warn-ink);
}

.callout > .icon {
  margin-top: 0.1rem;
}

.callout p {
  margin: 0;
  color: inherit;
}

.callout p + p {
  margin-top: 0.5rem;
}

.callout.is-info {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--ink-2);
}

.callout.is-info > .icon {
  color: var(--brand-700);
}

.callout.is-draft {
  margin-bottom: 2rem;
}

.worked {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.email-preview {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  max-width: 40rem;
}

.email-preview figcaption {
  padding: 0.7rem 1rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.email-head {
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.email-head span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.email-head strong {
  color: var(--ink);
}

.email-body {
  padding: 1rem;
  white-space: pre-line;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- split sections, lists and messages */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brand);
}

.callout .bullets li::before {
  background: var(--brand-700);
}

.messages {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.messages > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
}

.messages dt {
  font-weight: 700;
  color: var(--ink);
}

.messages dd {
  margin: 0.25rem 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.chips li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.chips code {
  background: none;
  border: 0;
  padding: 0;
}

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 2.5rem;
}

.toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.toc a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.table.is-wide {
  min-width: 36rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  white-space: nowrap;
}

.table tbody th {
  color: var(--ink);
  font-weight: 600;
}

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

.table .center {
  text-align: center;
  white-space: nowrap;
}

.table td[data-access="write"] {
  color: var(--brand-700);
  font-weight: 700;
}

.table td[data-access="read"] {
  color: var(--ink-2);
}

.table td[data-access="none"] {
  color: var(--muted);
}

.table-sticky th:first-child,
.table-sticky td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  box-shadow: 1px 0 0 var(--line);
}

.table-sticky thead th:first-child {
  background: var(--soft);
  z-index: 2;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------------- pricing */

.plan-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plan-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.price {
  margin: 0.5rem 0 0.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.price span {
  margin-left: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

/* Two lines of room, so the limit rows line up across cards whether a description wraps or not. */
.plan-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  min-height: 3.2em;
  margin-bottom: 1.1rem;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
  flex: 1;
  font-size: 0.9rem;
}

.plan li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--line);
}

.plan li > span:last-child {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.plan .btn {
  width: 100%;
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  max-width: 52rem;
}

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

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brand-700);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
  background: var(--brand-50);
}

.faq details > div {
  padding: 0 0 1.25rem;
  max-width: 46rem;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- call to action band */

.cta-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--ink);
  color: #cbd5e1;
  border-radius: 24px;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .lead {
  color: #cbd5e1;
  margin: 0.75rem 0 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 0.35);
}

.cta-band .btn-secondary:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  border-color: var(--white);
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------------------------------------------------------------- account and error pages */

.auth {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.auth-card {
  width: min(100%, 31rem);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.auth-card .lead {
  font-size: 1.0625rem;
}

.auth-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-links {
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

.steps-mini {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.steps-mini li::marker {
  font-weight: 700;
  color: var(--brand-700);
}

/* ---------------------------------------------------------------- legal prose */

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------- tracking demo */

.demo-banner {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--tone-warn-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.demo-switcher {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
}

.js .demo-switcher {
  display: grid;
  gap: 0.6rem;
}

.switch-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.switch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.switch-btn {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font: 600 0.9rem/1.2 var(--font-sans);
  cursor: pointer;
}

.switch-btn:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.switch-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.tracking-card {
  max-width: 30rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tracking-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.store-tile {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  flex: none;
}

.store-name {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.order-line {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.mono-inline {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--ink);
}

.tracking-body {
  padding: 1.25rem;
  display: grid;
  gap: 1.35rem;
}

.tracking-body .badge {
  margin-bottom: 0.7rem;
}

.status-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.status-message {
  margin: 0;
  color: var(--ink-2);
}

.eta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.eta strong {
  color: var(--ink);
}

.progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.progress li {
  position: relative;
  padding-top: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--muted);
}

.progress li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.progress li.is-done {
  color: var(--ink-2);
}

.progress li.is-done::before {
  background: var(--brand);
}

.progress li.is-current {
  color: var(--ink);
  font-weight: 700;
}

.progress li.is-current::before {
  background: var(--accent);
}

.carrier-row {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 480px) {
  .carrier-row {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

.carrier-row .label,
.offer .label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.carrier-row .value {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.mono-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  word-break: break-all;
}

.copy-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: 600 0.875rem/1 var(--font-sans);
  cursor: pointer;
}

.js .copy-btn {
  display: inline-flex;
}

.copy-btn .icon {
  width: 1rem;
  height: 1rem;
}

.copy-btn:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.copy-status {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--brand-700);
}

.timeline {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.timeline-block h3 {
  font-size: 1rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.1rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.timeline strong {
  color: var(--ink);
}

.timeline span {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.offer {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px dashed #cbd5e1;
}

.offer p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.offer .fine {
  margin: 0.5rem 0 0;
}

.support p {
  margin: 0;
  font-size: 0.95rem;
}

.support h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding-block: 3.5rem 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.9rem 0 0.5rem;
  max-width: 24rem;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand:hover {
  color: var(--white);
}

.site-footer .fine {
  color: #94a3b8;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-base p {
  margin: 0;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* ---------------------------------------------------------------- motion, print */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .demo-switcher,
  .copy-btn,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 1rem;
  }

  .tracking-card,
  .table-scroll,
  .plan,
  .card {
    break-inside: avoid;
  }
}
