.page-home .hero-section h1,
.page-services .section-intro h1,
.page-how-it-works .section-intro h1,
.page-faq .section-intro h1,
.page-contact .section-intro h1 {
  /* P13 of #PV-2026-0007 — fluid clamp() tuned smaller across the
     1100–1500px band so the home hero h1 doesn't wrap to 3 lines
     at ~1446px (69px in a 613px hero-copy column). Pre-P13:
     clamp(2.75rem, 4.8vw, 4.45rem). Now: clamp(2.6rem, 4.2vw,
     4.4rem). Adds `text-wrap: balance` so wraps distribute
     evenly across the line(s) instead of leaving an orphan word
     dangling on its own line. */
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  text-wrap: balance;
  line-height: 0.98;
  letter-spacing: 0.008em;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

.page-services .services-grid .card,
.page-home .section-summary .card {
  min-height: 0;
}

.page-legal .page-shell {
  padding-bottom: 6rem;
}

.site-footer .footer-social a::before {
  content: none;
}

.site-footer .newsletter-form {
  position: relative;
  display: block;
  width: 100%;
  max-width: 250px;
  margin-top: 0.95rem;
}

.site-footer .newsletter-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 3.05rem 0 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1;
}

.site-footer .newsletter-form .btn {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  transform: translateY(-50%);
}

.site-footer .newsletter-form .btn::before {
  content: none;
}

.site-footer .newsletter-form .btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.site-footer .footer-copy {
  font-size: 0.98rem;
}

.site-footer .footer-meta p {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-footer .payment-icons {
  display: inline-flex;
  justify-content: center;
  max-width: none;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.site-footer .payment-icons span {
  display: none;
}

.site-footer .footer-payment-strip {
  display: block;
  /* 4-card strip: 86px → 115px (86 × 176.6/132) so each card stays
     the same rendered size after the strip went from 3 cards to 4
     (Visa, MC, Amex, PayPal). UPSTREAM SYNC NOTE: matching change
     needed in ~/Sites/printvine/assets/css/pages.css. */
  width: 115px;
  height: auto;
}

/* ─────────────────────────────────────────────
   Service detail / product order page
   ───────────────────────────────────────────── */

/* Breadcrumbs — generic styling that works across every page */
.breadcrumbs {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-muted);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--color-heading);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--color-primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text-muted);
}

.page-service-detail [aria-current="page"] {
  color: var(--color-muted);
}

/* Slim hero (product page) */
.service-hero {
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0 clamp(2rem, 3vw, 2.75rem);
  background: var(--pageshero-bg, var(--color-hero));
}

.service-hero__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-hero__copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.service-hero__tag {
  display: none;
  /* Colours pre-wired for when this tag is flipped on. */
  background: var(--service-pill-bg, #ffffff);
  color: var(--service-pill-text, var(--color-heading));
}

.service-hero__tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.service-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.75rem;
  color: var(--pageshero-text, var(--color-heading));
}

.service-hero__intro {
  max-width: 56rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
}

.product-usps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  list-style: none;
  margin: 0 0 clamp(1.75rem, 2.4vw, 2.25rem);
  padding: 0;
}

.product-usps li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background: var(--product-usp-bg, #f3f3f1);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--product-usp-text, var(--color-heading));
  white-space: nowrap;
}

.product-usps svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--product-usp-text, var(--color-heading));
}

.service-hero__stripe {
  padding-left: 0;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  align-self: flex-start;
}

@media (max-width: 760px) {
  .service-hero__main {
    align-items: flex-start;
  }
  .service-hero__stripe {
    margin-bottom: 0;
  }
  .product-usps {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
  }
  .product-usps li {
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Ghost button — secondary alternative */
.btn-ghost {
  background: transparent;
  color: var(--color-heading);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--color-heading);
  color: var(--color-heading);
}

/* Section spacing */
.section-pitch,
.section-included {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* ───────── USP trust bar (subtle) ───────── */
.usp-bar {
  background: #f3f3f1;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.usp-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding-block: 0.55rem;
}

.usp-bar p {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.usp-bar svg {
  width: 14px;
  height: 14px;
  color: var(--color-heading);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .usp-bar { display: none; }
  .service-hero__stripe { display: none; }

  .service-hero {
    padding: 1.85rem 0 2.35rem;
  }
  .service-hero .container {
    width: min(var(--container-lg), calc(100% - 60px));
  }
  .service-hero__tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem 0.25rem 0.5rem;
  }
  .service-hero__tag svg { width: 12px; height: 12px; }
  .service-hero h1 {
    margin: 0 0 0.95rem;
    font-size: clamp(1.5rem, 5.4vw, 1.9rem);
    line-height: 1.22;
  }
  .service-hero__intro {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .product-order {
    padding-block: 1.25rem 1.5rem;
  }
  .product-config__trust .trust-hide-mobile {
    display: none;
  }
}

/* Plain FAQ background override — tracks Page surfaces > Background */
.faq-section--plain {
  background: var(--color-bg);
}

/* Plain content-tabs (used on product page) — tracks Page surfaces > Background */
.section-content-tabs--plain {
  background: var(--color-bg);
  padding-block: clamp(1rem, 2vw, 1.5rem) clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 760px) {
  .section-content-tabs--plain {
    padding-block: 2.25rem 2.5rem;
  }
  .section-content-tabs--plain .section-heading h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .section-content-tabs--plain .content-tab-panel h2 {
    font-size: 1.4rem;
    line-height: 1.15;
  }
  .page-service-detail .faq-card h3 {
    line-height: 1.3;
    font-size: 0.98rem;
  }
}

.section-content-tabs--plain .content-tab-list {
  background: #f3f3f1;
  border-color: #e5e5e2;
}

.section-content-tabs--plain .content-tab.is-active {
  background: #ffffff;
}

/* ───────── Related products ───────── */
.section-related {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.section-related .section-heading {
  margin-bottom: 1.5rem;
}

.section-related .section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0;
}

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

@media (max-width: 1100px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .related-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    gap: 0.75rem;
    margin-inline: calc(var(--gutter, 24px) * -1);
    padding-inline: var(--gutter, 24px);
    scrollbar-width: none;
  }
  .related-grid::-webkit-scrollbar { display: none; }
  .related-card {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.related-card:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.related-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}

.related-card:hover .related-card__media img {
  transform: scale(1.03);
}

.related-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.related-card__sector {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.related-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

.related-card__name a {
  color: inherit;
  text-decoration: none;
}

.related-card__name a:hover {
  color: var(--color-primary);
}

.related-card__price {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.related-card__price strong {
  font-weight: 700;
  color: var(--color-heading);
}

.related-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: stretch;
}

.related-card__select {
  display: block;
  position: relative;
}

.related-card__select select {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0 0.65rem;
  min-height: 40px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.8'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 14px;
  padding-right: 1.75rem;
}

.related-card__select select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.related-card__add {
  min-height: 40px;
  font-size: 0.9rem;
  padding: 0 0.85rem;
  gap: 0.35rem;
  max-width: none;
}

.related-card__add svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.related-card__add.is-added {
  background: var(--color-heading);
  color: #fff;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   Basket page
   ───────────────────────────────────────────── */

.page-basket {
  /* Match checkout's #fafafa — the two pages are consecutive steps
     so the background must not change when navigating. */
  background: #fafafa;
}


.page-basket .breadcrumbs {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.page-basket .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-basket .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-basket .breadcrumbs li + li::before {
  content: "/";
  color: var(--color-muted);
  opacity: 0.6;
}

.page-basket .breadcrumbs a {
  color: var(--color-heading);
  text-decoration: none;
}

.page-basket .breadcrumbs a:hover { color: var(--color-primary); }
.page-basket [aria-current="page"] { color: var(--color-muted); }

.basket-hero {
  /* Transparent — inherits the page background (#fafafa). The white
     strip the basket hero used to ship was jarring against the rest
     of the basket↔checkout flow's fafafa. */
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(0.5rem, 1vw, 1rem);
  background: transparent;
}

.basket-hero__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Locked to identical typography as the checkout H1 so the
   lock-to-text gap reads the same on both pages. Targets BOTH the
   bare `h1` (basket pre-CP3) AND the explicit `.basket-hero__title`
   class with the same specificity-beating selector so the values
   actually apply over the basket-hero h1 cascade. */
.basket-hero h1,
.basket-hero__title {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.basket-hero__title-lock {
  width: 0.72em;
  height: 0.72em;
  color: var(--color-primary);
  flex-shrink: 0;
}

.basket-hero__payments {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-left: 0;
  font-size: 0.92rem;
  color: var(--color-text);
}

.basket-hero__payments img {
  display: block;
  height: 26px;
  width: auto;
}

@media (max-width: 600px) {
  .basket-hero__payments {
    font-size: 0.82rem;
    gap: 0.4rem;
  }
  .basket-hero__payments img { height: 22px; }
}

.basket-hero__intro {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text);
}

.basket-section {
  /* No top padding — the basket-hero above already carries the gap
     below the H1. Bottom padding stays as the breathing room before
     the footer. */
  padding-block: 0 clamp(3rem, 5vw, 4.5rem);
}

/* The active CSS bundle (public/css/printvine/style.css) doesn't
   @import critical.css, so the global `*, *::before, *::after`
   box-sizing: border-box reset never lands. Every basket-section
   element with `width: 100%` plus padding (.basket-summary, etc.)
   ended up wider than its parent by the padding total — visible as
   the £ prices clipped past the phone's right edge in the user's
   mobile screenshot. Scope the border-box switch to the basket
   subtree so this fix doesn't ripple across other surfaces. */
.basket-section,
.basket-section *,
.basket-section *::before,
.basket-section *::after {
  box-sizing: border-box;
}

.basket-layout {
  display: grid;
  /* Right column is fixed at 380px so the summary panel has
     identical width on both basket + checkout pages (no `fr`-ratio
     drift). Left column takes the remaining space via `1fr`. */
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .basket-layout { grid-template-columns: 1fr; }
}

/* Items column */
.basket-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.basket-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1rem;
  background: var(--basket-item-bg, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.basket-item--needs-spec {
  background: #f6f7f9;
  border-color: #cfd6da;
  border-left: 3px solid var(--color-primary);
}

/* "Just confirmed" cue — a green ring fades over ~2s after the
   customer clicks Confirm specs so they can spot the row that
   upgraded from needs-spec to specced (set by the
   `just_confirmed_line_id` session flash from the controller).
   animation-fill-mode: forwards holds the final transparent state.
   position:relative scopes the absolutely-positioned check-tick. */
.basket-item.is-just-confirmed {
  position: relative;
  animation: pv-basket-line-confirmed 2.2s ease-out forwards;
}
@keyframes pv-basket-line-confirmed {
  0%   { box-shadow: 0 0 0 0   rgba(49, 196, 122, 0.0); }
  10%  { box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.95); }
  70%  { box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.6); }
  100% { box-shadow: 0 0 0 0   rgba(49, 196, 122, 0); }
}

/* Tick flash — green circle with white check pops in, holds for
   ~1.5s, fades out so it's fully gone at 2.0s. JS removes the
   element from DOM after the animation ends (see
   public/assets/js/basket-needs-spec-preview.js OR a small inline
   handler in the article markup) so the page doesn't keep an
   invisible node around. Positioned top-right of the basket-item
   card. */
.basket-item__confirmed-tick {
  position: absolute;
  /* Top-LEFT corner — sits over the empty .basket-item__media
     block so it doesn't collide with the Remove button on the
     right side of the line header. */
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-primary, #31c47a);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(49, 196, 122, 0.45);
  opacity: 0;
  transform: scale(0.5);
  animation: pv-basket-tick-flash 2s ease-out forwards;
  pointer-events: none;
}
.basket-item__confirmed-tick svg {
  width: 22px;
  height: 22px;
  display: block;
}
@keyframes pv-basket-tick-flash {
  0%   { opacity: 0; transform: scale(0.5);  }
  10%  { opacity: 1; transform: scale(1.15); }
  20%  { opacity: 1; transform: scale(1);    }
  80%  { opacity: 1; transform: scale(1);    }
  100% { opacity: 0; transform: scale(0.9);  }
}

@media (prefers-reduced-motion: reduce) {
  .basket-item.is-just-confirmed { animation: none; }
  /* Opacity-only fade (no scale/transform) so reduced-motion users
     still see the confirmation tick briefly and it then disappears
     by 2s — the previous fallback (opacity: 1; animation: none)
     left the tick permanently visible. The view's
     `onanimationend="this.remove()"` still fires on this animation
     (animationend fires for opacity-only animations too) so the
     node is pulled from the DOM after fade-out. */
  .basket-item__confirmed-tick {
    transform: none;
    animation: pv-basket-tick-fade-reduced 2s linear forwards;
  }
  @keyframes pv-basket-tick-fade-reduced {
    0%, 80% { opacity: 1; }
    100%    { opacity: 0; }
  }
}

.basket-item__media {
  width: 132px;
  height: 160px;
  aspect-ratio: 132 / 160;
  background: var(--color-surface-grey, #f1f2ef);
  border-radius: 10px;
  overflow: hidden;
}

.basket-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.basket-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.basket-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.basket-item__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}

.basket-item__sector {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.basket-item__remove {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0.25rem 0.4rem;
  margin: -0.25rem -0.4rem 0 0;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  border-radius: 4px;
}

.basket-item__remove:hover,
.basket-item__remove:focus-visible {
  color: var(--color-heading);
}

.basket-item__notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  /* Amber warning treatment so it reads as "action needed" rather
     than a neutral input. */
  background: #fff8e1;
  border: 1px solid #f0c34c;
  border-left: 3px solid #d97706;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.basket-item__notice svg {
  width: 16px;
  height: 16px;
  color: #d97706;
  flex-shrink: 0;
}

/* Spec rows */
.basket-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .basket-spec { grid-template-columns: 1fr; }
}

/* Unit 3 polish follow-up: each editable spec axis lives in its own
   <form> posting to basket.reconfigure (so onchange="this.form.submit()"
   only carries that axis's data). display:contents makes the form
   element invisible to the grid — the <label> inside takes the grid
   cell directly, preserving the 2-col layout. */
.basket-spec__form {
  display: contents;
  margin: 0;
}

.basket-spec label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.basket-spec select {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0 0.65rem;
  min-height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.8'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 14px;
  padding-right: 1.75rem;
}

.basket-spec select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.basket-spec input[type="date"] {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0 0.65rem;
  min-height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  text-transform: none;
  letter-spacing: 0;
}
.basket-spec input[type="date"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.basket-item--needs-spec .basket-spec select:invalid {
  border-color: var(--color-primary);
  background-color: rgba(49, 196, 122, 0.04);
}

/* Add-ons */
.basket-addons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.basket-addons__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.basket-addons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.basket-addons__list li.is-hidden { display: none; }

.basket-addons__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}

.basket-addons__list li:last-child .basket-addons__row {
  border-bottom: 0;
}

.basket-addons__row input {
  accent-color: var(--color-heading);
  cursor: pointer;
  margin: 0;
  width: 15px;
  height: 15px;
}

.basket-addons__row strong {
  font-weight: 600;
  color: var(--color-heading);
}

.basket-addons__toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  margin-top: 0.1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 23, 42, 0.25);
}

.basket-addons__toggle:hover {
  text-decoration-color: var(--color-heading);
}

/* Footer of item card: qty stepper + line total grouped right */
.basket-item__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--color-surface);
  border: 0;
  color: var(--color-heading);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: var(--color-bg);
}

.qty-stepper button:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.qty-stepper output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 34px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
}

.basket-item__total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Mobile item layout */
@media (max-width: 600px) {
  .basket-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.85rem;
  }
  .basket-item__media {
    width: 88px;
    height: 110px;
  }
  .basket-item__title { font-size: 1rem; }

  .basket-item__qty-total {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  /* Mobile hero: hide Stripe + payment icons (footer has them) */
  .basket-hero__payments { display: none; }
}

/* Always hide the mobile-foot Remove button — top-right text Remove is safer */
.basket-item__remove-mobile { display: none; }

