/* ==========================================================================
   B2B Quick Wholesale — site styles
   Design concept: "The order sheet."
   Warm paper, hairline rules, monospace column labels, tabular figures, and a
   single highlighter accent. No gradients, no glows, no drop shadows except the
   one on a sticky bar. Restraint is the brand.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Paper and ink */
  --paper: #fbfaf6;
  --paper-2: #f3f1e8;
  --paper-3: #eae7da;
  --ink: #14150f;
  --ink-2: #4a4c40;
  --ink-3: #62655a;
  --rule: #ddd9cb;
  --rule-strong: #c3bfae;

  /* Accents */
  --green: #14573a;
  --green-dark: #0e3f2a;
  --lime: #d8f25b;
  --clay: #b8532f;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space and shape */
  --page: 1140px;
  --narrow: 760px;
  --gap: clamp(1.6rem, 4vw, 3rem);
  --radius: 4px;
  --bar-shadow: 0 -8px 28px rgba(20, 21, 15, .08);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

/* A faint ruled-paper grid, the way an order sheet is printed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(20, 21, 15, .028) 1px, transparent 1px);
  background-size: 100% 2.4rem;
  z-index: 0;
  opacity: .5;
}
body > * { position: relative; z-index: 1; }

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

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--green); }

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

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.small { font-size: .95rem; color: var(--ink-2); }
.tiny { font-size: .82rem; color: var(--ink-3); }

/* The monospace label that heads every column on an order sheet. */
.label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
  display: block;
}
.num { font-variant-numeric: tabular-nums; }

/* Highlighter: a marker swipe behind a few words, never a whole line. */
.mark {
  background: linear-gradient(to top, transparent .06em, var(--lime) .06em, var(--lime) .5em, transparent .5em);
  padding: 0 .06em;
}

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--page)); margin-inline: auto; }
@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 860px) and (orientation: landscape) {
    .wrap, .wrap--narrow { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  }
}
.wrap--narrow { width: min(100% - 2.4rem, var(--narrow)); margin-inline: auto; }
section { padding-block: clamp(3.4rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.rule-top { border-top: 1px solid var(--rule); }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}
.stack > * + * { margin-top: 1.1rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.btn--lime { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.btn--lime:hover { background: #cbe94a; border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
/* Fingers need a bigger target than a mouse pointer. */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .footer li a { min-height: 40px; display: inline-flex; align-items: center; }
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { min-height: 44px; }
  details.faq summary { min-height: 44px; align-items: center; }
  .guide__nav a { min-height: 40px; display: flex; align-items: center; }
}
/* More specific link rules elsewhere must never repaint a button's label. */
.nav a.btn, .panel--ink a.btn, .footer a.btn { color: var(--paper); text-decoration: none; }
.nav a.btn--lime, .panel--ink a.btn--lime, .footer a.btn--lime { color: var(--ink); }
.nav a.btn--ghost, .panel--ink a.btn--ghost { color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---- Header ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo__chip {
  font: 700 .95rem/1 var(--mono);
  letter-spacing: -.02em;
  background: var(--ink);
  color: var(--lime);
  padding: .42rem .45rem;
  border-radius: 3px;
}
.logo__word { font: 700 1.06rem/1 var(--display); letter-spacing: -.02em; font-variation-settings: "WONK" 1, "opsz" 20; }
.logo__word span { color: var(--ink-3); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .97rem; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: .5rem .8rem;
    font: 600 .92rem/1 var(--sans);
    color: var(--ink);
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .4rem 1.2rem 1.2rem;
  }
  .nav[data-open] { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: .9rem; justify-content: center; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(2.6rem, 6vw, 4.4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { max-width: 15ch; }
.hero__grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

/* A miniature of the thing we sell: a wholesale order, mid-flight. */
.sheet-card { border: 1px solid var(--rule-strong); border-radius: 6px; background: #fff; overflow: hidden; }
.sheet-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.sheet-card__top b { font-size: .95rem; }
.sheet-card__rows { padding: .3rem 0; }
.sheet-card__row { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem 5rem; gap: .8rem; align-items: baseline; padding: .55rem 1.1rem; border-bottom: 1px solid var(--rule); font-size: .94rem; }
.sheet-card__row:last-child { border-bottom: 0; }
.sheet-card__row span:nth-child(2), .sheet-card__row span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-card__sku { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); display: block; }
.sheet-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.sheet-card__total { font: 700 1.35rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.sheet-card__strike { color: var(--ink-3); text-decoration: line-through; font-size: .85rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.6rem; }

/* The plan strip: answers "does this work on my plan?" immediately. */
.plans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.plans__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plan-chip {
  font: 600 .9rem/1 var(--sans);
  padding: .34rem .6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  background: var(--paper);
}
.plan-chip[data-yes]::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---- Cards and panels --------------------------------------------------- */
.panel {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.panel--sunk { background: var(--paper-2); }
.panel--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel--ink .label, .panel--ink .small { color: #b9bcae; }
.panel--ink a { color: var(--lime); }

.feature { border-top: 2px solid var(--ink); padding-top: 1rem; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--ink-2); margin: 0; }
.feature__num { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); display: block; margin-bottom: .55rem; }

/* Numbered list of steps, ledger-style. The number is positioned, not a grid
   column, so any mix of headings, paragraphs and inline text stays in one block. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 0 1.15rem 3.6rem;
  border-bottom: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.3rem;
  font: 500 .85rem/1 var(--mono);
  color: var(--ink-3);
}
.steps h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.steps p { margin: .2rem 0 0; color: var(--ink-2); }

/* Click path: Shopify admin navigation, shown the way you'd read it aloud. */
.path {
  font-family: var(--mono);
  font-size: .86rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: .55rem .75rem;
  display: inline-block;
  margin: .35rem 0;
}
.path b { font-weight: 600; }

.note {
  border-left: 3px solid var(--lime);
  background: var(--paper-2);
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  margin: 1.2rem 0;
}
.note--warn { border-left-color: var(--clay); }
.note h4 { margin: 0 0 .3rem; }
.note p { margin: 0; color: var(--ink-2); }

/* ---- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; font-size: .97rem; }
.sheet th, .sheet td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet thead th {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1.5px solid var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.sheet td.yes { color: var(--green); font-weight: 650; }
.sheet td.no { color: var(--ink-3); }

/* ---- FAQ ---------------------------------------------------------------- */
details.faq { border-bottom: 1px solid var(--rule); padding: 1.05rem 0; }
details.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.06rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-top: .7rem; color: var(--ink-2); max-width: 62ch; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 620px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }

/* ---- Prose (legal, long-form) ------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .5rem; }
.prose code, code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
/* Store domains and email addresses are unbreakable words; let them wrap. */
p, li, td, dd, .lede, .small { overflow-wrap: break-word; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---- Utilities ---------------------------------------------------------- */
.center { text-align: center; }
.center .lede, .center h1, .center h2 { margin-inline: auto; }
.sr-only {
  position: absolute !important;
  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: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; z-index: 100;
}
.skip-link:focus { left: .6rem; top: .6rem; }
.stamp {
  display: inline-block;
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 3px;
  padding: .4rem .6rem;
  transform: rotate(-1.5deg);
}
