/*
 * EliteSync — field-manual storefront.
 *
 * A printed study-desk look: warm paper, ink, forest green, amber highlighter,
 * Newsreader display over IBM Plex Sans, square corners, hairline rules and a
 * faint paper grain. This file is the only place the look is defined; the
 * theme's Nunjucks files keep their structure and Alpine behaviour.
 *
 * Semantic hooks used below are the stable `sa-*` classes shipped by Canvas.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  --ff-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --cl-accent-fill: 31, 77, 59;
  --sa-rule: rgba(28, 26, 22, 0.12);
  --sa-highlight: 231, 180, 76;
  --sa-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

html[data-scheme='light'] {
  --cl-accent: 31, 77, 59;
  --cl-accent-fill: 31, 77, 59;
  --cl-success: 47, 110, 79;
  --cl-warning: 154, 91, 18;
  --cl-error: 163, 58, 46;
  --sa-rule: rgba(28, 26, 22, 0.12);
}

html[data-scheme='dark'] {
  --cl-accent: 155, 216, 184;
  --cl-accent-fill: 46, 107, 81;
  --cl-success: 126, 217, 168;
  --cl-warning: 240, 180, 90;
  --cl-error: 255, 154, 140;
  --sa-rule: rgba(242, 235, 221, 0.14);
}

/* Accent fills always carry the on-accent ink; text accents stay scheme-aware. */
.bg-accent-500 { background-color: rgb(var(--cl-accent-fill)); }
.hover\:bg-accent-600:hover { background-color: color-mix(in srgb, rgb(var(--cl-accent-fill)), #000 10%); }
.bg-accent-500\/10 { background-color: rgba(var(--cl-accent), 0.1); }
.bg-accent-500\/15 { background-color: rgba(var(--cl-accent), 0.15); }
.text-accent-500 { color: rgb(var(--cl-accent)); }
.border-accent-500 { border-color: rgb(var(--cl-accent)); }

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
  accent-color: rgb(var(--cl-accent));
  caret-color: rgb(var(--cl-accent));
}

body {
  font-family: var(--ff-body);
  line-height: 1.6;
  letter-spacing: 0.004em;
  background-image: var(--sa-grain);
  background-repeat: repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
}

::selection {
  background-color: rgb(var(--sa-highlight));
  color: #1C1A16;
}

:focus-visible {
  outline: 2px solid rgb(var(--cl-accent));
  outline-offset: 3px;
}

a { text-underline-offset: 0.18em; }

.sa-main:focus { outline: none; }

/* The old page-wide grid and glow are gone; keep the wrapper inert if a stale
   settings payload still renders it. */
.page-fx { display: none; }

/* Display scale: editorial serif, tight leading. */
.text-display,
.sa-hero-title {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 500;
}

.text-h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.022em; }
.text-h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -0.018em; }
.text-h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.15; }
.text-h4 { font-size: 1.2rem; line-height: 1.3; }

/* Highlighter mark used by the *word* syntax in headings. */
.hl-accent .mk {
  color: inherit;
  background-image: linear-gradient(transparent 62%, rgba(var(--sa-highlight), 0.55) 62%);
  background-repeat: no-repeat;
  padding-inline: 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ------------------------------------------------------------------ */
/* Announcement                                                        */
/* ------------------------------------------------------------------ */

.sa-announcement {
  background-color: rgb(var(--cl-t-primary));
  color: rgb(var(--cl-background));
  border-bottom: 1px solid rgb(0 0 0 / 0.18);
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-announcement a {
  color: inherit;
  text-decoration: none;
}

.sa-announcement .py-2 { padding-block: 0.6rem; }

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

.sa-header { background-color: rgb(var(--cl-background)); }

.sa-navbar > div {
  background-color: rgb(var(--cl-background));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--cl-border);
  box-shadow: none;
}

.sa-navbar .h-16 { height: 4.5rem; }

.sa-navbar-logo {
  gap: 0.65rem;
  align-items: center;
}

.sa-brand-mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  background-color: rgb(var(--cl-accent));
}