.basket-item__qty-total {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Summary panel.
   Cap chosen so the Proceed CTA ("Proceed to checkout — £999") fits
   on one line without overflowing the white panel — earlier 380-px
   try was too tight (CTA + £X numbers spilled past the right edge),
   and no cap let the panel span the whole column on single-column
   (mobile / tablet) layouts. 460px content area = ~420px after
   1.25rem padding each side, which fits the CTA's ~310px natural
   width with breathing room. margin-inline: auto centres it inside
   wider columns / single-column layouts. */
/* ─── Shared summary panel — used by both basket and checkout.
       basket-summary adds sticky positioning + a few basket-only
       affordances (actions block, sticky-cta button); the
       checkout-summary class is alias-applied via combined
       selectors below so both pages render the exact same box +
       internal spacing. */
.basket-summary,
.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  background: var(--basket-summary-bg, #ffffff);
  border: 1px solid #f0f1f3;
  border-radius: var(--radius-xl);
  width: 100%;
  margin-inline: 0;
  min-width: 0;
}

.basket-summary {
  /* Sticky behaviour is basket-only — the checkout summary already
     sits in a sticky aside courtesy of .checkout-aside. */
  position: sticky;
  top: calc(var(--nav-height, 78px) + 1rem);
}

@media (max-width: 900px) {
  .basket-summary { position: static; }
}

.basket-summary__title,
.checkout-summary__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0a0a0a;
  font-weight: 700;
  margin: 0;
  text-align: left;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.basket-summary__lines,
.checkout-summary__lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 0;
}

.basket-summary__lines li,
.checkout-summary__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: #1f2937;
}

.basket-summary__lines li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-summary__lines li strong,
.checkout-summary__lines li strong {
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
}

.basket-summary__divider,
.checkout-summary__divider {
  height: 1px;
  background: #f0f1f3;
  margin: 0.25rem 0;
}

.basket-summary__row,
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: #4b5563;
}

.basket-summary__row strong {
  font-weight: 600;
  color: #0a0a0a;
}

.basket-summary__row--total,
.checkout-summary__row--total {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0a0a0a;
  font-weight: 700;
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: 0;
}

.basket-summary__row--total strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.basket-summary__vat {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.basket-summary__turnaround {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
}
.basket-summary__turnaround[hidden] { display: none; }
.basket-summary__turnaround-message {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-heading);
}
.basket-summary__turnaround-caveat {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Compact one-line reassurance replacing the prior 3-paragraph
   "Order with confidence" block. Lock icon + muted copy. */
.basket-trust-line {
  /* Match .checkout-summary__microcopy — centred, muted, no margin
     (parent summary's `gap: var(--space-3)` is the sole spacer). */
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}
.basket-trust-line svg { display: none; }
.basket-summary__turnaround--neutral { border-left-color: var(--color-border); }
.basket-summary__turnaround--green {
  background: rgba(49, 196, 122, 0.08);
  border-color: rgba(49, 196, 122, 0.3);
  border-left-color: #31c47a;
}
.basket-summary__turnaround--amber {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.32);
  border-left-color: #f59e0b;
}
.basket-summary__turnaround--red {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.32);
  border-left-color: #ef4444;
}

.basket-item__date-prompt {
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.7rem;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--color-heading);
}

.basket-summary__actions {
  /* No top margin — parent summary's `gap: var(--space-3)` handles
     spacing. Same layout as checkout's `.checkout-summary__pay`. */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: 0;
}

.basket-summary__cta {
  width: 100%;
  max-width: none;
  min-height: 54px;
  font-size: 1.02rem;
  gap: 0.5rem;
  /* Override .btn { white-space: nowrap } so the "Proceed to checkout
     — £X" text wraps inside the narrower summary panel rather than
     overflowing the aside. box-sizing: border-box is set defensively
     here because critical.css's `*` rule isn't imported into the
     active bundle, so .btn's padding would otherwise stack on top of
     width: 100%. */
  white-space: normal;
  text-align: center;
  padding-inline: 0.7rem;
  box-sizing: border-box;
}

.basket-summary__cta svg {
  width: 18px;
  height: 18px;
}

.basket-summary__cta:disabled,
.basket-summary__cta[aria-disabled="true"],
.sticky-cta__cta:disabled,
.sticky-cta__cta[aria-disabled="true"] {
  background: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.basket-summary__block-note {
  margin: 0;
  font-size: 0.82rem;
  color: #8a6608;
  text-align: center;
}

.basket-summary__continue {
  align-self: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.basket-summary__continue:hover {
  color: var(--color-heading);
}

.basket-trust {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.basket-trust__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-heading);
}

.basket-trust__title svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.basket-trust__lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text);
}

.basket-trust__stripe {
  padding-left: 0;
  font-size: 0.88rem;
}

.basket-trust__usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.basket-trust__usps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.basket-trust__usps svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.basket-trust__reassure {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Empty state */
.basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.basket-empty__logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.basket-empty__logo img {
  width: 160px;
  height: auto;
  opacity: 0.85;
}

.basket-empty h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--color-heading);
}

.basket-empty p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.basket-empty .btn {
  min-height: 48px;
  padding: 0 1.25rem;
}

/* Sticky mobile CTA for basket */
.sticky-cta--basket .sticky-cta__label {
  font-size: 0.82rem;
}

@media (min-width: 901px) {
  .sticky-cta--basket { display: none; }
}

/* ─────────────────────────────────────────────
   Order confirmation page
   ───────────────────────────────────────────── */

.page-order-confirmation {
  background: var(--color-bg);
}

/* 1. Success hero */
.success-hero {
  position: relative;
  background: var(--color-hero);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
}

.success-hero::before,
.success-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 700%;
  width: 26%;
  background: rgba(15, 23, 42, 0.05);
  pointer-events: none;
  z-index: 0;
}

.success-hero::before {
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.success-hero::after {
  right: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.success-hero__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  .success-hero::before,
  .success-hero::after {
    display: none;
  }
}

.success-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.success-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  white-space: nowrap;
}

.success-hero__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--color-primary);
  display: block;
}

.success-hero__subhead {
  max-width: 36rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.success-hero__ref {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.success-hero__ref strong {
  color: var(--color-heading);
  font-size: 0.88rem;
}

.success-hero__ref strong {
  margin-left: 0.35rem;
  padding: 0.18rem 0.5rem;
  background: var(--color-surface);
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.success-hero__summary {
  width: 100%;
  max-width: 420px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.success-hero__summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.success-hero__summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.success-hero__summary li strong {
  font-weight: 600;
  color: var(--color-heading);
}

.success-hero__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.18);
  font-size: 1rem;
  color: var(--color-heading);
}

.success-hero__total strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* 2. Two-column: steps + activation */
.confirm-grid {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--color-bg);
}

.confirm-grid__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  grid-template-areas:
    "activation"
    "steps";
}

@media (min-width: 901px) {
  .confirm-grid__inner {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    grid-template-areas: "steps activation";
  }
}

.confirm-left { grid-area: steps; }
.activation-card { grid-area: activation; }

.confirm-left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Order recap card */
.order-recap {
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.order-recap__heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent);
}

.order-recap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.order-recap__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.order-recap__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-recap__item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.order-recap__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-heading);
}

.order-recap__price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

.order-recap__spec {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.order-recap__addons {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.order-recap__addon {
  font-size: 0.85rem;
  color: var(--color-text);
}

.order-recap__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
}

.order-recap__total strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Next steps — supporting content */
.next-steps {
  background: transparent;
  padding: 0.5rem 0 0;
}

.next-steps__heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-heading);
}

@media (max-width: 760px) {
  .next-steps__heading { font-size: 1.15rem; }
}

.next-steps__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
}

.next-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 1.6rem;
  bottom: -1.4rem;
  left: 13px;
  width: 2px;
  background: rgba(49, 196, 122, 0.25);
  border-radius: 2px;
}

.next-step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary-soft, #e4f6ec);
  color: var(--color-primary);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.next-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.next-step__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.25;
  white-space: nowrap;
}

.next-step__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-text);
  white-space: normal;
}

/* Activation card — priority action */
.activation-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.activation-card__heading {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.15;
}

.activation-card__intro {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  color: var(--color-text);
}

.activation__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activation__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.activation__field input {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.7rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  min-height: 44px;
}

.activation__field input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.activation__field input[readonly] {
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.activation__error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #991b1b;
}

.activation__cta {
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.activation__note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}

.activation__signin {
  margin: 0.75rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.activation__help {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.activation__signin a,
.activation__help a {
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.activation__signin a:hover,
.activation__signin a:focus-visible,
.activation__help a:hover,
.activation__help a:focus-visible {
  color: var(--color-primary);
}

.activation__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem 0;
}

.activation__success[hidden] {
  display: none;
}

.activation__success-icon {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.activation__success-icon svg {
  width: 44px;
  height: 44px;
}

.activation__success h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
}

.activation__success p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* 4. Secondary actions strip */
.portal-fallback {
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2rem, 3vw, 3rem);
  background: var(--color-bg);
}

.portal-fallback__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-fallback__inner--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.portal-fallback__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-heading);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.portal-fallback__link:hover,
.portal-fallback__link:focus-visible {
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

.portal-fallback__link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.portal-fallback__link strong {
  display: block;
  font-weight: 700;
  color: var(--color-heading);
}

.portal-fallback__link span {
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .portal-fallback__inner { grid-template-columns: 1fr; }
}

.help-line {
  margin: 0 0 clamp(2rem, 3vw, 3rem);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.help-line a {
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-line a:hover,
.help-line a:focus-visible {
  color: var(--color-primary);
}

/* ─────────────────────────────────────────────
   Portal auth (login / register)
   ───────────────────────────────────────────── */

/* Portal-auth pages are TRANSACTIONAL surfaces — pinned to verbatim
   static values (theme.css static `--color-surface: #ffffff`), NOT
   `var(--color-surface)`. The Site CSS form's Surface picker is for
   marketing-page surfaces (cards, product panels, etc.); auth screens
   must stay visually constant for any operator brand pick. Paired
   with the `.page-portal-app` / `.portal-main` / `.portal-content
   .card` pins below — same decoupling, same rationale. */
.page-portal-auth {
  background: #ffffff;
  min-height: 100vh;
}

.page-portal-auth body { background: #ffffff; }

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

/* Brand panel — right-arrow shape on desktop */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(2rem, 4vw, 3.5rem) 2.5rem;
  background: #d9f99d;
  overflow: hidden;
}

@media (min-width: 901px) {
  .auth-brand {
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
    padding-right: clamp(3rem, 8vw, 6rem);
  }
}

.auth-brand__logo {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.auth-brand__logo img {
  display: block;
  width: 140px;
  height: auto;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: auto 0;
}

.auth-brand__pitch {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--color-heading);
}

.auth-brand__usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-brand__usps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-heading);
}

.auth-brand__usps svg {
  width: 16px;
  height: 16px;
  color: var(--color-heading);
  flex-shrink: 0;
}

/* Wedge pseudo-elements removed — the brand panel itself is the arrow shape */

/* Mobile: brand becomes a slim top bar with logo only */
@media (max-width: 900px) {
  .auth-brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 56px;
    padding: 0.85rem 1.25rem;
  }
  .auth-brand__content { display: none; }
  .auth-brand::before,
  .auth-brand::after { display: none; }
  .auth-brand__logo img { width: 110px; }
}

/* Form panel */
.auth-form-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--color-surface);
  overflow: hidden;
}

@media (min-width: 1500px) {
  .auth-form-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 420px;
    background: #a3e635;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    pointer-events: none;
    z-index: 0;
  }
}

@media (min-width: 1800px) {
  .auth-form-wrap::after {
    width: 210px;
    height: 560px;
  }
}

@media (min-width: 2200px) {
  .auth-form-wrap::after {
    width: 280px;
    height: 720px;
  }
}

.auth-form {
  position: relative;
  z-index: 1;
}

.auth-form {
  width: 100%;
  max-width: 26rem;
}

.auth-form h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--color-heading);
}

.auth-form__intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.auth-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .auth-form__row { grid-template-columns: 1fr; gap: 0.85rem; }
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.auth-field > input,
.auth-field__pwd-wrap input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  box-shadow: none;
  appearance: none;
}

.auth-field > input:focus-visible,
.auth-field__pwd-wrap input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

/* Password show/hide */
.auth-field__pwd-wrap {
  position: relative;
  display: block;
}

.auth-field__pwd-wrap input { padding-right: 3rem; }

.auth-field__toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.auth-field__toggle:hover,
.auth-field__toggle:focus-visible {
  color: var(--color-heading);
  background: rgba(15, 23, 42, 0.04);
}

.auth-field__toggle svg {
  width: 20px;
  height: 20px;
}

.auth-field__toggle .auth-field__eye-hide { display: none; }
.auth-field__toggle.is-visible .auth-field__eye-show { display: none; }
.auth-field__toggle.is-visible .auth-field__eye-hide { display: block; }

.auth-field__hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
}

.auth-form__error {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #991b1b;
}

.auth-form__cta {
  width: 100%;
  max-width: none;
  min-height: 50px;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.auth-form__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
}

.auth-form__links p { margin: 0; }

.auth-form__links a,
.auth-form__link-forgot {
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form__links a:hover,
.auth-form__link-forgot:hover {
  color: var(--color-primary);
}

.auth-form__support {
  margin: 0.75rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-form__support a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.auth-form__support a:hover { color: var(--color-heading); }

/* Success state (register) */
.auth-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.auth-form__success[hidden] { display: none; }

.auth-form__success-icon {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.auth-form__success-icon svg {
  width: 48px;
  height: 48px;
}

.auth-form__success h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--color-heading);
}

.auth-form__success p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────────
   Portal app shell (dashboard etc.)
   ───────────────────────────────────────────── */

/* Portal is a TRANSACTIONAL surface — pinned to the verbatim static
   value (`--color-bg: #f7f7f5` in static-reference/assets/css/theme
   .css), NOT `var(--color-bg)`. The Site CSS form's Background picker
   themes the marketing site (body, sections); the portal must remain
   visually constant for any operator brand pick.

   This pin sits alongside `.portal-main` (#f7f7f5) and `.portal-
   content .card` (#ffffff) below. Auth screens (`.page-portal-auth`
   above) pin to white the same way. Together these four rules
   decouple every portal surface from Site CSS settings.

   `layouts/portal.blade.php` deliberately does NOT include the
   SiteCssEmitter `<style>:root` injection — so per-request operator
   overrides never reach the portal either. This pin is the second
   leg: even the theme.css *defaults* (whatever they ship as) don't
   reach portal surfaces. */
.page-portal-app {
  background: #f7f7f5;
  min-height: 100vh;
}

/* Portal-scope override for `.tab-strip`'s sticky-bg.
   The .tab-strip rule below (line ~5542) sets `background:
   var(--color-bg)` as a SOLID OPAQUE bg for sticky-scrolling — the
   static intent is "blend the strip with the page so it's invisible
   except for its bottom border". In the static, `--color-bg` resolves
   to #f7f7f5 (pale grey) and the blend works.

   In live, portal layout has no SiteCssEmitter inclusion so operator
   overrides can't reach — but theme.css's default `--color-bg:
   #ffffff` (6a44eb8) does. The .page-portal-app `background:
   #f7f7f5` literal pin above fixes the BODY bg, but doesn't override
   the variable, so cascading consumers like .tab-strip resolve to
   theme.css white and render as a visible white strip behind the
   tabs on /portal/jobs/{job}.

   Surgical fix: in portal context only, pin .tab-strip's background
   to the same static literal (#f7f7f5) as the rest of the portal
   body. The wider class of cascading consumers (.completed-table /
   .history-table hover, etc.) is logged for the Pass-2 sweep — see
   the wider posture decision parked there. */
body.page-portal-app .tab-strip {
  background: #f7f7f5;
}

.portal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .portal-shell { grid-template-columns: 72px minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .portal-shell { grid-template-columns: 1fr; }
}

/* Sidebar */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  color: #d6d6d2;
  padding: 1.25rem 0.75rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.portal-sidebar::-webkit-scrollbar { width: 6px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }

.portal-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 1.5rem;
}

.portal-sidebar__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.portal-sidebar__close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: #d6d6d2;
  cursor: pointer;
  border-radius: 6px;
}

.portal-sidebar__close:hover { background: rgba(255, 255, 255, 0.06); }
.portal-sidebar__close svg { width: 22px; height: 22px; }

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.portal-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #b8b9b6;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.portal-nav__item svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
  fill: none;
}

.portal-nav__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.portal-nav__item.is-active {
  background: rgba(49, 196, 122, 0.12);
  border-left-color: var(--color-primary);
  color: #fff;
}

.portal-nav__item.is-active svg { color: var(--color-primary); }

.portal-sidebar__divider {
  height: 1px;
  margin: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
}

.portal-nav--secondary {
  /* Flow immediately after the divider instead of being pinned to the bottom
     (was margin-top: auto) so items can't be cropped when the viewport is short. */
}

