/* Copy of sks-shopify/assets/sks-tartan-designer.css (2026-09-13) — verbatim; the unscoped svg / button / select /
   :focus-visible / footer rules leak the same way they do on Shopify (the page shares the SKS header + footer). */
:root {
  /* SKS theme-matched palette — aligns with sks-product-main.css tokens */
  --paper: #F5F0E8;
  /* sks-ivory */
  --paper-warm: #E8DFD0;
  /* sks-parch */
  --paper-deeper: #D8CFB8;
  --ink: #1A1A1A;
  /* sks-onyx */
  --ink-soft: #4A4440;
  /* sks-body */
  --ink-mid: #6B6460;
  /* mid between sks-body and sks-muted, WCAG-safe */
  --ink-faint: #9A9088;
  /* sks-muted */
  --brand-red: #B8520A;
  /* sks-amber — primary accent */
  --brand-red-deep: #8A3D08;
  /* sks-amber dark hover */
  --navy: #2C3E50;
  /* sks-slate */
  --gold: #B08439;
  --gold-soft: #D4B574;
  --forest: #2C3D2A;
  --line: #C8C2BC;
  --line-soft: #DBD5D0;
  --success: #1A5C2A;
  /* sks-ok */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.06);
}

.sks-td-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.sks-td-page {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.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;
}

.serif {
  font-family: 'Fraunces', Georgia, serif;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.td-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .td-container {
    padding: 0 18px;
  }
}

/* === ANNOUNCEMENT BAR (matches existing site pattern) === */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.02em;
}

.announce a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .announce-row {
    gap: 12px;
    font-size: 11px;
  }
}

/* === NAV === */
.nav-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 246, 238, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--brand-red);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--brand-red);
}

.nav-links a.current {
  color: var(--brand-red);
  font-weight: 500;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--brand-red);
}

.nav-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-icon {
  width: 22px;
  height: 22px;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0;
}

.nav-icon:hover {
  color: var(--brand-red);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }
}

/* === HERO === */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(176, 132, 57, 0.06), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(139, 26, 26, 0.04), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero {
    padding: 44px 0 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 500;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-red);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--brand-red-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}

.btn-ghost:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 540px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats> :last-child {
    grid-column: span 2;
  }
}

.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 4px;
}

.hero-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.hero-preview-label {
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-family: 'JetBrains Mono', monospace;
  background: var(--paper-warm);
  padding: 2px 6px;
}

.hero-preview-tartan {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero-preview-tartan svg,
.hero-preview-tartan canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-preview-meta {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-family: 'JetBrains Mono', monospace;
}

/* === TRUST STRIP === */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper-warm);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong {
  color: var(--ink);
  font-weight: 600;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

/* === SECTIONS === */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: 56px 0;
}

.section-light {
  background: var(--paper-warm);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--brand-red);
  font-weight: 300;
}

.section-dark .section-head h2 em {
  color: var(--gold-soft);
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
}

.section-dark .section-head p {
  color: rgba(250, 246, 238, 0.75);
}

/* === EDUCATIONAL INTRO === */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}

@media (max-width: 820px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.intro-card {
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
}

.intro-card-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.intro-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.intro-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* === DESIGNER === */
.designer {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}

@media (max-width: 1020px) {
  .designer {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 28px;
  }
}

.designer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-tools {
  display: flex;
  gap: 4px;
}

.tool-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.tool-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tool-btn svg {
  width: 12px;
  height: 12px;
}

.controls h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls h3 .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  font-weight: 400;
  background: rgba(139, 26, 26, 0.08);
  padding: 4px 8px;
  text-transform: uppercase;
}

.control-block {
  margin-bottom: 22px;
}

.control-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-label .help {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mid);
  text-transform: none;
  letter-spacing: 0.05em;
}

.color-row {
  display: grid;
  grid-template-columns: 20px 36px 1fr 82px 30px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid transparent;
  transition: border-color 0.15s, transform 0.18s, opacity 0.15s;
  position: relative;
}

.color-row:hover {
  border-color: var(--line);
}

.color-row:focus-within {
  border-color: var(--brand-red);
}

@media (max-width: 480px) {
  .color-row {
    grid-template-columns: 18px 32px 1fr 74px 28px;
    gap: 6px;
    padding: 6px;
  }
}

.color-swatch-wrap {
  position: relative;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
  cursor: pointer;
}

@media (max-width: 480px) {
  .color-swatch {
    width: 32px;
    height: 32px;
  }
}

.color-swatch-wrap input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}

.color-meaning {
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  border-bottom: 1px dotted var(--line);
  width: 100%;
}

.color-meaning::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

.color-meaning:focus {
  border-bottom-color: var(--brand-red);
}

.thread-stepper {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: stretch;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.thread-stepper:focus-within {
  border-color: var(--brand-red);
}

.thread-step {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.thread-step:hover:not(:disabled) {
  background: rgba(139, 26, 26, 0.08);
  color: var(--brand-red);
}

.thread-step:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.thread-input {
  width: 100%;
  border: none;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-align: center;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* The + / − arms replace the native spinner, so hide it. */
.thread-input::-webkit-outer-spin-button,
.thread-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 480px) {
  .thread-stepper {
    grid-template-columns: 22px 1fr 22px;
    height: 32px;
  }
}

.remove-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  border-radius: 2px;
  transition: all 0.15s;
}

.remove-btn:hover {
  color: var(--brand-red);
  background: rgba(139, 26, 26, 0.08);
}

.remove-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.add-color {
  width: 100%;
  border: 1px dashed var(--line);
  background: transparent;
  padding: 11px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: all 0.2s;
  margin-top: 4px;
}

.add-color:hover:not(:disabled) {
  border-color: var(--brand-red);
  color: var(--brand-red);
  border-style: solid;
}

.add-color:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 13px;
  font-size: 12px;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.pill:not(.active):hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.range-input {
  width: 100%;
  accent-color: var(--brand-red);
}

/* Photo upload */
.upload-zone {
  border: 1px dashed var(--line);
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--paper);
}

.upload-zone:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone svg {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: -3px;
  margin-right: 6px;
}

/* === PREVIEW === */
.preview-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.preview-tab {
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
}

