/* FitmentKit site. One stylesheet, no build step. Light and dark follow the system setting. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --text: #1b1c1f;
  --muted: #5b5f66;
  --line: #e2dfd9;
  --accent: #b3261e;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9e7;
  --ok: #1f7a45;
  --ok-soft: #e4f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --focus: #1a5fd0;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 4px 16px rgb(0 0 0 / 5%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --surface: #1b1d20;
    --surface-2: #23262a;
    --text: #ecebe8;
    --muted: #a3a7ad;
    --line: #33373c;
    --accent: #f0675d;
    --accent-ink: #1a0b0a;
    --accent-soft: #3a1d1b;
    --ok: #6fd39a;
    --ok-soft: #173325;
    --warn: #f1c066;
    --warn-soft: #3a2e14;
    --focus: #7fb0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem / 1.6 var(--font);
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}

pre {
  font-family: var(--mono);
  line-height: 1.5;
  white-space: pre;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.1rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.site-footer a {
  color: var(--muted);
  display: inline-block;
  padding: 0.35rem 0;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sections */

main {
  display: block;
}

.section {
  padding: 3.5rem 0 0;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero {
  padding: 3rem 0 0;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding-top: 4.5rem;
  }
}

.hero h1 {
  max-width: 18ch;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Storefront mock in the hero (text, not an image, so it reads in both themes) */

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.mock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: 0.9rem;
}

.mock-bar strong {
  font-weight: 600;
}

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

.mock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.mock-item:first-of-type {
  border-top: 0;
}

.mock-title {
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentcolor;
  flex: none;
}

.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill-no {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-ask {
  background: var(--warn-soft);
  color: var(--warn);
}

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

/* Cards and grids */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

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

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

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 2.75rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps > li strong {
  display: block;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

/* Pricing */

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  margin-top: 1.5rem;
}

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

.plan-featured {
  border: 2px solid var(--accent);
}

.plan h3 {
  margin-bottom: 0.25rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

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

.plan ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.95rem;
}

.plan li + li {
  margin-top: 0.35rem;
}

.soon {
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
}

/* Long-form pages (privacy, terms, support) */

.doc {
  max-width: 46rem;
  padding-top: 3rem;
}

.doc h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem);
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  padding-top: 0.5rem;
}

.doc h3 {
  margin-top: 1.5rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

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

tr:last-child > * {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
  font-weight: 600;
}

/* Stack table rows into cards on narrow screens */
@media (max-width: 40rem) {
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .stack tr {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
  }

  .stack tr:last-child {
    border-bottom: 0;
  }

  .stack th,
  .stack td {
    display: block;
    border: 0;
    padding: 0.2rem 0.8rem;
  }

  .stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
  }
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1rem;
  margin: 0 0 0.6rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  min-height: 44px;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

details > :last-child {
  margin-bottom: 0.9rem;
}

.center {
  text-align: center;
}

.notfound {
  padding: 5rem 0 2rem;
  max-width: 36rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a {
    transition:
      filter 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip {
    display: none;
  }

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