/* Tablet — icon-only with tooltip on hover */
@media (max-width: 1023px) {
  .portal-sidebar { padding: 1rem 0.5rem; }
  .portal-sidebar__head { padding: 0 0 1rem; justify-content: center; }
  .portal-sidebar__logo img { width: 28px; height: 28px; object-fit: contain; object-position: left; clip-path: inset(0 calc(100% - 28px) 0 0); }
  .portal-nav__item {
    justify-content: center;
    padding: 0.7rem;
    position: relative;
  }
  .portal-nav__item span { display: none; }
  .portal-nav__item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.3rem 0.55rem;
    background: #171717;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  .portal-nav__item:hover::after { opacity: 1; }
}

/* Mobile — drawer pattern */
@media (max-width: 767px) {
  .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.1rem 0.75rem;
  }
  .portal-sidebar__head { justify-content: space-between; padding: 0 0 1rem; }
  .portal-sidebar__logo img { width: 110px; height: auto; clip-path: none; object-fit: contain; }
  .portal-sidebar__close { display: inline-flex; }
  .portal-nav__item { justify-content: flex-start; padding: 0.7rem 0.85rem; }
  .portal-nav__item span { display: inline; }
  .portal-nav__item::after { display: none; }
  .portal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 150;
  }
  .portal-shell.is-drawer-open .portal-sidebar { transform: translateX(0); }
  .portal-shell.is-drawer-open .portal-backdrop { opacity: 1; visibility: visible; }
}

@media (min-width: 768px) {
  .portal-backdrop { display: none; }
}

/* Main area — pinned to the static `--color-bg` literal. See the
   `.page-portal-app` block above for the decoupling rationale. */
.portal-main {
  background: #f7f7f5;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.portal-topbar__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-heading);
  cursor: pointer;
}

.portal-topbar__menu svg { width: 22px; height: 22px; }

@media (max-width: 767px) {
  .portal-topbar__menu { display: inline-flex; }
}

.portal-topbar__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--color-heading);
  flex: 1;
}

.portal-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary-soft, #e4f6ec);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portal-user__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
}

@media (max-width: 600px) {
  .portal-user__name { display: none; }
}

/* Content */
.portal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3.5vw, 2.75rem) clamp(2.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Welcome banner */
.welcome-banner {
  background: #d9f99d;
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
}

.welcome-banner p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
}

.welcome-banner strong { font-weight: 700; }

/* Shared card base — pinned to the static `--color-surface` literal
   (#ffffff). Cards on the pale-grey portal surface need the static's
   white card-surface contrast regardless of Site CSS settings. See
   `.page-portal-app` for the decoupling rationale. */
.portal-content .card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0;
}

/* ───────── Job sections ───────── */
.job-section { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.job-section__note {
  margin: -0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 56ch;
}

.job-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.job-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-heading);
}

.job-section__title--muted { color: var(--color-heading); }

.job-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  background: var(--color-heading);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Section count badges — colour-matched to each section's pill (tailwind palette) */
.job-section--download  .job-section__count { background: #ea580c; } /* orange-600 — printer orange */
.job-section--review    .job-section__count { background: #7c3aed; } /* violet-600 — proof review */
.job-section--attention .job-section__count { background: #db2777; } /* pink-600   — needs attention */
.job-section--progress  .job-section__count { background: #2563eb; } /* blue-600   — in progress */

.job-section__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
}

.job-section__toggle:hover { background: var(--color-surface); border-color: var(--color-text-muted); }

.job-section__chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.job-section__toggle[aria-expanded="true"] .job-section__chev { transform: rotate(180deg); }

/* Grid */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

/* Completed jobs — table layout */
.completed-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.completed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.completed-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.completed-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

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

.completed-table tbody tr:hover { background: var(--color-bg); }

.completed-table__type {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.98rem;
}

.completed-table__ref,
.completed-table__spec,
.completed-table__date {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.completed-table__actions-col { width: 1%; }

.completed-table__actions {
  white-space: nowrap;
  text-align: right;
}

.completed-table__download,
.completed-table__manage {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.completed-table__download {
  background: var(--color-primary);
  color: #fff;
}
.completed-table__download:hover,
.completed-table__download:focus-visible {
  background: var(--color-heading);
  color: #fff;
}
.completed-table__download svg { width: 14px; height: 14px; }

.completed-table__manage {
  color: var(--color-primary);
  margin-left: 0.35rem;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
}
.completed-table__manage:hover { color: var(--color-heading); }
.completed-table__manage svg { width: 13px; height: 13px; transition: transform 0.18s ease; }
.completed-table__manage:hover svg { transform: translateX(2px); }

@media (max-width: 760px) {
  .completed-table-wrap { overflow-x: visible; }
  .completed-table thead { display: none; }
  .completed-table,
  .completed-table tbody { display: block; width: 100%; }

  /* Each row is a 3-row grid: [title | view] / meta / download */
  .completed-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 0.6rem;
    row-gap: 0.15rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .completed-table tbody tr:last-child { border-bottom: 0; }
  .completed-table tbody td { padding: 0; border-bottom: 0; min-width: 0; text-align: left; }

  /* Combined meta line rendered via pseudo-element (row 2, full width) */
  .completed-table tbody tr::before {
    content: attr(data-meta);
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.05rem;
  }

  /* Hide the separate meta cells on mobile */
  .completed-table tbody td.completed-table__ref,
  .completed-table tbody td.completed-table__spec,
  .completed-table tbody td.completed-table__date { display: none; }

  /* Title — row 1 col 1 */
  .completed-table tbody td.completed-table__job { grid-column: 1; grid-row: 1; }
  .completed-table__type { font-size: 1.05rem; }

  /* Hoist Download + View out of their td so we can grid-place them */
  .completed-table tbody td.completed-table__actions { display: contents; }

  .completed-table tbody .completed-table__manage {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }
  .completed-table tbody .completed-table__download {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 0.55rem;
  }
}

@media (max-width: 1499px) {
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .job-grid { grid-template-columns: 1fr; }
}

/* Empty state for "Needs your attention" */
.job-empty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
}

.job-empty__icon { color: var(--color-primary); flex-shrink: 0; }
.job-empty__icon svg { width: 28px; height: 28px; display: block; }
.job-empty p { margin: 0; font-size: 0.95rem; color: var(--color-text); }
.job-empty p strong { color: var(--color-heading); }

/* ───────── Job card ───────── */
.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 16px -12px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
  border-color: var(--color-text-muted);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.03), 0 14px 26px -16px rgba(15, 23, 42, 0.16);
}

.job-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem 0.85rem;
  min-width: 0;
}

.job-card__head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.job-card__title-wrap { min-width: 0; flex: 1; }

.job-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  line-height: 1.15;
  word-break: break-word;
}

.job-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.job-card__estimate {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.job-card__estimate strong { color: var(--color-heading); font-weight: 700; }
.job-card__estimate em { font-style: normal; color: var(--color-text-muted); }

/* Body */
.job-card__body {
  padding: 0 1.25rem 1rem;
}

.job-card__next {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* Footer */
.job-card__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem 1.15rem;
}

.job-card__cta {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.9rem;
  max-width: max-content;
  gap: 0.4rem;
}

.job-card__cta svg { width: 16px; height: 16px; }

/* Task-link footer (awaiting-brief / awaiting-files state) */
.job-card__foot--tasks {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.job-card__tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job-card__cta--start { align-self: flex-start; }

.task-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.task-link:hover,
.task-link:focus-visible {
  background: var(--color-surface);
  border-color: var(--color-heading);
}

.task-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.task-link__icon svg { width: 100%; height: 100%; display: block; }

.task-link.is-done {
  background: var(--color-primary-soft, #e4f6ec);
  border-color: rgba(49, 196, 122, 0.4);
  color: var(--color-heading);
}

.task-link.is-done .task-link__icon { color: var(--color-primary); }

/* Manage link in header */
.job-card__manage {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.1rem 0.2rem;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.job-card__manage svg {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.job-card__manage:hover {
  color: var(--color-heading);
}

.job-card__manage:hover svg { transform: translateX(2px); }

/* CTA tone variants */
.btn-changes {
  background: #f97316;
  color: #fff;
  border-color: transparent;
}
.btn-changes:hover,
.btn-changes:focus-visible {
  background: #ea580c;
  color: #fff;
  border-color: transparent;
}

/* Status pill dot */
.status-pill__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  margin-right: 0.4rem;
  vertical-align: middle;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .job-card__head { gap: 0.5rem; padding: 1rem 1rem 0.75rem; }
  .job-card__head-top { gap: 0.5rem; }
  .job-card__body { padding: 0 1rem 0.9rem; }
  .job-card__foot { padding: 0 1rem 1rem; }
}

/* Completed cards reuse .job-card shell — no separate styles needed. */

/* Action required card */
.action-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  overflow: hidden;
}

.action-card__indicator {
  background: #f59e0b;
}

.action-card__body {
  padding: 1.25rem clamp(1.25rem, 2.5vw, 1.75rem);
}

.action-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}

.action-card__eyebrow svg { width: 16px; height: 16px; color: #f59e0b; }

.action-card__heading {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

.action-card__copy {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--color-text);
}

.action-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.action-card__actions .btn svg { width: 18px; height: 18px; margin-right: 0.4rem; }

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-heading);
}

/* Order status card */
.order-card { padding: clamp(1.25rem, 2.5vw, 1.75rem); }

.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.order-card__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.order-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
}

.order-card__sep { color: var(--color-text-muted); margin: 0 0.3rem; }

.order-card__link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-card__link:hover { color: var(--color-primary); }

/* Progress steps */
.order-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  position: relative;
}

.order-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.order-step + .order-step::before {
  content: '';
  position: absolute;
  top: 11px;
  right: calc(50% + 12px);
  left: calc(-50% + 12px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.order-step.is-complete + .order-step::before,
.order-step.is-complete + .order-step.is-current::before {
  background: var(--color-primary);
}

.order-step__dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
}

.order-step.is-complete .order-step__dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.order-step.is-complete .order-step__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(-45deg);
}

.order-step.is-current .order-step__dot {
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.order-step.is-current .order-step__dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #f59e0b;
}

.order-step__label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.order-step.is-complete .order-step__label,
.order-step.is-current .order-step__label {
  color: var(--color-heading);
}