.preview-tab.active {
  color: var(--ink);
  border-bottom-color: var(--brand-red);
}

.preview-tab:not(.active):hover {
  color: var(--brand-red);
}

/* The rulers live outside the cloth, so the canvas is a grid and the
   aspect-ratio moves onto the tartan cell itself — the woven canvas is
   square, and it must stay mapped 1:1 or the ticks would drift. */
.preview-canvas {
  --ruler-w: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--ruler-w) 1fr;
  grid-template-rows: var(--ruler-w) 1fr;
}

#previewSvg {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

.preview-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The woven canvas is rendered at ~1600px so the twill survives a retina
   downscale; the browser resamples it into whatever width the pane gets. */
.preview-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.swatch-footer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  padding: 8px 2px 0;
  min-height: 14px;
}

.preview-meta {
  position: absolute;
  z-index: 3;
  top: calc(var(--ruler-w) + 10px);
  left: calc(var(--ruler-w) + 10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  background: rgba(250, 246, 238, 0.9);
  padding: 4px 8px;
}

/* === RULERS === */
/* Both rulers measure the same square window, so one caption in the corner
   names the unit for both. */
.ruler-corner {
  grid-column: 1;
  grid-row: 1;
}

.ruler-top {
  grid-column: 2;
  grid-row: 1;
}

.ruler-left {
  grid-column: 1;
  grid-row: 2;
}

.ruler-top,
.ruler-left,
.ruler-corner {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.ruler-top {
  border-bottom: 1px solid var(--line);
}

.ruler-left {
  border-right: 1px solid var(--line);
}

.ruler-corner {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* The draped kilt is an illustration, not a measured swatch — no ruler. */
.preview-canvas.no-rulers {
  --ruler-w: 0px;
}

.preview-canvas.no-rulers .ruler-top,
.preview-canvas.no-rulers .ruler-left,
.preview-canvas.no-rulers .ruler-corner {
  display: none;
}

.preview-canvas.no-rulers .preview-meta {
  top: 12px;
  left: 12px;
}

.rtick {
  position: absolute;
  font-style: normal;
}

.rtick::before {
  content: '';
  position: absolute;
  background: var(--ink-faint);
}

.rtick>span {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  line-height: 1;
  color: var(--ink-mid);
  white-space: nowrap;
}

.rtick.is-major::before {
  background: var(--ink-mid);
}

.ruler-top .rtick {
  left: var(--p);
  top: 0;
  bottom: 0;
}

.ruler-top .rtick::before {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 4px;
}

.ruler-top .rtick.is-major::before {
  height: 8px;
}

.ruler-top .rtick>span {
  bottom: 9px;
  left: 3px;
}

.ruler-top .rtick.is-end>span {
  left: auto;
  right: 3px;
}

.ruler-left .rtick {
  top: var(--p);
  left: 0;
  right: 0;
}

.ruler-left .rtick::before {
  right: 0;
  top: 0;
  height: 1px;
  width: 4px;
}

.ruler-left .rtick.is-major::before {
  width: 8px;
}

.ruler-left .rtick>span {
  right: 10px;
  top: 2px;
}

.ruler-left .rtick.is-end>span {
  top: auto;
  bottom: 2px;
}

.spec-output {
  background: var(--ink);
  color: var(--paper);
  padding: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.85;
}

.spec-output .spec-label {
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
}

.spec-output .spec-value {
  color: var(--paper);
  word-break: break-all;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 3px 0;
}

@media (max-width: 480px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .spec-output {
    font-size: 11px;
  }
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-row .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 14px 18px;
}

/* Draped kilt preview */
.kilt-mock {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--paper-warm);
}

.kilt-mock-figure {
  position: absolute;
  inset: 8% 25% 0 25%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* === AI ASSISTANT === */
.ai-box {
  background: linear-gradient(135deg, var(--ink) 0%, #2A2520 100%);
  color: var(--paper);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .ai-box {
    padding: 32px 22px;
  }
}

.ai-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(176, 132, 57, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  position: relative;
  align-items: center;
}

@media (max-width: 980px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.ai-box .eyebrow {
  color: var(--gold-soft);
}

.ai-box .eyebrow::after {
  background: var(--gold-soft);
}

/* Colour is set ON the heading, not inherited from .ai-box. Inheritance is
   the weakest thing in the cascade: any `h2 { color: ... }` the surrounding
   Shopify theme happens to declare beats it, and this box is near-black — so
   an inherited colour left the heading black-on-black on the live site while
   the <em> (which has its own rule) stayed gold. Same reason the selectors
   below are scoped to .sks-td-page: enough weight to outrank a theme rule
   without reaching for !important. */
.sks-td-page .ai-box h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--paper);
}

.sks-td-page .ai-box h2 em {
  color: var(--gold-soft);
  font-style: italic;
}

.sks-td-page .ai-box>.ai-grid>div>p {
  color: rgba(250, 246, 238, 0.9);
  margin-bottom: 22px;
  font-size: 16px;
}

.ai-prompt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px;
  transition: border-color 0.2s, background 0.2s;
}

/* The field read as an already-filled quote rather than something to type in:
   the placeholder was long serif prose in the same italic as real input, and
   the only label was screen-reader-only. Three things fix that — a visible
   label, a placeholder that is visibly a hint (dimmer, italic, "e.g."), and
   typed text that is upright so it never looks like the example. */
.ai-prompt-label {
  display: block;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  cursor: text;
}

.ai-prompt-label span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(250, 246, 238, 0.45);
}

.ai-prompt:focus-within {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.07);
}

/* The surrounding Shopify theme puts a border and a focus ring on every
   textarea, which drew a hard white box inside our dark panel. Killed here in
   every state — the .ai-prompt box already signals focus by going gold, so
   nothing is lost to keyboard users. */
