/* ==========================================================================
   AMERICAN STITCH LAB — STYLES
   Mobile-first. Depends on tokens.css.
   Order: base → utilities → buttons → chrome → sections → visuals
   ========================================================================== */

/* ---------- 1. BASE ------------------------------------------------------ */
*, *::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;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
body.has-drawer { overflow: hidden; }

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

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-snug); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--primary-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-700); }

button { font: inherit; color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 999; background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---------- 2. UTILITIES ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-sr {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 24px; height: 24px; flex: none; }

/* Small technical annotation label — a recurring "lab" motif */
.lab-label {
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}
.lab-label::before { content: "// "; color: var(--color-accent); }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .4rem .8rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 600;
}
.chip--highlight { background: var(--color-highlight); color: var(--highlight-ink); border: 1px solid var(--highlight-600); }
.chip--outline { background: transparent; color: var(--text-on-dark-soft); border: 1px solid rgba(255,255,255,.28); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: var(--fs-sm);
  color: var(--primary-600); text-decoration: none;
  letter-spacing: .01em;
}
.link-arrow__icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .link-arrow__icon, a:hover .link-arrow .link-arrow__icon { transform: translateX(5px); }
.link-arrow--light { color: var(--text-on-dark); text-decoration: none; }
.link-arrow--light:hover { color: #fff; }

/* Registration marks — print-production motif */
.regmark {
  position: absolute; width: 34px; height: 34px; pointer-events: none;
  border: 0 solid rgba(255,255,255,.3);
}
.regmark::before, .regmark::after { content: ""; position: absolute; background: rgba(255,255,255,.32); }
.regmark::before { left: 50%; top: 0; width: 1px; height: 100%; }
.regmark::after { top: 50%; left: 0; height: 1px; width: 100%; }
.regmark--tl { top: 22px; left: 22px; }
.regmark--tr { top: 22px; right: 22px; }
.regmark--br { bottom: 22px; right: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- 3. BUTTONS --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

/* accent-600 is the accessible tone of --color-accent (4.6:1 with white). */
.btn--accent { background: var(--accent-600); color: #fff; }
.btn--accent:hover { background: var(--accent-700); color: #fff; box-shadow: var(--shadow-accent); }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--primary-700); color: #fff; box-shadow: 0 8px 20px rgba(51,102,153,.3); }

.btn--ghost { background: var(--paper); color: var(--primary-700); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--primary-050); color: var(--primary-700); }

.btn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.42); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { min-height: 56px; padding: .95rem 1.85rem; font-size: var(--fs-base); }
.btn--sm { min-height: 42px; padding: .5rem 1rem; }
.btn--block { width: 100%; }

/* ---------- 4. ANNOUNCEMENT BAR ------------------------------------------ */
.announce {
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: var(--fs-xs);
}
.announce__inner {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 40px; padding-block: .45rem; text-align: center;
}
.announce__mark { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--color-highlight); }
.announce__text {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .09em; text-transform: uppercase;
  transition: opacity .22s var(--ease);
}
.announce__text.is-swapping { opacity: 0; }
.announce__link { color: var(--color-highlight); font-weight: 700; margin-left: .35rem; }
.announce__link:hover { color: #fff; }

/* ---------- 5. HEADER ---------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: 0 2px 14px rgba(15,26,38,.09); }

.header__bar {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; flex: none; }
.logo__mark { width: 54px; height: auto; }
.logo__type { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo__l1 {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .3em;
  color: var(--color-accent); font-weight: 700;
}
.logo__l2 {
  font-size: 1.0625rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--ink); margin-top: 2px;
}
@media (min-width: 480px) { .logo__mark { width: 62px; } .logo__l2 { font-size: 1.1875rem; } }

/* --- Desktop nav --- */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .1rem; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .55rem .6rem;
  background: none; border: 0; cursor: pointer;
  font-size: .8125rem; font-weight: 700; letter-spacing: -.005em;
  color: var(--charcoal); text-decoration: none;
  border-radius: var(--r-sm);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .18rem; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--ink); }
.nav__link:hover::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link.is-featured { color: var(--primary-700); }
.nav__chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }

/* --- Mega menu --- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: flex; gap: var(--sp-7); padding-block: var(--sp-6); align-items: flex-start; }
.mega__cols { display: flex; gap: var(--sp-7); flex: 1; }
.mega__title {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}
.mega__list { display: grid; gap: .15rem; }
.mega__link {
  display: block; padding: .5rem .7rem; margin-left: -.7rem;
  border-radius: var(--r-md); text-decoration: none; color: var(--text);
  transition: background var(--dur-fast) var(--ease);
}
.mega__link span { display: block; font-weight: 700; font-size: var(--fs-sm); }
.mega__link em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.mega__link:hover { background: var(--primary-050); color: var(--primary-700); }
.mega__all { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: var(--fs-sm); text-decoration: none; align-self: flex-start; }
.mega__all svg { width: 18px; height: 18px; }

/* Optional promo tile inside a mega menu */
.mpromo {
  display: flex; gap: 1rem; align-items: center; flex: 0 0 340px;
  padding: .8rem; text-decoration: none; color: inherit;
  background: var(--near-white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.mpromo:hover { border-color: var(--primary-200); box-shadow: var(--shadow-sm); color: inherit; }
.mpromo__art { flex: none; width: 96px; height: 96px; border-radius: var(--r-md); overflow: hidden; }
.mpromo__body { display: flex; flex-direction: column; min-width: 0; }
.mpromo__body .lab-label { margin-bottom: .25rem; }
.mpromo__title { font-size: var(--fs-base); font-weight: 800; color: var(--ink); }
.mpromo__text { font-size: var(--fs-xs); color: var(--text-soft); margin: .1rem 0 .55rem; }

/* --- Utilities --- */
.header__utils { display: flex; align-items: center; gap: .15rem; }
.util {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 0; border-radius: var(--r-md);
  color: var(--charcoal); cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.util:hover { background: var(--primary-050); color: var(--primary-700); }
.util__icon { width: 21px; height: 21px; }
.util--cart .util__badge {
  position: absolute; top: 5px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--accent-600); color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 800; line-height: 1;
}
.util--hide-sm { display: none; }

/* --- Search bar --- */
.searchbar { border-top: 1px solid var(--border); background: var(--near-white); }
.searchbar__form { display: flex; align-items: center; gap: .6rem; padding-block: .8rem; position: relative; }
.searchbar__icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbar__input {
  flex: 1; min-width: 0; min-height: 44px;
  padding: .6rem .8rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font: inherit; font-size: var(--fs-sm); background: var(--paper); color: var(--text);
}
.searchbar__input:focus { border-color: var(--color-primary); outline-offset: 1px; }

@media (min-width: 1240px) {
  .nav { display: block; }
  .util--menu { display: none; }
  .util--hide-sm { display: inline-flex; }
  .header__bar { gap: 1.25rem; }
}
@media (min-width: 1240px) and (max-width: 1399px) {
  .nav__link { padding-inline: .42rem; font-size: .78125rem; }
  .nav__link::after { left: .42rem; right: .42rem; }
}

/* ---------- 6. MOBILE DRAWER --------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1);
  background: rgba(15,26,38,.5);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(400px, 92vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.drawer.is-open { transform: none; }
/* `display: flex` above beats the `hidden` attribute's `display: none`, which
   left the closed drawer in the layout and the accessibility tree. */
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim { transition: none; }
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--sp-5); border-bottom: 1px solid var(--border);
}
.drawer__head .lab-label { margin: 0; }
.drawer__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-md); cursor: pointer; color: var(--charcoal);
}
.drawer__close:hover { background: var(--primary-050); }
.drawer__nav { flex: 1; overflow-y: auto; padding: .5rem var(--sp-5) 1.5rem; -webkit-overflow-scrolling: touch; }
.drawer__foot {
  display: grid; gap: .6rem;
  padding: var(--sp-5); border-top: 1px solid var(--border); background: var(--near-white);
}
.drawer__mail { text-align: center; font-size: var(--fs-sm); font-weight: 700; }

.mnav__link {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; min-height: 54px; padding: .85rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  font-size: 1.0625rem; font-weight: 800; color: var(--ink);
  text-align: left; text-decoration: none; cursor: pointer;
}
.mnav__link:hover { color: var(--primary-700); }
.mnav__arrow { width: 18px; height: 18px; color: var(--muted); }
.mnav__chev { width: 20px; height: 20px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.mnav__link--btn[aria-expanded="true"] .mnav__chev { transform: rotate(180deg); }
.mnav__panel { padding: .4rem 0 .9rem; border-bottom: 1px solid var(--border); }
.mnav__sublabel {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
  margin: .7rem 0 .3rem;
}
.mnav__sublink {
  display: block; min-height: 44px; padding: .6rem 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text); text-decoration: none;
}
.mnav__sublink:hover { color: var(--primary-700); }

/* ---------- 7. HERO ------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 100% at 12% 0%, var(--primary-800) 0%, transparent 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(204,102,102,.22) 0%, transparent 62%),
    var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(90% 80% at 30% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(90% 80% at 30% 30%, #000 30%, transparent 100%);
}
.hero__inner { display: grid; gap: clamp(2.25rem, 6vw, 3.5rem); align-items: center; }

.hero__title {
  margin: 0 0 1.1rem;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: #fff;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent {
  color: transparent;
  background: linear-gradient(96deg, #fff 4%, var(--accent-300) 46%, var(--color-accent) 92%);
  -webkit-background-clip: text; background-clip: text;
}
.hero__sub {
  max-width: 52ch;
  font-size: var(--fs-md);
  color: var(--text-on-dark-soft);
  margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.35rem; }
.hero__cta .btn { flex: 1 1 auto; min-width: 220px; }

/* Specimen board (placeholder for photography) */
.specimen { display: flex; gap: .7rem; }
.spec {
  flex: 1; min-width: 0; margin: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: .55rem .55rem .35rem;
  backdrop-filter: blur(2px);
}
.spec__art {
  aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden;
  background: var(--primary-900);
}
.spec__cap {
  display: flex; flex-direction: column; gap: 1px;
  padding: .45rem .15rem .2rem;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  color: var(--text-on-dark-soft); text-transform: uppercase;
}
.spec__cap span { color: var(--color-highlight); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); }
  .hero__cta .btn { flex: 0 0 auto; min-width: 0; }
  .specimen {
    display: grid; gap: 0;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, minmax(48px, auto));
  }
  .spec { padding: .7rem .7rem .45rem; }
  .spec--1 { grid-column: 1 / 5; grid-row: 1 / 5; z-index: 2; }
  .spec--2 { grid-column: 3 / 7; grid-row: 3 / 7; z-index: 3; box-shadow: var(--shadow-lg); }
  .spec--3 { grid-column: 1 / 3; grid-row: 5 / 7; z-index: 1; }
  .spec__art { aspect-ratio: auto; height: clamp(120px, 18vw, 230px); }
  .spec--3 .spec__art { height: clamp(80px, 10vw, 130px); }
  .spec__cap { font-size: 10px; }
}