@media (max-width: 760px) {
  .order-steps {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .order-step {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.7rem;
  }
  .order-step + .order-step::before {
    top: -8px;
    left: 11px;
    right: auto;
    width: 2px;
    height: 8px;
    background: var(--color-border);
  }
  .order-step.is-complete + .order-step::before { background: var(--color-primary); }
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill--awaiting   { background: #fce7f3; color: #9d174d; } /* tailwind pink-100 / pink-800 */
.status-pill--assigned   { background: #dbeafe; color: #1e40af; }
.status-pill--proof      { background: #ede9fe; color: #5b21b6; }
.status-pill--changes    { background: #ffedd5; color: #9a3412; }
.status-pill--approved   { background: var(--color-primary-soft, #e4f6ec); color: #1f7d4b; }
.status-pill--ready      { background: #ffedd5; color: #c2410c; } /* tailwind orange-100 / orange-700 — printer orange */
.status-pill--completed  { background: var(--color-bg); color: var(--color-heading); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 760px) {
  .quick-actions { grid-template-columns: 1fr; }
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-heading);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-card:hover {
  border-color: var(--color-heading);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.18);
}

.quick-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-primary-soft, #e4f6ec);
  color: var(--color-primary);
  border-radius: 14px;
  margin-bottom: 0.4rem;
}

.quick-card__icon svg { width: 26px; height: 26px; }

.quick-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

.quick-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Bottom grid (messages + uploads) */
.portal-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 900px) {
  .portal-bottom-grid { grid-template-columns: 1fr; }
}

.mini-card { padding: 1.1rem 1.25rem; }

.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.mini-card__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
}

.mini-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-card__link:hover { color: var(--color-primary); }

.mini-card__body--empty p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 5. Reassurance strip */
.reassurance-strip {
  background: #ecfccb;
  border-top: 1px solid #dcefb1;
  border-bottom: 1px solid #dcefb1;
}

.reassurance-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.reassurance-strip p {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.reassurance-strip svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .reassurance-strip__inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 52px;
    padding-block: 0.75rem;
  }
  .reassurance-strip p {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  .reassurance-strip p.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ───────── Product order area ───────── */
.product-order {
  padding-block: clamp(0.85rem, 1.5vw, 1.25rem) clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--color-bg);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ───────── Gallery ───────── */
.product-gallery {
  position: sticky;
  top: calc(var(--nav-height, 78px) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .product-gallery {
    position: static;
  }
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-grey, #f1f2ef);
  border-radius: 18px;
  overflow: hidden;
}

/* Scoped to the 4+ branch only — .product-gallery__main is the
   stacked-absolute layout where one image is visible at a time via
   .is-active (thumbnail switcher). The 1-3 branch (.product-gallery__row)
   uses a plain grid of pictures; absolute + opacity:0 there would
   collapse the row and hide every image permanently. */
.product-gallery__main .product-gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.product-gallery__main .product-gallery__image.is-active {
  opacity: 1;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.product-gallery__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--color-surface-2);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumb:hover {
  transform: translateY(-1px);
}

.product-gallery__thumb.is-active {
  border-color: var(--color-heading);
}

.product-gallery__thumb:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ───────── Configurator ───────── */
.product-config {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-config__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.product-config__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-heading);
  line-height: 1.1;
}

.product-config__price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.product-config__price-line strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Group / legend */
.config-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.config-group legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
}

.legend-hint { display: none; }

/* Required date field — full block sits in a pale lime container.
   Background reverted to verbatim static `rgba()` literal (brand
   lime `#bef264` at 18% opacity). The section was rewired during the
   public-consumption arc to `var(--color-surface-5)` (pale lime
   opaque hex), but the static intent was a translucent overlay, not
   a brand-themeable surface — its border below (still `rgba()`) is
   the surviving evidence of that intent. Decoupled from Site CSS so
   operator brand picks don't drag this section's tint. */
.config-group--date {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(190, 242, 100, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(190, 242, 100, 0.4);
}
.config-group--date legend {
  padding: 0;
  margin: 0 0 0.1rem;
  float: left;
  width: 100%;
}

.date-field {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.date-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-heading);
  pointer-events: none;
}
.date-field input[type="date"] {
  box-sizing: border-box;
  width: 13rem;
  max-width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.6rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-heading);
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.date-field input[type="date"]:hover {
  border-color: #b8bcc0;
}
.date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--color-heading);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
/* Hide native indicator on the right but keep the whole input clickable */
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}
.date-field input[type="date"]::-webkit-inner-spin-button,
.date-field input[type="date"]::-webkit-clear-button {
  display: none;
}
.date-field__help {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.turnaround-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-heading);
}
.turnaround-pill__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: none;
}

/* Show only the icon matching the current state */
.turnaround-pill--neutral .turnaround-pill__icon--neutral,
.turnaround-pill--green .turnaround-pill__icon--green,
.turnaround-pill--amber .turnaround-pill__icon--amber,
.turnaround-pill--red .turnaround-pill__icon--red { display: block; }

/* Reverted to verbatim static rgba — same lime as the outer
   `.config-group--date`, deeper 35% opacity for the highlight
   contrast. Was rewired to `var(--color-surface-2)` (pale grey)
   during the public-consumption arc; the static intent was
   "stronger lime tint of the same overlay", not a brand-themeable
   neutral surface. Pairs with `.config-group--date` above. */
.turnaround-pill--neutral {
  background: rgba(190, 242, 100, 0.35);
  color: var(--color-heading);
}
.turnaround-pill--neutral .turnaround-pill__icon { color: var(--color-heading); }

.turnaround-pill--green {
  background: rgba(49, 196, 122, 0.18);
  color: #0f5a2d;
}
.turnaround-pill--green .turnaround-pill__icon { color: #15803d; }

.turnaround-pill--amber {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}
.turnaround-pill--amber .turnaround-pill__icon { color: #b45309; }

.turnaround-pill--red {
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
}
.turnaround-pill--red .turnaround-pill__icon { color: #b91c1c; }

/* Option tiles (formats) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.option-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;
  background: #f3f3f1;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  min-height: 52px;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.option-tile:hover {
  background: #ebebe8;
}

.option-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-tile:has(input:checked) {
  background: #d9f99d;
  border-color: transparent;
}

.option-tile:has(input:checked) .option-tile__price {
  color: var(--color-heading);
  font-weight: 600;
}

.option-tile:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.option-tile__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.option-tile__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
}

.option-tile__price {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Option chips (orientation) */
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.option-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  background: var(--option-chip-bg, #f3f3f1);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-chip:hover {
  background: #ebebe8;
}

.option-chip:has(input:checked) {
  background: var(--option-chip-selected-bg, #d9f99d);
  border-color: transparent;
  color: var(--option-chip-selected-text, var(--color-heading));
  font-weight: 600;
}

.option-chip:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Add-ons */
.addon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.addon-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.addon-list li:last-child .addon-row {
  border-bottom: 0;
}

.addon-row:hover {
  background: #ebebe8;
}

.addon-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-heading);
  cursor: pointer;
}

.addon-row span {
  min-width: 0;
  color: var(--color-text);
}

.addon-row strong {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.addon-row:has(input:checked) {
  background: #d9f99d;
}

.addon-row:has(input:checked) strong {
  color: var(--color-heading);
  font-weight: 500;
}

.addon-row:has(input:checked):hover {
  background: #d9f99d;
}

/* Summary */
.product-config__summary { display: none; }

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.summary-row--total {
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
}

.summary-row--total strong {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Actions */
.product-config__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-config__cta {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 54px;
  font-size: 1.02rem;
  padding: 0 1.25rem;
  gap: 0.5rem;
}

.product-config__cta svg {
  width: 20px;
  height: 20px;
}

.product-config__cta.is-added {
  background: var(--color-heading);
  color: #fff;
  pointer-events: none;
}

.product-config__actions .btn-ghost {
  width: 100%;
  max-width: none;
  min-height: 46px;
}

.product-config__reassurance {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
}

/* Trust line — hidden to reduce clutter */
.product-config__trust { display: none; }
.product-config__trust--legacy {
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.product-config__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-config__trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Sticky CTA (mobile + scrolled) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta[hidden] {
  display: block;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.sticky-cta__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-cta__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sticky-cta__total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
}

.sticky-cta .btn {
  min-height: 44px;
}

@media (max-width: 600px) {
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-config__cta {
    min-height: 52px;
    font-size: 1rem;
  }
}

/* Add-on "view more" toggle — green text link */
.addon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
  padding: 0.1rem 0;
  background: transparent;
  border: 0;
  color: #15803d;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 128, 61, 0.55);
}

.addon-toggle:hover,
.addon-toggle:focus-visible {
  color: #0f5a2d;
  text-decoration-color: #15803d;
}

/* Split section — heading left, body right */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-section--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.split-section--reverse .split-section__title {
  order: 2;
}

.split-section--reverse .split-section__body {
  order: 1;
}

.split-section__title h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.split-section__body p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.split-section__body p:last-of-type {
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .split-section,
  .split-section--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .split-section--reverse .split-section__title,
  .split-section--reverse .split-section__body {
    order: unset;
  }
}

/* Feature grid (What's included) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-heading);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing table */
.section-pricing .section-heading {
  margin-bottom: 1.5rem;
}

.section-pricing .section-heading p {
  margin-top: 0.4rem;
  font-size: 1.02rem;
  color: var(--color-text);
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}

.pricing-table-wrap:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 720px;
}

.pricing-table thead th {
  position: sticky;
  top: 0;
  padding: 0.95rem 1rem;
  background: var(--color-surface-2);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.pricing-table tbody th {
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table tbody tr {
  transition: background 0.15s ease;
}

.pricing-table tbody tr:hover {
  background: rgba(49, 196, 122, 0.04);
}

.pricing-table__price-col {
  text-align: right !important;
}

.pricing-table__price {
  text-align: right;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-heading);
  white-space: nowrap;
}

/* Complexity pill */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
}

.pill--simple {
  background: rgba(190, 242, 100, 0.55);
  color: #4d6700;
}

.pill--standard {
  background: rgba(49, 196, 122, 0.18);
  color: #1f7d4b;
}

.pill--detailed {
  background: rgba(236, 72, 153, 0.14);
  color: #9d174d;
}

/* Pricing extras (complexity + add-ons) */
.pricing-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-top: 2.25rem;
}

.pricing-extras h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.complexity-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 0.85rem;
  margin: 0;
  padding: 0;
}

.complexity-list dt {
  margin: 0;
}

.complexity-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.addons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}

.addons-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.addons-list li:last-child {
  border-bottom: 0;
}

.addons-list strong {
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .pricing-extras {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Final CTA */
.section-final-cta {
  background: var(--color-hero);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-heading);
  color: #fff;
  border-radius: 24px;
}

.final-cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: #fff;
}

.final-cta p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.final-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.final-cta .btn-ghost:hover,
.final-cta .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 860px) {
  .final-cta {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .final-cta__actions .btn {
    width: 100%;
    max-width: none;
  }
}

/* ─────────────────────────────────────────────
   Portal — Job detail page
   ───────────────────────────────────────────── */

.page-portal-job .portal-topbar { gap: 0.85rem; }
.portal-topbar--breadcrumb { flex-wrap: wrap; row-gap: 0.4rem; }

.portal-breadcrumb { flex: 1 1 auto; min-width: 0; }
.portal-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.portal-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.portal-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.15rem 0.1rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.portal-breadcrumb a:hover { color: var(--color-heading); }
.portal-breadcrumb [aria-current="page"] {
  color: var(--color-heading);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-breadcrumb__sep svg {
  width: 12px;
  height: 12px;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.job-detail {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Spec header (full-width, no card) ── */
.job-hero {
  background: transparent;
  border: 0;
  padding: 0.5rem 0.25rem 0.25rem;
}
.job-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.job-hero__ref {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.job-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--color-heading);
}
.job-hero__specs {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
}
.job-hero__specs > div { padding: 0 1rem; }
.job-hero__specs > div + div { border-left: 1px solid var(--color-border); }
.job-hero__specs > div:first-child { padding-left: 0; }
.job-hero__specs > div:last-child { padding-right: 0; }
.job-hero__specs dt {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.job-hero__specs dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
}
@media (max-width: 720px) {
  .job-hero__specs > div { padding: 0.6rem 0; border-left: 0; }
  .job-hero__specs > div + div { border-left: 0; border-top: 1px solid var(--color-border); }
  .job-hero__specs {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }
  .job-hero__specs > div { padding: 0.6rem 0.75rem; border-top: 1px solid var(--color-border); border-left: 0; }
}

/* ── Action sections (Overview tab) ── */
.action-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.6rem 1.85rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 16px -12px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .action-section { padding: 1.35rem 1.25rem; }
}

.action-section__head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem;
}
.action-section__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.action-section__icon svg { width: 22px; height: 22px; }

.action-section__body h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.action-section__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.action-section__status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.action-section__status--done {
  background: var(--color-primary-soft, #e4f6ec);
  color: #1f7d4b;
}
.action-section__status--idle {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.action-section__status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.action-section__optional {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

/* Empty-state variant — head sits inline with CTA on the right */
.action-section--empty {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem;
}
.action-section--empty .action-section__body { min-width: 0; }
.action-section--empty .action-section__body h2 { margin-bottom: 0.25rem; }

.action-section__cta {
  min-height: 44px;
  padding: 0 1.1rem;
  gap: 0.4rem;
  white-space: nowrap;
}
.action-section__cta svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .action-section--empty {
    grid-template-columns: 48px 1fr;
    row-gap: 0.85rem;
  }
  .action-section--empty .action-section__cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .action-section__head { grid-template-columns: 48px 1fr; }
  .action-section__head .card__action { grid-column: 1 / -1; justify-self: start; }
}

/* ── History table ── */
.history-card { padding: 0 !important; }
.history-card .card__heading { padding: 1.4rem 1.6rem 0.4rem; margin-bottom: 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.history-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.85rem 1.6rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.history-table tbody td {
  padding: 0.9rem 1.6rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table tbody tr:hover { background: var(--color-bg); }
.history-table td:first-child {
  width: 1%;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
}
@media (max-width: 600px) {
  .history-card .card__heading { padding: 1.15rem 1.25rem 0.35rem; }
  .history-table thead th,
  .history-table tbody td { padding: 0.75rem 1.25rem; }
}

/* Compact dropzone inside Images & logos action card */
.dropzone--compact {
  padding: 1.1rem 1rem;
  gap: 0.2rem;
}
.dropzone--compact .dropzone__icon { width: 36px; height: 36px; margin-bottom: 0.1rem; }
.dropzone--compact .dropzone__icon svg { width: 18px; height: 18px; }
.dropzone--compact .dropzone__title { font-size: 0.95rem; }

/* ── Overview sections: artwork content / brief / logos ── */
.action-section--brief,
.action-section--uploads { gap: 1rem; }
.action-section--brief .rte { width: 100%; }
.action-section--brief .rte__content {
  min-height: 11rem;
  padding: 1.1rem 1.25rem;
  max-height: none;
}

/* Plain brief textarea (no toolbar) */
.brief-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 11rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-heading);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brief-textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.brief-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.18);
}
.action-section--brief .action-section__footer,
.action-section--uploads .action-section__footer { justify-content: flex-end; padding-top: 0; }

.content-uploads__empty {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.content-uploads__empty[hidden] { display: none; }
.action-section--uploads .file-list:empty { display: none; }

/* ── Submit-to-designer bar + Start/Pause switch ── */
.submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 16px -12px rgba(15, 23, 42, 0.08);
}
.submit-bar__main { min-width: 0; flex: 1 1 auto; }
.submit-bar__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-heading);
}
.submit-bar__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.submit-bar__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.submit-bar__cta { min-height: 46px; padding: 0 1.25rem; gap: 0.4rem; }
.submit-bar__cta:disabled { opacity: 0.55; cursor: not-allowed; }
.submit-bar__cta svg { width: 16px; height: 16px; }