.sks-td-page .ai-prompt textarea,
.sks-td-page .ai-prompt textarea:hover,
.sks-td-page .ai-prompt textarea:focus,
.sks-td-page .ai-prompt textarea:focus-visible,
.sks-td-page .ai-prompt textarea:active {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.sks-td-page .ai-prompt textarea {
  display: block;
  width: 100%;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.45;
  resize: vertical;
  min-height: 110px;
  font-style: normal;
  padding: 0 0 0 14px;
  /* The real caret, once they are actually typing. */
  caret-color: var(--gold-soft);
}

.sks-td-page .ai-prompt textarea::placeholder {
  color: rgba(250, 246, 238, 0.32);
  font-style: italic;
}

/* A blinking caret parked where the first character will land. An empty field
   holding a long serif example still reads as a finished quote; a cursor is
   the one mark everyone already knows means "type here". It steps aside the
   moment the field is focused, so it can never sit beside the real caret. */
.ai-prompt-field {
  position: relative;
}

.ai-prompt-caret {
  position: absolute;
  top: 3px;
  left: 0;
  width: 2px;
  height: 23px;
  background: var(--gold-soft);
  pointer-events: none;
  animation: aiCaretBlink 1.06s step-end infinite;
}

@keyframes aiCaretBlink {

  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}

.ai-prompt:focus-within .ai-prompt-caret,
.ai-prompt-field.has-text .ai-prompt-caret {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .ai-prompt-caret {
    animation: none;
    opacity: 1;
  }
}

.ai-prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  flex-wrap: wrap;
}

.ai-hint {
  font-size: 11px;
  color: rgba(250, 246, 238, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.ai-examples {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-example {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 246, 238, 0.7);
  padding: 6px 11px;
  font-size: 11px;
  transition: all 0.15s;
}

.ai-example:hover {
  background: rgba(176, 132, 57, 0.15);
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* === TEMPLATES === */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .templates-grid {
    grid-template-columns: 1fr;
  }
}

.template-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
  transition: all 0.2s;
  display: block;
  position: relative;
  width: 100%;
  font: inherit;
  color: inherit;
}

.template-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.template-preview {
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.template-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.template-body {
  padding: 18px 22px;
}

.template-title {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.2;
}

.template-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.template-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--paper);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--line);
}

/* === PASS 1 ADDITIONS === */

/* Hero "live preview" hint */
.hero-preview-hint {
  position: absolute;
  top: 50%;
  left: -36px;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left top;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero-preview-hint {
    display: none;
  }
}

/* Hero social proof row (added below stats) */
.hero-proof {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-proof-stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 13px;
}

/* Hero rating → jump to the #reviews section lower down. inline-flex with
   the parent's own gap so wrapping the two spans in an <a> does not
   collapse the spacing .hero-proof was giving them as separate items. */
.hero-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
}

.hero-proof-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-proof-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Clears the sticky header so the heading is not hidden under it on
   arrival. Smooth scroll is scoped to this stylesheet, which only loads
   on the designer page. */
#reviews {
  scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.hero-proof strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-proof-sep {
  color: var(--line);
  margin: 0 2px;
}

/* Color row: show hex code and color name */
.color-row {
  grid-template-columns: 20px 36px 1fr 82px 30px;
}

.color-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.color-meaning-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Drag handle for reordering colors */
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--ink-faint);
  user-select: none;
  touch-action: none;
  align-self: stretch;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  color: var(--brand-red);
  outline: none;
}

