/* ============================================================
   QuickOrder B2B — marketing site stylesheet
   Mobile-first, no frameworks, system font stack, no external deps.
   ============================================================ */

:root {
  --paper: #f9fafb;
  --card: #ffffff;
  --ink: #1a2332;
  --ink-soft: #55627a;
  --ink-faint: #7e8aa0;
  --line: #dfe4ec;
  --line-soft: #ebeef4;
  --brand: #1e4e8c;
  --brand-dark: #163a68;
  --brand-tint: #e8eef7;
  --accent: #c2540a;
  --accent-tint: #faeede;
  --footer-bg: #141c29;
  --footer-ink: #ccd5e2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.06), 0 8px 24px rgba(26, 35, 50, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 780px;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 750;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

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

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

.small {
  font-size: 0.875rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--line-soft);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

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

.brand svg {
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  padding: 4px 2px;
}

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

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

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.97rem;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

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

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

.btn--secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--secondary:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f0f4f9 0%, var(--paper) 100%);
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  max-width: 21em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__facts li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid #cbd9ec;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ------------------------------------------------------------
   Quick-order table mock (pure HTML/CSS)
   ------------------------------------------------------------ */

.qo-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
  font-size: 0.85rem;
}

.qo-mock__search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  background: var(--paper);
}

.qo-mock__search svg {
  flex: none;
  color: var(--ink-faint);
}

.qo-mock table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.qo-mock th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.qo-mock td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.qo-mock__sku {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  display: block;
}

.qo-mock__qty {
  display: inline-block;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
}

.qo-mock__line {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qo-mock__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 8px 4px;
}

.qo-mock__count {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.qo-mock__subtotal {
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.qo-mock__subtotal span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.qo-mock__btn {
  display: block;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 650;
  font-size: 0.92rem;
  border-radius: 8px;
  padding: 11px;
  margin-top: 10px;
}

.qo-mock__caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 14px 0 0;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: 56px 0;
}

.section--alt {
  background: #f0f2f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__intro {
  max-width: 640px;
  margin-bottom: 36px;
}

/* Card grids */

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

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

.card h3 {
  margin-top: 0;
}

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

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 14px;
}

/* Steps */

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

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 24px 72px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */

.pricing-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border: 2px solid var(--brand);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 12px;
}

.plan__name {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 4px;
}

.plan__price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.plan__price span {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.plan__trial {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 650;
  margin: 4px 0 18px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.plan ul li {
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.93rem;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   FAQ (details/summary)
   ------------------------------------------------------------ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 18px;
  color: var(--ink-soft);
}

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

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */

.cta-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #cddcf0;
  max-width: 520px;
  margin: 0 auto 24px;
}

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

.cta-band .btn--primary:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

/* ------------------------------------------------------------
   Tables (comparison, docs)
   ------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.93rem;
}

caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding: 10px 16px;
  caption-side: bottom;
  border-top: 1px solid var(--line-soft);
}

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

thead th {
  background: #f0f2f6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody th {
  font-weight: 650;
  white-space: nowrap;
}

td.yes {
  color: var(--brand-dark);
  font-weight: 650;
}

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

/* ------------------------------------------------------------
   Article / docs layout
   ------------------------------------------------------------ */

.page-head {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f0f4f9 0%, var(--paper) 100%);
}

.page-head h1 {
  margin-bottom: 0.3em;
}

.page-head .lead {
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

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

.article {
  padding: 40px 0 64px;
}

.article h2 {
  margin-top: 2.2em;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 1.8em;
}

.article ul,
.article ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.article li {
  margin-bottom: 0.4em;
}

.article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.note {
  background: var(--brand-tint);
  border: 1px solid #cbd9ec;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.93rem;
  margin: 20px 0;
}

.note--warn {
  background: var(--accent-tint);
  border-color: #ecd3ba;
}

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

.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
}

/* Docs index cards */

.doc-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.doc-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.doc-list a:hover {
  border-color: var(--brand);
}

.doc-list h3 {
  margin: 0 0 4px;
  color: var(--brand-dark);
}

.doc-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* "Still stuck" support footer on docs pages */

.support-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.support-box p {
  margin: 0 0 4px;
}

/* ------------------------------------------------------------
   Compare pages
   ------------------------------------------------------------ */

.verdict {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

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

.compare-cols {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 48px 0 32px;
  margin-top: 0;
  font-size: 0.92rem;
}

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

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

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

.footer-grid h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b9cb5;
  margin-bottom: 12px;
}

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

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

.footer-brand p {
  color: #9aabc4;
  max-width: 32em;
}

.footer-legal {
  border-top: 1px solid #26324a;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8b9cb5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ------------------------------------------------------------
   Responsive: tablet and up
   ------------------------------------------------------------ */

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .compare-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 80px 0 64px;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    padding: 76px 24px 24px;
  }

  .steps li::before {
    top: 24px;
    left: 24px;
  }

  .section {
    padding: 72px 0;
  }
}

/* ------------------------------------------------------------
   Accessibility & print
   ------------------------------------------------------------ */

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

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

  * {
    transition: none !important;
  }
}

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