/* Start / Pause order toggle */
.order-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}
.order-toggle[hidden] { display: none; }
.order-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.order-toggle__track {
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.order-toggle__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.order-toggle input:checked + .order-toggle__track { background: var(--color-primary); }
.order-toggle input:checked + .order-toggle__track::before { transform: translateX(20px); }
.order-toggle__labels {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}
.order-toggle__on,
.order-toggle__off { display: none; }
.order-toggle input:checked ~ .order-toggle__labels .order-toggle__on { display: inline; }
.order-toggle input:not(:checked) ~ .order-toggle__labels .order-toggle__off { display: inline; color: var(--color-text-muted); }

@media (max-width: 640px) {
  .submit-bar { padding: 1.15rem 1.25rem; }
  .submit-bar__controls { width: 100%; justify-content: space-between; }
  .submit-bar__cta { flex: 1 1 auto; justify-content: center; }
}

/* ── Content editor (Artwork content section) ── */
.action-section--editor { gap: 1.5rem; }
.action-section__head--editor { grid-template-columns: 48px 1fr; }
.action-section__footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.action-section__footer .btn { min-height: 44px; padding: 0 1.1rem; }

.content-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.content-group {
  border: 0;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.content-group:first-child { padding-top: 0; border-top: 0; }
.content-group > legend {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
}
.content-group > legend .form-field__optional {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 600px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* Rich-text editor (RTE) */
.rte {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.rte__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.rte__toolbar > * { flex: 0 0 auto; }
.rte__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.rte__btn:hover { background: #fff; border-color: var(--color-border); }
.rte__btn:active,
.rte__btn.is-active { background: var(--color-heading); color: #fff; border-color: var(--color-heading); }
.rte__btn svg { width: 16px; height: 16px; }
.rte__btn strong,
.rte__btn em,
.rte__btn u,
.rte__btn s { font-style: normal; font-weight: 700; line-height: 1; }
.rte__btn em { font-style: italic; font-weight: 600; }
.rte__btn u { text-decoration: underline; font-weight: 600; }
.rte__btn s { text-decoration: line-through; font-weight: 600; }

.rte__divider {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  margin: 0 0.25rem;
}

.rte__format {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
  width: auto;
  max-width: 9rem;
  flex: 0 0 auto;
  padding: 0.3rem 1.85rem 0.3rem 0.6rem;
  height: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.8'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 12px;
  cursor: pointer;
}
.rte__format:focus { outline: none; border-color: var(--color-primary); }

.rte__content {
  min-height: 9rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-heading);
  outline: none;
  overflow: auto;
  max-height: 24rem;
}
.rte__content:focus { background: #fff; }
.rte__content h2,
.rte__content h3,
.rte__content h4 {
  margin: 0.6rem 0 0.3rem;
  font-family: var(--font-heading);
  color: var(--color-heading);
}
.rte__content h2 { font-size: 1.3rem; font-weight: 800; }
.rte__content h3 { font-size: 1.1rem; font-weight: 700; }
.rte__content h4 { font-size: 1rem; font-weight: 700; }
.rte__content p { margin: 0 0 0.6rem; }
.rte__content ul,
.rte__content ol { margin: 0 0 0.6rem; padding-left: 1.4rem; }
.rte__content li { margin-bottom: 0.2rem; }
.rte__content a { color: var(--color-primary); text-decoration: underline; }

/* Placeholder for empty contenteditable */
.rte__content:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ── Shared card primitive ── */
.job-detail .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.6rem 1.85rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 16px -12px rgba(15, 23, 42, 0.08);
}
@media (max-width: 600px) {
  .job-detail .card { padding: 1.35rem 1.25rem; }
}
.job-detail .card__heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-heading);
}
.card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.card__action svg { width: 14px; height: 14px; }
.card__action:hover { background: var(--color-bg); color: var(--color-heading); }

/* ── Job header card ── */
.job-header__top { margin-bottom: 0.85rem; }
.job-header__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-heading);
}
.job-header__meta {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Spec grid — same vibe as basket spec rows */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--color-border);
}
.spec-grid__cell { padding: 0 0.6rem; }
.spec-grid__cell + .spec-grid__cell { border-left: 1px solid var(--color-border); }
.spec-grid__cell:first-child { padding-left: 0; }
.spec-grid__cell:last-child { padding-right: 0; }
.spec-grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.spec-grid dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* ── Progress stepper ── */
.progress-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}
.step {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 0.75rem;
  position: relative;
}
.step__marker {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  position: relative;
  z-index: 1;
}
.step__marker svg { width: 12px; height: 12px; }
/* connector line */
.step + .step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -0.85rem;
  width: 2px;
  height: 0.85rem;
  background: var(--color-border);
}
.step.is-done .step__marker {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.step.is-done + .step::before { background: var(--color-primary); }
.step.is-current .step__marker {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(49, 196, 122, 0.18);
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(49, 196, 122, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(49, 196, 122, 0.08); }
}
.step__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-heading);
  padding-top: 1px;
}
.step:not(.is-done):not(.is-current) .step__label { color: var(--color-text-muted); font-weight: 500; }
.step__sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* ── Timeline ── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.timeline__item {
  position: relative;
  padding-left: 1.1rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
}
.timeline__item time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.timeline__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.45;
}
.timeline__toggle {
  margin-top: 0.85rem;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.timeline__toggle:hover { background: var(--color-bg); border-color: var(--color-text-muted); }
.timeline__toggle svg { width: 12px; height: 12px; transition: transform 0.18s ease; }
.timeline__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Tab strip (flat, underline-only) ── */
.tab-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 5;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--color-bg);
  margin-top: 0.25rem;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
}
.tab:hover { color: var(--color-heading); }
.tab.is-active {
  color: var(--color-heading);
  font-weight: 700;
}
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  background: var(--color-border);
  color: var(--color-heading);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tab.is-active .tab__count { background: var(--color-heading); color: #fff; }
.tab__count--alert { background: #8b5cf6; color: #fff; }
.tab.is-active .tab__count--alert { background: #8b5cf6; color: #fff; }
.tab__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  margin-left: 0.1rem;
}
.tab__dot--alert {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Tab alerts — surfaced below the tab strip for pending actions */
.tab-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.2rem 0 0;
}
.tab-alerts:empty { display: none; }

.tab-alert {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left-width: 3px;
  border-radius: 12px;
  background: var(--color-surface);
}
.tab-alert[hidden] { display: none; }
.tab-alert__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-alert__icon svg { width: 20px; height: 20px; }
.tab-alert__body { min-width: 0; }
.tab-alert__body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.005em;
}
.tab-alert__body p {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.tab-alert__cta {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.88rem;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Proofs — purple */
.tab-alert--proofs {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  border-left-color: #8b5cf6;
}
.tab-alert--proofs .tab-alert__icon { background: rgba(139, 92, 246, 0.18); color: #6d28d9; }
.tab-alert--proofs .tab-alert__cta { background: #8b5cf6; color: #fff; border-color: transparent; }
.tab-alert--proofs .tab-alert__cta:hover,
.tab-alert--proofs .tab-alert__cta:focus-visible { background: #7c3aed; }

/* Final files — green */
.tab-alert--final {
  background: var(--color-primary-soft, #e4f6ec);
  border-color: rgba(49, 196, 122, 0.35);
  border-left-color: var(--color-primary);
}
.tab-alert--final .tab-alert__icon { background: rgba(49, 196, 122, 0.2); color: #1f7d4b; }

/* Messages — neutral grey */
.tab-alert--messages {
  background: var(--color-bg);
  border-color: var(--color-border);
  border-left-color: var(--color-text-muted);
}
.tab-alert--messages .tab-alert__icon { background: var(--color-surface); color: var(--color-heading); border: 1px solid var(--color-border); }
.tab-alert--messages .tab-alert__cta { background: var(--color-heading); color: #fff; border-color: transparent; }
.tab-alert--messages .tab-alert__cta:hover,
.tab-alert--messages .tab-alert__cta:focus-visible { background: #000; }

@media (max-width: 600px) {
  .tab-alert { grid-template-columns: 40px 1fr; row-gap: 0.6rem; }
  .tab-alert__cta { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

.tab-panels { display: flex; flex-direction: column; gap: 1.25rem; }
.tab-panel { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.tab-panel[hidden] { display: none; }

/* ── Brief panel ── */
.brief-card__head,
.messages-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.brief-card__head .card__heading,
.messages-card__head .card__heading { margin: 0 0 0.2rem; }
.brief-card__submitted,
.messages-card__sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.brief-summary {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.brief-summary__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.brief-summary dt {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.brief-summary dd {
  margin: 0;
  font-size: 1rem;
  color: var(--color-heading);
  line-height: 1.6;
}
.brief-summary dd a { color: var(--color-primary); }

/* Brief form */
.brief-form { display: flex; flex-direction: column; gap: 1rem; }
.brief-form[hidden],
.brief-card[hidden] { display: none; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading);
}
.form-field__optional {
  margin-left: 0.3rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-heading);
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 5rem; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.18);
}
.brief-form__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.brief-form__actions .btn { min-height: 44px; }
.brief-form__note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Files panel ── */
.files-card { display: flex; flex-direction: column; gap: 1rem; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.85rem 1.25rem;
  text-align: center;
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  background: rgba(49, 196, 122, 0.06);
  border-color: var(--color-primary);
}
.dropzone__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  margin-bottom: 0.35rem;
}
.dropzone__icon svg { width: 22px; height: 22px; }
.dropzone__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
}
.dropzone__meta,
.dropzone__hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.dropzone__hint { font-style: italic; }

.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.file-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-row:hover { background: var(--color-bg); }
.file-row__icon {
  width: 40px;
  height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 2px;
  position: relative;
  color: var(--color-text-muted);
}
.file-row__icon svg { width: 16px; height: 16px; opacity: 0; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); }
.file-row__ext {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-heading);
}
.file-row__icon--pdf { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.file-row__icon--pdf .file-row__ext { color: #b91c1c; }
.file-row__body { min-width: 0; }
.file-row__name {
  margin: 0;
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row__meta { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); }
.file-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.file-row__link {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.file-row__link:hover { color: var(--color-heading); }
.file-row__remove {
  background: transparent;
  border: 0;
  padding: 0.25rem 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 4px;
}
.file-row__remove:hover { color: var(--color-heading); background: var(--color-bg); }

.file-row__progress {
  margin-top: 0.4rem;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.file-row__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.18s ease;
}

.file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-align: center;
}
.file-empty__art {
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.file-empty__art svg { width: 28px; height: 28px; }
.file-empty p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.file-empty p strong { color: var(--color-heading); }

/* ── Proofs panel ── */
.proof-card { display: flex; flex-direction: column; gap: 1.25rem; }
.proof-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.proof-card__version {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-heading);
}
.proof-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.proof-card__media-wrap {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.proof-card__viewer {
  display: block;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}
.proof-card__media-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: -0.25rem;
}
.proof-card__zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--color-heading);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}
.proof-card__zoom svg { width: 15px; height: 15px; }
.proof-card__zoom:hover,
.proof-card__zoom:focus-visible { background: var(--color-primary); transform: translateY(-1px); outline: none; }

.proof-card__download {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.proof-card__download:hover,
.proof-card__download:focus-visible { color: var(--color-heading); }
.proof-art {
  display: block;
  height: clamp(360px, 56vh, 520px);
  width: auto;
  max-width: 100%;
  border-radius: 4px;
  background: #faf8f3;
  box-shadow: 0 22px 44px -24px rgba(15, 23, 42, 0.35), 0 2px 0 rgba(0, 0, 0, 0.04);
}
/* Keep proof-v1 thumbnail compact regardless */
.proof-version__thumb .proof-art {
  height: 180px;
}

.proof-card__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.proof-card__approve {
  flex: 0 1 auto;
  min-height: 60px;
  padding: 0 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  gap: 0.55rem;
}
.proof-card__approve svg { width: 18px; height: 18px; }
.proof-card__changes {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 0.6rem;
  background: transparent;
  color: #b45309;
  border: 0;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.proof-card__changes:hover,
.proof-card__changes:focus-visible {
  background: transparent;
  color: #92400e;
}
.proof-card__changes svg { width: 14px; height: 14px; }

.proof-card__changes-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.proof-card__changes-panel[hidden] { display: none; }
.proof-card__changes-panel label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading);
}
.proof-card__changes-panel textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 5rem;
  background: #fff;
}
.proof-card__changes-panel textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.proof-card__changes-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.proof-card__reassurance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.95rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.45;
}
.proof-card__reassurance svg {
  width: 18px;
  height: 18px;
  color: #b45309;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Previous proof version */
.proof-version { padding: 0; overflow: hidden; }
.proof-version__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  list-style: none;
  flex-wrap: wrap;
}
.proof-version__head::-webkit-details-marker { display: none; }
.proof-version__head strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
}
.proof-version__sub {
  margin-left: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.proof-version__chev {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  transition: transform 0.18s ease;
}
.proof-version[open] .proof-version__chev { transform: rotate(180deg); }

.proof-version__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
}
.proof-version__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: zoom-in;
}
.proof-version__thumb .proof-art {
  height: 180px;
  width: auto;
  max-width: 100%;
  background: #faf8f3;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.2);
}
.proof-version__notes h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-heading);
}
.proof-version__notes p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.55;
}
.proof-version__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.proof-version__zoom {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.proof-version__zoom:hover { color: var(--color-heading); }
.proof-version__download {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.proof-version__download:hover { color: var(--color-heading); }

@media (max-width: 600px) {
  .proof-version__body { grid-template-columns: 1fr; }
}

/* ── Messages panel ── */
.messages-card { display: flex; flex-direction: column; gap: 1rem; }
.message-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.6rem;
  max-width: 85%;
}
.message__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.message__bubble {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.6rem 0.85rem 0.7rem;
}
.message__bubble header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}
.message__bubble strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-heading);
}
.message__bubble time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.message__bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}
.message__attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.55rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.message__attachment:hover { color: var(--color-heading); border-color: var(--color-text-muted); }
.message__attachment svg { width: 13px; height: 13px; }

.message--customer {
  justify-self: end;
  grid-template-columns: 1fr 34px;
}
.message--customer .message__avatar { order: 2; background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.message--customer .message__bubble {
  background: rgba(49, 196, 122, 0.08);
  border-color: rgba(49, 196, 122, 0.25);
}

.message-composer {
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.message-composer textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-heading);
  padding: 0.4rem 0.3rem;
  background: transparent;
  line-height: 1.5;
}
.message-composer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.message-composer__attach {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.message-composer__attach:hover { color: var(--color-heading); border-color: var(--color-heading); }
.message-composer__attach svg { width: 16px; height: 16px; }
.message-composer__send {
  min-height: 36px;
  padding: 0 0.95rem;
  gap: 0.35rem;
  font-size: 0.88rem;
}
.message-composer__send svg { width: 14px; height: 14px; }

/* ── Final files banner ── */
.final-files-card { display: flex; flex-direction: column; gap: 1rem; }
.final-files-card__banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--color-primary-soft, #e4f6ec);
  border: 1px solid rgba(49, 196, 122, 0.35);
  border-radius: 12px;
  color: var(--color-heading);
}
.final-files-card__banner svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }
.final-files-card__banner p { margin: 0; font-size: 0.95rem; }
.final-files-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.final-files-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.final-files-list__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  background: transparent;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.final-files-list__download:hover,
.final-files-list__download:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-heading);
}
.final-files-card__zip {
  min-height: 48px;
  padding: 0 1.2rem;
  gap: 0.4rem;
  align-self: flex-start;
}
.final-files-card__zip svg { width: 16px; height: 16px; }
.final-files-card__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Lightbox ── */
.lightbox {
  width: min(92vw, 720px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.lightbox::backdrop { background: rgba(15, 15, 15, 0.86); backdrop-filter: blur(2px); }
.lightbox__close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__stage {
  background: transparent;
  border-radius: 14px;
  padding: 0;
  max-height: 88vh;
  overflow: auto;
  display: flex;
  justify-content: center;
}
.lightbox__art {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.4);
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Shared marketing-page system (How it works, About,
   Our Designers, Reviews, Contact, Examples, Blog,
   FAQ, Artwork Guidelines)
   ========================================================= */
.page-hero {
  background: var(--pageshero-bg, var(--color-hero));
  padding: clamp(3.5rem, 5vw, 5.5rem) 0 clamp(3.25rem, 5vw, 5rem);
}

.page-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--pageshero-text, var(--color-heading));
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--pageshero-text, var(--color-heading));
}

.page-hero__sub {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--pageshero-text, var(--color-heading));
}

/* Marketing page section */
.marketing-section {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
}

.marketing-section--alt {
  background: var(--color-surface-2);
}

.marketing-section--surface {
  background: var(--color-surface);
}

/* Image-bearing content layouts — Phase 4 / editable-pages unit 3.
   Used by the content block kind when layout is `image-right` or
   `image-left`. The split lays text + image side-by-side on
   desktop; on mobile it stacks (image goes BELOW the prose by
   default, ABOVE only on image-left's mobile reading order to
   preserve the lead-with-image rhythm). */
.marketing-section--image .marketing-section__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.marketing-section--image .marketing-prose {
  /* Override the default 720px center cap — in image layouts the
     prose lives in a column, not centered. */
  max-width: none;
  margin: 0;
}

.marketing-section--image .marketing-section__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* image-left places the media first in source order; image-right
   uses the natural source order (prose then media). */
.marketing-section--image-left .marketing-section__split {
  direction: rtl;
}
.marketing-section--image-left .marketing-section__split > * {
  direction: ltr;
}

@media (max-width: 800px) {
  .marketing-section--image .marketing-section__split {
    grid-template-columns: 1fr;
  }
  /* On image-left mobile we want the image FIRST (it's the lead);
     on image-right mobile we keep the source order (prose first). */
  .marketing-section--image-left .marketing-section__split {
    direction: ltr;
  }
  .marketing-section--image-left .marketing-section__media {
    order: -1;
  }
}

.marketing-prose {
  max-width: 720px;
  margin: 0 auto;
}

.marketing-prose h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

.marketing-prose h2 + p {
  margin-top: 0;
}

.marketing-prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

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

.marketing-prose .marketing-section__cta {
  margin-top: 1.25rem;
}

.marketing-prose .marketing-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.marketing-prose .marketing-link:hover,
.marketing-prose .marketing-link:focus-visible {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Step / process grid — 2x2 image-led cards (main event on how-it-works) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (max-width: 720px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.process-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.18);
}

.process-step__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-hero);
  overflow: hidden;
}

.process-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-step__num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--color-heading);
  color: var(--color-hero);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.3);
  z-index: 1;
}

.process-step__body {
  padding: 1.5rem 1.6rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.process-step h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

.process-step p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* Portal showcase block — image left, copy right */
.portal-showcase {
  background: var(--color-bg);
  padding: clamp(3.5rem, 5vw, 5rem) 0;
}

.portal-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .portal-showcase__grid {
    grid-template-columns: 1fr;
  }
}

.portal-showcase__copy h2 {
  margin: 0 0 0.95rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

.portal-showcase__copy p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text);
}

.portal-showcase__copy .btn {
  margin-top: 0.85rem;
}

.portal-showcase__features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.portal-showcase__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.portal-showcase__features svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Portal mockup — built in HTML/CSS so it looks like the real product */
.portal-mock {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  font-family: var(--font-sans);
}

.portal-mock__chrome {
  background: #f1f2ef;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9d9d4;
  display: inline-block;
}

.portal-mock__url {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.portal-mock__inner {
  display: grid;
  grid-template-columns: 110px 1fr;
}

@media (max-width: 480px) {
  .portal-mock__inner {
    grid-template-columns: 80px 1fr;
  }
}

.portal-mock__side {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.portal-mock__side-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 0.65rem;
}

.portal-mock__side-logo span {
  color: var(--color-hero);
}

.portal-mock__side-item {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.portal-mock__side-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.portal-mock__main {
  padding: 1rem 1.1rem 1.2rem;
}

.portal-mock__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-heading);
  margin: 0 0 0.85rem;
}

.portal-mock__jobs {
  display: grid;
  gap: 0.5rem;
}

.portal-mock__job {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.78rem;
}

.portal-mock__job-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-surface-2);
  flex-shrink: 0;
}

.portal-mock__job-text {
  flex: 1;
  color: var(--color-heading);
  font-weight: 600;
}

.portal-mock__job-text small {
  display: block;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.7rem;
  margin-top: 1px;
}

.portal-mock__job-pill {
  font-size: 0.66rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portal-mock__job-pill--proof {
  background: #ede9fe;
  color: #6d28d9;
}

.portal-mock__job-pill--done {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
}

.portal-mock__job-pill--progress {
  background: #fef3c7;
  color: #92400e;
}

.marketing-cta-row {
  margin-top: 2.25rem;
  text-align: center;
}

/* FAQ search field — sits inside the FAQ page hero */
.faq-search {
  position: relative;
  max-width: 540px;
  margin: 1.75rem auto 0;
}

.faq-search__input {
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 3rem;
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-heading);
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-search__input::placeholder {
  color: var(--color-text-muted);
}

.faq-search__input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.18);
}

.faq-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.faq-search__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.faq-search__clear.is-visible {
  display: inline-flex;
}

.faq-search__clear:hover {
  background: var(--color-heading);
  color: #fff;
}

.faq-search__clear svg {
  width: 14px;
  height: 14px;
}

.faq-no-results {
  display: none;
  margin: 1.5rem auto 0;
  max-width: 540px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 14px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-no-results.is-visible {
  display: block;
}

.marketing-faq__category[hidden] {
  display: none !important;
}

/* FAQ block (reuses .faq-card from main.js) */
.marketing-faq {
  max-width: 820px;
  margin: 0 auto;
}

.marketing-faq__heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--color-heading);
}

.marketing-faq__category + .marketing-faq__category {
  margin-top: 2.5rem;
}

.marketing-faq__list {
  display: grid;
  gap: 0.75rem;
}

.marketing-faq__list .faq-card {
  margin: 0;
  cursor: pointer;
}

/* =========================================================
   Contact page — minimal: form sits inside the green hero
   ========================================================= */

.page-hero--form .page-hero__inner { max-width: 560px; }

.contact-form--hero {
  margin: 1.75rem auto 0;
  text-align: left;
}

.contact-field {
  display: block;
  margin: 0 0 0.9rem;
}

.contact-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 0.96rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Visual parity for the <select> with the other fields: strip the
   native OS chrome and draw a chevron so the dropdown lines up with
   the inputs at the same width / radius / padding. Without these
   resets the OS theme picks the width based on the longest option
   label — so the Service field rendered narrower than the inputs
   above and below it on /contact's quote tab. */
.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%232f3334' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
}

.contact-field select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.22);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #9aa1a4; }

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.22);
}

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

.contact-form__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 0.25rem;
  font-size: 1rem;
  max-width: none;
}

.contact-form__success {
  margin-top: 1rem;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  background: #ffffff;
  color: var(--color-heading);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  display: none;
  align-items: center;
  gap: 0.625rem;
}

.contact-form__success::before {
  content: "\2713";
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.contact-form__success.is-visible { display: flex; }

.page-hero__contact-line {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-heading);
  text-align: center;
}