.drag-handle svg {
  width: 12px;
  height: 16px;
  pointer-events: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* The displaced rows slide out of the way (.color-row already transitions
   transform); the dragged row must NOT, or it would lag behind the pointer.
   Its translateY is set inline, which beats any transform declared here. */
.color-row.is-dragging {
  transition: none;
  z-index: 5;
  border-color: var(--brand-red) !important;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.is-dragging-color {
  cursor: grabbing !important;
}

body.is-dragging-color * {
  cursor: grabbing !important;
}

/* Stop the browser hijacking a vertical drag as a page scroll on touch. */
.drag-handle {
  touch-action: none;
}

/* An even-number correction flashes the field it changed, so the toast is not
   the only clue about WHICH of seven rows moved. */
@keyframes threadCorrected {
  0% {
    border-color: var(--brand-red);
    background: rgba(184, 82, 10, 0.16);
  }

  100% {
    border-color: var(--line);
    background: var(--paper);
  }
}

.thread-stepper.is-corrected {
  animation: threadCorrected 1s ease-out;
}

/* Tone pills with color swatches */
.tone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tone-pill-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Symmetry pills with mini diagrams */
.sym-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sym-pill svg {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
}

/* Sett size is a readout, not a control — the loom's reed density is fixed,
   so the width follows the thread counts. The gauge shows where it landed. */
.sett-gauge {
  position: relative;
  height: 6px;
  background: linear-gradient(to right,
      var(--paper-deeper) 0%,
      var(--paper-warm) 50%,
      var(--paper-deeper) 100%);
  border: 1px solid var(--line);
}

.sett-gauge-pin {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--brand-red);
  transition: left 0.2s ease;
}

.sett-derive {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* Sett-size with use-case markers */
.sett-marks {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  margin-top: 4px;
  text-transform: uppercase;
}

.sett-marks span {
  text-align: center;
}

.sett-marks span:first-child {
  text-align: left;
}

.sett-marks span:last-child {
  text-align: right;
}

.sett-marks .mark-active {
  color: var(--brand-red);
  font-weight: 500;
}

/* Color code legend */
.code-legend {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(250, 246, 238, 0.55);
  line-height: 1.7;
}

.code-legend strong {
  color: var(--gold-soft);
  margin-right: 4px;
}

/* Price hint above action buttons */
.price-hint {
  margin: 6px 0 4px;
  padding: 10px 14px;
  background: rgba(139, 26, 26, 0.06);
  border-left: 3px solid var(--brand-red);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price-hint strong {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
}

.price-hint .price-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

/* Metric/Imperial toggle */
.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-left: auto;
}

.unit-toggle button {
  padding: 3px 8px;
  background: transparent;
  border: none;
  color: var(--ink-mid);
  text-transform: uppercase;
  cursor: pointer;
}

.unit-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

/* Originality staleness indicator */
.originality-stale {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.spec-row.has-stale::after {
  content: '↻ recheck after edits';
  grid-column: 1 / -1;
  font-size: 9px;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  padding-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* Keyboard shortcuts hint */
.kbd-hints {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kbd-hints kbd {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1px 5px;
  font-family: inherit;
  font-size: 9px;
  color: var(--ink-soft);
  margin-right: 3px;
}

/* Screen-reader description (visually hidden but exposed) */
.design-description-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* === END PASS 1 ADDITIONS === */

/* === PASS 2 ADDITIONS === */

/* My Designs gallery — slide-down panel within designer */
.my-designs-toggle {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.my-designs-toggle:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.my-designs-toggle .badge-count {
  background: var(--brand-red);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 2px;
}

.my-designs-panel {
  display: none;
  margin-top: 16px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.my-designs-panel.open {
  display: block;
  animation: fadeInUp 0.25s ease-out;
}

.my-designs-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-mid);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-size: 15px;
}

.my-designs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.my-designs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.saved-design-card {
  border: 1px solid var(--line);
  background: var(--paper-warm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.saved-design-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.saved-design-preview {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.saved-design-preview svg {
  width: 100%;
  height: 100%;
}

.saved-design-body {
  padding: 8px 10px;
}

.saved-design-name {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-design-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.saved-design-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: rgba(250, 246, 238, 0.9);
  border: 1px solid var(--line);
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
}

.saved-design-card:hover .saved-design-delete {
  opacity: 1;
}

.saved-design-delete:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

/* Save dialog inline */
.save-dialog {
  display: none;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 22px;
  margin-top: 12px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.save-dialog.open {
  display: flex;
  animation: fadeInUp 0.2s;
}

.save-dialog label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.save-dialog input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  padding: 10px 12px;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  outline: none;
}

.save-dialog input:focus {
  border-color: var(--gold-soft);
}

.save-dialog .btn-gold,
.save-dialog .btn-cancel {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

.save-dialog .btn-cancel {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Photo upload preview */
.photo-preview {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--gold);
  animation: fadeInUp 0.25s;
}

.photo-preview.open {
  display: block;
}

.photo-preview-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.photo-preview-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.photo-preview-swatches {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.photo-preview-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.photo-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.photo-preview-actions button {
  font-size: 11px;
  padding: 8px 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.photo-apply {
  background: var(--brand-red);
  color: var(--paper);
  border: none;
}

.photo-cancel {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* AI Assistant matched-results area */
.ai-matches {
  display: none;
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.3s;
  grid-column: 1 / -1;
  /* span full grid width so matches don't get squeezed into a half-column */
}

.ai-matches.open {
  display: block;
}

.ai-matches-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ai-matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 700px) {
  .ai-matches-grid {
    grid-template-columns: 1fr;
  }
}

.ai-match {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}

.ai-match:hover {
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}

.ai-match-preview {
  aspect-ratio: 1.5;
  min-height: 120px;
  /* fallback if aspect-ratio fails or parent has no width */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.ai-match-preview svg,
.ai-match-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-match-body {
  padding: 12px 14px;
}

.ai-match-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 4px;
  font-weight: 500;
}

.ai-match-reason {
  font-size: 11px;
  color: rgba(250, 246, 238, 0.6);
  line-height: 1.4;
}

/* Honest "demo" badge for unwired features */
.demo-note {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  background: rgba(176, 132, 57, 0.15);
  border: 1px solid var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

/* === END PASS 2 ADDITIONS === */

/* === PASS 3 ADDITIONS === */

/* Starting-points consolidated tabs */
.starting-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}

.starting-tabs::-webkit-scrollbar {
  display: none;
}

.starting-tab {
  background: none;
  border: none;
  padding: 18px 28px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-mid);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
  min-width: 0;
}

.starting-tab:hover {
  color: var(--brand-red);
}

.starting-tab.active {
  color: var(--ink);
  border-bottom-color: var(--brand-red);
}

.starting-tab-label {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.starting-tab-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.starting-tab.active .starting-tab-sub {
  color: var(--brand-red);
}

.starting-panel {
  animation: fadeInUp 0.3s ease-out;
}

.starting-panel.hidden {
  display: none;
}

/* Sticky TOC sidebar */
.toc-sidebar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: auto;
  max-width: calc(100vw - 32px);
  padding: 7px 16px;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  display: none;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1100px) {
  .toc-sidebar {
    display: flex;
  }
}

.toc-sidebar h6 {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.toc-sidebar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.toc-sidebar li {
  margin: 0;
}

.toc-sidebar a {
  color: var(--ink-mid);
  text-decoration: none;
  display: block;
  padding: 4px 10px;
  border-radius: 999px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.toc-sidebar a:hover {
  color: var(--brand-red);
}

.toc-sidebar a.active {
  color: var(--ink);
  background: rgba(184, 82, 10, 0.08);
  font-weight: 500;
}

/* Floating chat bubble */
.chat-bubble {
  position: fixed;
  bottom: 168px; /* owner 2026-09-19: above the Zendesk launcher AND its "Need any help?" greeting badge */
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(24, 22, 19, 0.2);
  transition: all 0.2s;
  text-decoration: none;
}

.chat-bubble:hover {
  background: var(--brand-red);
  transform: translateY(-2px);
}

.chat-bubble svg {
  width: 16px;
  height: 16px;
}

.chat-bubble-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble-pulse {
    animation: none;
  }
}

@media (max-width: 540px) {
  .chat-bubble {
    bottom: 150px; /* above the Zendesk launcher + greeting badge */
    right: 12px;
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Announce footnote */
.announce-footnote {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: center;
}

/* Refined deliverables — single narrative tile instead of 4 duplicates */
.deliverable-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 48px;
}

@media (max-width: 900px) {
  .deliverable-narrative {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
}

.deliverable-box-visual {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #4A3520 0%, #3A2818 100%);
  border: 1px solid var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deliverable-box-visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 181, 116, 0.3);
}

.deliverable-box-inner {
  width: 60%;
  aspect-ratio: 1.6;
  background: var(--paper-warm);
  padding: 16px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.deliverable-box-inner-tartan {
  width: 100%;
  height: 100%;
}

.deliverable-box-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(212, 181, 116, 0.85);
  text-transform: uppercase;
}

.deliverable-content h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.deliverable-content h3 em {
  font-style: italic;
  color: var(--brand-red);
  font-weight: 300;
}

.deliverable-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
}

.deliverable-content ul {
  list-style: none;
  margin: 18px 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.deliverable-content li {
  padding: 9px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.deliverable-content li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  margin-top: 7px;
}

.deliverable-content li strong {
  color: var(--ink);
  font-weight: 600;
}

/* === END PASS 3 ADDITIONS === */

/* === PASS 4: IN-DESIGNER STARTER ROW + POPOVERS === */

.designer-starter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  position: relative;
}

@media (max-width: 640px) {
  .designer-starter {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.starter-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 14px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
  position: relative;
  min-height: 70px;
  justify-content: center;
}

.starter-card:hover {
  border-color: var(--brand-red);
  background: var(--paper);
  transform: translateY(-1px);
}

.starter-card[aria-expanded="true"] {
  border-color: var(--brand-red);
  background: var(--paper);
  box-shadow: 0 2px 0 var(--brand-red);
}

.starter-card-label {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.starter-card-label svg {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
  flex-shrink: 0;
}

.starter-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.4;
}

.starter-card-chev {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--ink-mid);
  pointer-events: none;
  transition: transform 0.15s;
}

.starter-card[aria-expanded="true"] .starter-card-chev {
  transform: translateY(-50%) rotate(180deg);
  color: var(--brand-red);
}

/* Surprise-me variant: gold accent, single-fire, no popover */
.starter-card.surprise {
  background: linear-gradient(135deg, var(--paper-warm) 0%, rgba(212, 181, 116, 0.12) 100%);
}

.starter-card.surprise:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--paper) 0%, rgba(212, 181, 116, 0.2) 100%);
}

.starter-card.surprise .starter-card-label svg {
  color: var(--gold-soft);
}

.starter-card.surprise .starter-card-chev {
  display: none;
}

.starter-card.surprise.firing {
  animation: starterPulse 0.6s;
}

@keyframes starterPulse {
  0% {
    background: var(--paper);
  }

  40% {
    background: rgba(212, 181, 116, 0.3);
  }

  100% {
    background: var(--paper-warm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .starter-card.surprise.firing {
    animation: none;
  }
}

/* Popover panel — slides down below the starter row */
.starter-popover {
  display: none;
  margin: -16px 0 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--brand-red);
  border-top: 3px solid var(--brand-red);
  animation: fadeInUp 0.2s ease-out;
  position: relative;
}

.starter-popover.open {
  display: block;
}

.starter-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.starter-popover-head h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.starter-popover-head p {
  font-size: 12px;
  color: var(--ink-mid);
  margin-top: 2px;
  line-height: 1.45;
}

.starter-popover-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.starter-popover-close:hover {
  color: var(--brand-red);
}

.starter-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 760px) {
  .starter-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .starter-options {
    grid-template-columns: 1fr;
  }
}

.starter-option {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}

.starter-option:hover {
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.starter-option-preview {
  aspect-ratio: 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.starter-option-preview svg,
.starter-option-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.starter-option-body {
  padding: 10px 12px;
}

.starter-option-title {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 3px;
}

.starter-option-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.35;
}

.starter-popover-footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-mid);
  line-height: 1.5;
}

.starter-popover-footnote strong {
  color: var(--ink);
}

/* === END PASS 4 ADDITIONS === */

/* Pattern stretch reset button */
.aspect-reset {
  background: transparent;
  border: 1px solid var(--line);
  width: 22px;
  height: 22px;
  font-size: 12px;
  color: var(--ink-mid);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: all 0.15s;
}

.aspect-reset:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.aspect-reset.is-default {
  opacity: 0.3;
  pointer-events: none;
}

/* === CLASSICS === */
.classics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .classics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .classics-grid {
    grid-template-columns: 1fr;
  }
}

.classic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  font: inherit;
  color: inherit;
}

.classic-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.classic-card:hover .classic-load {
  color: var(--brand-red-deep);
}

.classic-preview {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.classic-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.classic-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.classic-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.2;
}

.classic-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.classic-history {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.classic-load {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 500;
  transition: color 0.15s;
}

.classics-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 800px;
}

.classics-note strong {
  color: var(--ink);
}

/* === SURPRISE ME === */
.surprise-section {
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-deeper) 100%);
  position: relative;
  overflow: hidden;
}

.surprise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(176, 132, 57, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(139, 26, 26, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.surprise-section>.td-container {
  position: relative;
}

.surprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .surprise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.surprise-btn {
  font-size: 15px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--gold-soft);
  border: 1px solid var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.surprise-btn:hover {
  background: var(--brand-red);
  color: var(--paper);
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.surprise-btn:active {
  transform: translateY(0);
}

.surprise-btn .icon {
  font-size: 18px;
  transition: transform 0.4s;
}

.surprise-btn:hover .icon {
  transform: rotate(20deg) scale(1.15);
}

.surprise-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mid);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.surprise-content>p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

.surprise-reveal {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.surprise-reveal.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.95;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  box-shadow: none;
}

.surprise-reveal.empty .placeholder-icon {
  font-size: 36px;
  color: var(--gold);
  filter: drop-shadow(0 2px 4px rgba(176, 132, 57, 0.3));
}

.surprise-reveal.empty p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mid);
  max-width: 240px;
}

.reveal-tartan {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  background: var(--paper-warm);
  overflow: hidden;
}

.reveal-tartan svg {
  width: 100%;
  height: 100%;
  display: block;
}

.reveal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.reveal-name {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.reveal-story {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-family: 'Fraunces', serif;
  font-style: italic;
  margin-bottom: 18px;
}

.reveal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal-actions .btn {
  flex: 1;
  min-width: 130px;
  justify-content: center;
  padding: 13px 16px;
  font-size: 12px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.surprise-reveal:not(.empty) {
  animation: fadeInUp 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .surprise-reveal:not(.empty) {
    animation: none;
  }
}

/* === CASE STUDIES === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 820px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 540px) {
  .case {
    grid-template-columns: 1fr;
  }
}

.case-preview {
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.case-preview svg,
.case-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
}

.case-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
}

.case-quote {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-style: italic;
  border-left: 2px solid var(--brand-red);
  padding-left: 14px;
}

/* === PROCESS === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}

.process-step:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .process-step:nth-child(2n) {
    border-right: none;
  }

  .process-step:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 540px) {
  .process-step {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .process-step:last-child {
    border-bottom: none !important;
  }
}

.process-num {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 18px;
}

.process-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

.process-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}

.process-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

/* === PASS 10: NEW WHAT IT COSTS BLOCK === */

/* Three-card pricing row (Sample / Cloth / Kilt) */
.cost-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.cost-promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(0, 128, 64, 0.08);
  border: 1px solid rgba(0, 128, 64, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #0a6e3a;
  text-transform: uppercase;
}

.cost-promise svg {
  width: 12px;
  height: 12px;
}

.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .cost-cards {
    grid-template-columns: 1fr;
  }
}

.cost-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}

.cost-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

.cost-card.featured {
  border-color: var(--brand-red);
  border-width: 2px;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(139, 26, 26, 0.03) 100%);
}

.cost-card-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--brand-red);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 500;
}