.sa-brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgb(var(--cl-background));
}

.sa-navbar-logo .font-heading {
  font-family: var(--ff-heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.sa-navbar-link {
  position: relative;
  margin-inline: 0.65rem;
  padding: 0.55rem 0.1rem;
  border-radius: 0;
  background: transparent !important;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-navbar-link:hover {
  color: rgb(var(--cl-t-primary));
  background: transparent !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45rem;
}

.sa-navbar-link[data-active] {
  color: rgb(var(--cl-t-primary));
  text-decoration: underline;
  text-decoration-color: rgb(var(--cl-accent));
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.sa-navbar button,
.sa-navbar .rounded-btn { border-radius: 0; }

.sa-navbar-account {
  border-radius: 0 !important;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem !important;
}

.sa-navbar-cart span {
  border-radius: 0;
  background-color: rgb(var(--cl-accent-fill));
  color: rgb(var(--cl-on-accent));
  font-family: var(--ff-mono);
}

#navbar-mobile-menu {
  border-radius: 2px;
  background-color: rgb(var(--cl-surface-raised));
  box-shadow: 6px 6px 0 rgb(0 0 0 / 0.12);
}

/* ------------------------------------------------------------------ */
/* Hero: left column + specimen sheet                                  */
/* ------------------------------------------------------------------ */

.sa-hero--split-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cl-border);
  padding-block: 0;
}

.sa-hero--split-media .wrap {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.sa-hero--split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 31px,
    var(--sa-rule) 31px 32px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.35) 62%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.35) 62%, transparent 92%);
}

.sa-hero--split-media .wrap { position: relative; }

.sa-hero--split-media .wrap > .flex {
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.sa-hero--split-media .wrap > .flex > div:first-child { flex: 0 0 56%; max-width: 56%; }
.sa-hero--split-media .wrap > .flex > div:last-child { flex: 0 0 44%; max-width: 44%; }

.sa-hero--split-media .max-w-2xl { max-width: 36rem; }

.sa-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-hero-eyebrow::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  background-color: rgb(var(--cl-accent));
}

.sa-hero-title {
  max-width: 15ch;
  text-wrap: balance;
}

.sa-hero-subtitle {
  max-width: 42ch;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgb(var(--cl-t-muted));
}

.sa-hero-actions { margin-top: 2rem; }

.sa-hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
  max-width: 31rem;
  margin-top: 2rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sa-hero-trust > span { align-items: center; gap: 0.5rem; }

.sa-hero-trust svg { display: none; }

.sa-hero-trust > span::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background-color: rgb(var(--cl-accent));
}

/* The specimen sheet: a printed sample spread, always paper-coloured. */
.sa-specimen {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-left: auto;
  padding: 0 14px 14px 0;
}

.sa-specimen-back {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 0;
  bottom: 0;
  z-index: 0;
  border: 1px solid rgb(28 26 22 / 0.35);
  background-color: #E9E1D2;
  transform: rotate(1.2deg);
}

.sa-specimen-sheet {
  position: relative;
  z-index: 1;
  border: 1px solid #1C1A16;
  background-color: #FBF7EE;
  color: #1C1A16;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  box-shadow: 10px 10px 0 rgb(28 26 22 / 0.12);
}

.sa-specimen-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #5C5548;
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-specimen-title {
  margin-top: 1.5rem;
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sa-specimen-rule {
  height: 1px;
  margin: 1.25rem 0;
  background-color: #1C1A16;
}

.sa-specimen-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-specimen-toc li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgb(28 26 22 / 0.35);
}