.page-hero__contact-line a {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.page-hero__contact-line a:hover { color: var(--color-primary); }

.page-hero__contact-line span[aria-hidden] {
  margin: 0 0.55rem;
  opacity: 0.45;
}

/* =========================================================
   Printvine Reviews — proper review destination page
   ========================================================= */

/* Make the [hidden] attribute always beat display:flex/grid set later */
[hidden] {
  display: none !important;
}

.reviews-hero {
  background: var(--color-hero);
  padding: clamp(2.5rem, 4vw, 3.75rem) 0 clamp(2.5rem, 4vw, 3.75rem);
  position: relative;
}

.reviews-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 920px) {
  .reviews-hero__grid {
    grid-template-columns: 1fr;
  }
}

.reviews-hero__brand {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.reviews-hero__logo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  background: var(--color-surface);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.2);
}

.reviews-hero__logo img {
  width: 80%;
  height: auto;
}

@media (max-width: 640px) {
  .reviews-hero__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .reviews-hero__logo {
    width: 96px;
    height: 96px;
  }
}

.reviews-hero__brand-info h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

.reviews-hero__brand-info p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(23, 23, 23, 0.7);
  line-height: 1.5;
}

.reviews-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-heading);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Rating summary card on the right */
.reviews-rating-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.25);
}

.reviews-rating-card__overall {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.reviews-rating-card__score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-heading);
  letter-spacing: -0.018em;
}

.reviews-rating-card__score sup {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.15rem;
}

.reviews-rating-card__overall-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reviews-rating-card__overall-stars {
  color: var(--color-primary);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.reviews-rating-card__overall-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.reviews-rating-card__overall-label strong {
  color: var(--color-heading);
  font-weight: 700;
}

.reviews-rating-card__bars {
  display: grid;
  gap: 0.45rem;
}

.review-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr 38px;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.review-bar-row__label {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.review-bar-row__label svg {
  width: 11px;
  height: 11px;
  color: var(--color-primary);
}

.review-bar-row__track {
  height: 8px;
  background: var(--color-surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.review-bar-row__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--color-primary);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.review-bar-row__count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-heading);
}

.reviews-rating-card__total {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
}

.reviews-rating-card__total strong {
  color: var(--color-heading);
  font-weight: 700;
}

.reviews-rating-card__verified {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--color-primary-hover);
  font-weight: 700;
  margin: 0;
}

.reviews-rating-card__verified svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Slim one-line trust note above the reviews list */
.reviews-trust-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.reviews-trust-note svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.reviews-trust-note strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* Printvine reply to a review — pale lime, on-brand */
.review-item__reply {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem 1.15rem;
  background: #ecfccb;
  border-radius: 12px;
  color: var(--color-text);
}

.review-item__reply-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
}

.review-item__reply-logo {
  width: 28px;
  height: 28px;
  background: var(--color-heading);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-hero);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.review-item__reply-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.review-item__reply-author {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-heading);
}

.review-item__reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.5rem;
  background: var(--color-heading);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-item__reply-date {
  color: rgba(23, 23, 23, 0.55);
  font-size: 0.82rem;
}

.review-item__reply-body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Main reviews body — list + sidebar */
.reviews-body {
  padding: clamp(2rem, 3vw, 2.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: var(--color-bg);
}

.reviews-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 980px) {
  .reviews-body__grid {
    grid-template-columns: 1fr;
  }
}

/* Toolbar: count + tabs + invite link */
.reviews-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .reviews-toolbar {
    grid-template-columns: 1fr;
  }
}

.reviews-toolbar__count {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.review-tabs {
  display: inline-flex;
  padding: 0.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  gap: 0.15rem;
}

.review-tabs__btn {
  background: transparent;
  border: 0;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.review-tabs__btn:hover {
  color: var(--color-heading);
}

.review-tabs__btn.is-active {
  background: var(--color-heading);
  color: #fff;
}

/* Slick inline filter pills (sit next to the review count) */
.review-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--color-heading);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.review-filter:hover {
  border-color: var(--color-heading);
}

.review-filter__label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.review-filter__value {
  font-family: var(--font-heading);
  font-weight: 700;
}

.review-filter svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  margin-left: 0.1rem;
}

/* Empty-state card (shown when REVIEW_COUNT === 0) */
.reviews-empty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(2.5rem, 4.5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  box-shadow: 0 2px 8px -6px rgba(15, 23, 42, 0.08);
}

.reviews-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-hero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.1rem;
  font-size: 1.5rem;
}

.reviews-empty h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--color-heading);
  letter-spacing: -0.012em;
}

.reviews-empty p {
  margin: 0 auto 1.5rem;
  max-width: 480px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Hero layout collapses to single column when rating card is hidden
   (state empty + partial). The brand block then takes the full width. */
.page-reviews.pv-reviews-empty .reviews-hero__grid,
.page-reviews.pv-reviews-partial .reviews-hero__grid {
  grid-template-columns: 1fr;
}

.page-reviews.pv-reviews-empty .reviews-hero__brand,
.page-reviews.pv-reviews-partial .reviews-hero__brand {
  max-width: 760px;
}

.page-reviews.pv-reviews-empty .reviews-hero__brand-info p,
.page-reviews.pv-reviews-partial .reviews-hero__brand-info p {
  max-width: 580px;
}

/* Review list */
.reviews-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reviews-list > li {
  list-style: none;
}

.review-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px -6px rgba(15, 23, 42, 0.08);
}

.review-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.review-item__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.review-item__avatar svg {
  width: 22px;
  height: 22px;
}

.review-item__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-heading);
}

.review-item__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.review-item__verified svg {
  width: 12px;
  height: 12px;
}

.review-item__date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0.15rem 0 0;
}

.review-item__purchase {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: right;
}

.review-item__stars {
  margin: 0 0 0.85rem;
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.review-item__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--color-heading);
}

.review-item__body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

.review-item__product {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-item__product-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.2rem;
}

.review-item__product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.review-item__product-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.review-item__product-link:hover {
  text-decoration: underline;
}

/* Sidebar: about + contact */
.reviews-sidebar {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 980px) {
  .reviews-sidebar {
    position: static;
  }
}

.reviews-sidebar__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.reviews-sidebar__card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-heading);
}

.reviews-sidebar__card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

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

.reviews-sidebar__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.reviews-sidebar__readmore svg {
  width: 14px;
  height: 14px;
}

.reviews-sidebar__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.reviews-sidebar__details li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--color-heading);
  line-height: 1.45;
}

.reviews-sidebar__details svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 1px;
}

.reviews-sidebar__details a {
  color: var(--color-heading);
  text-decoration: none;
}

.reviews-sidebar__details a:hover {
  color: var(--color-primary);
}

.reviews-invite-card {
  background: var(--color-heading);
  color: #fff;
  border: 0;
}

.reviews-invite-card h2 {
  color: #fff;
}

.reviews-invite-card p {
  color: rgba(255, 255, 255, 0.75);
}

.reviews-invite-card .btn {
  width: 100%;
  justify-content: center;
}

/* Order verification form inside invite card */
.reviews-invite-form {
  display: grid;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
}

.reviews-invite-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

.reviews-invite-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.reviews-invite-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.reviews-invite-form input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
}

.reviews-invite-form .btn {
  margin-top: 0.3rem;
}

.reviews-invite-small {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

/* Examples & Blog grid */
.examples-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 920px;
}

.examples-filter__pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.examples-filter__pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.examples-filter__pill.is-active {
  background: var(--color-heading);
  color: #fff;
  border-color: var(--color-heading);
}

.examples-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .examples-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .examples-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.example-card,
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.example-card:hover,
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.18);
}

.example-card a,
.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.example-card__media,
.blog-card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.example-card__media img,
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.example-card__body,
.blog-card__body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.example-card__sector,
.blog-card__category {
  align-self: flex-start;
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.example-card h3,
.blog-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--color-heading);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.example-card__cta,
.blog-card__cta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.blog-card__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.blog-coming-soon {
  margin: 2.5rem auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =========================================================
   Blog index layout (featured + sidebar + latest list)
   ========================================================= */
/* Super-light lime tint on the blog post page only (scoped to main so footer keeps its own bg) */
.page-blog-post .page-shell {
  background: #f7fee7;
}

.blog-page-head {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem);
  background: transparent;
}

.blog-page-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-hero) 35%, var(--color-border));
}

.blog-page-head__intro {
  flex: 0 1 auto;
  min-width: 0;
}

.blog-page-head__intro h1 {
  margin: 0 0 0.35rem;
}

.blog-page-head__intro .blog-page-head__sub {
  display: none; /* hide sub on inline layout — page title is enough */
}

.blog-page-head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-heading);
}

.blog-page-head__sub {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

.blog-feature {
  padding: clamp(2rem, 3vw, 2.5rem) 0;
}

.blog-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .blog-feature__grid {
    grid-template-columns: 1fr;
  }
}

/* Magazine-style hero (image left, lime info panel right) */
.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -22px rgba(15, 23, 42, 0.2);
}

.feature-card--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--pageshero-bg, var(--color-hero));
  border: 0;
}

@media (max-width: 720px) {
  .feature-card--hero {
    grid-template-columns: 1fr;
  }
}

.feature-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.feature-card--hero .feature-card__media {
  aspect-ratio: auto;
  min-height: 100%;
}

@media (max-width: 720px) {
  .feature-card--hero .feature-card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card__body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card--hero .feature-card__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  justify-content: center;
  gap: 0.85rem;
}

.feature-card__category {
  align-self: flex-start;
  padding: 0.22rem 0.65rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-card--hero .feature-card__category {
  background: rgba(23, 23, 23, 0.08);
  color: var(--color-heading);
}

.feature-card h2,
.feature-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--color-heading);
  line-height: 1.2;
}

.feature-card--hero h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  color: var(--pageshero-text, var(--color-heading));
}

.feature-card--secondary h3 {
  font-size: 1.05rem;
}

.feature-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.feature-card--hero .feature-card__excerpt {
  color: rgba(23, 23, 23, 0.78);
}

.feature-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.feature-card--hero .feature-card__meta {
  color: rgba(23, 23, 23, 0.62);
}

.feature-card--secondary .feature-card__meta {
  font-size: 0.78rem;
}

.feature-card__cta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.feature-card--hero .feature-card__cta {
  color: var(--color-heading);
}

.blog-feature__sidecol {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .blog-feature__sidecol {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .blog-feature__sidecol {
    grid-template-columns: 1fr;
  }
}

/* Main blog body: latest list (no sidebar) */
.blog-body {
  padding: 1rem 0 clamp(3rem, 5vw, 4.5rem);
}

.blog-body__inner {
  max-width: 980px;
  margin: 0 auto;
}

.blog-latest-head {
  margin: 0 0 1.25rem;
}

.blog-latest-head .blog-section-title {
  margin: 0;
}

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  margin: 0;
  justify-content: flex-end;
  align-self: baseline;
}

.blog-filter-row__pill {
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-bottom: 2.5px solid transparent;
  line-height: 1.3;
}

.blog-filter-row__pill:hover {
  color: var(--color-heading);
}

.blog-filter-row__pill.is-active {
  color: var(--color-heading);
  font-weight: 800;
  border-bottom-color: var(--color-primary);
}

@media (max-width: 720px) {
  .blog-filter-row {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    margin: 0 calc(-1 * var(--gutter, 24px));
    padding-left: var(--gutter, 24px);
    padding-right: var(--gutter, 24px);
  }
  .blog-filter-row__pill {
    flex-shrink: 0;
    font-size: 1rem;
  }
}

/* Blog pagination — minimal text-style */
.blog-pagination {
  margin: 2.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.blog-pagination__pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.1rem;
  align-items: center;
}

.blog-pagination__pages a,
.blog-pagination__pages span,
.blog-pagination__prev,
.blog-pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.blog-pagination__prev,
.blog-pagination__next {
  color: var(--color-heading);
  font-weight: 700;
  padding: 0 0.25rem;
}

.blog-pagination__pages a:hover,
.blog-pagination__prev:hover,
.blog-pagination__next:hover {
  color: var(--color-primary);
}

.blog-pagination__pages .is-current,
.blog-pagination__pages a.is-current {
  color: var(--color-heading);
  font-weight: 800;
  position: relative;
  pointer-events: none;
}

.blog-pagination__pages .is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.blog-pagination__pages .blog-pagination__gap {
  color: var(--color-text-muted);
  font-weight: 500;
  pointer-events: none;
}

.blog-pagination__prev[aria-disabled="true"],
.blog-pagination__next[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* Inline newsletter banner (replaces sidebar card) */
.blog-newsletter-strip {
  margin: clamp(3rem, 5vw, 4rem) 0 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--pageshero-bg, var(--color-hero));
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .blog-newsletter-strip {
    grid-template-columns: 1fr;
  }
}

.blog-newsletter-strip h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--pageshero-text, var(--color-heading));
  letter-spacing: -0.01em;
}

.blog-newsletter-strip p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(23, 23, 23, 0.72);
  line-height: 1.5;
}

.blog-newsletter-strip form {
  display: flex;
  gap: 0.5rem;
  background: var(--color-surface);
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.25);
}

@media (max-width: 480px) {
  .blog-newsletter-strip form {
    flex-direction: column;
    border-radius: 14px;
    padding: 0.65rem;
    gap: 0.5rem;
  }
}

.blog-newsletter-strip input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

@media (max-width: 480px) {
  .blog-newsletter-strip input[type="email"] {
    padding: 0.55rem 0.75rem;
    background: var(--color-surface-2);
    border-radius: 10px;
  }
}

.blog-newsletter-strip input[type="email"]:focus-visible {
  outline: none;
}

.blog-newsletter-strip .btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .blog-newsletter-strip .btn {
    border-radius: 10px;
    width: 100%;
    justify-content: center;
  }
}

.blog-section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.blog-latest__list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  background: transparent;
}

@media (max-width: 620px) {
  .blog-list-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.blog-list-card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  border-radius: 12px;
  overflow: hidden;
}

.blog-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-list-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.blog-list-card__body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--color-heading);
}

.blog-list-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-list-card__body h3 a:hover {
  color: var(--color-primary);
}

.blog-list-card__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.blog-list-card__readmore {
  margin-top: 0.25rem;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.blog-list-card__readmore:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Sidebar */
.blog-sidebar {
  display: grid;
  gap: 1.75rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 920px) {
  .blog-sidebar {
    position: static;
  }
}

.blog-sidebar h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-heading);
  letter-spacing: -0.005em;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-category-pills a {
  padding: 0.4rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-category-pills a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.blog-social {
  display: flex;
  gap: 0.75rem;
}

.blog-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-heading);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-social a:hover {
  background: var(--color-heading);
  color: #fff;
  border-color: var(--color-heading);
}

.blog-social svg {
  width: 18px;
  height: 18px;
}

.blog-newsletter-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.blog-newsletter-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.blog-newsletter-card label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-heading);
}

.blog-newsletter-card input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.blog-newsletter-card input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.18);
}

.blog-newsletter-card .btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Blog post page
   ========================================================= */
.blog-post-page {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: #f7fee7;
}

.blog-post {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post__breadcrumbs {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.blog-post__breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.blog-post__breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.3rem;
  color: var(--color-text-muted);
}

.blog-post__breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.blog-post__breadcrumbs a:hover {
  color: var(--color-heading);
}

.blog-post__breadcrumbs [aria-current="page"] {
  color: var(--color-accent);
}

.blog-post__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-heading);
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.blog-post__divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0 0 1.75rem;
}

.blog-post__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

.blog-post__body p {
  margin: 0 0 1.15rem;
}

.blog-post__body h2 {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.blog-post__body h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-heading);
}

.blog-post__body ul,
.blog-post__body ol {
  margin: 0 0 1.15rem 1.25rem;
  padding: 0;
}

.blog-post__body li {
  margin: 0 0 0.4rem;
}

.blog-post__body blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.25rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-heading);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 12px 28px -20px rgba(15, 23, 42, 0.4);
}

.video-embed iframe,
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-embed__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
}

.video-embed__play span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ff0000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.video-embed__play span svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.blog-post__back:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ════════════════════════════════════════════════════════════════
   Legal pages — terms / privacy-policy / cookies / reviews-policy.

   Reshape (post-launch-eyeball): used to render as raw text with a
   plain-bullet TOC. Now: hero band + sticky-sidebar TOC + prose
   body whose typography values mirror .blog-post__body above
   (1.05rem body / 1.7 line-height / Urbanist headings) so a
   brand-tweak to one carries to the other by convention.
   ════════════════════════════════════════════════════════════════ */