.cost-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
}

.cost-card-name {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cost-card-price {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-red);
  margin: 6px 0 4px;
}

.cost-card-price small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.cost-card-blurb {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 8px 0 18px;
}

.cost-card-list {
  list-style: none;
  margin: 0 0 22px;
  border-top: 1px solid var(--line-soft);
  padding: 0;
  font-size: 13px;
  flex-grow: 1;
}

.cost-card-list li {
  padding: 8px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.cost-card-list li::before {
  content: '✓';
  color: var(--brand-red);
  flex-shrink: 0;
  font-weight: 600;
}

.cost-card-cta {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 12px 18px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  width: 100%;
  transition: all 0.15s;
}

.cost-card-cta:hover {
  background: var(--brand-red);
}

.cost-card.featured .cost-card-cta {
  background: var(--brand-red);
}

.cost-card.featured .cost-card-cta:hover {
  background: #6e1414;
}

/* Free services strip */
.cost-included {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.cost-included-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cost-included-header h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}

.cost-included-header span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--success);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
}

@media (max-width: 720px) {
  .cost-included-grid {
    grid-template-columns: 1fr;
  }
}

.cost-included-grid li {
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  display: flex;
  gap: 8px;
}

.cost-included-grid li strong {
  color: var(--ink);
  font-weight: 600;
}