.sa-specimen-toc li span:first-child { color: #1F4D3B; }
.sa-specimen-toc li span:nth-child(2) { flex: 1; }
.sa-specimen-toc li span:last-child { color: #5C5548; }

.sa-specimen-figure {
  margin-top: 1.25rem;
  border: 1px solid rgb(28 26 22 / 0.35);
  padding: 0.75rem;
}

.sa-specimen-figure svg { display: block; width: 100%; height: auto; }

.sa-specimen-figure p {
  margin-top: 0.5rem;
  color: #5C5548;
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-specimen-stamp {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #1F4D3B;
  color: #1F4D3B;
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

/* ------------------------------------------------------------------ */
/* Sections and headers                                                */
/* ------------------------------------------------------------------ */

.sa-main > section.component + section.component {
  border-top: 1px solid var(--cl-border);
}

.sa-section-header {
  max-width: 46rem;
  margin: 0 0 2.75rem;
  text-align: left !important;
}

.sa-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-section-eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgb(var(--cl-accent));
}

.sa-section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--cl-border);
}

/* The shop reads like numbered chapters; other templates keep a plain kicker. */
.sa-tpl-shop .sa-main { counter-reset: sa-sec; }
.sa-tpl-shop .sa-section-header { counter-increment: sa-sec; }
.sa-tpl-shop .sa-section-eyebrow::before {
  content: counter(sa-sec, decimal-leading-zero);
  width: auto;
  height: auto;
  background: none;
  color: rgb(var(--cl-accent));
  font-size: 0.625rem;
}

.sa-section-title {
  font-family: var(--ff-heading);
  font-weight: 500;
  letter-spacing: -0.022em;
}

.sa-section-subtitle {
  max-width: 46ch;
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Buttons and forms                                                   */
/* ------------------------------------------------------------------ */

.sa-btn {
  min-height: 2.75rem;
  padding: 0.9rem 1.35rem;
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.sa-btn i { display: none; }

.sa-btn--primary.sa-btn--solid {
  border: 1px solid rgb(var(--cl-accent-fill));
  background-color: rgb(var(--cl-accent-fill));
  color: rgb(var(--cl-on-accent));
}

.sa-btn--primary.sa-btn--solid:hover {
  border-color: color-mix(in srgb, rgb(var(--cl-accent-fill)), #000 12%);
  background-color: color-mix(in srgb, rgb(var(--cl-accent-fill)), #000 12%);
}

.sa-btn--secondary.sa-btn--outline {
  border: 1px solid rgb(var(--cl-t-primary));
  background-color: transparent;
  color: rgb(var(--cl-t-primary));
}

.sa-btn--secondary.sa-btn--outline:hover {
  background-color: rgb(var(--cl-t-primary));
  color: rgb(var(--cl-background));
}

.sa-hero-actions .sa-btn--primary::after {
  content: "→";
  margin-left: 0.55rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
}

.input,
.input-stepper {
  border-radius: 2px;
  background-color: rgb(var(--cl-surface));
}

.input:focus,
.input:focus-visible {
  border-color: rgb(var(--cl-accent));
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--cl-accent), 0.18);
}

.input::placeholder { color: rgba(var(--cl-t-muted), 0.8); }

.input-stepper > button:hover { background-color: rgba(var(--cl-t-primary), 0.06); }

/* ------------------------------------------------------------------ */
/* Payment strip                                                       */
/* ------------------------------------------------------------------ */

.sa-tpl-shop .sa-trust-badges--card { padding-block: 2.5rem; }

.sa-trust-badges-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border: 0;
  border-top: 1px solid var(--cl-border);
  border-bottom: 1px solid var(--cl-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sa-trust-badges-copy { align-items: flex-start; gap: 0.7rem; }

.sa-trust-badges-title {
  color: rgb(var(--cl-t-primary));
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-trust-badges-title svg { color: rgb(var(--cl-accent)); }

.sa-trust-badges-subtitle {
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sa-trust-badges-legal {
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sa-trust-badges-items {
  justify-content: flex-start;
  gap: 0.35rem;
}

.sa-pay-logo {
  box-sizing: content-box;
  height: 18px;
  padding: 2px 6px;
  border: 1px solid rgb(28 26 22 / 0.14);
  border-radius: 2px;
  background-color: #FFFFFF;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .sa-trust-badges-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
  }
  .sa-trust-badges-items { justify-content: flex-end; }
}

/* Prohube: Stripe is configured but not active yet; keep the payment promise generic. */
.sa-trust-badges-items { display: none !important; }
.sa-trust-badges-panel { grid-template-columns: 1fr !important; }

/* ------------------------------------------------------------------ */
/* Steps: four ruled columns                                           */
/* ------------------------------------------------------------------ */

.sa-steps--grid .sa-steps-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.sa-steps--grid .sa-steps-item {
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--cl-t-primary));
}

.sa-steps--grid .sa-steps-item .h-px { background-color: var(--cl-border); }

.sa-steps--grid .sa-steps-item .flex.items-center.gap-4 > span:first-child {
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.sa-steps--grid .sa-steps-icon { display: none; }

.sa-steps--grid .sa-steps-item h3 {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
}

.sa-steps--grid .sa-steps-item p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .sa-steps--grid .sa-steps-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .sa-steps--grid .sa-steps-items { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Product cards: catalogue index cards                                */
/* ------------------------------------------------------------------ */

.sa-products-items { counter-reset: sa-card; }

.sa-page-products-items { counter-reset: sa-card; }
.sa-page-products-items .sa-page-products-item { counter-increment: sa-card; }
.sa-page-products-items .sa-product-card { counter-increment: none; }

.sa-product-card {
  counter-increment: sa-card;
  border: 1px solid var(--cl-border);
  border-radius: 2px;
  background-color: rgb(var(--cl-surface));
  box-shadow: none;
  transform: none !important;
}

.sa-product-card:hover {
  border-color: rgb(var(--cl-accent));
  box-shadow: none;
}

.sa-product-card-media { background-color: rgb(var(--cl-surface-raised)); }

.sa-card-placeholder {
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  background: transparent;
}

.sa-card-placeholder-label {
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-product-card-media img {
  filter: saturate(0.92) contrast(1.02);
  transition: none;
}

.sa-product-card:hover .sa-product-card-media img { transform: none; }

.sa-product-card--flat-divider { display: flex; flex-direction: column; }

.sa-product-card--flat-divider > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
}

.sa-products-item > .sa-product-card,
.sa-page-products-item > .sa-product-card { height: 100%; }

.sa-product-card--flat-divider > div:last-child::before {
  content: "NO. " counter(sa-card, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}

.sa-product-card-title {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.sa-product-card:hover .sa-product-card-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.sa-product-card-price {
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sa-product-card-stock {
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sa-product-card-stock svg { display: none; }
.sa-product-card-stock .text-success { color: rgb(var(--cl-accent)) !important; }
.sa-product-card-stock .text-error { color: rgb(var(--cl-error)) !important; }

.sa-product-card-subtext {
  display: block;
  margin-top: 0.35rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sa-product-card--flat-divider > div:last-child::after {
  content: "View guide →";
  display: block;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--cl-border);
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-product-card-badges span {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--cl-border);
  border-radius: 2px;
  background-color: rgb(var(--cl-background));
  color: rgb(var(--cl-t-primary));
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.sa-product-card-status {
  border-radius: 2px !important;
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Features: ruled index rows                                          */
/* ------------------------------------------------------------------ */

.sa-features--icon-grid .sa-features-items {
  counter-reset: sa-feature;
  gap: 0 2rem;
}

.sa-features--icon-grid .sa-features-item {
  counter-increment: sa-feature;
  padding: 1.25rem 0 1.75rem;
  border: 0;
  border-top: 1px solid var(--cl-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sa-features--icon-grid .sa-features-item > span:first-child { display: none; }

.sa-features--icon-grid .sa-features-item::before {
  content: "0" counter(sa-feature);
  display: block;
  margin-bottom: 0.8rem;
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}

.sa-features--icon-grid .sa-features-item h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.sa-features--icon-grid .sa-features-item p {
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.sa-faq-items { gap: 0 2.5rem; }

.sa-faq-item {
  border: 0;
  border-top: 1px solid var(--cl-border);
  border-radius: 0;
  background: transparent;
}

.sa-faq-item > button {
  padding: 1.15rem 0;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.sa-faq-item > button svg { color: rgb(var(--cl-accent)); }

.sa-faq-item .faq-panel-inner > div {
  max-width: 58ch;
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sa-page-faq-item {
  border: 0;
  border-top: 1px solid var(--cl-border);
  border-radius: 0;
  background: transparent;
}

.sa-page-faq-item > button {
  padding: 1.15rem 0;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.sa-page-faq-item > button svg { color: rgb(var(--cl-accent)); }

.sa-page-faq-item .faq-panel-inner > div {
  max-width: 58ch;
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sa-page-faq--accordion-2col .sa-page-faq-items { gap: 0 2.5rem; }

.sa-faq-support-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border: 0;
  border-left: 3px solid rgb(var(--cl-accent));
  border-radius: 0;
  background-color: rgb(var(--cl-surface));
  box-shadow: none;
}

.sa-faq-support-card > div > span {
  display: none;
}

.sa-faq-support-card-title {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  font-weight: 500;
}

.sa-faq-support-card-link {
  min-height: 2.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}

.sa-faq-support-card-link svg { display: none; }

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

.sa-footer {
  border-top: 2px solid rgb(var(--cl-t-primary));
  margin-top: 0;
  background-color: rgb(var(--cl-background));
}

.sa-footer .wrap { padding-block: 3rem 2rem; }

.sa-footer .font-heading { font-size: 2rem; letter-spacing: -0.02em; }

.sa-footer h2 {
  margin-bottom: 0.9rem;
  color: rgb(var(--cl-t-muted));
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-footer-link {
  font-size: 0.9rem;
  line-height: 1.5;
}

.sa-footer-link:hover {
  color: rgb(var(--cl-t-primary));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sa-footer .text-xs {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
  text-transform: none;
}

.sa-footer .border-t {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.sa-footer .text-sm.text-t-muted.whitespace-pre-line {
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Product page                                                        */
/* ------------------------------------------------------------------ */

.sa-page-product-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.sa-page-product-price {
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sa-tpl-product .rounded-card {
  border-radius: 2px;
  box-shadow: none;
}

.sa-tpl-product .lg\:sticky .rounded-card {
  border-color: rgb(var(--cl-t-primary));
  background-color: rgb(var(--cl-surface));
}

.sa-tpl-product .editor {
  max-width: 68ch;
  font-size: 1.0125rem;
  line-height: 1.7;
}

.sa-tpl-product .editor h1,
.sa-tpl-product .editor h2,
.sa-tpl-product .editor h3,
.sa-tpl-product .editor .e-heading-h1,
.sa-tpl-product .editor .e-heading-h2,
.sa-tpl-product .editor .e-heading-h3 {
  font-family: var(--ff-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.sa-tpl-product .editor .e-link { color: rgb(var(--cl-accent)); }

.sa-tpl-product .editor > p { margin-top: 1rem; }
.sa-tpl-product .editor > p:first-child { margin-top: 0; }

.sa-tpl-product .editor > h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sa-tpl-product .editor > ul {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.sa-tpl-product .editor > ul li { margin-top: 0.35rem; }

.sa-product-form .input,
.sa-product-form .input-stepper,
.sa-product-form button { border-radius: 2px; }

.sa-add-to-cart {
  border: 1px solid rgb(var(--cl-accent-fill)) !important;
  border-radius: 0 !important;
  background-color: rgb(var(--cl-accent-fill)) !important;
  color: rgb(var(--cl-on-accent)) !important;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}

.sa-add-to-cart:hover:enabled { background-color: color-mix(in srgb, rgb(var(--cl-accent-fill)), #000 12%) !important; }

.sa-buy-now {
  border: 1px solid rgb(var(--cl-t-primary)) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: rgb(var(--cl-t-primary)) !important;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
}

.sa-buy-now:hover:enabled {
  background-color: rgb(var(--cl-t-primary)) !important;
  color: rgb(var(--cl-background)) !important;
}

.sa-add-to-cart svg,
.sa-buy-now svg { display: none; }

.sa-product-trust {
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sa-product-trust svg { color: rgb(var(--cl-accent)); }

.sa-product-gallery img,
.sa-product-gallery .splide__slide img {
  border: 1px solid var(--cl-border);
  border-radius: 2px;
}

.sa-product-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #1C1A16;
  border-radius: 2px;
  background-color: #FBF7EE;
  color: #1C1A16;
  box-shadow: 10px 10px 0 rgba(28, 26, 22, 0.12);
}

.sa-product-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: #1F4D3B;
}

.sa-product-cover-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #5C5548;
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sa-product-cover-title {
  max-width: 18ch;
  margin-top: auto;
  margin-bottom: 0;
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sa-product-cover-rule {
  height: 1px;
  margin: 1.1rem 0;
  background-color: #1C1A16;
}

.sa-product-cover-deck {
  max-width: 34ch;
  color: #5C5548;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sa-product-cover-figure {
  width: 12rem;
  max-width: 50%;
  margin-top: 1.1rem;
  padding: 0.6rem;
  border: 1px solid rgba(28, 26, 22, 0.35);
}

.sa-product-cover-figure svg { display: block; width: 100%; height: auto; }

.sa-product-cover-stamp {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #1F4D3B;
  color: #1F4D3B;
  font-family: var(--ff-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

@media (max-width: 639px) {
  .sa-product-cover { aspect-ratio: auto; min-height: 22rem; }
  .sa-product-cover-figure { max-width: 60%; }
  .sa-product-cover-stamp {
    position: static;
    align-self: flex-end;
    margin-top: 1rem;
    transform: none;
  }
}

.sa-tpl-product .splide__slide { border-radius: 2px; }

.sa-tpl-product .splide__pagination__page { border-radius: 0; }

/* Variant cards: stamped squares, green rule when selected. */
.sa-product-form .grid button,
.sa-product-form .flex.flex-col > button {
  border-radius: 2px;
}

.sa-product-form .grid button[class*="border-accent-500"],
.sa-product-form .flex.flex-col > button[class*="border-accent-500"] {
  background-color: rgba(var(--cl-accent), 0.06) !important;
}

/* ------------------------------------------------------------------ */
/* Cart, drawer and modals                                             */
/* ------------------------------------------------------------------ */

.sa-cart-panel {
  border-left: 1px solid rgb(var(--cl-t-primary));
  background-color: rgb(var(--cl-background));
  box-shadow: -10px 0 0 rgb(0 0 0 / 0.08);
}

.sa-cart-panel h2 {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 500;
}

.sa-cart-item {
  border-radius: 2px;
  background-color: rgb(var(--cl-surface));
  box-shadow: none;
}

.sa-cart-panel .bg-accent-500,
.sa-cart-panel button.bg-accent-500 {
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-tpl-cart .sa-page-cart-title {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.sa-tpl-cart .sa-page-cart-price {
  color: rgb(var(--cl-accent));
  font-family: var(--ff-mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.sa-tpl-cart .bg-accent-500,
.sa-tpl-products .bg-accent-500,
.sa-customer-login-modal .bg-accent-500 {
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-customer-login-modal .rounded-card,
.sa-customer-login-modal .bg-surface-raised {
  border-radius: 2px;
  box-shadow: 8px 8px 0 rgb(0 0 0 / 0.16);
}

.sa-customer-login-modal .text-h4 {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 500;
}

.sa-searchbar input,
.sa-searchbar .input { border-radius: 2px; }

/* ------------------------------------------------------------------ */
/* Cookie banner                                                       */
/* ------------------------------------------------------------------ */

.sa-cc-box,
.sa-cc-inner {
  border-radius: 2px;
}

.sa-cc-box {
  border: 1px solid rgb(var(--cl-t-primary));
  background-color: rgb(var(--cl-surface));
  box-shadow: 8px 8px 0 rgb(0 0 0 / 0.12);
}

.sa-cc-title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 500;
}

.sa-cc-msg { font-size: 0.875rem; line-height: 1.55; }

.sa-cc-btn {
  border-radius: 0;
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sa-cc-solid {
  border-color: rgb(var(--cl-accent-fill)) !important;
  background-color: rgb(var(--cl-accent-fill)) !important;
  color: rgb(var(--cl-on-accent)) !important;
}

.sa-cc-solid:hover { background-color: color-mix(in srgb, rgb(var(--cl-accent-fill)), #000 12%) !important; }

.sa-cc-ghost { border: 1px solid var(--cl-border); }

/* ------------------------------------------------------------------ */
/* Utility surfaces                                                    */
/* ------------------------------------------------------------------ */

.sa-skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 0;
  background-color: rgb(var(--cl-accent-fill));
  color: rgb(var(--cl-on-accent));
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-220%);
}

.sa-skip-link:focus-visible {
  transform: none;
  outline: 2px solid rgb(var(--cl-background));
  outline-offset: 2px;
}

.sa-breadcrumbs {
  font-family: var(--ff-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sa-breadcrumbs ol { gap: 0.5rem; }

.sa-breadcrumbs a:hover { text-decoration: underline; }

.sa-pagination .rounded-btn,
.sa-pagination button,
.sa-pagination a { border-radius: 0; }

.sa-toasts .sa-toast {
  border-radius: 2px;
  border: 1px solid rgb(var(--cl-t-primary));
  background-color: rgb(var(--cl-surface));
  box-shadow: 6px 6px 0 rgb(0 0 0 / 0.12);
}

.sa-feedback-card { border-radius: 2px; }

.editor .e-code,
.editor .e-collapsible { border-radius: 2px; }

.editor .e-quote {
  border-left-width: 3px;
  border-left-color: rgb(var(--cl-accent));
  font-family: var(--ff-heading);
  font-size: 1.15rem;
}

/* Tables in legal pages and product copy. */
.editor table { border-collapse: collapse; }
.editor th, .editor td { padding: 0.5rem 0.65rem; border: 1px solid var(--cl-border); }
.editor th { font-family: var(--ff-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }

/* ------------------------------------------------------------------ */
/* Responsive and motion                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 1023px) {
  .sa-hero--split-media .wrap > .flex > div:first-child,
  .sa-hero--split-media .wrap > .flex > div:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sa-specimen { margin: 0 auto; }

  .sa-hero-title { max-width: 18ch; }
}

@media (max-width: 639px) {
  .sa-hero-trust { grid-template-columns: 1fr; }

  .sa-specimen { padding: 0 8px 8px 0; }
  .sa-specimen-back { top: 8px; left: 8px; }
  .sa-specimen-sheet { box-shadow: 6px 6px 0 rgb(28 26 22 / 0.12); }

  .sa-footer .wrap { padding-block: 2.25rem 1.5rem; }

  .sa-navbar-cart,
  .sa-navbar button[aria-label="Search"],
  .sa-navbar button[aria-label="Search guides"] {
    min-width: 44px;
    min-height: 44px;
  }

  .input-stepper > button { min-width: 44px; min-height: 44px; }

  .sa-add-to-cart,
  .sa-buy-now { min-height: 44px; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}