.page-legal .page-hero {
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.legal-page__container {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.legal-page__title {
  margin: 0;
}

.legal-page__updated {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* 2-col grid: sticky TOC aside + prose body. Stacks at <1024px so
   on mobile the TOC sits inline at the top of the body — exactly
   the brief's "inline anchor list on mobile". */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    align-items: start;
  }
  .legal-layout__toc {
    position: sticky;
    top: 6.5rem;            /* below the sticky public header */
    align-self: start;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }
}

/* TOC styling. The static carried .legal-toc / .legal-toc__title /
   .legal-toc__list / .legal-toc__num class names; no CSS for them
   was ever written. Style as a quiet anchor index. */
.legal-toc {
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.legal-toc__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.legal-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc__list a {
  display: flex;
  gap: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
  transition: color 0.15s ease;
}

.legal-toc__list a:hover {
  color: var(--color-primary);
}

.legal-toc__list a:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.45);
  outline-offset: 2px;
}

.legal-toc__num {
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.legal-toc__list a:hover .legal-toc__num {
  color: var(--color-primary);
}

/* Section + heading. scroll-margin-top so anchor jumps clear the
   sticky header. */
.legal-layout__body {
  min-width: 0; /* allow long words to wrap inside the grid cell */
}

.legal-section {
  margin: 0 0 2.5rem;
  scroll-margin-top: 6.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section__heading {
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--color-border);
}

.legal-section__subheading {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-heading);
}

.legal-section:target .legal-section__heading {
  color: var(--color-primary);
}

/* Prose body — values mirror .blog-post__body so a typography
   tweak to one carries to the other. Reuse, don't invent. */
.legal-section {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-section p {
  margin: 0 0 1.15rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 1.15rem 1.25rem;
  padding: 0;
}

.legal-section li {
  margin: 0 0 0.4rem;
}

.legal-section blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.25rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-heading);
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(47, 195, 122, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.legal-section a:hover {
  text-decoration-color: currentColor;
}

.legal-section a:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Trader Information block on the Terms page. Demoted from a mid-
   page card to small print at the bottom of the doc per founder
   eyeball — UK e-Commerce Regs §6 requires the disclosure to be
   ACCESSIBLE, not PROMINENT. Sits below the last numbered section,
   separated by a faint top border, sized to footer-copy weight
   (smaller than the rest of the body prose) and muted. No card
   background, no card border — just quiet small print. */
.legal-section--disclosure {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.legal-section--disclosure .legal-section__heading {
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 0;
}

.legal-section--disclosure p {
  margin: 0 0 0.5rem;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.legal-section--disclosure p:last-child {
  margin-bottom: 0;
}

.legal-section--disclosure a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 0.2em;
}

.legal-section--disclosure a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.trader-disclosure__line {
  margin: 0 0 0.35rem;
}

.trader-disclosure__address {
  margin: 0 0 0.5rem;
  font-size: inherit;
  color: inherit;
}

/* Artwork guidelines — 2x2 image/icon-led checklist cards */
.guideline-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .guideline-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.guideline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.85rem 1.85rem 1.65rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guideline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.18);
}

.guideline-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guideline-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-hero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-heading);
}

.guideline-card__icon svg {
  width: 26px;
  height: 26px;
}

.guideline-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--color-heading);
}

.guideline-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--color-text);
}

.guideline-card li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.guideline-card li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  margin-top: 2px;
}

.guideline-card li.is-avoid svg {
  color: #dc2626;
}

.guideline-card li strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* Launch-gate reds A1 — two-column Do/Avoid model.
   The partial wraps each prose column in a structural div; CSS
   supplies the ✓ tick (green) / ✗ cross (red) via ::before on the
   descendant <li>s. Operator content stays prose; no `is-avoid`
   class on <li> (the sanitiser strips it). */
.guideline-card__do-list li,
.guideline-card__avoid-list li {
  position: relative;
  padding-left: 1.6rem;
}

.guideline-card__do-list li::before,
.guideline-card__avoid-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.guideline-card__do-list li::before {
  content: "✓";
  color: var(--color-primary);
}

.guideline-card__avoid-list li::before {
  content: "✗";
  color: #dc2626;
}

.guideline-card__avoid-list {
  margin-top: 0.65rem;
}

/* 404 */
.not-found-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: 3rem 1.25rem;
}

.not-found {
  text-align: center;
  max-width: 460px;
}

.not-found__logo {
  display: inline-block;
  margin: 0 0 2rem;
}

.not-found__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.not-found__code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--color-text-muted);
  opacity: 0.35;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-heading);
}

.not-found p {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.not-found__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.not-found__help {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.not-found__help a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Outlined button helper */
.btn-outline {
  background: transparent;
  color: var(--color-heading);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-heading);
  background: var(--color-surface);
}

/* =========================================================
   Industry Category pages (category-*.html)
   ========================================================= */

/* Breadcrumb band — sits at the top of the page above the hero */
.category-breadcrumbs {
  padding: 1.15rem 0 0.85rem;
  background: var(--color-bg);
}

.category-breadcrumbs .breadcrumbs {
  margin: 0;
}

.page-service-detail .category-breadcrumbs {
  background: #ffffff;
}

/* 2-column hero (text left + image right) — slim version of home hero */
.category-hero {
  background: var(--pageshero-bg, var(--color-hero));
  padding: clamp(2rem, 3vw, 2.75rem) 0 clamp(2rem, 3vw, 3rem);
}

/* /services index hero — reuses the HOME hero shape (.hero-section
   + .hero-grid in theme.css) with two overrides:

   1. Slimmer vertical padding — the index is a router page, not a
      landing page, so the hero shouldn't dominate. theme.css base
      is `padding: 2rem 0 1.75rem`; this trims further.
   2. Image-LEFT flip — theme.css's .hero-visual pushes the image
      right (justify-content: flex-end) for the home hero; this
      modifier flips it left, and the matching .hero-card-less <img>
      tightens the max-width so the visual reads as supporting
      chrome (not a landing-page centrepiece).

   Source order in the Blade (.hero-visual BEFORE .hero-copy) drives
   the CSS-grid placement: visual lands in column 1 (left), copy in
   column 2 (right). Inversed from the home page where copy is first
   in source AND in column 1. */
.hero-section--index {
  /* Hard cap on the WHOLE banner — bumped to 230px (was 180) per
     founder eyeball "bit taller". Image column halved (was 0.95fr
     / 1.05fr ~ 50/50, now 0.5fr / 1.5fr ~ 25/75) so the chevron
     reads as supporting chrome on the left and the copy gets
     proper breathing room on the right. */
  padding: 0;
  max-height: 230px;
  overflow: hidden;
}
.hero-section--index .hero-grid {
  align-items: stretch;
  gap: 0;
  max-height: 230px;
  /* Image column = ~25% (0.5fr / 1.5fr) — founder-locked ratio.
     The chevron is meant to read as a quiet accent on the left,
     not compete for attention with the copy. The copy-block
     max-width below stops the right side from sprawling. */
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
}
.hero-section--index .hero-visual {
  justify-content: flex-start;
  align-items: stretch;
  max-height: 230px;
}
.hero-section--index .hero-card {
  width: 100%;
  height: 100%;
  max-height: 230px;
}
.hero-section--index .hero-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 230px;
  margin: 0;
  object-fit: cover;
}
.hero-section--index .hero-copy {
  /* Vertically-centered within the banner height (was top-aligned
     with padding-only spacing). Flex column + justify-content:
     center pins the text block to the optical centre of the
     230px banner so the chevron + copy line up at the same
     vertical midline. Inset from the left via padding-inline-start
     so the copy doesn't crash against the chevron's right edge.
     max-width keeps the text from sprawling into empty space on
     the right. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 clamp(1rem, 2.5vw, 2.25rem);
  max-width: 38rem;
}
.hero-section--index .hero-copy .eyebrow {
  margin-bottom: 0.45rem;
}
.hero-section--index .hero-copy h1 {
  /* Smaller H1 on the index — the home hero's H1 is a landing-page
     showstopper; the /services index is a router page, so a tighter
     H1 reads as section-header weight rather than page-hero weight. */
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}
.hero-section--index .hero-copy .intro-copy {
  margin: 0;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.45;
}

/* Trust-promise pill trio under the intro-copy — replaces the
   removed eyebrow as the at-a-glance brand promise. Translucent
   white-on-lime so they read as soft chips against the green
   banner, not bold buttons that compete with the H1. */
.hero-pill-trio {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hero-pill-trio li {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-heading, #171717);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .hero-section--index .hero-pill-trio {
    margin-top: 0.85rem;
  }
  .hero-section--index .hero-pill-trio li {
    font-size: 0.75rem;
    padding: 0.28rem 0.65rem;
  }
}
@media (max-width: 820px) {
  /* Mobile — collapse to single column, copy ONLY (chevron is
     decorative; on a narrow viewport it costs vertical real-estate
     for no comprehension benefit). Hides the visual entirely;
     keeps the banner reading as a compact green header strip
     with copy that breathes. */
  .hero-section--index {
    max-height: none;
  }
  .hero-section--index .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-height: none;
  }
  .hero-section--index .hero-visual {
    display: none;
  }
  .hero-section--index .hero-copy {
    /* Centered horizontally on mobile (no chevron to sit against
       on the left), padding adapts to the viewport edge. Drops
       the desktop flex-column-center since there's no banner
       height to centre against on mobile — natural top-of-page
       flow is the right behaviour. */
    display: block;
    max-width: 100%;
    padding: 1.1rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
    text-align: left;
  }
  .hero-section--index .hero-copy h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.1;
    margin: 0 0 0.55rem;
  }
  .hero-section--index .hero-copy .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
  }
  .hero-section--index .hero-copy .intro-copy {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Mobile pass on the filter panel too — pills become full-width
   stacked controls on narrow viewports (tap-friendly targets +
   no horizontal scrolling on cramped widths). */
@media (max-width: 640px) {
  .services-index__toolbar--panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .services-index__toolbar--panel .services-index__count {
    margin: 0;
    text-align: left;
  }
  .pv-dropdown {
    display: block;
    width: 100%;
  }
  .pv-dropdown__trigger {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
  .pv-dropdown__listbox {
    width: 100%;
    max-height: 60vh;
  }
}

.category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .category-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.category-hero__copy {
  max-width: 540px;
}

.category-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--pageshero-text, var(--color-heading));
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
}

.category-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--pageshero-text, var(--color-heading));
}

.category-hero__sub {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
  color: rgba(23, 23, 23, 0.78);
}

.category-hero__cta {
  margin: 0;
}

.category-hero__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.category-hero__visual img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
}

@media (max-width: 820px) {
  .category-hero__visual {
    justify-content: center;
  }
  .category-hero__visual img {
    margin: 0 auto;
    max-width: 420px;
  }
}

/* Service cards heading */
.category-services-section {
  padding: clamp(3rem, 4.5vw, 4.5rem) 0;
}

.category-services-section__heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.category-services-section__heading .eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.7rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-services-section__heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

/* FAQ section override — no alt background */
.category-faqs {
  padding: clamp(3rem, 4.5vw, 4.5rem) 0 clamp(3.5rem, 5vw, 5rem);
  background: transparent;
}

/* Service card grid */
.category-services .marketing-prose {
  margin-bottom: 2.25rem;
}

.category-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* "You might also need" cross-sell: 4 cards across at desktop */
.section-related .category-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .section-related .category-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .category-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .category-service-grid,
  .section-related .category-service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  /* Flex column on the card itself so the /services index card
     (no wrapping anchor — body sits as a direct flex item) gets
     `.service-card__body { flex: 1 }` + `.service-card__actions
     { margin-top: auto }` working. Safe for the legacy wrapping-
     anchor pattern (services/category.blade.php) too — a single
     flex child still fills the column. */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.18);
}

/* Legacy whole-card wrapping anchor (services/category.blade.php).
   The /services index card no longer uses this pattern — its
   media anchor is `.service-card__media-link`, which must NOT
   pick up `height: 100%` (it would stretch to the full card and
   push the body below the overflow:hidden clip). */
.service-card > a:not(.service-card__media-link) {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card__media {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.service-card__body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--color-heading);
}

.service-card__price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.service-card__cta {
  padding-top: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
  text-decoration: none;
  transition: color 0.12s ease;
}
.service-card__cta:hover {
  color: var(--color-heading, #171717);
}

/* Card title-link — the H3 inner anchor that took over from the
   whole-card wrapping <a>. Underline-free + inherits H3 weight so
   the title still reads as a title; hover surfaces the underline
   as the affordance. */
.service-card__title-link {
  color: inherit;
  text-decoration: none;
}
.service-card__title-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.service-card__media-link {
  display: block;
}

/* Action row — primary Add-to-basket button + secondary "Flyer
   design →" link sit side-by-side at the bottom of the card.
   margin-top: auto pushes the row to the foot of the flex column
   so cards with different desc lengths still align actions. */
.service-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  flex-wrap: wrap;
}
.service-card__add-form {
  margin: 0;
  flex: 0 0 auto;
}
.service-card__add-btn {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   Portal — Orders list  (ported verbatim from
   static-reference/pages/portal-orders.html
   inline <style> block, lines 16-367)

   Reconciliation: the static's bare
   `.order-card { padding: 0; … }` rule is
   scoped to `.portal-content` here so it
   doesn't override the public order-
   confirmation card's `.order-card` rule
   already in this file (line 3360). Every
   other selector is new — no collisions.

   The `/* Sidebar dot */` rules at the end of
   the static block (`.portal-nav__item {
   position: relative; }` + `.portal-nav__dot`)
   are sidebar-scoped, not content-scoped;
   ported here verbatim so the orders dot in
   the sidebar lights up when there are active
   orders needing attention.
   ───────────────────────────────────────────── */

/* Section dividers — match dashboard */
.portal-content hr.section-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
  width: 100%;
}
.portal-content [hidden] + hr.section-divider,
.portal-content hr.section-divider:has(+ [hidden]) {
  display: none;
}

/* Search + filter bar */
.orders-filterbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.orders-filterbar__search {
  position: relative;
  display: block;
  width: 300px;
  max-width: 100%;
}
.orders-filterbar__search-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}
.orders-filterbar__input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-heading);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.orders-filterbar__input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.18);
}
.orders-filterbar__input:disabled { cursor: not-allowed; opacity: 0.85; }
.orders-filterbar__select { display: block; }
.orders-filterbar__dropdown {
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687174' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /></svg>") no-repeat right 0.6rem center / 14px 14px;
  color: var(--color-heading);
  appearance: none;
  cursor: pointer;
}
.orders-filterbar__dropdown:disabled { cursor: not-allowed; opacity: 0.85; }
@media (max-width: 600px) {
  .orders-filterbar { gap: 0.5rem; }
  .orders-filterbar__search { width: 100%; }
  .orders-filterbar__select { flex: 1; }
  .orders-filterbar__dropdown { width: 100%; }
}

/* Section heading */
.orders-section { margin: 0; }
.orders-section__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.orders-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin: 0;
}
.orders-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-heading);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.portal-content [data-section-active]    .orders-section__count { background: #2563eb; } /* blue — active */
.portal-content [data-section-completed] .orders-section__count { background: var(--color-primary); } /* green — completed */
.orders-section__toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.orders-section__toggle:hover { color: var(--color-heading); }
.orders-section__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.orders-section__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Order list — cards stacked */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Order accordion card.
   Scoped to .portal-content so it doesn't override
   the public order-confirmation card's bare
   `.order-card { padding: clamp(…) }` rule earlier
   in this file. */
.portal-content .order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 0; /* override global .order-card padding from pages.css */
}
.order-card__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--color-surface);
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.order-card__row:hover { background: #fafaf8; }
.order-card__ref {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.order-card__date,
.order-card__count {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.order-card__pill { flex-shrink: 0; }
.order-card__total {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: right;
  margin-left: auto;
  flex-shrink: 0;
}
.order-card__chev {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.order-card[data-open="true"] .order-card__chev { transform: rotate(180deg); }

.order-card__details {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.order-card[data-open="true"] .order-card__details { display: block; }

/* Job sub-table — visually consistent with dashboard's completed-table */
.order-jobs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}
.order-jobs thead th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.order-jobs tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text);
  vertical-align: middle;
}
.order-jobs tbody tr:last-child td { border-bottom: 0; }
.order-jobs tbody tr:hover { background: var(--color-bg); }
.order-jobs__name { font-weight: 600; color: var(--color-heading); }
.order-jobs__spec { color: var(--color-text-muted); }
.order-jobs__action { text-align: right; white-space: nowrap; }
.order-jobs__action .btn {
  min-height: 32px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
}
.order-jobs__action .order-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
}
.order-jobs__action .order-link:hover { color: var(--color-primary); }
.order-jobs__action .order-link svg { width: 12px; height: 12px; }
.order-jobs__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}

