/* ==========================================================================
   Auditor for BigCommerce — shared stylesheet
   Used by: index, pricing, help, manual, contact, privacy, terms
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --ink: #14202e;
  /* headlines, body text */
  --ink-soft: #55637a;
  /* secondary text */
  --ink-faint: #8a97a8;
  /* captions, meta */
  --paper: #eceff4;
  /* page background */
  --surface: #ffffff;
  /* cards, panels */
  --line: #d4dae3;
  /* hairlines */
  --line-soft: #e5e9ef;

  --brand: #2438a8;
  /* ultramarine — primary action */
  --brand-dark: #1a2a80;
  --brand-tint: #e9ecfa;

  /* semantic event colours — these carry meaning, not decoration */
  --created: #16745a;
  --changed: #a5620b;
  --deleted: #b3261e;
  --created-bg: #e3f3ed;
  --changed-bg: #fbf0dc;
  --deleted-bg: #fbe7e5;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 12px 32px -12px rgba(20, 32, 46, .18);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --- type --------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: .88em;
}

code {
  background: #f2f4f8;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: .1em .35em;
}

kbd {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .8em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: .9rem;
}

/* --- layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.band {
  padding: 88px 0;
}

.band--tight {
  padding: 56px 0;
}

.band--white {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band--ink {
  background: var(--ink);
  color: #cfd7e2;
}

.band--ink h2,
.band--ink h3 {
  color: #fff;
}

.stack>*+* {
  margin-top: 1rem;
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* --- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 239, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: var(--brand);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .78rem;
  padding: 7px 12px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    margin-left: 0;
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 11px 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav .btn {
    margin-top: 12px;
    text-align: center;
  }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: .97rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn--quiet:hover {
  border-color: var(--ink-faint);
}

.btn--onink {
  background: #fff;
  color: var(--ink);
}

.btn--onink:hover {
  background: #e8ecf3;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 8px 15px;
  font-size: .88rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

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

.card p {
  color: var(--ink-soft);
  font-size: .97rem;
}

.card--link:hover {
  border-color: var(--brand);
}

.card__kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* --- semantic tags ------------------------------------------------------ */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  background: #eef1f6;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag--created {
  background: var(--created-bg);
  color: var(--created);
}

.tag--changed {
  background: var(--changed-bg);
  color: var(--changed);
}

.tag--deleted {
  background: var(--deleted-bg);
  color: var(--deleted);
}

/* --- the signature: log feed -------------------------------------------- */
.feed {
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--mono);
}

.feed__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #1c2b3d;
  border-bottom: 1px solid #2c3d52;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8ea1b8;
}

.feed__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

.feed__count {
  margin-left: auto;
  color: #6f8299;
  letter-spacing: .04em;
  text-transform: none;
}

.feed__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-height: 372px;
}

.feed__row {
  display: grid;
  grid-template-columns: 58px 108px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 16px;
  font-size: .78rem;
  color: #b7c4d4;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  animation: slide-in .4s ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.feed__time {
  color: #6f8299;
}

.feed__event {
  font-weight: 500;
  letter-spacing: .01em;
}

.feed__event--created {
  color: #3ddc97;
}

.feed__event--changed {
  color: #f0b445;
}

.feed__event--deleted {
  color: #ff7a6b;
}

.feed__detail {
  color: #cdd8e5;
}

.feed__actor {
  color: #8ea1b8;
}

.feed__from {
  color: #8ea1b8;
  text-decoration: line-through;
  text-decoration-color: #5b6d83;
}

.feed__arrow {
  color: #6f8299;
  padding-inline: 4px;
}

.feed__to {
  color: #fff;
}

@media (max-width: 560px) {
  .feed__row {
    grid-template-columns: 52px 1fr;
    row-gap: 2px;
  }

  .feed__detail {
    grid-column: 1 / -1;
  }
}

/* --- steps (a real sequence, so numbering earns its place) --------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps>li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.steps>li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps>li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--brand);
  padding-top: 2px;
}

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

.steps p {
  color: var(--ink-soft);
  font-size: .97rem;
}

@media (max-width: 560px) {
  .steps>li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
}

/* --- tables ------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .93rem;
}

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

table.data th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  background: #f6f8fa;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data td.mono {
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --- pricing ------------------------------------------------------------ */
.tiers {
  display: grid;
  gap: 20px;
  align-items: start;
}

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

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.tier__flag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.tier__name {
  font-size: 1.35rem;
  margin-bottom: .3rem;
}

.tier__blurb {
  color: var(--ink-soft);
  font-size: .93rem;
  min-height: 3em;
}

.tier__price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 18px 0 2px;
}

.tier__price span {
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0;
}

.tier__meta {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.tier .btn {
  margin-bottom: 22px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}

.ticks li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.ticks li:first-child {
  border-top: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.ticks li.no {
  color: var(--ink-faint);
}

.ticks li.no::before {
  content: "—";
  border: 0;
  transform: none;
  left: 3px;
  top: 6px;
  width: auto;
  height: auto;
  color: var(--ink-faint);
  font-family: var(--mono);
}

/* --- accordion (help / FAQ) --------------------------------------------- */
.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.qa>summary {
  padding: 16px 46px 16px 20px;
  cursor: pointer;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -.01em;
  list-style: none;
}

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

.qa>summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 400;
}

.qa[open]>summary::after {
  content: "–";
}

.qa__body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: .97rem;
}

.qa__body p {
  margin-bottom: .8em;
}

/* --- docs layout (user manual) ------------------------------------------ */
.docs {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .docs {
    grid-template-columns: 232px 1fr;
    gap: 56px;
  }
}

.toc {
  font-size: .93rem;
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 96px;
  }
}

.toc__title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-faint);
}

.toc a:hover {
  color: var(--brand);
  text-decoration: none;
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 2.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.prose>h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 2em;
  scroll-margin-top: 92px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: .45em;
}

.prose li::marker {
  color: var(--ink-faint);
}

.prose p {
  color: var(--ink-soft);
}

.prose p>strong,
.prose li>strong {
  color: var(--ink);
}

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  margin: 0 0 1.4em;
}

.note strong {
  color: var(--brand-dark);
}

.pre {
  background: var(--ink);
  color: #cdd8e5;
  font-family: var(--mono);
  font-size: .82rem;
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 1.4em;
  line-height: 1.6;
}

.updated {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-block;
  padding: 6px 12px;
  background: var(--surface);
}

/* --- forms -------------------------------------------------------------- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: .82rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

.form-note {
  font-size: .85rem;
  color: var(--ink-faint);
}

.form-status {
  border-left: 3px solid var(--created);
  background: var(--created-bg);
  color: var(--created);
  padding: 12px 16px;
  font-size: .93rem;
  margin-bottom: 18px;
}

.form-status[hidden] {
  display: none;
}

/* --- contact channels --------------------------------------------------- */
.channel {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.channel:last-child {
  border-bottom: 1px solid var(--line);
}

.channel h3 {
  margin-bottom: .2rem;
  font-size: 1.05rem;
}

.channel p {
  color: var(--ink-soft);
  font-size: .94rem;
}

.channel .mono {
  color: var(--ink);
}

/* --- footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #94a4b8;
  padding: 64px 0 32px;
  font-size: .93rem;
}

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

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

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

.footer-grid h4 {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6f8299;
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 9px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__mark {
  background: #fff;
  color: var(--ink);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #2c3d52;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-family: var(--mono);
  font-size: .74rem;
  color: #6f8299;
}

.footer-bottom .sep {
  margin-left: auto;
}