.cost-included-grid li::before {
  content: '+';
  color: var(--success);
  font-weight: 600;
  flex-shrink: 0;
}

/* Upload-and-order panel */
.cost-upload {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 44px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 800px) {
  .cost-upload {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }
}

.cost-upload::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 181, 116, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cost-upload-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.cost-upload h3 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.cost-upload h3 em {
  color: var(--gold-soft);
  font-style: italic;
}

.cost-upload p {
  font-size: 14px;
  color: rgba(250, 246, 238, 0.75);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cost-upload-formats {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 238, 0.5);
  text-transform: uppercase;
}

.cost-upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-upload-drop {
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  display: block;
}

.cost-upload-drop:hover {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.03);
}

.cost-upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cost-upload-drop-icon {
  font-size: 24px;
  color: var(--gold-soft);
  margin-bottom: 8px;
  display: block;
}

.cost-upload-drop-text {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--paper);
  margin-bottom: 4px;
}

.cost-upload-drop-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 238, 0.55);
  text-transform: uppercase;
}

.cost-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cost-upload-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.cost-upload-input:focus {
  border-color: var(--gold-soft);
}

.cost-upload-input::placeholder {
  color: rgba(250, 246, 238, 0.4);
}

.cost-upload select.cost-upload-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%23faf6ee' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.cost-upload-btn {
  background: var(--gold-soft);
  color: var(--ink);
  border: none;
  padding: 14px 18px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cost-upload-btn:hover:not(:disabled) {
  background: var(--gold);
}

.cost-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cost-upload-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  min-height: 14px;
}

.cost-upload-file-preview {
  font-size: 12px;
  color: var(--gold-soft);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* Mill + process info block */
.cost-mill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
}

@media (max-width: 800px) {
  .cost-mill {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

.cost-mill-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-mill-tile-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand-red);
  margin-bottom: 4px;
}

.cost-mill-tile-icon svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
}

.cost-mill-tile h5 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}

.cost-mill-tile p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.cost-mill-tile-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 4px;
}

/* Heritage Bundle promo (kept compact below the cards) */
.cost-bundle {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

@media (max-width: 800px) {
  .cost-bundle {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}

.cost-bundle-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.cost-bundle h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cost-bundle p {
  font-size: 14px;
  color: rgba(250, 246, 238, 0.75);
  margin: 0;
}

.cost-bundle-price {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1;
}

.cost-bundle-save {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(250, 246, 238, 0.6);
  letter-spacing: 0.04em;
  margin: 6px 0 12px;
}

.cost-bundle .btn {
  background: var(--paper);
  color: var(--ink);
}

.cost-bundle .btn:hover {
  background: var(--gold-soft);
}

/* === END PASS 10 ADDITIONS === */

/* === PASS 14: ORDER YOUR TARTAN BLOCK === */

.order-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.order-promise-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.order-promise-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(0, 128, 64, 0.08);
  border: 1px solid rgba(0, 128, 64, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #0a6e3a;
  text-transform: uppercase;
}

.order-promise-pill svg {
  width: 11px;
  height: 11px;
}

/* === Tier table === */
.order-tiers {
  margin-bottom: 40px;
}

.order-tiers-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 14px;
}

.order-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .order-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .order-tier-grid {
    grid-template-columns: 1fr;
  }
}

.order-tier {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: all 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-tier:hover {
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.order-tier.is-active {
  border-color: var(--brand-red);
  border-width: 2px;
  padding: 21px 17px;
  /* compensate for thicker border */
  background: linear-gradient(180deg, var(--paper) 0%, rgba(139, 26, 26, 0.04) 100%);
  box-shadow: 0 2px 0 var(--brand-red);
}

.order-tier-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 600;
  white-space: nowrap;
}

.order-tier-yards {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.order-tier-yards small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
  font-weight: 500;
}

.order-tier-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.order-tier-price strong {
  color: var(--brand-red);
  font-weight: 600;
}

.order-tier-total {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.order-tier-kilt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.order-tier-kilt svg {
  width: 11px;
  height: 11px;
}

/* === Custom yardage row === */
.order-custom-row {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.order-custom-row label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: 0;
}

.order-custom-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.order-custom-stepper button {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
}

.order-custom-stepper button:hover:not(:disabled) {
  background: var(--paper-warm);
  color: var(--brand-red);
}

.order-custom-stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.order-custom-stepper input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 0;
  font: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}

.order-custom-stepper input::-webkit-outer-spin-button,
.order-custom-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-custom-stepper input:focus {
  background: var(--paper-warm);
}

.order-custom-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 200px;
}