/* ---------- 8. TRUST STRIP ----------------------------------------------- */
.trust { background: var(--warm-gray); border-bottom: 1px solid var(--border); }
.trust__grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  padding-block: 0;
}
.trust__item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--line-strong);
}
.trust__item:last-child { border-bottom: 0; }
.trust__icon { width: 26px; height: 26px; color: var(--color-primary); flex: none; margin-top: 2px; }
.trust__title { font-size: var(--fs-sm); font-weight: 800; margin-bottom: .1rem; }
.trust__text { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.5; }

@media (min-width: 700px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-6); }
}
@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 1.4rem 0; border-bottom: 0; }
}

/* ---------- 9. SECTION SHELL --------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--near-white); border-block: 1px solid var(--border); }

.sec-head { max-width: 62ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.sec-head--left { text-align: left; margin-inline: 0; }
.sec-head__title {
  font-size: var(--fs-h2); letter-spacing: var(--track-display); text-transform: uppercase;
}
.sec-head__sub { margin-top: .85rem; font-size: var(--fs-md); color: var(--text-soft); }
.sec-head--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5);
  max-width: none; text-align: left;
}
.sec-head--row .lab-label { margin-bottom: .35rem; }

.rail-ctrl { display: none; gap: .5rem; flex: none; }
.rail-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 50%;
  cursor: pointer; color: var(--charcoal);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn[data-rail="prev"] svg { transform: rotate(90deg); }
.rail-btn[data-rail="next"] svg { transform: rotate(-90deg); }
.rail-btn:hover:not(:disabled) { border-color: var(--color-primary); color: var(--primary-700); }
.rail-btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 900px) { .rail-ctrl { display: flex; } }

/* ---------- 10. CHOOSE YOUR PATH ----------------------------------------- */
.paths { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.path {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.path__hit { position: absolute; inset: 0; z-index: 3; }
.path:hover, .path:focus-within {
  transform: translateY(-4px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) { .path:hover, .path:focus-within { transform: none; } }
.path__art { height: 132px; overflow: hidden; }
.path__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.path__title { font-size: var(--fs-h4); margin-bottom: .4rem; }
.path__text { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: 1rem; flex: 1; }

/* crop-mark corner detail */
.path::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 14px; height: 14px;
  border-right: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong);
  transition: border-color var(--dur) var(--ease);
}
.path:hover::after { border-color: var(--color-accent); }
.path--featured { border-color: var(--primary-200); }
.path--featured .path__body { background: linear-gradient(180deg, var(--primary-050), transparent 60%); }

@media (min-width: 640px) { .paths { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .paths { grid-template-columns: repeat(4, 1fr); } .path__art { height: 150px; } }

/* ---------- 11. SERVICE RAIL --------------------------------------------- */
.rail {
  display: flex; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-block: .5rem 1.25rem;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }

.card {
  flex: 0 0 auto; width: min(78vw, 290px);
  scroll-snap-align: start;
}
.card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-200); color: inherit; }
@media (prefers-reduced-motion: reduce) { .card__link:hover { transform: none; } }
.card__art { display: block; height: 150px; overflow: hidden; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.card__body .lab-label { display: block; }
.card__title { display: block; font-size: var(--fs-h4); font-weight: 800; color: var(--ink); margin-bottom: .35rem; letter-spacing: -.02em; }
.card__text { display: block; font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: .95rem; flex: 1; }

/* ---------- 12. WHY ASL --------------------------------------------------- */
.why { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.why__item { background: var(--paper); padding: 1.5rem 1.35rem; }
.why__n {
  display: block; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .14em; color: var(--color-accent); font-weight: 700; margin-bottom: .55rem;
}
.why__title { font-size: var(--fs-h4); margin-bottom: .4rem; }
.why__text { font-size: var(--fs-sm); color: var(--text-soft); }

@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .why { grid-template-columns: repeat(6, 1fr); }
  .why__item { grid-column: span 2; }
  .why__item:nth-child(4), .why__item:nth-child(5) { grid-column: span 3; }
}

/* ---------- 13. WHAT IS DTF ---------------------------------------------- */
.dtf { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.dtf__lead { font-size: var(--fs-md); color: var(--text-soft); margin-bottom: 1.1rem; max-width: 58ch; }
.dtf__lead strong { color: var(--ink); }
.dtf .sec-head__title { margin-bottom: 1.1rem; }
.dtf__steps { display: grid; gap: .75rem; }
.dtf__step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 1.15rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md);
  border-left: 3px solid var(--color-primary);
}
.dtf__n {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-050); color: var(--primary-700);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm);
}
.dtf__step h3 { font-size: var(--fs-base); margin-bottom: .15rem; }
.dtf__step p { font-size: var(--fs-sm); color: var(--text-soft); }

