:root {
  --near-black: #131515;
  --charcoal: #2b2c28;
  --deep-olive: #333e28;
  --field-tan: #8a7a5c;
  --field-tan-text: #6c5f47; /* darker tan for small text — meets WCAG AA on ivory */
  --mist-gray: #d2dbd9;
  --warm-ivory: #fafce0;
  --page-bg: #fffdf4;
  --white: #ffffff;
  --red: #d82626;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(43, 44, 40, 0.14);
  --shadow: 0 24px 60px rgba(19, 21, 21, 0.1);
  --shadow-soft: 0 12px 32px rgba(19, 21, 21, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--near-black);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.home-page {
  background:
    linear-gradient(rgba(255, 253, 244, 0.76), rgba(255, 253, 244, 0.76)),
    url("assets/website-background-mirrored.png");
  background:
    linear-gradient(rgba(255, 253, 244, 0.76), rgba(255, 253, 244, 0.76)),
    image-set(
      url("assets/website-background-mirrored.webp") type("image/webp"),
      url("assets/website-background-mirrored.png") type("image/png")
    );
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(51, 62, 40, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only text: visually hidden, still announced. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: off-screen until focused, then pinned top-left. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--deep-olive, #333e28);
  color: var(--warm-ivory, #f4f1e6);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus {
  top: 8px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(43, 44, 40, 0.96);
  border-bottom: 1px solid rgba(210, 219, 217, 0.16);
  box-shadow: 0 10px 26px rgba(19, 21, 21, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 154px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: rgba(250, 252, 224, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Hamburger (mobile) — checkbox is visually hidden but focusable; the label
   is the visible toggle. The nav is revealed via .nav-toggle:checked. */
.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.site-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--warm-ivory);
  border-bottom-color: var(--field-tan);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px !important;
  color: var(--near-black) !important;
  background: var(--warm-ivory);
  border: 1px solid var(--warm-ivory);
  border-radius: var(--radius);
}

.nav-action:hover {
  color: var(--warm-ivory) !important;
  background: var(--deep-olive);
  border-color: var(--deep-olive);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px) clamp(18px, 4vw, 42px);
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 253, 244, 0.78) 0%,
      rgba(255, 253, 244, 0.68) 39%,
      rgba(255, 253, 244, 0.38) 67%,
      rgba(19, 21, 21, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(255, 253, 244, 0.04) 0%, rgba(255, 253, 244, 0.54) 100%),
    url("assets/website-background-mirrored.png");
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 253, 244, 0.78) 0%,
      rgba(255, 253, 244, 0.68) 39%,
      rgba(255, 253, 244, 0.38) 67%,
      rgba(19, 21, 21, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(255, 253, 244, 0.04) 0%, rgba(255, 253, 244, 0.54) 100%),
    image-set(
      url("assets/website-background-mirrored.webp") type("image/webp"),
      url("assets/website-background-mirrored.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 67% 52%, rgba(250, 252, 224, 0.18), transparent 34%),
    linear-gradient(180deg, transparent 62%, rgba(255, 253, 244, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0;
  align-self: center;
  padding: 24px 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--field-tan-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--near-black);
  font-size: clamp(3.3rem, 11vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--charcoal);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 650;
}

.hero-product {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0;
  padding-top: 22px;
}

.hero-product img {
  width: min(720px, 100%);
  margin-left: auto;
  filter: drop-shadow(0 30px 38px rgba(19, 21, 21, 0.28));
}

.hero-product picture,
.product-photo picture {
  display: block;
  width: 100%;
}

.hero-tape {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(43, 44, 40, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-tape img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  object-position: center;
}

.hero-actions,
.section-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--warm-ivory);
  background: var(--deep-olive);
  border: 1px solid var(--deep-olive);
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(51, 62, 40, 0.18);
}

.button:hover {
  background: var(--near-black);
  border-color: var(--near-black);
}

.button.secondary {
  color: var(--near-black);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(43, 44, 40, 0.32);
  box-shadow: none;
}

.button.ivory {
  color: var(--near-black);
  background: var(--warm-ivory);
  border-color: var(--warm-ivory);
  box-shadow: 0 10px 22px rgba(19, 21, 21, 0.22);
}

.button.ivory:hover {
  color: var(--warm-ivory);
  background: var(--near-black);
  border-color: var(--near-black);
}

.center-actions {
  justify-content: center;
}

/* Condensed pricing tiers on the olive band */
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(620px, 100%);
  margin: 4px auto 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid rgba(250, 252, 224, 0.22);
  border-radius: var(--radius);
  background: rgba(250, 252, 224, 0.06);
}

.price-card .tier-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.82;
}

.price-card .tier-price {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
}

.price-note {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
  opacity: 0.92;
}

@media (max-width: 560px) {
  .price-cards {
    gap: 8px;
  }
  .price-card {
    padding: 14px 8px;
  }
}

.button.secondary:hover {
  color: var(--warm-ivory);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.home-page .band:not(.dark):not(.olive) {
  background:
    linear-gradient(rgba(255, 253, 244, 0.7), rgba(255, 253, 244, 0.7));
}

.band.compact {
  padding-top: 0;
  padding-bottom: clamp(44px, 6vw, 72px);
}

.band.dark {
  color: var(--warm-ivory);
  background: var(--near-black);
}

.band.olive {
  color: var(--warm-ivory);
  background: var(--deep-olive);
}

.container {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.page-hero p {
  margin: 16px 0 0;
  color: rgba(43, 44, 40, 0.78);
  font-size: 1.08rem;
}

.dark .section-heading p,
.olive .section-heading p {
  color: rgba(250, 252, 224, 0.74);
}

.section-heading .price-tiers {
  margin-top: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section-heading .price-tiers strong {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.preset-swatches {
  display: grid;
  gap: 18px;
}

.preset-swatch {
  display: grid;
  gap: 8px;
}

.preset-swatch-name {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.swatch-tape {
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--swatch-bg);
  background-image:
    repeating-linear-gradient(90deg, var(--swatch-major) 0 2.5px, transparent 2.5px 56px),
    repeating-linear-gradient(90deg, var(--swatch-minor) 0 1.5px, transparent 1.5px 14px);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 72%, 100% 46%;
  background-position: left bottom, left bottom;
  box-shadow: var(--shadow-soft);
}

.preset-swatch--classic {
  --swatch-bg: #ffffff;
  --swatch-major: #d82626;
  --swatch-minor: #2b2c28;
}

.preset-swatch--dark {
  --swatch-bg: #23241f;
  --swatch-major: #eef0e3;
  --swatch-minor: rgba(238, 241, 226, 0.5);
}

.preset-swatch--lime {
  --swatch-bg: #1c2208;
  --swatch-major: #bce82a;
  --swatch-minor: rgba(238, 241, 226, 0.45);
}

.customize-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
}

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

.proof-list li,
.info-card,
.step,
.order-card,
.form-panel,
.preview-panel,
.checkout-panel,
.account-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-list li {
  position: relative;
  padding: 20px 20px 20px 24px;
}

.proof-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 4px;
  background: var(--field-tan);
  border-radius: 999px;
}

.proof-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep-olive);
  font-size: 1.04rem;
}

.product-image {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.product-image img {
  width: 100%;
  max-width: 520px;
  object-fit: contain;
}

.workflow-grid,
.card-grid,
.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid rgba(210, 219, 217, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-row div {
  padding: 20px 22px;
  border-right: 1px solid rgba(210, 219, 217, 0.16);
}

.metric-row div:last-child {
  border-right: 0;
}

.metric-row span {
  display: block;
  color: rgba(210, 219, 217, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  color: var(--warm-ivory);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.step,
.info-card,
.order-card {
  padding: 24px;
}

.step-number,
.stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--warm-ivory);
  background: var(--deep-olive);
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.step h3,
.info-card h3,
.order-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.step {
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: rgba(210, 219, 217, 0.28);
}

.step:last-child::after {
  display: none;
}

.step p,
.info-card p,
.order-card p {
  margin: 0;
  color: rgba(43, 44, 40, 0.76);
}

.dark .step,
.dark .info-card {
  background: rgba(250, 252, 224, 0.08);
  border-color: rgba(210, 219, 217, 0.22);
  box-shadow: none;
}

.dark .step p,
.dark .info-card p {
  color: rgba(250, 252, 224, 0.7);
}

.preview-strip {
  padding: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.preview-strip img {
  width: 100%;
  min-height: 78px;
  object-fit: cover;
}

.product-photo {
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(250, 252, 224, 0.88) 0%, rgba(210, 219, 217, 0.76) 100%),
    url("assets/website-background.png");
  background:
    linear-gradient(135deg, rgba(250, 252, 224, 0.88) 0%, rgba(210, 219, 217, 0.76) 100%),
    image-set(
      url("assets/website-background.webp") type("image/webp"),
      url("assets/website-background.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-photo img {
  width: 118%;
  max-width: none;
  filter: drop-shadow(0 22px 28px rgba(19, 21, 21, 0.22));
}

.page-hero {
  padding: clamp(58px, 9vw, 116px) clamp(18px, 4vw, 56px) clamp(38px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  max-width: 960px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(360px, 1.14fr);
  gap: 22px;
  align-items: start;
}

.form-panel,
.preview-panel,
.checkout-panel,
.account-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-top: 10px;
  margin-bottom: 0;
}

.panel-heading > strong {
  color: var(--deep-olive);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field span,
.checkbox span {
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--near-black);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(43, 44, 40, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: rgba(51, 62, 40, 0.62);
  box-shadow:
    0 0 0 3px rgba(138, 122, 92, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--deep-olive);
}

.builder-note {
  margin: 16px 0 0;
  color: rgba(43, 44, 40, 0.7);
  font-size: 0.9rem;
}

.preview-panel h2,
.checkout-panel h2,
.account-panel h2,
.form-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.tape-demo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(36px, 1fr));
  gap: 0;
  align-items: end;
  min-height: 128px;
  padding: 28px 16px 20px;
  overflow-x: auto;
  background:
    repeating-linear-gradient(
      to right,
      rgba(43, 44, 40, 0.12) 0,
      rgba(43, 44, 40, 0.12) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfaf2 100%);
  border: 1px solid rgba(43, 44, 40, 0.18);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.tick {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  min-width: 46px;
  height: 76px;
  color: var(--near-black);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
}

.tick::after {
  content: "";
  width: 4px;
  height: 30px;
  background: var(--charcoal);
}

.tick.major {
  color: var(--near-black);
}

.tick.major::after {
  height: 48px;
  background: var(--red);
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.summary-item {
  padding: 14px;
  background: rgba(250, 252, 224, 0.74);
  border: 1px solid rgba(43, 44, 40, 0.14);
  border-radius: var(--radius);
}

.summary-item span {
  display: block;
  color: var(--field-tan-text);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 3px;
  color: var(--near-black);
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-all;
}

.checkout-panel {
  margin-top: 22px;
  display: none;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-actions span {
  padding: 10px 12px;
  color: rgba(43, 44, 40, 0.74);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(43, 44, 40, 0.12);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-panel.is-visible {
  display: block;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 44, 40, 0.12);
}

.checkout-row:last-of-type {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--warm-ivory);
  background: var(--deep-olive);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.locked-field {
  opacity: 0.68;
}

.locked-field select {
  cursor: not-allowed;
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(250, 252, 224, 0.72);
  background: var(--near-black);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--warm-ivory);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-brand {
  margin: 0;
}

.footer-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.footer-tagline {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--mist-gray);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(43, 44, 40, 0.12);
}

th {
  color: var(--field-tan-text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  font-weight: 650;
}

/* ------------------------------------------------------------------
   Auth pages (sign-in, account, orders)
   ------------------------------------------------------------------ */

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  background: rgba(43, 44, 40, 0.07);
  border-radius: var(--radius);
}

.auth-tab {
  flex: 1;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(43, 44, 40, 0.62);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.auth-tab.is-active {
  color: var(--near-black);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(19, 21, 21, 0.12);
}

.auth-tab:hover:not(.is-active) {
  color: var(--near-black);
  background: rgba(255, 255, 255, 0.5);
}

.auth-feedback {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-feedback--error {
  color: #7a1717;
  background: rgba(216, 38, 38, 0.08);
  border: 1px solid rgba(216, 38, 38, 0.22);
}

.auth-feedback--success {
  color: #253c14;
  background: rgba(51, 62, 40, 0.08);
  border: 1px solid rgba(51, 62, 40, 0.22);
}

.button.danger {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 22px rgba(216, 38, 38, 0.2);
}

.button.danger:hover {
  background: #b01e1e;
  border-color: #b01e1e;
}

.danger-zone {
  padding: 24px;
  background: rgba(216, 38, 38, 0.04);
  border: 1px solid rgba(216, 38, 38, 0.2);
  border-radius: var(--radius);
  max-width: 640px;
}

.danger-zone__header {
  margin-bottom: 20px;
}

.danger-zone__header h2 {
  margin: 0 0 8px;
  color: #7a1717;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.1;
}

.danger-zone__header p {
  margin: 0;
  color: rgba(43, 44, 40, 0.72);
  font-size: 0.95rem;
}

.delete-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.delete-confirm-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.delete-confirm-check span {
  color: rgba(43, 44, 40, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.delete-confirm-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.delete-confirm-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.delete-confirm-row input {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--near-black);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 38, 38, 0.3);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.delete-confirm-row input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 38, 38, 0.12);
}

/* ------------------------------------------------------------------
   Guide page (how-it-works)
   ------------------------------------------------------------------ */

.callout {
  max-width: 860px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--deep-olive);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.callout--warn {
  border-left-color: var(--red);
  background: rgba(216, 38, 38, 0.04);
}

.callout h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.1;
}

.callout p,
.callout li {
  color: rgba(43, 44, 40, 0.82);
}

.callout p {
  margin: 0 0 12px;
}

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

.callout ul {
  margin: 0 0 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.guide-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.guide-step .step-number {
  flex-shrink: 0;
  margin-bottom: 0;
}

.guide-step h3 {
  margin: 4px 0 8px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.guide-step p {
  margin: 0;
  color: rgba(43, 44, 40, 0.78);
}

@media (max-width: 620px) {
  .guide-step {
    flex-direction: column;
    gap: 12px;
  }
}

.field-optional {
  color: rgba(43, 44, 40, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-burger {
    display: block;
  }

  .nav-toggle:focus-visible ~ .nav-burger span {
    background: var(--accent, var(--field-tan));
    box-shadow: 0 0 0 2px var(--accent, var(--field-tan));
  }

  .site-nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 10px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 11px 2px;
  }

  .split,
  .builder-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    background-position: 64% center;
    background-attachment: scroll;
  }

  .home-page {
    background-attachment: scroll;
    background-position: 64% center;
  }

  .hero-content {
    width: min(760px, 100%);
    padding-bottom: 0;
  }

  .hero-product {
    padding-top: 0;
  }

  .hero-product img {
    width: min(760px, 108%);
    margin: 0 auto;
  }

  .workflow-grid,
  .card-grid,
  .orders-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(210, 219, 217, 0.16);
  }

  .metric-row div:last-child {
    border-bottom: 0;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 136px;
    height: auto;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .nav-action {
    min-height: 36px;
    padding: 0 12px !important;
  }

  .hero-content {
    padding: 34px 0 0;
  }

  .hero {
    padding-bottom: 22px;
  }

  .hero-product img {
    width: 118%;
    max-width: none;
    transform: translateX(-4%);
  }

  .hero-tape {
    padding: 10px 12px;
  }

  .hero-tape img {
    height: 58px;
  }

  .product-photo {
    min-height: 260px;
  }

  .product-photo img {
    width: 138%;
    transform: translateX(-7%);
  }

  .field-grid,
  .summary-list,
  .preview-actions {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------
   Legal pages (terms, privacy)
   ------------------------------------------------------------------ */

.legal-body {
  max-width: 760px;
}

.legal-body h2 {
  margin: 36px 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.15;
}

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

.legal-body p,
.legal-body li {
  color: rgba(43, 44, 40, 0.82);
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-body a:not(.button) {
  color: var(--deep-olive);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Order correction form (orders page)
   ------------------------------------------------------------------ */

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-edit-row td {
  padding: 0 15px 18px;
  border-bottom: 1px solid rgba(43, 44, 40, 0.12);
}

.order-edit {
  padding: 18px;
  background: rgba(250, 252, 224, 0.6);
  border: 1px solid rgba(51, 62, 40, 0.3);
  border-radius: var(--radius);
}

.edit-intro {
  max-width: 70ch;
  margin: 0 0 20px;
  line-height: 1.55;
  color: rgba(43, 44, 40, 0.8);
  font-size: 0.92rem;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 14px;
}

.edit-field {
  display: grid;
  gap: 5px;
}

.edit-field span {
  color: var(--charcoal);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.edit-field input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 9px;
  font-size: 0.92rem;
  color: var(--near-black);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(43, 44, 40, 0.2);
  border-radius: var(--radius);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.edit-field input:focus {
  outline: none;
  background: var(--white);
  border-color: rgba(51, 62, 40, 0.62);
  box-shadow: 0 0 0 3px rgba(138, 122, 92, 0.16);
}

.edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.edit-msg {
  font-size: 0.9rem;
  font-weight: 700;
}

/* The hidden attribute must always win, even over display rules */
[hidden] {
  display: none !important;
}

/* ==================================================================
   DESIGN V2 — precision instrument pass
   Sharper geometry, condensed display type, tape-tick dividers,
   single red index accent. Delete this block to fully revert.
   ================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 3px;
  --shadow: 0 1px 3px rgba(19, 21, 21, 0.1);
  --shadow-soft: 0 1px 2px rgba(19, 21, 21, 0.07);
  --display-font: "Barlow Condensed", "Arial Narrow", Inter, sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ADA: respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Display face for headlines only — never body text */
.hero h1,
.page-hero h1,
.section-heading h2,
.step h3,
.info-card h3,
.order-card h3,
.form-panel h2,
.preview-panel h2,
.checkout-panel h2,
.account-panel h2,
.callout h2,
.guide-step h3,
.legal-body h2 {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.012em;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7.4rem);
}

/* Hairline panels instead of floating cards */
.proof-list li,
.info-card,
.step,
.order-card,
.form-panel,
.preview-panel,
.checkout-panel,
.account-panel,
.guide-step,
.callout,
.table-wrap {
  border-color: rgba(43, 44, 40, 0.24);
}

.button,
.metric-row {
  box-shadow: none;
}

/* Numbers read as data: mono + tabular everywhere they appear */
.metric-row strong,
.summary-item strong,
td,
.stat-label {
  font-variant-numeric: tabular-nums;
}

.metric-row strong {
  font-family: var(--mono-font);
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
}

/* Tape-tick section divider — minor ticks every 8px, majors every 40px */
.tick-divider {
  position: relative;
  width: min(1160px, calc(100% - 2 * clamp(18px, 4vw, 56px)));
  height: 16px;
  margin: 0 auto;
  background-image:
    repeating-linear-gradient(90deg, rgba(43, 44, 40, 0.55) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(43, 44, 40, 0.26) 0 1px, transparent 1px 8px);
  background-size: 100% 16px, 100% 9px;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat;
}

/* The single red index mark — like the zero line on a real tape */
.tick-divider--index::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 16px;
  background: var(--red);
}

/* Red tick ahead of the hero eyebrow */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 10px;
  vertical-align: 0.18em;
  background: var(--red);
}

/* ~15% denser sections */
.band {
  padding: clamp(44px, 6.5vw, 80px) clamp(18px, 4vw, 56px);
}

.hero {
  min-height: 66vh;
}

/* How-it-works visual upgrades */
.guide-tape {
  width: min(1120px, calc(100% - 2 * clamp(18px, 4vw, 56px)));
  margin: 26px auto 22px;
  padding: 12px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(43, 44, 40, 0.2);
  border-radius: var(--radius);
}

.guide-tape img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  object-position: center;
}

.guide-step .guide-art {
  order: 5;
  flex-shrink: 0;
  width: 116px;
  margin: 0 0 0 auto;
}

.guide-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.measure-formula {
  margin: 14px 0 0 !important;
  padding: 10px 14px;
  display: inline-block;
  color: var(--deep-olive);
  background: rgba(250, 252, 224, 0.85);
  border: 1px solid rgba(51, 62, 40, 0.3);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  font-family: var(--mono-font);
  font-size: 0.95rem;
  font-weight: 700;
}

.ref-table {
  min-width: 0;
  width: auto;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(43, 44, 40, 0.2);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.ref-table th,
.ref-table td {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.ref-table td {
  font-family: var(--mono-font);
  font-weight: 700;
}

@media (max-width: 620px) {
  .guide-step .guide-art {
    order: 0;
    margin: 0 auto;
  }

  .guide-tape img {
    height: 48px;
  }
}

/* Guide page: one centered 860px column, condensed header */
.guide-page .page-hero {
  padding: clamp(32px, 5vw, 52px) clamp(18px, 4vw, 56px) clamp(18px, 3vw, 30px);
  border-bottom: none;
}

.guide-page .page-hero .container {
  max-width: 860px;
}

.guide-page .page-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.02;
}

.guide-page .page-hero p {
  margin-top: 10px;
}

.guide-page .section-heading {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.guide-page .callout,
.guide-page .guide-list {
  margin-right: auto;
  margin-left: auto;
}

.guide-page .band {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.guide-page .guide-tape {
  width: min(860px, calc(100% - 2 * clamp(18px, 4vw, 56px)));
  margin-top: 4px;
}

.guide-page .tick-divider {
  width: min(860px, calc(100% - 2 * clamp(18px, 4vw, 56px)));
}

/* ==================================================================
   GUIDELINE AUDIT PASS (design_audit branch) — review before merge
   ================================================================== */

/* Typography: balance headings, prevent orphans in paragraphs */
h1, h2, h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* Headings: semibold reads more refined than bold at display sizes */
.hero h1,
.page-hero h1,
.section-heading h2,
.step h3,
.info-card h3,
.order-card h3,
.form-panel h2,
.account-panel h2,
.callout h2,
.guide-step h3,
.legal-body h2 {
  font-weight: 600;
}

/* Small uppercase labels need tracking to breathe */
.eyebrow,
.section-tag,
.field label,
.field span,
.checkbox span,
.summary-item span,
.metric-row span,
.status-pill,
.edit-field span,
.stat-label {
  letter-spacing: 0.05em;
}

/* Tables: sentence-case headings, no card around the table */
th {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
  color: rgba(43, 44, 40, 0.65);
}

.table-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Heading groups: per-element character caps instead of wrapper-only */
.section-heading h2 {
  max-width: 26ch;
}

.section-heading p {
  max-width: 58ch;
}

.section-heading.center h2,
.section-heading.center p {
  margin-right: auto;
  margin-left: auto;
}

/* Interactivity: transitions are for movement, not color swaps */
.field input,
.field select,
.field textarea {
  transition: none;
}

/* Forms: 16px inputs on mobile (prevents iOS focus zoom) */
@media (max-width: 620px) {
  .edit-field input {
    font-size: 1rem;
  }
}

/* ==================================================================
   DARK MODE (design_audit branch) — follows the OS setting.
   Same contrast ratios as light mode, shadows removed, no large
   colored panels: dark/olive bands become canvas + divider.
   ================================================================== */

:root {
  --diagram-ink: #2b2c28;
  --diagram-faint: #8a7a5c;
  --diagram-accent: #333e28;
  --diagram-paper: #fafce0;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page-bg: #161815;
    --surface: rgba(255, 255, 255, 0.045);
    --border: rgba(238, 241, 226, 0.14);
    --shadow: none;
    --shadow-soft: none;
    --field-tan-text: #b9aa86;
    --diagram-ink: #e6e9da;
    --diagram-faint: #9b8e6e;
    --diagram-accent: #8aa66e;
    --diagram-paper: #20231e;
  }

  body {
    background: var(--page-bg);
    color: #eef0e3;
  }

  /* Field photo: dusk treatment — dark scrim over the same image */
  .home-page {
    background:
      linear-gradient(rgba(16, 18, 15, 0.88), rgba(16, 18, 15, 0.88)),
      image-set(
        url("assets/website-background-mirrored.webp") type("image/webp"),
        url("assets/website-background-mirrored.png") type("image/png")
      );
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
  }

  .hero {
    background-image:
      linear-gradient(90deg, rgba(16, 18, 15, 0.92) 0%, rgba(16, 18, 15, 0.82) 45%, rgba(16, 18, 15, 0.62) 100%),
      image-set(
        url("assets/website-background-mirrored.webp") type("image/webp"),
        url("assets/website-background-mirrored.png") type("image/png")
      );
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
  }

  .hero::before {
    background: none;
  }

  .home-page .band:not(.dark):not(.olive) {
    background: rgba(16, 18, 15, 0.55);
  }

  /* Text: one light family, secondary at reduced opacity */
  .hero h1,
  .page-hero h1,
  .section-heading h2,
  .hero-copy,
  .step h3,
  .info-card h3,
  .order-card h3,
  .callout h2,
  .guide-step h3,
  .legal-body h2,
  .form-panel h2,
  .preview-panel h2,
  .checkout-panel h2,
  .account-panel h2,
  .purchase-heading h2,
  .summary-item strong,
  td {
    color: #eef0e3;
  }

  .section-heading p,
  .page-hero p,
  .step p,
  .info-card p,
  .order-card p,
  .callout p,
  .callout li,
  .guide-step p,
  .legal-body p,
  .legal-body li,
  .proof-list li,
  .edit-intro,
  .edit-msg,
  .builder-note,
  .delete-confirm-check span,
  .preview-actions span,
  .preset-swatch-name,
  .customize-note {
    color: rgba(238, 241, 226, 0.78);
  }

  th {
    color: rgba(238, 241, 226, 0.6);
  }

  th, td {
    border-bottom-color: rgba(238, 241, 226, 0.12);
  }

  /* Dark/olive bands: lifted surfaces instead of big color panels,
     so the long homepage keeps its section rhythm */
  .band.dark {
    background: rgba(255, 255, 255, 0.045);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: inherit;
  }

  .band.olive {
    background: rgba(110, 134, 84, 0.14);
    border-top: 1px solid rgba(154, 178, 126, 0.25);
    border-bottom: 1px solid rgba(154, 178, 126, 0.25);
    color: inherit;
  }

  /* Buttons */
  .button:hover {
    background: #46583a;
    border-color: #46583a;
  }

  .button.secondary {
    color: #eef0e3;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 241, 226, 0.3);
  }

  .button.secondary:hover {
    color: #eef0e3;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(238, 241, 226, 0.4);
  }

  .button.ivory {
    color: #131515;
    box-shadow: none;
  }

  .button.ivory:hover {
    color: #131515;
    background: #d8dcc0;
    border-color: #d8dcc0;
  }

  .nav-action {
    color: #131515 !important;
  }

  .nav-action:hover {
    color: var(--warm-ivory) !important;
  }

  a:focus-visible,
  button:focus-visible {
    outline-color: rgba(186, 204, 156, 0.8);
  }

  /* Panels and frames */
  .metric-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
  }

  .hero-tape,
  .guide-tape,
  .preview-strip {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(238, 241, 226, 0.2);
  }

  .summary-item,
  .measure-formula,
  .bullet-chosen {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(238, 241, 226, 0.18);
  }

  .measure-formula {
    color: #b9cf9a;
    border-left-color: var(--red);
  }

  .callout {
    background: var(--surface);
    border-left-color: #8aa66e;
  }

  .callout--warn {
    background: rgba(216, 38, 38, 0.08);
    border-left-color: #e05548;
  }

  .ref-table {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
  }

  .tick-divider {
    background-image:
      repeating-linear-gradient(90deg, rgba(238, 241, 226, 0.5) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(90deg, rgba(238, 241, 226, 0.24) 0 1px, transparent 1px 8px);
  }

  /* Forms */
  .field input,
  .field select,
  .field textarea,
  .delete-confirm-row input,
  .edit-field input {
    color: #eef0e3;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(238, 241, 226, 0.22);
    box-shadow: none;
  }

  .field input:focus,
  .field select:focus,
  .field textarea:focus,
  .edit-field input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(186, 204, 156, 0.7);
    box-shadow: 0 0 0 3px rgba(186, 204, 156, 0.15);
  }

  .field label,
  .field span,
  .checkbox span,
  .edit-field span {
    color: rgba(238, 241, 226, 0.85);
  }

  .auth-tabs {
    background: rgba(255, 255, 255, 0.06);
  }

  .auth-tab.is-active {
    color: #131515;
    background: #e8ebdc;
  }

  .auth-tab {
    color: rgba(238, 241, 226, 0.6);
  }

  .auth-tab:hover:not(.is-active) {
    color: #eef0e3;
    background: rgba(255, 255, 255, 0.08);
  }

  .auth-feedback--error {
    color: #f0a39a;
    background: rgba(216, 38, 38, 0.12);
    border-color: rgba(224, 85, 72, 0.4);
  }

  .auth-feedback--success {
    color: #b9cf9a;
    background: rgba(138, 166, 110, 0.12);
    border-color: rgba(138, 166, 110, 0.4);
  }

  .danger-zone {
    background: rgba(216, 38, 38, 0.07);
    border-color: rgba(224, 85, 72, 0.35);
  }

  .danger-zone__header h2 {
    color: #f0a39a;
  }

  .danger-zone__header p,
  .delete-confirm-label {
    color: rgba(238, 241, 226, 0.78);
  }

  .order-edit {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(238, 241, 226, 0.2);
  }

  .site-footer {
    background: #0d0f0d;
    border-top: 1px solid var(--border);
  }

  .product-photo {
    background: rgba(255, 255, 255, 0.06);
  }

  /* The DialWRX wordmark is dark-on-transparent, so a dark panel washes it
     out. Seat it on a light panel in dark mode to keep full contrast. */
  .product-image {
    background: #eef0e0;
    border-color: rgba(238, 241, 226, 0.16);
  }
}

@media (prefers-color-scheme: dark) {
  /* Seat the product photo in the dark scene: soft spotlight pool
     behind it + light rim glow instead of the invisible dark shadow */
  .hero-product::before {
    content: "";
    position: absolute;
    inset: -10% -6%;
    z-index: -1;
    background: radial-gradient(
      closest-side,
      rgba(238, 241, 226, 0.11),
      rgba(238, 241, 226, 0.04) 55%,
      transparent 75%
    );
    pointer-events: none;
  }

  .hero-product img {
    filter: drop-shadow(0 0 30px rgba(238, 241, 226, 0.22))
      drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
  }

  .product-photo img {
    filter: drop-shadow(0 0 24px rgba(238, 241, 226, 0.18));
  }
}

@media (prefers-color-scheme: dark) {
  /* About/Contact: light masthead band for contrast against the dark page */
  .page-hero.light-hero {
    background: #eef0e0;
    border-bottom: 1px solid rgba(238, 241, 226, 0.2);
  }

  .page-hero.light-hero h1 {
    color: #131515;
  }

  .page-hero.light-hero p {
    color: rgba(43, 44, 40, 0.8);
  }
}

@media (prefers-color-scheme: dark) {
  /* Guide page: light masthead + lifted surfaces for contrast rhythm */
  .guide-page .page-hero {
    background: #eef0e0;
  }

  .guide-page .page-hero h1 {
    color: #131515;
  }

  .guide-page .page-hero p {
    color: rgba(43, 44, 40, 0.8);
  }

  .guide-page .guide-tape {
    margin-top: 22px;
  }

  .guide-page .guide-step,
  .guide-page .callout:not(.callout--warn),
  .guide-page .ref-table {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(238, 241, 226, 0.24);
  }

  .guide-page .callout--warn {
    background: rgba(216, 38, 38, 0.13);
    border-left-color: #ff6b5e;
  }

  .guide-page .step-number {
    background: #4a5a3a;
  }

  .guide-page .measure-formula {
    background: rgba(255, 255, 255, 0.09);
  }
}

/* Compact masthead for utility pages (account, orders, sign-in) */
.page-hero.compact-hero {
  padding: clamp(26px, 4vw, 42px) clamp(18px, 4vw, 56px) clamp(18px, 3vw, 28px);
}

.page-hero.compact-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.04;
}

.page-hero.compact-hero p {
  margin-top: 8px;
}

.page-hero.compact-hero + .band,
.page-hero.compact-hero ~ main .band:first-of-type {
  padding-top: clamp(28px, 4vw, 48px);
}

/* Muted text that must adapt to dark mode (no inline colors) */
.muted-note {
  color: rgba(43, 44, 40, 0.6);
  font-weight: 700;
}

.order-date {
  color: rgba(43, 44, 40, 0.6);
  font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  .muted-note,
  .order-date,
  .field-optional {
    color: rgba(238, 241, 226, 0.6);
  }

  .orders-grid .order-card .stat-label {
    color: var(--warm-ivory);
  }
}

.edit-msg--error {
  color: #b01e1e;
}

.edit-msg--success {
  color: var(--deep-olive);
}

@media (prefers-color-scheme: dark) {
  .edit-msg--error {
    color: #f0a39a;
  }

  .edit-msg--success {
    color: #b9cf9a;
  }
}

@media (prefers-color-scheme: dark) {
  /* Proof-card titles were still light-mode olive — invisible on dark */
  .proof-list strong {
    color: #eef0e3;
  }
}

/* ==================================================================
   LIME ACCENT (dark mode only) — additional_customizations branch
   Action + index color. Red is freed for danger-only.
   ================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #bce82a;
    --accent-grad: linear-gradient(135deg, #d6f23a, #9bd618);
    --accent-grad-hover: linear-gradient(135deg, #e2f85a, #abe62c);
    --accent-ink: #1c2208;
  }

  /* Inline body hyperlinks → lime so they're legible on dark
     (the light-mode deep-olive link color reads as dark-on-dark) */
  .legal-body a:not(.button),
  .section-heading p a {
    color: var(--accent);
  }

  /* Primary actions → lime gradient (danger stays red, secondary stays ghost) */
  .button:not(.secondary):not(.danger),
  .nav-action {
    color: var(--accent-ink) !important;
    background: var(--accent-grad);
    border-color: transparent;
    box-shadow: none;
  }

  .button:not(.secondary):not(.danger):hover,
  .nav-action:hover {
    color: var(--accent-ink) !important;
    background: var(--accent-grad-hover);
    border-color: transparent;
  }

  /* Index mark → lime (eyebrow tick + section divider index) */
  .eyebrow::before,
  .tick-divider--index::after,
  .proof-list li::before {
    background: var(--accent-grad);
  }

  /* Active / hover nav underline → lime */
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
  }
}
