/* CartSplit site. The tokens mirror the extension's own stylesheet, so the
   page looks like the product it describes. No frameworks, no trackers. */

:root {
  --paper: #ffffff;
  --wash: #f3f4f6;
  --ink: #17191c;
  --ink-2: #50555e;
  --ink-3: #80868f;
  --rule: #e4e6ea;
  --rule-2: #cdd1d7;
  --accent: #2c46a3;
  --accent-ink: #ffffff;
  --accent-wash: #edf0fa;
  --r1: 4px;
  --r2: 6px;
  --hairline: 1px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171a;
    --wash: #1e2125;
    --ink: #e9ebee;
    --ink-2: #a9aeb6;
    --ink-3: #7d838c;
    --rule: #2b2f35;
    --rule-2: #3b4048;
    --accent: #93a8f2;
    --accent-ink: #10131f;
    --accent-wash: #1f2640;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ------------------------------------------------------------- header */
.site-header {
  border-bottom: var(--hairline) solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: var(--r1);
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 15px;
}
.site-header nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--ink);
}

/* --------------------------------------------------------------- hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: var(--hairline) solid var(--rule);
}
.hero h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 21ch;
}
.hero p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 24px;
}
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--r2);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
}
.button[aria-disabled='true'] {
  background: var(--wash);
  color: var(--ink-2);
  border: var(--hairline) solid var(--rule-2);
  cursor: default;
}
.hero .aside {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ------------------------------------------------------------ sections */
section {
  padding: 40px 0;
  border-bottom: var(--hairline) solid var(--rule);
}
section:last-of-type {
  border-bottom: none;
}
h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.shots {
  display: grid;
  gap: 18px;
  padding: 40px 0;
  border-bottom: var(--hairline) solid var(--rule);
}
.shots img {
  width: 100%;
  height: auto;
  border: var(--hairline) solid var(--rule);
  border-radius: var(--r2);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}
.steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 650;
  display: grid;
  place-items: center;
}
.steps strong {
  display: block;
}
.steps p {
  margin: 2px 0 0;
  color: var(--ink-2);
}

.stores p {
  margin: 0 0 8px;
}
.stores .beta {
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- plans */
.price-line {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: var(--r1);
  padding: 14px 16px;
  margin: 0 0 20px;
  max-width: 62ch;
}
.price-line strong {
  font-size: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: var(--hairline) solid var(--rule);
  vertical-align: top;
}
th {
  font-weight: 650;
}
thead th {
  border-bottom: var(--hairline) solid var(--rule-2);
}
td:first-child,
th:first-child {
  padding-left: 0;
}

/* ----------------------------------------------------------------- faq */
.faq details {
  border-bottom: var(--hairline) solid var(--rule);
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style-position: outside;
}
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* --------------------------------------------------------------- prose */
.prose {
  padding: 40px 0 8px;
}
.prose h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.prose .updated {
  color: var(--ink-3);
  margin: 0 0 24px;
}
.prose h2 {
  font-size: 20px;
  margin: 30px 0 10px;
}
.prose p,
.prose li {
  max-width: 72ch;
}
.prose li {
  margin-bottom: 6px;
}
.prose table {
  margin: 12px 0;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: var(--hairline) solid var(--rule);
  margin-top: 40px;
  padding: 24px 0 36px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer p {
  margin: 0 0 8px;
}
.site-footer a {
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }
  .shots img:first-child {
    grid-column: 1 / -1;
  }
}