@media (min-width: 900px) { .dtf { grid-template-columns: 1.05fr .95fr; } }

/* ---------- 14. PROCESS --------------------------------------------------- */
.process { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover { border-color: var(--primary-200); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } }
.step__n {
  display: block;
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary-200);
  margin-bottom: .55rem;
}
.step__title { font-size: var(--fs-h4); margin-bottom: .4rem; }
.step__text { font-size: var(--fs-sm); color: var(--text-soft); }
.step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.step:hover::after { transform: scaleX(1); }

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

/* ---------- 15. FEATURES -------------------------------------------------- */
.features { display: grid; gap: 1rem; }
.feat {
  padding: 1.4rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feat:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-200); }
.feat__icon {
  width: 30px; height: 30px; color: var(--color-primary); margin-bottom: .8rem;
}
.feat__title { font-size: var(--fs-base); margin-bottom: .3rem; }
.feat__text { font-size: var(--fs-sm); color: var(--text-soft); }

@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- 16. LAB BRAND MOMENT ------------------------------------------ */
.lab {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(204,102,102,.3) 0%, transparent 55%),
    radial-gradient(80% 100% at 0% 100%, var(--primary-800) 0%, transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
  text-align: center;
}
.lab__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 60px);
}
.lab__inner { max-width: 780px; }
.lab__title {
  font-size: clamp(2.125rem, 6.2vw, 4.25rem);
  line-height: var(--lh-tight); letter-spacing: var(--track-display);
  color: #fff; margin-bottom: 1.35rem;
}
.lab__copy { font-size: var(--fs-lg); color: var(--text-on-dark-soft); margin-bottom: 2rem; }
.lab__stitch {
  margin: 2.5rem auto 0; height: 2px; max-width: 260px;
  background-image: linear-gradient(90deg, rgba(255,255,255,.55) 0 14px, transparent 14px 26px);
  background-size: 26px 2px;
}

/* ---------- 17. TESTIMONIALS ---------------------------------------------- */
.quotes { display: grid; gap: 1.25rem; }
.quote {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.quote__mark {
  position: absolute; top: .35rem; left: 1.2rem;
  font-size: 3.5rem; line-height: 1; color: var(--primary-100); font-family: Georgia, serif;
}
.quote__text {
  position: relative; margin: 0 0 1.15rem;
  font-size: var(--fs-base); color: var(--text-soft); font-style: italic;
}
.quote__by { display: flex; flex-direction: column; }
.quote__by strong { font-size: var(--fs-sm); color: var(--ink); }
.quote__by span {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent);
}
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 18. FAQ ------------------------------------------------------- */
.faq-wrap { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; align-items: start; } }

.faq { border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line-strong); }
.acc__h { margin: 0; font-size: inherit; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 60px; padding: 1.1rem 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: var(--fs-base); font-weight: 800; color: var(--ink); letter-spacing: -.01em;
}
.acc__btn:hover { color: var(--primary-700); }
.acc__chev {
  width: 22px; height: 22px; flex: none; color: var(--color-primary);
  transition: transform var(--dur) var(--ease);
}
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); }
.acc__panel { overflow: hidden; height: auto; transition: height var(--dur) var(--ease); }
@media (prefers-reduced-motion: reduce) { .acc__panel { transition: none; } }
.acc__inner { padding: 0 0 1.25rem; }
.acc__inner p { font-size: var(--fs-sm); color: var(--text-soft); max-width: 66ch; }