.order-custom-meta strong {
  color: var(--brand-red);
  font-weight: 600;
}

/* === Kilt specification panel (shown only when qualifying tier is selected) === */
.order-kilt-spec {
  margin-top: 32px;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
  display: none;
  position: relative;
  overflow: hidden;
}

.order-kilt-spec.is-shown {
  display: block;
  animation: fadeInUp 0.25s;
}

.order-kilt-spec::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 181, 116, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.order-kilt-spec h4 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white !important;
}

.order-kilt-spec h4 em {
  color: var(--gold-soft);
  font-style: italic;
}

.order-kilt-spec h4 svg {
  width: 18px;
  height: 18px;
  color: var(--gold-soft);
}

.order-kilt-spec-sub {
  font-size: 13px;
  color: rgba(250, 246, 238, 0.7);
  margin-bottom: 22px;
}

.order-kilt-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 800px) {
  .order-kilt-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .order-kilt-fields {
    grid-template-columns: 1fr;
  }
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* A conditionally-hidden field (e.g. Kilt pleats on a 5-yard kilt) — the
   display:flex above would otherwise beat the [hidden] attribute. */
.order-field[hidden] {
  display: none !important;
}

.order-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.order-field input,
.order-field select,
.order-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus {
  border-color: var(--gold-soft);
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: rgba(250, 246, 238, 0.35);
}

.order-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%23faf6ee' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.order-field-wide {
  grid-column: 1 / -1;
}

/* === Order summary === */
.order-summary {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1.5px solid var(--brand-red);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 800px) {
  .order-summary {
    grid-template-columns: 1fr;
    padding: 20px 22px;
  }
}

.order-summary-lines {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.order-summary-line.has-strike .order-summary-amount {
  text-decoration: line-through;
  color: var(--ink-faint);
}

.order-summary-line.is-free .order-summary-amount {
  color: var(--success);
  font-weight: 600;
}

.order-summary-line strong {
  color: var(--ink);
}

.order-summary-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--ink);
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.order-summary-total-amount {
  font-size: 28px;
  font-weight: 500;
  color: var(--brand-red);
  font-family: 'Fraunces', serif;
}

.order-summary-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.order-submit-btn {
  background: var(--brand-red);
  color: var(--paper);
  border: none;
  padding: 16px 24px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.order-submit-btn:hover:not(:disabled) {
  background: #6e1414;
  transform: translateY(-1px);
}

.order-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-submit-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-align: center;
  text-transform: uppercase;
}

.order-submit-status {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

/* Email/name row at the bottom */
.order-contact {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .order-contact {
    grid-template-columns: 1fr;
  }
}

.order-contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-contact-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.order-contact-field input {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.order-contact-field input:focus {
  border-color: var(--brand-red);
}

/* Upsell banner — appears when current yardage is within a few yards of the next better deal */
.order-upsell {
  margin-top: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(212, 181, 116, 0.18) 0%, rgba(212, 181, 116, 0.06) 100%);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink);
  animation: fadeInUp 0.25s;
}

.order-upsell.is-shown {
  display: flex;
}

.order-upsell-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: 'Fraunces', serif;
}

.order-upsell-text {
  flex: 1;
  min-width: 200px;
  line-height: 1.45;
}

.order-upsell-text strong {
  color: var(--brand-red);
  font-weight: 600;
}

.order-upsell-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 9px 16px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.order-upsell-btn:hover {
  background: var(--brand-red);
}

/* === END PASS 14 ADDITIONS === */

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.included-list {
  list-style: none;
}

.included-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.included-item:first-child {
  padding-top: 0;
}

.included-name {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 4px;
}

.included-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.included-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
}

.included-price.free {
  color: var(--success);
}

.included-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.included-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}

.included-cta p {
  font-size: 14px;
  color: rgba(250, 246, 238, 0.75);
  margin-bottom: 20px;
}

.bundle-price {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 500;
  margin: 16px 0 4px;
  color: var(--gold-soft);
}

.bundle-save {
  font-size: 12px;
  color: rgba(250, 246, 238, 0.6);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px;
}

.included-cta .btn {
  background: var(--paper);
  color: var(--ink);
}

.included-cta .btn:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.currency-note {
  font-size: 11px;
  color: var(--ink-mid);
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

/* === DELIVERABLES === */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 900px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .deliverables-grid {
    grid-template-columns: 1fr;
  }
}

.deliverable {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.deliverable:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .deliverable:nth-child(2n) {
    border-right: none;
  }

  .deliverable:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 540px) {
  .deliverable {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .deliverable:last-child {
    border-bottom: none;
  }
}

.deliverable-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-red);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.deliverable-icon svg {
  width: 18px;
  height: 18px;
}

.deliverable h4 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.deliverable p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.about-image {
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.about-image svg,
.about-image canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 18px;
}

.about-text p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--brand-red);
  display: block;
}

.about-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 4px;
}