/* "View full order" footer */
.order-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}
.order-card__view-full {
  min-height: 36px;
  padding: 0 1.1rem;
  font-size: 0.88rem;
  gap: 0.4rem;
}
.order-card__view-full svg { width: 14px; height: 14px; }

/* "Latest order" badge — sits next to the order ref */
.order-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--color-primary-soft, #e4f6ec);
  color: #1f7d4b;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  flex-shrink: 0;
  margin-left: 0.4rem;
  white-space: nowrap;
}

/* Status pills — per the spec'd colour mapping. No leading dot. */
.status-pill--orders-amber  { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.status-pill--orders-blue   { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.status-pill--orders-purple { background: rgba(139, 92, 246, 0.14); color: #5b21b6; }
.status-pill--orders-orange { background: rgba(249, 115, 22, 0.16); color: #c2410c; }
.status-pill--orders-green  { background: var(--color-primary-soft, #e4f6ec); color: #1f7d4b; }
.status-pill--orders-grey   { background: rgba(156, 163, 175, 0.22); color: #4b5563; }

/* Purple CTAs — Review proof / View changes (consistent with dashboard) */
.portal-content .order-cta--purple {
  background: #8b5cf6;
  color: #fff;
  border-color: transparent;
}
.portal-content .order-cta--purple:hover,
.portal-content .order-cta--purple:focus-visible {
  background: #7c3aed;
}


/* Sidebar dot */
.portal-nav__item { position: relative; }
.portal-nav__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  margin-left: auto;
  flex-shrink: 0;
}
.portal-nav__dot[hidden] { display: none; }

/* Responsive */
@media (max-width: 720px) {
  .order-card__row {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.95rem 1rem;
  }
  .order-card__date,
  .order-card__count { font-size: 0.82rem; }
  .order-card__total { font-size: 0.95rem; }
  .order-card__chev { margin-left: 0.25rem; }

  .order-jobs thead { display: none; }
  .order-jobs tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 0.85rem;
    row-gap: 0.3rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .order-jobs tbody tr:last-child { border-bottom: 0; }
  .order-jobs tbody td {
    padding: 0;
    border: 0;
  }
  .order-jobs__name   { grid-column: 1 / 2; }
  .order-jobs__spec   { grid-column: 1 / 2; font-size: 0.82rem; }
  .order-jobs__pill   { grid-column: 1 / 2; }
  .order-jobs__action { grid-column: 2 / 3; grid-row: 1 / 4; align-self: center; }
}

/* ─────────────────────────────────────────────
   Portal — Account → Notification preferences
   (ported verbatim from
   static-reference/pages/portal-account.html
   inline <style> block, lines 198-249)

   No collisions — every selector is new to this
   file.
   ───────────────────────────────────────────── */

/* Notification preferences */
.account-notifications {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.account-toggle {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  cursor: pointer;
  user-select: none;
}
.account-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.account-toggle__track {
  width: 38px;
  height: 22px;
  background: #d4d4d0;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.account-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: transform 0.18s ease;
}
.account-toggle input:checked + .account-toggle__track {
  background: var(--color-primary);
}
.account-toggle input:checked + .account-toggle__track::after {
  transform: translateX(16px);
}
.account-toggle input:focus-visible + .account-toggle__track {
  box-shadow: 0 0 0 3px rgba(49, 196, 122, 0.25);
}
.account-toggle__copy { font-size: 0.92rem; color: var(--color-heading); }
.account-toggle__copy small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────
   Portal — Dashboard job-card "Manage" link

   Size override (0.95rem / 16px svg) is ported from
   static-reference/pages/portal-dashboard.html inline
   <style> block (lines 48-59).

   Colour is a DELIBERATE founder divergence from the
   static: the static renders muted-grey at rest with
   green only on hover/focus; founder preference is
   green at rest. Confirmed 2026-06-01. Hover/focus
   shift to the heading colour for a visible state
   change.

   Base `.job-card__manage` (pages.css line 3235) stays
   on font-size 0.82rem / 13px svg — non-portal uses
   of `.job-card__manage` keep the base treatment.
   ───────────────────────────────────────────── */

.portal-content .job-card__manage {
  font-size: 0.95rem;
  color: var(--color-primary);
}
.portal-content .job-card__manage:hover,
.portal-content .job-card__manage:focus-visible {
  color: var(--color-heading);
}
.portal-content .job-card__manage svg {
  width: 16px;
  height: 16px;
}

/* ─────────────────────────────────────────────
   Portal — Order detail  (ported verbatim from
   static-reference/pages/portal-order-detail.html
   inline <style> block, lines 16-235)

   Collision audit:
     - `.job-card__manage` base lives at pages.css
       line 3235 (0.82rem / 13px svg). The
       static block has `.order-detail .job-card__
       manage { font-size: 0.95rem; }` — same
       values as the `.portal-content
       .job-card__manage` override already ported
       in 27e74e0, so the new rule is redundant
       but kept verbatim for fidelity. Both
       selectors target the same elements; either
       wins by source order (the later rule).
     - `.portal-nav__item { position: relative; }`
       and `.portal-nav__dot` already ported in
       27e74e0 (same rules appear in the static's
       portal-orders.html block). Skipped here to
       avoid duplicate definitions.
     - Star-rating rules are NOT in this static's
       <style> block (the review section's
       per-component CSS lives elsewhere); not
       affecting the visible defects today.

   No other selectors collide.
   ───────────────────────────────────────────── */

/* Single-column flow with section dividers */
.order-detail { display: block; }

.order-detail hr.section-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.25rem 0;
  width: 100%;
}
.order-detail [hidden] + hr.section-divider,
.order-detail hr.section-divider:has(+ [hidden]) {
  display: none;
}

/* Consistent section heading */
.order-detail__section {
  margin: 0;
}
.order-detail__section-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--color-heading);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.order-detail__section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--color-heading);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Jobs grid — match dashboard's card spacing */
.order-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Purple variant for Review proof / View changes — matches dashboard */
.order-detail .job-card__cta--purple {
  background: #8b5cf6;
  color: #fff;
  border-color: transparent;
}
.order-detail .job-card__cta--purple:hover,
.order-detail .job-card__cta--purple:focus-visible {
  background: #7c3aed;
}

/* Manage-link colour (consistent with dashboard).
   Founder divergence — green at rest, heading on hover.
   See the `.portal-content .job-card__manage` block above for
   the rationale. */
.order-detail .job-card__manage {
  font-size: 0.95rem;
  color: var(--color-primary);
}
.order-detail .job-card__manage:hover,
.order-detail .job-card__manage:focus-visible {
  color: var(--color-heading);
}
.order-detail .job-card__manage svg { width: 16px; height: 16px; }

/* Order summary — clean line list (basket-style) */
.order-summary__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.order-summary__lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.order-summary__item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-summary__price {
  color: var(--color-heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.order-summary__row--subtotal {
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
  margin-top: 0.9rem;
}
.order-summary__row--subtotal strong {
  color: var(--color-heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.order-summary__row--total {
  font-size: 1.02rem;
  margin-top: 0.4rem;
  align-items: center;
}
.order-summary__row--total strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
}
.order-summary__vat,
.order-summary__meta {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* Invoice */
.invoice-section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.invoice-section__cta {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.92rem;
  gap: 0.5rem;
}
.invoice-section__cta svg { width: 16px; height: 16px; }
.invoice-section__note {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.invoice-section__note strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Review card — keep card treatment for emphasis */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.6rem 1.85rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 6px 16px -12px rgba(15, 23, 42, 0.08);
}
@media (max-width: 600px) {
  .review-card { padding: 1.35rem 1.25rem; }
}
.review-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.4rem;
}
.review-card__intro p {
  margin: 0 0 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Help — centred muted small */
.order-detail__help {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 2.5rem 0 0;
}
.order-detail__help a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.order-detail__help a:hover { color: var(--color-heading); }

@media (max-width: 600px) {
  .order-detail hr.section-divider { margin: 1.75rem 0; }
  .order-detail__section-heading { font-size: 1.1rem; }
  .order-summary__row--total strong { font-size: 1.2rem; }
}

/* ─────────── Form-tabs block — contact + quote on one page ───────────
   Horizontal pill toggle above the form on /contact. The DOM reuses
   the site-wide [data-tab-target] / .content-tab-panels JS handler
   (marketing-widgets.js), so panels still carry .content-tab-panel
   for the handler to find — these rules style the buttons (horizontal
   pill, not the vertical service-page rail) and undo the boxed
   .content-tab-panel chrome inside form-tabs panels so the form
   renders flat against the page-hero background. */
.form-tabs {
  margin-top: 1.25rem;
}

.form-tabs__list {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: #ecfccb;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.form-tabs__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--color-heading);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.form-tabs__tab:hover,
.form-tabs__tab:focus-visible {
  background: #ffffff;
  border-color: #d9d9d4;
  outline: none;
}

.form-tabs__tab.is-active {
  background: #ffffff;
  border-color: rgba(47, 195, 122, 0.32);
  color: var(--color-heading);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* Reset the boxed .content-tab-panel look (designed for service-page
   side-by-side panels) when the panel is inside a form-tabs wrapper. */
.form-tabs__panels .content-tab-panel.form-tabs__panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 560px) {
  /* Mobile: full-width, side by side, never wrap awkwardly. */
  .form-tabs__list {
    display: flex;
    width: 100%;
  }
  .form-tabs__tab {
    flex: 1 1 50%;
    text-align: center;
    padding: 0.7rem 0.5rem;
  }
}

/* ─────────────────────────────────────────────
   /services index page  —  P13 of #PV-2026-0007
   Sidebar filter + sort control on top of the
   service-card grid. ALL services render in the
   DOM; the sidebar / sort are JS overlays so
   JS-off users still get the full curated grid.
   ───────────────────────────────────────────── */

.page-services-index .marketing-section--alt {
  padding-bottom: 1.5rem;
}

.services-index {
  padding: 2.5rem 0 4rem;
}

.services-index__layout {
  display: block;
  /* 2026-06-14: was `display: grid; grid-template-columns: 260px 1fr`
     for the sidebar+main layout. Sidebar removed (founder eyeball);
     reverted to plain block so .services-index__main takes the full
     container width and cards naturally land bigger. Pre-fix the
     orphaned main was landing in the empty 260px column with cards
     squeezed to ~80px wide. */
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .services-index__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Sidebar -------------------------------------- */

.services-index__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 900px) {
  .services-index__sidebar {
    position: static;
  }
}

.services-index__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.services-index__filter-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.services-index__filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-index__filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.services-index__filter:hover:not(:disabled) {
  background: var(--color-surface-2);
}

.services-index__filter.is-active {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  font-weight: 700;
}

.services-index__filter.is-empty,
.services-index__filter:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.services-index__filter-count {
  flex: 0 0 auto;
  min-width: 1.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
}

.services-index__filter.is-active .services-index__filter-count {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.services-index__filter-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--color-heading);
  text-decoration: none;
  transition: background 0.15s ease;
}

.services-index__filter-link:hover {
  background: var(--color-surface-2);
}

/* Main column ---------------------------------- */

.services-index__main {
  min-width: 0; /* grid child shrink — keeps the card grid from
                   overflowing on narrow viewports */
}

.services-index__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.services-index__count {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.services-index__count [data-services-count-value] {
  font-weight: 700;
  color: var(--color-heading);
}

/* Custom listbox component (pv-dropdown) — used on /services
   filter panel to replace native <select>s. Closed-state trigger
   IS the pill; open-state listbox is a white panel with brand-
   themed selection highlight. ARIA-driven (aria-haspopup=listbox,
   aria-expanded, aria-activedescendant, role=listbox / option).
   See @push('scripts') in services/index.blade.php for the JS. */
.pv-dropdown {
  position: relative;
  display: inline-block;
}

.pv-dropdown__trigger {
  appearance: none;
  -webkit-appearance: none;
  /* World-class SaaS enterprise pattern (Linear / Vercel / Stripe):
     tight corners (8px), thin 1px border, restrained padding,
     subtle elevation. The lime stays ONLY on the selected option
     inside the listbox — the trigger itself reads as neutral
     chrome. Symmetric horizontal padding — the chevron is a real
     flex item (svg), spaced via flex `gap` below, so no extra
     right-padding needed for a background-image chevron. */
  padding: 0.6rem 1rem;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-heading, #171717);
  cursor: pointer;
  min-width: 12rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.pv-dropdown__trigger:hover {
  border-color: #a1a1aa;
  background-color: #fafafa;
}
.pv-dropdown__trigger:focus-visible,
.pv-dropdown.is-open .pv-dropdown__trigger {
  outline: none;
  /* Restrained focus: border darkens + tight 2px neutral halo. No
     coloured rings on the trigger — keeps the chrome calm. The
     visible state-change is the chevron flip + the listbox
     appearing. */
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}
.pv-dropdown__value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-dropdown__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--color-heading, #171717);
  transition: transform 0.18s ease;
}
.pv-dropdown.is-open .pv-dropdown__chevron {
  transform: rotate(180deg);
}

.pv-dropdown__listbox {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 100%;
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 4px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.28), 0 4px 14px -8px rgba(15, 23, 42, 0.18);
  z-index: 60;
  animation: pv-dropdown-in 0.14s ease-out;
}
@keyframes pv-dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pv-dropdown__option {
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-heading, #171717);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  transition: background-color 0.08s ease, color 0.08s ease;
}
.pv-dropdown__option:hover:not(.is-disabled),
.pv-dropdown__option.is-active:not(.is-disabled) {
  background: rgba(15, 23, 42, 0.05);
}
.pv-dropdown__option.is-selected {
  /* LIME selection highlight (was --color-heading dark) — matches
     the trigger's open-state lime border so the selected option in
     the listbox reads as "this is the live filter" without the
     hard contrast of a black pill. */
  background: var(--color-hero, #bef264);
  color: var(--color-heading, #171717);
  font-weight: 700;
}
.pv-dropdown__option.is-selected:hover:not(.is-disabled),
.pv-dropdown__option.is-selected.is-active:not(.is-disabled) {
  background: var(--color-hero, #bef264);
  color: var(--color-heading, #171717);
}
.pv-dropdown__option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Filter-panel dropdowns — applies to both Categories + Sort by.
   Goes for "way more pro" per founder eyeball 2026-06-14: soft
   shadow, weighted typography, branded focus ring, hover lift,
   custom chevron, generous padding. Pill radius (999px) reads as
   a chip rather than a default browser select. */
.services-index__sort select,
.services-index__filter-control select {
  padding: 0.7rem 2.6rem 0.7rem 1.15rem;
  border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-heading, #171717);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  min-width: 13rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 0 0 0 transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.services-index__sort select:hover,
.services-index__filter-control select:hover {
  border-color: var(--color-heading, #171717);
  background-color: #fafafa;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.services-index__sort select:focus-visible,
.services-index__filter-control select:focus-visible {
  outline: none;
  border-color: var(--color-heading, #171717);
  /* Neutral dark halo for the focus state (was `--color-accent`,
     which resolves to a pink/magenta in the brand palette — clashed
     hard with the lime hero above + read as "validation error"
     rather than focus). Apple-style soft-grey ring + the same
     hover shadow underneath. */
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12), 0 4px 14px -6px rgba(15, 23, 42, 0.18);
}

.services-index__sort select:disabled,
.services-index__filter-control select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Filter-panel layout — dropdowns aligned RIGHT, count on the left
   (or hidden when not needed). margin-left: auto on the first
   dropdown pushes the cluster to the right edge of the toolbar. */
.services-index__toolbar--panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  border-bottom: 0;
}
.services-index__toolbar--panel .services-index__count {
  margin: 0 auto 0 0;
  font-size: 0.95rem;
}
.services-index__filter-control {
  display: flex;
  align-items: center;
}
.services-index__filter-fallback {
  display: none !important;
}

@media (max-width: 640px) {
  .services-index__toolbar--panel {
    flex-direction: column;
    align-items: stretch;
  }
  .services-index__toolbar--panel .services-index__count {
    margin: 0;
  }
  .services-index__sort,
  .services-index__filter-control {
    width: 100%;
  }
  .services-index__sort select,
  .services-index__filter-control select {
    width: 100%;
    min-width: 0;
  }
}

.services-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) {
  .services-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .services-index__grid {
    grid-template-columns: 1fr;
  }
}

.services-index__load-more-row {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}
.services-index__load-more {
  min-width: 220px;
}

.services-index__empty {
  margin: 2rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}

.services-index__reset {
  margin-left: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