/* ---------- 19. FINAL CTA ------------------------------------------------- */
.final {
  background: linear-gradient(150deg, var(--primary-700) 0%, var(--color-primary) 52%, var(--primary-800) 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.final__inner { text-align: center; max-width: 760px; }
.final__title {
  font-size: var(--fs-h2); color: #fff;
  letter-spacing: var(--track-display); text-transform: uppercase; margin-bottom: .9rem;
}
.final__sub { font-size: var(--fs-md); color: rgba(255,255,255,.86); margin-bottom: 2rem; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-bottom: 1.6rem; }
.final__cta .btn { flex: 1 1 auto; min-width: 240px; }
.final__mail {
  display: inline-block; color: #fff; font-family: var(--font-mono);
  font-size: var(--fs-sm); letter-spacing: .06em;
}
@media (min-width: 600px) { .final__cta .btn { flex: 0 0 auto; min-width: 0; } }

/* ---------- 20. FOOTER ---------------------------------------------------- */
.footer {
  background: var(--ink); color: var(--text-on-dark-soft);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  font-size: var(--fs-sm);
}
.footer__top { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.footer__brand { max-width: 380px; }
.logo--footer .logo__mark { width: 76px; }
.logo--footer .logo__l2 { color: #fff; }
.footer__tag { margin: 1rem 0 1.75rem; color: var(--text-on-dark-soft); font-size: var(--fs-sm); }

.news__label {
  display: block; margin-bottom: .55rem;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase; color: #fff;
}
.news__row { display: flex; gap: .5rem; }
.news__input {
  flex: 1; min-width: 0; min-height: 44px; padding: .6rem .8rem;
  background: rgba(255,255,255,.07); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-md);
  font: inherit; font-size: var(--fs-sm);
}
.news__input::placeholder { color: rgba(255,255,255,.45); }
.news__input:focus { border-color: var(--color-highlight); }
.news__note { margin-top: .55rem; font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.news__note.is-active { color: var(--color-highlight); }

.social { display: flex; gap: .5rem; margin-top: 1.75rem; }
.social__btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-md);
  color: var(--text-on-dark); text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.social__btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }
.social__btn.is-unset { opacity: .4; cursor: not-allowed; }
.social__icon { width: 20px; height: 20px; }

.footer__cols { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
.fcol__title {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: #fff; margin-bottom: .9rem; font-weight: 700;
}
.fcol ul { display: grid; gap: .1rem; }
.fcol a {
  display: inline-block; padding: .35rem 0;
  color: var(--text-on-dark-soft); text-decoration: none; font-size: var(--fs-sm);
}
.fcol a:hover { color: #fff; text-decoration: underline; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-xs); color: rgba(255,255,255,.55);
}
.footer__bottom a { color: rgba(255,255,255,.75); }
.footer__bottom a:hover { color: #fff; }

@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: 340px 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .footer__cols { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================================
   20b. PRICING
   Tabbed matrix + live estimator. Tables scroll horizontally on small screens;
   the estimator sticks alongside the matrix on desktop.
   ========================================================================== */

/* ---- Tabs ---- */
.ptabs {
  display: flex; gap: .35rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: .35rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow-x: auto;
  scrollbar-width: none;
}
.ptabs::-webkit-scrollbar { display: none; }

.ptab {
  flex: 1 0 auto;
  min-height: 46px;
  padding: .6rem 1.15rem;
  background: none; border: 0; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 800; letter-spacing: -.01em;
  color: var(--text-soft); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ptab:hover { color: var(--ink); background: var(--primary-050); }
.ptab[aria-selected="true"] {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(51,102,153,.3);
}

/* ---- Panel layout ---- */
.ppanel__intro { max-width: 66ch; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.ppanel__title { font-size: var(--fs-h3); margin-bottom: .5rem; }
.ppanel__lead { font-size: var(--fs-sm); color: var(--text-soft); }

.ppanel__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1024px) {
  .ppanel__grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
}

/* ---- Tables ---- */
.ptbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.ptbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ptbl th, .ptbl td { padding: .8rem .9rem; text-align: left; vertical-align: middle; }
.ptbl thead th {
  background: var(--warm-gray);
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--charcoal); white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
.ptbl__tier { display: block; }
.ptbl__sub {
  display: block; margin-top: 2px;
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0;
  text-transform: none; font-weight: 500; color: var(--muted);
}
.ptbl tbody tr { border-bottom: 1px solid var(--border); }
.ptbl tbody tr:last-child { border-bottom: 0; }
.ptbl tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.ptbl__num { text-align: right; font-variant-numeric: tabular-nums; }
.ptbl__price { font-weight: 800; color: var(--ink); font-size: var(--fs-base); }
.ptbl__muted { color: var(--muted); font-size: var(--fs-xs); }
.ptbl__note { color: var(--text-soft); font-size: var(--fs-xs); min-width: 15rem; }

.ptbl tbody tr.is-active { background: var(--primary-050); }
.ptbl tbody tr.is-active th { box-shadow: inset 3px 0 0 var(--color-accent); }
.ptbl tbody tr.is-active .ptbl__price { color: var(--primary-700); }

.pbadge {
  display: inline-block; margin-left: .4rem;
  padding: .12rem .45rem;
  background: var(--color-highlight); color: var(--highlight-ink);
  border: 1px solid var(--highlight-600); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; vertical-align: middle;
}

/* ---- Detail disclosures ---- */
.pdets { margin-top: 1rem; display: grid; gap: .5rem; }
.pdet { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--paper); }
.pdet__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: .85rem 1rem;
  font-size: var(--fs-sm); font-weight: 800; color: var(--ink);
  cursor: pointer; list-style: none;
}
.pdet__sum::-webkit-details-marker { display: none; }
.pdet__sum:hover { color: var(--primary-700); }
.pdet__chev {
  width: 20px; height: 20px; flex: none; color: var(--color-primary);
  transition: transform var(--dur) var(--ease);
}
.pdet[open] .pdet__chev { transform: rotate(180deg); }
.pdet__body { padding: 0 .6rem .6rem; }
.pdet__body .ptbl-wrap { border-radius: var(--r-md); }
.ptbl--detail { font-size: var(--fs-xs); }
.ptbl--detail th, .ptbl--detail td { padding: .6rem .75rem; }
.ptbl--detail tbody th { font-weight: 700; white-space: normal; }

/* ---- Estimator ---- */
.est {
  background: var(--paper);
  border: 1px solid var(--primary-200);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
/* Not sticky: the panel is taller than most viewports, and a sticky box that
   overflows the screen traps its own lower half. */
.est__head { margin-bottom: 1.1rem; }
.est__head .lab-label { margin-bottom: .25rem; }
.est__title { font-size: var(--fs-h4); }

.est__grid { display: grid; gap: .85rem; }
@media (min-width: 520px) and (max-width: 1023px) {
  .est__grid { grid-template-columns: 1fr 1fr; }
  .pfield--wide { grid-column: 1 / -1; }
}
.pfield { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pfield--set { border: 0; padding: 0; margin: 0; }
.pfield__label {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--muted); padding: 0;
}
.pfield__input {
  width: 100%; min-height: 46px;
  padding: .55rem .8rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--text);
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
}
.pfield__input:focus { border-color: var(--color-primary); }
.pfield__selwrap { position: relative; }
.pfield__select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.pfield__chev {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}

.pchecks { display: flex; flex-wrap: wrap; gap: .4rem; }
.pcheck {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem 0;
  font-size: var(--fs-sm); color: var(--text); cursor: pointer;
}
.pcheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.pcheck__box {
  display: grid; place-items: center; flex: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pcheck__tick { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity var(--dur-fast); }
.pcheck input:checked + .pcheck__box { background: var(--color-primary); border-color: var(--color-primary); }
.pcheck input:checked + .pcheck__box .pcheck__tick { opacity: 1; }
.pcheck input:focus-visible + .pcheck__box { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pcheck--chip {
  padding: .35rem .7rem .35rem .55rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: var(--fs-xs);
}
.pcheck--chip:hover { border-color: var(--primary-300); }
.pcheck--chip em { font-style: normal; color: var(--muted); font-weight: 700; }

/* ---- Estimator output ---- */
.est__out {
  margin-top: 1.2rem; padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
}
.est__unit { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.est__unitval {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 900;
  letter-spacing: -.03em; color: var(--primary-700); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.est__unitlab { font-size: var(--fs-xs); color: var(--muted); }

.est__lines { margin: 0 0 .9rem; display: grid; gap: .3rem; }
.est__line { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); }
.est__line dt { color: var(--text-soft); }
.est__line dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.est__line.is-sub {
  padding-top: .35rem; margin-top: .15rem;
  border-top: 1px solid var(--border);
}
.est__line.is-sub dt, .est__line.is-sub dd { color: var(--ink); font-weight: 800; }

.est__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .8rem .9rem;
  background: var(--primary-050); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 700; color: var(--charcoal);
}
.est__total strong {
  font-size: var(--fs-lg); font-weight: 900; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.est__note {
  margin-top: .6rem; padding: .5rem .65rem;
  background: var(--color-highlight); color: var(--highlight-ink);
  border: 1px solid var(--highlight-600); border-radius: var(--r-sm);
  font-size: var(--fs-xs);
}
.est__cta {
  margin-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.est__cta .btn { width: 100%; }
.est__disclaim {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* ---- Disclaimer ---- */
.pnote {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: .95rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--r-md);
  font-size: var(--fs-xs); color: var(--text-soft);
}
.pnote strong { color: var(--ink); }

/* ==========================================================================
   20c. INTERIOR PAGES — page head, breadcrumbs, mode switch, forms
   ========================================================================== */

.phead {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  background:
    radial-gradient(120% 100% at 10% 0%, var(--primary-800) 0%, transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
}
.phead__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(90% 90% at 25% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(90% 90% at 25% 30%, #000 30%, transparent 100%);
}
.phead__inner { max-width: 760px; }
.phead__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: var(--lh-tight);
  letter-spacing: var(--track-display); text-transform: uppercase; color: #fff;
}
.phead__sub { margin-top: 1rem; font-size: var(--fs-md); color: var(--text-on-dark-soft); }

.crumbs {
  margin-bottom: 1.1rem;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-soft);
}
.crumbs a { color: var(--text-on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; margin: 0 .35rem; }
.crumbs [aria-current] { color: var(--color-highlight); }

/* ---- Mode switch (order type) ---- */
.modes {
  display: grid; gap: .75rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 620px) { .modes { grid-template-columns: 1fr 1fr; } }

.mode {
  display: grid; gap: .2rem;
  padding: 1.1rem 1.2rem;
  text-align: left; cursor: pointer;
  background: var(--paper);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.mode:hover { border-color: var(--primary-300); }
.mode__icon { width: 26px; height: 26px; color: var(--color-primary); margin-bottom: .35rem; }
.mode__title { font-size: var(--fs-h4); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mode__sub { font-size: var(--fs-xs); color: var(--text-soft); }
.mode[aria-selected="true"] {
  border-color: var(--color-primary);
  background: var(--primary-050);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.mode[aria-selected="true"] .mode__icon { color: var(--primary-700); }

/* ---- Order form layout ---- */
.ofrm__grid { align-items: start; }
.ofrm__h { font-size: var(--fs-h3); margin-bottom: .5rem; }
.ofrm__lead { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: 1.5rem; max-width: 60ch; }

.est--inline { border-color: var(--border); }

.ofrm {
  background: var(--paper);
  border: 1px solid var(--primary-200);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.ofrm .est__grid { margin-bottom: 1rem; }
@media (min-width: 520px) {
  .ofrm .est__grid { grid-template-columns: 1fr 1fr; }
  .ofrm .pfield--wide { grid-column: 1 / -1; }
}

/* ---- Copy-email button ----
   Sits beside any mailto link that displays the address. Inherits colour from
   its context so it works on the dark footer, the drawer and light prose
   without a variant per surface. */
.copybtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  margin-left: .35rem;
  vertical-align: middle;
  background: transparent; color: inherit;
  border: 1px solid currentColor; border-radius: var(--r-sm);
  opacity: .55; cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.copybtn svg { width: 15px; height: 15px; }
.copybtn:hover { opacity: 1; background: currentColor; }
/* Punch the glyph out of the filled hover state */
.copybtn:hover svg { color: var(--paper); mix-blend-mode: normal; }
.copybtn:focus-visible { opacity: 1; }
.copybtn.is-done {
  opacity: 1; color: #17864a; border-color: #17864a; background: transparent;
}
.copybtn.is-done:hover { background: transparent; }
.copybtn.is-done:hover svg { color: #17864a; }
.copybtn.is-failed { opacity: 1; color: var(--accent-600); border-color: var(--accent-600); }
.copybtn.is-failed:hover { background: transparent; }
.copybtn.is-failed:hover svg { color: var(--accent-600); }

/* On dark surfaces the "done" green needs to lift off the background */
.footer .copybtn.is-done,
.drawer .copybtn.is-done,
.final .copybtn.is-done,
.e404 .copybtn.is-done { color: #6ee7a8; border-color: #6ee7a8; }
.footer .copybtn.is-done:hover svg,
.drawer .copybtn.is-done:hover svg,
.final .copybtn.is-done:hover svg,
.e404 .copybtn.is-done:hover svg { color: #6ee7a8; }

@media (prefers-reduced-motion: reduce) { .copybtn { transition: none; } }

/* ---- Size grid ---- */
.sizes {
  display: grid; gap: .4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (min-width: 480px) { .sizes { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

.size { display: flex; flex-direction: column; gap: .2rem; cursor: pointer; }
.size__lab {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .06em; color: var(--muted); text-align: center; font-weight: 700;
}
.size__in {
  width: 100%; min-height: 46px; padding: .5rem .25rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--text);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.size__in::-webkit-outer-spin-button,
.size__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size__in:focus { border-color: var(--color-primary); }
.size__in:not([value="0"]) { border-color: var(--primary-300); }

/* Extended sizes carry an upcharge we cannot yet quote — mark them visually */
.size--ext .size__lab { color: var(--accent-600); }
.size--ext .size__in { border-style: dashed; }

.sizes__total {
  margin-top: .55rem;
  font-size: var(--fs-sm); font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sizes__total.is-empty { color: var(--accent-600); }

.pfield__area { min-height: 120px; resize: vertical; line-height: 1.55; font-weight: 500; }
.pfield__help { font-size: var(--fs-xs); color: var(--muted); margin-top: .3rem; }
.req { color: var(--accent-600); }

.ofrm__recap {
  padding: .8rem .9rem; margin-bottom: 1rem;
  background: var(--primary-050);
  border-radius: var(--r-md);
}
.ofrm__recap .lab-label { margin-bottom: .25rem; }
.ofrm__recaptext { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.ofrm .est__disclaim { display: block; margin-top: .7rem; text-align: center; }

/* ---- Service blocks (services page) ---- */
.svc {
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px dashed var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.svc:last-of-type { border-bottom: 0; }
.svc__art { height: 200px; border-radius: var(--r-lg); overflow: hidden; }
.svc__title { font-size: var(--fs-h3); margin-bottom: .6rem; letter-spacing: var(--track-display); }
.svc__text { font-size: var(--fs-md); color: var(--text-soft); margin-bottom: 1.35rem; max-width: 58ch; }
@media (min-width: 800px) {
  .svc { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .svc:nth-child(even) .svc__art { order: 2; }
  .svc__art { height: 240px; }
}

/* ---- Simple prose pages (resources, privacy) ---- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: var(--fs-h3); margin: 2.5rem 0 .8rem;
  letter-spacing: var(--track-display);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin: 1.75rem 0 .5rem; }
.prose p, .prose li { font-size: var(--fs-sm); color: var(--text-soft); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }

.callout {
  padding: 1rem 1.15rem; margin: 1.5rem 0;
  background: var(--color-highlight); color: var(--highlight-ink);
  border: 1px solid var(--highlight-600); border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.callout strong { color: var(--highlight-ink); }

/* ---- Thanks page ---- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--sp-8); }
.thanks__mark {
  width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 1.5rem;
  background: var(--primary-050); border-radius: 50%; color: var(--primary-700);
}
.thanks__mark svg { width: 34px; height: 34px; }

/* ==========================================================================
   21. PRODUCT VISUALS
   CSS-generated stand-ins for photography. Replace the [data-visual] blocks
   with real <img> art in Phase 2 — markup hooks are already in place.
   ========================================================================== */
[data-visual] {
  position: relative;
  background: var(--primary-900);
  transition: transform var(--dur-slow) var(--ease);
}
.card__link:hover [data-visual],
.path:hover [data-visual] { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .card__link:hover [data-visual], .path:hover [data-visual] { transform: none; }
}

/* DTF — halftone dots over saturated color */
[data-visual="dtf"] {
  background-color: #24466a;
  background-image:
    radial-gradient(circle at 26% 32%, rgba(204,102,102,.95) 0 16%, transparent 55%),
    radial-gradient(circle at 68% 62%, rgba(255,255,204,.9) 0 12%, transparent 52%),
    radial-gradient(rgba(255,255,255,.32) 1.1px, transparent 1.2px),
    linear-gradient(140deg, var(--primary-600), var(--primary-900));
  background-size: auto, auto, 8px 8px, auto;
}

/* Embroidery — diagonal satin stitches */
[data-visual="embroidery"] {
  background-color: var(--primary-800);
  background-image:
    repeating-linear-gradient(58deg, rgba(255,255,255,.28) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(58deg, rgba(0,0,0,.22) 3px 5px, transparent 5px 10px),
    linear-gradient(160deg, var(--color-primary), var(--primary-900));
}

/* Apparel — folded garment blocks */
[data-visual="apparel"] {
  background-color: var(--primary-700);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.16) 0 42%, transparent 42%),
    linear-gradient(45deg, rgba(0,0,0,.24) 0 30%, transparent 30%),
    linear-gradient(200deg, var(--accent-600), var(--primary-800));
}

/* Patches — merrow-edge badge */
[data-visual="patches"] {
  background-color: var(--primary-900);
  background-image:
    radial-gradient(circle at 50% 50%, var(--accent-600) 0 22%, transparent 22.5%),
    radial-gradient(circle at 50% 50%, transparent 0 28%, var(--color-highlight) 28% 30%, transparent 30.5%),
    linear-gradient(150deg, var(--primary-700), var(--primary-900));
}
[data-visual="patches"]::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px dashed rgba(255,255,255,.42); border-radius: 50%;
}

/* Stickers — die-cut shapes on a cut line */
[data-visual="stickers"] {
  background-color: var(--primary-800);
  background-image:
    radial-gradient(circle at 32% 40%, var(--color-highlight) 0 13%, transparent 14%),
    radial-gradient(circle at 62% 66%, var(--accent-500) 0 17%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 6px, transparent 6px 12px),
    linear-gradient(120deg, var(--primary-600), var(--primary-900));
  background-size: auto, auto, 100% 2px, auto;
  background-position: center, center, center 76%, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

/* Laser — engraved concentric burn */
[data-visual="laser"] {
  background-color: #2a2118;
  background-image:
    repeating-radial-gradient(circle at 50% 52%, rgba(255,255,204,.24) 0 2px, transparent 2px 11px),
    radial-gradient(circle at 50% 52%, rgba(204,102,102,.85) 0 8%, transparent 34%),
    linear-gradient(150deg, #3b2f22, #1c1712);
}

/* Sublimation — edge-to-edge gradient bleed */
[data-visual="sublimation"] {
  background-image:
    linear-gradient(115deg, var(--color-accent) 0%, var(--color-highlight) 38%, var(--primary-400) 72%, var(--primary-900) 100%);
}

/* Design — grid + guides */
[data-visual="design"] {
  background-color: var(--primary-900);
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, transparent 49.6%, var(--color-accent) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(160deg, var(--primary-700), var(--primary-900));
  background-size: 16px 16px, 16px 16px, 100% 100%, auto;
}

/* Gang sheet — tiled artwork layout */
[data-visual="gang"] {
  background-color: var(--primary-800);
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px),
    radial-gradient(circle at 22% 30%, var(--accent-500) 0 9%, transparent 10%),
    radial-gradient(circle at 72% 64%, var(--color-highlight) 0 7%, transparent 8%),
    linear-gradient(140deg, var(--primary-600), var(--primary-900));
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

/* Upload — file arrow */
[data-visual="upload"] {
  background-color: var(--primary-900);
  background-image:
    linear-gradient(140deg, var(--primary-600), var(--primary-900));
}
[data-visual="upload"]::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px; transform: translate(-50%, -18%) rotate(45deg);
  border-top: 4px solid var(--color-highlight); border-left: 4px solid var(--color-highlight);
  border-radius: 4px;
}
[data-visual="upload"]::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 64px; transform: translate(-50%, -50%);
  background: var(--color-highlight); border-radius: 3px;
}