/* === REVIEWS === */
.reviews-strip {
  padding: 20px 0;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.review-stars {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Live store rating: two stacked ★★★★★ layers, the gold one clipped to
   rating/5 by sks-jm-store-numbers.js. Both layers inherit font-size and
   letter-spacing from the parent (.review-stars / .hero-proof-stars) so
   the glyphs stay in register — set either on one layer only and they
   drift apart. Starts at width 0, so a failed fetch shows an empty
   rating rather than a fake five stars. */
.sks-td-stars {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.sks-td-stars-bg {
  color: rgba(122, 114, 107, 0.28);
}

.sks-td-stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
  color: var(--gold);
}

/* Reviews summary as a popup trigger. Chrome-only reset: no font-size or
   colour, because .review-score/.review-meta children carry those and a
   `font:` shorthand here would silently flatten them. */
.reviews-summary--btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.reviews-summary--btn:hover .review-meta {
  text-decoration: underline;
}

.reviews-summary--btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.review-score {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.review-meta {
  font-size: 13px;
  color: var(--ink-mid);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}

.review-stars-sm {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
}

.review-author {
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.review-author strong {
  color: var(--ink);
}

/* === FAQ === */
.faq-list {
  max-width: 880px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--ink);
}

.faq-q::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  color: var(--brand-red);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  display: none;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 0 0 24px;
  max-width: 720px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-a p+p {
  margin-top: 12px;
}

/* === RELATED === */
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .related-cards {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}

.related-card:hover {
  border-color: var(--brand-red);
}

.related-card-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.related-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.related-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.related-card .arrow {
  margin-top: 18px;
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* === FINAL CTA === */
.final-cta {
  background: var(--brand-red);
  color: var(--paper);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(212, 181, 116, 0.08), transparent 40%);
}

.final-cta>.td-container {
  position: relative;
}

.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 300;
}

.final-cta p {
  font-size: 17px;
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 32px;
}

.final-cta .btn-primary {
  background: var(--paper);
  color: var(--brand-red);
}

.final-cta .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

/* === FOOTER === */
footer {
  background: var(--ink);
  color: rgba(250, 246, 238, 0.65);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: var(--paper);
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 246, 238, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 246, 238, 0.65);
  transition: all 0.15s;
}

.footer-social a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(250, 246, 238, 0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-icons span {
  font-size: 9px;
  letter-spacing: 0.06em;
  background: rgba(250, 246, 238, 0.08);
  padding: 4px 8px;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 1000;
  transition: transform 0.3s;
  font-family: 'JetBrains Mono', monospace;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Hide elements during print etc. */
@media print {

  .nav-wrap,
  .announce,
  .final-cta,
  footer {
    display: none;
  }
}

/* Uploaded "own tartan" image — shown over the preview box (share, not design) */
.preview-canvas {
  position: relative;
}

.own-tartan-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  z-index: 6;
  display: block;
}

.own-tartan-img[hidden] {
  display: none;
}

.own-tartan-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 7;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line, rgba(0, 0, 0, .15));
  background: #fff;
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.own-tartan-close:hover {
  background: #f3efe7;
}

.own-tartan-close[hidden] {
  display: none;
}

/* Free-kilt option_set fields — required-invalid state + optional hint */
.order-field.fk-bad input,
.order-field.fk-bad select {
  border-color: #c0392b;
}

.order-field .fk-opt {
  color: var(--ink-faint, #9a9088);
  font-weight: 400;
}

/* Dropdown options render white-on-white without an explicit option colour
   (the select's light text carries into the popup). Give them a dark ground. */
.order-field select option {
  background: #241f1a;
  color: var(--paper, #f5f0e8);
}

/* Order heading + paragraph: centered as a block, paragraph the same width
   as the title (both inside the centered .section-head). */
.order-section .section-head {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.order-section .order-intro {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.order-section .order-intro p {
  max-width: 100%;
}

.order-section .order-promise-row {
  justify-content: center;
}

/* ============ IN-PAGE CONFIRM DIALOG ============
   Replaces the browser confirm() for "Delete this design?" etc. */
.td-confirm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 22, 19, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.td-confirm.is-open { opacity: 1; }
.td-confirm__box {
  width: 100%;
  max-width: 380px;
  background: var(--paper, #f7f3ec);
  border: 1px solid var(--line, #d9d2c7);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(24, 22, 19, 0.28);
  transform: translateY(6px);
  transition: transform 0.15s ease;
}
.td-confirm.is-open .td-confirm__box { transform: none; }
.td-confirm__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink, #1e2b3a);
}
.td-confirm__body {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mid, #6b6257);
}
.td-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.td-confirm__cancel,
.td-confirm__ok {
  padding: 9px 18px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
}
.td-confirm__cancel {
  background: transparent;
  color: var(--ink, #1e2b3a);
  border-color: var(--line, #d9d2c7);
}
.td-confirm__cancel:hover { border-color: var(--ink, #1e2b3a); }
.td-confirm__ok {
  background: var(--brand-red, #8B1A1A);
  color: #fff;
}
.td-confirm__ok:hover { background: var(--brand-red-deep, #6B1212); }

/* ============ OWN-TARTAN MODE ============
   Own-tartan dropzone revealed under the starter cards — full-width block so
   the label + text wrap cleanly instead of overflowing on narrow columns. */
.own-tartan-zone {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Only display as a block when NOT hidden — a bare `display:block` would beat
   the [hidden] attribute and leave the dropzone showing in every state. */
.own-tartan-zone:not([hidden]) {
  display: block;
}

/* When own-tartan mode is chosen, hide the on-page design tools + the actions
   that only make sense for a designed sett. "Save as…" and "My designs" stay
   visible so an uploaded tartan can be saved to and reloaded from My designs. */
.designer.own-active .designer-toolbar,
.designer.own-active .starter-popover,
.designer.own-active .control-block,
.designer.own-active .swatch-footer,
.designer.own-active .spec-output,
.designer.own-active .kbd-hints,
.designer.own-active #checkOriginalityBtn,
.designer.own-active #exportPngBtn {
  display: none !important;
}
/* ── BigCommerce addition (2026-09-13): inline "Save to your account" box in the My designs panel ──
   Sign in / create the account without leaving the page (Vercel customer-login-bc + BigCommerce login token).
   Styled like .save-dialog (ink box, italic Fraunces inputs). */
.td-account {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.td-account .my-designs-header { color: rgba(250, 246, 238, 0.6); }
.td-account-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.td-account-form input {
  flex: 1 1 180px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  padding: 10px 12px;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  outline: none;
}
.td-account-form input:focus { border-color: var(--gold-soft); }
.td-account-form .btn-gold,
.td-account-form .btn-cancel { font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border: 0; cursor: pointer; }
.td-account-form .btn-cancel { background: transparent; color: rgba(250, 246, 238, 0.65); border: 1px solid rgba(255, 255, 255, 0.2); }
.td-account-msg { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--gold-soft); min-height: 0; }
.td-account-msg:empty { display: none; }
.td-account-link { color: var(--brand-red); text-decoration: underline; text-transform: none; letter-spacing: 0; }
