/* ============================================================
   Marketing Landing Page — Version A (Editorial Split)
   Design-system tokens + component styles
   ============================================================ */

html, body { overflow-x: clip; }

/* ---- Tokens ---- */
.ht-page {
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --bg: #FBF9F4;
  --bg-raised: #FFFFFF;
  --bg-tint: #F4EFE5;
  --bg-tint-2: #ECE4D2;
  --bg-ink: #1A1A1A;

  --ink-1: #1A1A1A;
  --ink-2: #3F3D38;
  --ink-3: #6E6A5F;
  --ink-4: #9E9889;
  --ink-on-dark: #FBF9F4;

  --line-1: #E7E1D2;
  --line-2: #D4CCB7;

  --brand: #E76F51;
  --brand-hover: #D85A3D;
  --brand-tint: #FBE4DC;
  --brand-ink: #6F2B1A;
  /* Accessible terracotta for TEXT + button fills (WCAG 1.4.3 AA, issue #430).
     Defined here too because the landing loads only marketing.css (not the
     design-system palettes). #B5421F = 5.58:1 on white, 4.58:1 on --brand-tint. */
  --brand-strong: #B5421F;
  --brand-strong-hover: #963A1C;

  --accent: #2A9D8F;
  --accent-hover: #218377;
  --accent-tint: #DCEFEC;

  --success: #2A9D8F;
  --warning: #E9A23B;
  --danger: #C2410C;

  /* Job composition pills (step 3, #224) — AAA contrast tested */
  --comp-include-bg: #E8F3EC;
  --comp-include-fg: #1A4D30;
  --comp-include-border: #2A7D4F;
  --comp-addon-bg: #F1EAF8;
  --comp-addon-fg: #5B2380;
  --comp-addon-border: #7E3FB3;
  --comp-addon-on-bg: #6B2D8F;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 20px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05), 0 1px 0 rgba(15,23,42,0.03);
  --shadow-md: 0 2px 4px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 8px 24px -8px rgba(15,23,42,0.12), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-xl: 0 24px 48px -16px rgba(15,23,42,0.18), 0 8px 16px -4px rgba(15,23,42,0.08);
  --ring: rgba(231,111,81,0.35);

  font-family: var(--font-sans);
  color: var(--ink-1);
  background: var(--bg);
  line-height: 1.45;
  font-size: 16px;
  width: 100%;
}

.ht-page *, .ht-page *::before, .ht-page *::after { box-sizing: border-box; }

/* ---- Typography ---- */
.ht-page .eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand);
}
.ht-page .display {
  font-family: var(--font-display); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink-1); margin: 0;
  text-wrap: balance;
}
.ht-page .lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-2); margin: 0;
  text-wrap: pretty;
}
.ht-page .mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

/* ---- Buttons ---- */
.ht-page .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: background 120ms, border-color 120ms, color 120ms;
  cursor: pointer;
}
.ht-page .btn-primary { background: var(--brand-strong); color: white; }
.ht-page .btn-primary:hover { background: var(--brand-strong-hover); }
/* Keep white label on the coral fill in dark mode too — the broad
   `.dark .ht-page a { color: inherit }` rule below otherwise forces it
   to dark ink, leaving unreadable text on the button (#430). */
.dark .ht-page .btn-primary { color: #fff; }
.ht-page .btn-secondary { background: transparent; color: var(--ink-1); border-color: var(--line-2); }
.ht-page .btn-secondary:hover { background: var(--bg-tint); border-color: var(--ink-1); }
.ht-page .btn-ghost { color: var(--ink-1); }
.ht-page .btn-ghost:hover { background: var(--bg-tint); }
.ht-page .btn-lg { height: 56px; padding: 0 32px; font-size: 18px; }
.ht-page .btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---- Layout shell ---- */
.ht-page .shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 639px) {
  .ht-page .shell { padding: 0 20px; }
}

/* ============================================================
   TOP NAV
   ============================================================ */
.ht-page .nav {
  background: rgba(251,249,244,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
}
.ht-page .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.ht-page .nav-wordmark {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.ht-page .nav-wordmark-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; letter-spacing: -0.02em; color: var(--ink-1);
}
.ht-page .nav-wordmark-dot { color: var(--brand); }
.ht-page .nav-links { display: flex; gap: 8px; align-items: center; }
.ht-page .nav-link {
  padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: var(--r-md); text-decoration: none;
}
.ht-page .nav-link:hover { color: var(--ink-1); background: var(--bg-tint); }
.ht-page .nav--sticky { position: sticky; top: 0; z-index: 20; }
@media (max-width: 767px) {
  .ht-page .nav-inner { padding: 0 20px; }
  .ht-page .nav-links-desktop { display: none; }
}
@media (min-width: 768px) {
  .ht-page .nav-links-mobile { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.ht-page .hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.ht-page .hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.ht-page .hero-display { font-size: 68px; margin-bottom: 28px; font-weight: 400; }
.ht-page .hero-display em { font-style: italic; color: var(--brand-strong); }
.ht-page .hero-lede { font-size: 19px; margin-bottom: 36px; max-width: 480px; }
.ht-page .hero-ctas { display: flex; gap: 12px; margin-bottom: 28px; }
.ht-page .hero-trust { display: flex; gap: 20px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.ht-page .hero-trust span { display: flex; align-items: center; gap: 6px; }
.ht-page .hero-dash-wrap {
  transform: perspective(1800px) rotateY(-6deg) rotateX(2deg) translateX(20px);
  transform-origin: left center;
}
@media (max-width: 1023px) {
  .ht-page .hero { padding: 40px 0 48px; }
  .ht-page .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .ht-page .hero-display { font-size: 44px; }
  .ht-page .hero-dash-wrap { display: none; }
}
@media (max-width: 639px) {
  .ht-page .hero { padding: 32px 0 40px; }
  .ht-page .hero-display { font-size: 36px; }
  .ht-page .hero-lede { font-size: 17px; }
  .ht-page .hero-ctas { flex-direction: column; }
  .ht-page .hero-ctas .btn { width: 100%; }
}

/* ============================================================
   FAKE DASHBOARD MOCK
   ============================================================ */
.ht-page .dash {
  background: #FAFAF9;
  border: 1px solid #E7E5E4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
}
.ht-page .dash-bar {
  background: #F5F5F4;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #E7E5E4;
}
.ht-page .dash-dot { width: 10px; height: 10px; border-radius: 999px; }
.ht-page .dash-dot.r { background: #F87171; }
.ht-page .dash-dot.y { background: #FBBF24; }
.ht-page .dash-dot.g { background: #4ADE80; }
.ht-page .dash-url {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono); font-size: 11px; color: #78716C;
  background: #FFFFFF; border: 1px solid #E7E5E4; border-radius: 4px;
  padding: 2px 10px;
}
.ht-page .dash-body { display: grid; grid-template-columns: 180px 1fr; }
.ht-page .dash-sb {
  background: #F5F5F4; border-right: 1px solid #E7E5E4;
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.ht-page .dash-sb-logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; padding: 6px 10px 14px; color: #1C1917;
  letter-spacing: -0.01em;
}
.ht-page .dash-sb-logo .dot { color: #E76F51; }
.ht-page .dash-sb-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  color: #44403C; border-radius: var(--r-md);
}
.ht-page .dash-sb-link.active {
  background: #FFFFFF; color: #1C1917;
  border: 1px solid #E7E5E4;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.ht-page .dash-sb-link .ico { width: 12px; height: 12px; opacity: 0.7; }
.ht-page .dash-sb-link.active .ico { color: var(--brand); opacity: 1; }
.ht-page .dash-sb-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  background: #EFEEEB; color: #78716C; padding: 1px 5px; border-radius: 3px;
}
.ht-page .dash-sb-link.active .dash-sb-badge { background: var(--brand-tint); color: var(--brand-ink); }
.ht-page .dash-sb-section {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #A8A29E;
  padding: 12px 10px 4px;
}
.ht-page .dash-main { padding: 14px 16px; min-width: 0; }
.ht-page .dash-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ht-page .dash-h-l { display: flex; flex-direction: column; gap: 2px; }
.ht-page .dash-h-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em; color: #1C1917;
}
.ht-page .dash-h-sub { font-size: 11px; color: #78716C; }
.ht-page .dash-h-r { display: flex; gap: 6px; }
.ht-page .dash-btn {
  height: 24px; padding: 0 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 5px; display: inline-flex; align-items: center; gap: 4px;
}
.ht-page .dash-btn.pri { background: #1E40AF; color: white; }
.ht-page .dash-btn.sec { background: #FFFFFF; color: #1C1917; border: 1px solid #D6D3D1; }
.ht-page .dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 10px; }
.ht-page .dash-stat {
  background: #FFFFFF; border: 1px solid #E7E5E4;
  border-radius: 8px; padding: 8px 10px;
}
.ht-page .dash-stat-l { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #78716C; margin-bottom: 4px; }
.ht-page .dash-stat-v { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: #1C1917; line-height: 1; letter-spacing: -0.01em; }
.ht-page .dash-stat-d { font-family: var(--font-mono); font-size: 9px; margin-top: 4px; }
.ht-page .dash-stat-d.up { color: #15803D; }
.ht-page .dash-stat-d.flat { color: #78716C; }
.ht-page .dash-banner {
  display: flex; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 5px;
  background: #DCFCE7; color: #14532D;
  border: 1px solid #BBF7D0;
  font-size: 11px; margin-bottom: 8px;
}
.ht-page .dash-banner svg { flex-shrink: 0; color: #15803D; }
.ht-page .dash-toolbar {
  display: flex; gap: 6px; align-items: center; margin-bottom: 8px;
}
.ht-page .dash-search {
  flex: 1; max-width: 200px;
  height: 24px; background: #FFFFFF;
  border: 1px solid #E7E5E4; border-radius: 5px;
  padding: 0 8px;
  font-size: 11px; color: #78716C;
  display: flex; align-items: center; gap: 6px;
}
.ht-page .dash-seg {
  display: inline-flex; background: #F5F5F4;
  border: 1px solid #E7E5E4; border-radius: 5px; padding: 2px;
  gap: 1px;
}
.ht-page .dash-seg button {
  height: 18px; padding: 0 7px;
  font-size: 10px; font-weight: 500;
  border-radius: 3px; color: #78716C;
  background: none; border: none; cursor: default;
}
.ht-page .dash-seg button.active {
  background: #FFFFFF; color: #1C1917;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.ht-page .dash-seg .count { color: #A8A29E; margin-left: 3px; font-family: var(--font-mono); font-size: 9px; }
.ht-page .dash-table {
  background: #FFFFFF; border: 1px solid #E7E5E4;
  border-radius: 8px; overflow: hidden;
}
.ht-page .dash-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ht-page .dash-table thead th {
  background: #F5F5F4; text-align: left;
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #78716C;
  padding: 6px 10px;
  border-bottom: 1px solid #E7E5E4;
}
.ht-page .dash-table tbody td {
  padding: 6px 10px; border-bottom: 1px solid #F5F5F4;
  vertical-align: middle;
}
.ht-page .dash-table tbody tr:last-child td { border-bottom: none; }
.ht-page .dash-table .right { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.ht-page .dash-table .cust { font-weight: 600; color: #1C1917; }
.ht-page .dash-table .meta { font-size: 9px; color: #78716C; }
.ht-page .dash-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; font-size: 10px; font-weight: 500;
  border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.ht-page .dash-pill .d { width: 5px; height: 5px; border-radius: 999px; }
.ht-page .dash-pill.accepted { background: #DCFCE7; color: #14532D; border-color: #BBF7D0; }
.ht-page .dash-pill.accepted .d { background: #15803D; }
.ht-page .dash-pill.viewed { background: #FBE4DC; color: #6F2B1A; border-color: #F8C9BB; }
.ht-page .dash-pill.viewed .d { background: var(--brand); }
.ht-page .dash-pill.sent { background: #DBEAFE; color: #1E3A8A; border-color: #BFDBFE; }
.ht-page .dash-pill.sent .d { background: #1E40AF; }
.ht-page .dash-pill.draft { background: #F5F5F4; color: #44403C; border-color: #E7E5E4; }
.ht-page .dash-pill.draft .d { background: #A8A29E; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.ht-page .section { padding: 56px 0; }
.ht-page .section-tint { background: var(--bg-tint); }
.ht-page .section-ink { background: var(--bg-ink); color: var(--ink-on-dark); }
.ht-page .section-ink .display { color: var(--ink-on-dark); }
.ht-page .section-ink .lede { color: rgba(251,249,244,0.7); }
.ht-page .sec-head { margin-bottom: 32px; max-width: 720px; }
.ht-page .sec-head .eyebrow { margin-bottom: 16px; }
.ht-page .sec-head .display { font-size: 44px; margin-bottom: 16px; }
.ht-page .sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 639px) {
  .ht-page .section { padding: 40px 0; }
  .ht-page .sec-head { margin-bottom: 24px; }
  .ht-page .sec-head .display { font-size: 32px; }
}

/* ---- Trade strip ---- */
.ht-page .logos {
  padding: 28px 0;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.ht-page .logos-label {
  text-align: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.ht-page .logos-row {
  display: grid; grid-template-columns: repeat(11,1fr); gap: 8px;
  align-items: start; justify-items: center;
}
.ht-page .logo-trade {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap;
}
.ht-page .logo-trade svg { width: 26px; height: 26px; color: var(--ink-3); opacity: 0.55; transition: all 0.25s ease; }
.ht-page .logo-trade span { transition: color 0.25s ease; }
.ht-page .logo-trade:hover svg { color: var(--accent); opacity: 1; transform: translateY(-2px); }
.ht-page .logo-trade:hover span { color: var(--ink-1); }
@media (max-width: 1023px) {
  .ht-page .logos-row { grid-template-columns: repeat(6,1fr); gap: 16px 8px; }
}
@media (max-width: 767px) {
  .ht-page .logos-row { grid-template-columns: repeat(4,1fr); gap: 20px 12px; }
}
@media (max-width: 479px) {
  .ht-page .logos-row { grid-template-columns: repeat(3,1fr); gap: 20px 8px; }
}

/* ---- Comparison ---- */
.ht-page .compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ht-page .compare-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ht-page .compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ht-page .compare-card.bad { background: var(--bg-tint); }
.ht-page .compare-card.good { border-color: var(--brand); border-width: 2px; padding: 31px; }
.ht-page .compare-card.good:hover {
  box-shadow: 0 12px 32px rgba(231,111,81,0.15);
}
.ht-page .compare-tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.ht-page .compare-card.good .compare-tag { color: var(--brand-strong); }
.ht-page .compare-h {
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em;
  color: var(--ink-1); margin: 0 0 20px;
}
.ht-page .compare-list { list-style: none; padding: 0; margin: 0; }
.ht-page .compare-list li {
  display: flex; gap: 12px; padding: 8px 8px;
  font-size: 14px; color: var(--ink-2);
  align-items: flex-start;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ht-page .compare-card.good .compare-list li:hover {
  background: var(--brand-tint);
  color: var(--ink-1);
}
.ht-page .compare-list svg { flex-shrink: 0; margin-top: 2px; }
.ht-page .compare-list .x { color: var(--danger); }
.ht-page .compare-list .check { color: var(--accent); }
@media (max-width: 767px) {
  .ht-page .compare { grid-template-columns: 1fr; }
}

/* ---- Steps ---- */
.ht-page .steps { display: grid; gap: 32px; grid-template-columns: repeat(3,1fr); }
.ht-page .step { border-top: 2px solid var(--ink-1); padding-top: 20px; }
.ht-page .step-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 12px;
}
.ht-page .step-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink-1); margin: 0 0 12px;
}
.ht-page .step-body { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0; }
@media (max-width: 767px) {
  .ht-page .steps { grid-template-columns: 1fr; }
}

/* ---- Features ---- */
.ht-page .features { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
.ht-page .feature {
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ht-page .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ht-page .feature-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-ink);
  border-radius: var(--r-md); margin-bottom: 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ht-page .feature:hover .feature-icon {
  background: var(--brand); color: #fff; transform: scale(1.1);
}
.ht-page .feature-title {
  font-size: 16px; font-weight: 600; color: var(--ink-1); margin: 0 0 8px;
  transition: color 0.25s ease;
}
.ht-page .feature:hover .feature-title { color: var(--brand); }
.ht-page .feature-body {
  font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6;
  transition: color 0.25s ease;
}
.ht-page .feature:hover .feature-body { color: var(--ink-1); }
@media (max-width: 767px) {
  .ht-page .features { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ht-page .features { grid-template-columns: repeat(2,1fr); }
}

/* ---- Pricing ---- */
#pricing .sec-head .display { font-size: 52px; }
@media (max-width: 639px) { #pricing .sec-head .display { font-size: 36px; } }
.ht-page .pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 840px; margin: 0 auto;
}
.ht-page .pricing-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ht-page .pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ht-page .pricing-card.featured {
  border-color: var(--brand); border-width: 2px; padding: 31px;
}
.ht-page .pricing-card.featured:hover {
  box-shadow: 0 12px 32px rgba(231,111,81,0.15);
}
.ht-page .pricing-tag {
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 12px;
}
.ht-page .pricing-card.featured .pricing-tag { color: var(--brand); }
.ht-page .pricing-amount {
  font-family: var(--font-display); font-weight: 500;
  font-size: 56px; letter-spacing: -0.02em; color: var(--ink-1); line-height: 1;
}
.ht-page .pricing-period { font-size: 16px; color: var(--ink-3); }
.ht-page .pricing-subtitle { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.ht-page .pricing-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; flex: 1; }
.ht-page .pricing-features li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 8px; font-size: 14px; color: var(--ink-2);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ht-page .pricing-features li:hover {
  background: var(--brand-tint);
  color: var(--ink-1);
}
.ht-page .pricing-features svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.ht-page .pricing-note { font-size: 12px; color: var(--ink-4); margin-top: 10px; text-align: center; }
.ht-page .pricing-banner {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg-tint);
  border: 1px solid var(--line-1); border-radius: var(--r-full);
  padding: 4px 14px; margin-bottom: 12px;
}
.ht-page .btn-disabled {
  opacity: 0.45; pointer-events: none; cursor: default;
}
@media (max-width: 639px) {
  .ht-page .pricing-grid { grid-template-columns: 1fr; }
  .ht-page .pricing-amount { font-size: 48px; }
  .ht-page .pricing-card { padding: 24px 20px; }
  .ht-page .pricing-card.featured { padding: 23px 19px; }
}

/* ---- CTA section ---- */
.ht-page .cta-section { padding: 56px 0; background: var(--bg-tint-2); text-align: center; }
.ht-page .cta-section .display { font-size: 44px; margin-bottom: 20px; }
.ht-page .cta-section .cta-buttons { display: flex; gap: 12px; justify-content: center; }
@media (max-width: 639px) {
  .ht-page .cta-section { padding: 40px 0; }
  .ht-page .cta-section .display { font-size: 32px; }
  .ht-page .cta-section .cta-buttons { flex-direction: column; align-items: center; }
  .ht-page .cta-section .cta-buttons .btn { width: 100%; }
}

/* ---- Footer ---- */
.ht-page .footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line-1);
  font-size: 14px; color: var(--ink-3);
}
.ht-page .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
}
.ht-page .footer-col-head {
  font-size: 13px; font-weight: 600; color: var(--ink-1); margin-bottom: 12px;
}
.ht-page .footer-links {
  display: flex; flex-direction: column; gap: 8px;
}
.ht-page .footer-links a { color: var(--ink-3); text-decoration: none; }
.ht-page .footer-links a:hover { color: var(--ink-1); }
.ht-page .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line-1);
  margin-top: 32px; font-size: 12px; color: var(--ink-4);
}
.ht-page .footer-bottom-links { display: flex; gap: 16px; }
.ht-page .footer-bottom-links a { color: var(--ink-4); text-decoration: none; }
.ht-page .footer-bottom-links a:hover { color: var(--ink-1); }
@media (max-width: 767px) {
  .ht-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ht-page .footer-brand { grid-column: 1 / -1; }
  .ht-page .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   GEN FLOW — Multi-step quote builder
   ============================================================ */

/* ---- Gen hero ---- */
.ht-page .gen-hero { padding: 12px 0 20px; }
.ht-page .gen-hero .display { font-size: 36px; margin-bottom: 4px; }
.ht-page .gen-hero .display em { font-style: italic; }
.ht-page .gen-hero .lede { font-size: 14px; max-width: 600px; color: var(--ink-3); }
@media (max-width: 639px) {
  .ht-page .gen-hero .display { font-size: 28px; }
}

/* ---- Gen card ---- */
.ht-page .gen-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
@media (max-width: 639px) {
  .ht-page .gen-card { padding: 20px 16px; border-radius: 12px; }
}

/* ---- Gen section labels ---- */
.ht-page .gen-section-label {
  font-size: 14px; font-weight: 700; color: var(--ink-1); margin-bottom: 4px;
}
.ht-page .gen-section-sub {
  font-size: 13px; color: var(--ink-3); margin-bottom: 16px;
}

/* ---- Gen tile grid ---- */
.ht-page .gen-tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
@media (max-width: 767px) {
  .ht-page .gen-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .ht-page .gen-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Gen tile ---- */
.ht-page .gen-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px; min-height: 90px;
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-radius: 10px; cursor: pointer;
  transition: all 150ms; text-align: center;
}
.ht-page .gen-tile:hover { border-color: var(--line-2); background: var(--bg-tint); }
.ht-page .gen-tile.active {
  background: var(--brand-tint); border-color: var(--brand); color: var(--ink-1);
}
.ht-page .gen-tile.active .gen-tile-label { color: var(--brand-ink); }
.ht-page .gen-tile.active .gen-tile-hint { color: var(--brand); }
.ht-page .gen-tile-icon { width: 26px; height: 26px; }
.ht-page .gen-tile.active .gen-tile-icon { filter: none; }
.ht-page .gen-tile-label { font-size: 12px; font-weight: 700; color: var(--ink-1); }
.ht-page .gen-tile-hint { font-size: 11px; color: var(--ink-3); }

/* ---- Gen category tile (left-aligned) ---- */
.ht-page .gen-cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; padding: 14px 10px; min-height: 76px;
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-radius: 10px; cursor: pointer;
  transition: all 150ms;
}
.ht-page .gen-cat-tile:hover { border-color: var(--line-2); background: var(--bg-tint); }
.ht-page .gen-cat-tile.active {
  background: var(--brand-tint); border-color: var(--brand); color: var(--ink-1);
}
.ht-page .gen-cat-tile.active .gen-tile-label { color: var(--brand-ink); }
.ht-page .gen-cat-tile.active .gen-tile-hint { color: var(--brand); }

/* ---- Chip / Pill selectors ---- */
.ht-page .gen-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line-1);
  color: var(--ink-1); transition: all 150ms;
}
.ht-page .gen-chip:hover { border-color: var(--line-2); background: var(--bg-tint); }
.ht-page .gen-chip.active {
  background: var(--brand-tint); border-color: var(--brand); color: var(--brand-ink);
}

/* Sub-chip (smaller, for specialties) */
.ht-page .gen-sub-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--bg-tint); border: 1px solid var(--line-1);
  color: var(--ink-1); transition: all 150ms;
}
.ht-page .gen-sub-chip:hover { border-color: var(--line-2); }
.ht-page .gen-sub-chip.active {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}

/* ---- Segmented tiles ---- */
.ht-page .gen-seg-tiles {
  display: grid; gap: 8px;
}
.ht-page .gen-seg-tile {
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line-1);
  transition: all 150ms; text-align: left;
}
.ht-page .gen-seg-tile:hover { border-color: var(--line-2); background: var(--bg-tint); }
.ht-page .gen-seg-tile.active {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}
.ht-page .gen-seg-tile .gen-seg-label { font-size: 14px; font-weight: 700; }
.ht-page .gen-seg-tile .gen-seg-hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ht-page .gen-seg-tile.active .gen-seg-hint { color: rgba(255,255,255,0.65); }
.ht-page .gen-seg-tile.active .gen-seg-label { color: #fff; }

/* ---- Fixer suggestion pills ---- */
.ht-page .gen-fixer {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  background: var(--bg-tint); border: 1px solid var(--line-1);
  color: var(--ink-1); transition: all 150ms;
}
.ht-page .gen-fixer:hover { border-color: var(--line-2); }
.ht-page .gen-fixer.active {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}

/* ---- Progress rail ---- */
.ht-page .gen-progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 16px;
}
.ht-page .gen-progress-step {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-4);
  font-size: 13px; font-weight: 600;
  transition: color 150ms;
}
.ht-page .gen-progress-step.completed { color: var(--ink-1); cursor: pointer; }
.ht-page .gen-progress-step.current { color: var(--brand); }
.ht-page .gen-progress-num {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-tint); color: var(--ink-4);
  border: 2px solid var(--line-1);
  transition: all 150ms;
}
.ht-page .gen-progress-step.completed .gen-progress-num {
  background: var(--ink-1); color: #fff; border-color: var(--ink-1);
}
.ht-page .gen-progress-step.current .gen-progress-num {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.ht-page .gen-progress-line {
  flex: 1; height: 2px; background: var(--line-1); margin: 0 12px;
}
.ht-page .gen-progress-line.filled { background: var(--ink-1); }

/* ---- Business summary tile ---- */
.ht-page .gen-business-tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; margin-bottom: 24px;
  background: var(--bg-tint); border: 1px solid var(--line-1);
  border-radius: 12px; font-size: 14px;
}
.ht-page .gen-business-tile-text { color: var(--ink-2); }
.ht-page .gen-business-tile-rate {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  color: var(--ink-1);
}

/* ---- Insight cards (Screen 2) ---- */
.ht-page .gen-insight-card {
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 24px; margin-bottom: 28px;
}
.ht-page .gen-insight-card dialog::backdrop {
  background: rgba(0,0,0,0.4);
}
.ht-page .gen-insight-card.dark {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}
.ht-page .gen-insight-title {
  font-size: 15px; font-weight: 700; color: var(--ink-1); margin-bottom: 4px;
}
.ht-page .gen-insight-card.dark .gen-insight-title { color: #fff; }
.ht-page .gen-insight-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}

/* Tier selection cards */
.ht-page .gen-tier-card {
  border: 1.5px solid var(--line-1); border-radius: 10px; padding: 14px 16px;
  cursor: pointer; transition: all 0.2s ease;
}
.ht-page .gen-tier-card:hover {
  border-color: var(--brand); background: var(--brand-tint);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(231,111,81,0.1);
}
.ht-page .gen-tier-card.active {
  border-color: var(--brand); border-width: 2px; background: var(--brand-tint);
  padding: 13px 15px;
}
.ht-page .gen-tier-header {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px;
}
.ht-page .gen-tier-name {
  font-size: 13px; font-weight: 700; color: var(--ink-1); text-transform: uppercase; letter-spacing: 0.03em;
}
.ht-page .gen-tier-card.active .gen-tier-name { color: var(--brand); }
.ht-page .gen-tier-rate {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink-1);
}
.ht-page .gen-tier-card.active .gen-tier-rate { color: var(--brand); }
.ht-page .gen-tier-desc {
  font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0;
}
.ht-page .gen-tier-card.active .gen-tier-desc { color: var(--ink-2); }
.ht-page .gen-tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 600px) {
  .ht-page .gen-tier-grid { grid-template-columns: 1fr; }
}

/* Rate bars (legacy) */
.ht-page .gen-rate-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.ht-page .gen-rate-label { font-size: 12px; color: var(--ink-3); width: 70px; flex-shrink: 0; }
.ht-page .gen-rate-bar {
  flex: 1; height: 8px; border-radius: 4px; background: var(--bg-tint);
  overflow: hidden;
}
.ht-page .gen-rate-bar-fill { height: 100%; border-radius: 4px; }
.ht-page .gen-rate-value {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ink-1); width: 60px; text-align: right;
}

/* ---- Goal play numbers ---- */
.ht-page .gen-play-num {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  background: var(--brand); color: #fff;
}

/* ---- Editor toolbar (Screen 4) ---- */
.ht-page .gen-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-radius: 12px 12px 0 0;
}
.ht-page .gen-toolbar-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
.ht-page .gen-toolbar-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--warning);
}
.ht-page .gen-toolbar-actions { display: flex; gap: 10px; }
.ht-page .gen-toolbar-btn {
  height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600;
  border-radius: 6px; border: 1px solid var(--line-1);
  background: var(--bg-raised); color: var(--ink-2);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all 150ms;
}
.ht-page .gen-toolbar-btn:hover { background: var(--bg-tint); border-color: var(--line-2); }
.ht-page .gen-toolbar-btn.primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.ht-page .gen-toolbar-btn.primary:hover { background: var(--brand-hover); }

/* ---- Proposal sheet (Screen 4) ---- */
.ht-page .gen-sheet {
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-top: none; border-radius: 0 0 12px 12px;
  padding: 36px 48px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
@media (max-width: 639px) {
  .ht-page .gen-sheet { padding: 20px 16px; }
}
.ht-page .gen-sheet-letterhead {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line-1);
}
.ht-page .gen-sheet-biz {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--ink-1);
}
.ht-page .gen-sheet-biz-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ht-page .gen-sheet-num {
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-3);
}
.ht-page .gen-sheet-body {
  font-size: 14px; line-height: 1.65; color: var(--ink-1);
  margin-bottom: 28px; min-height: 120px;
}

/* Line items table */
.ht-page .gen-items-table {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
}
.ht-page .gen-items-table thead th {
  background: var(--bg-tint); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  padding: 10px 16px; text-align: left;
}
.ht-page .gen-items-table thead th:last-child { text-align: right; }
.ht-page .gen-items-table tbody td {
  padding: 12px 16px; border-top: 1px solid var(--line-1);
  font-size: 13px; color: var(--ink-1);
}
.ht-page .gen-items-table tbody td:last-child {
  text-align: right; font-family: var(--font-mono); font-weight: 600;
}
.ht-page .gen-items-total {
  display: flex; justify-content: flex-end; gap: 32px;
  padding: 12px 16px; font-weight: 700;
  border-top: 2px solid var(--ink-1);
}
.ht-page .gen-items-total-amount {
  font-family: var(--font-mono); font-size: 18px;
}

/* Terms */
.ht-page .gen-sheet-terms {
  background: var(--bg-tint); border-radius: 8px;
  padding: 14px 16px; font-size: 12px; color: var(--ink-3);
  line-height: 1.5;
}

/* ---- Signup gate modal ---- */
.ht-page .gen-gate-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15,23,42,0.55);
  display: flex; align-items: center; justify-content: center;
}
.ht-page .gen-gate-modal {
  background: var(--bg-raised); border-radius: 14px;
  padding: 28px; max-width: 420px; width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  margin: 16px;
}
.ht-page .gen-gate-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.ht-page .gen-gate-heading {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  color: var(--ink-1); margin-bottom: 8px;
}
.ht-page .gen-gate-sub {
  font-size: 14px; color: var(--ink-3); margin-bottom: 20px;
}
.ht-page .gen-gate-input {
  width: 100%; padding: 12px 14px; font-size: 14px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg-raised); color: var(--ink-1);
  margin-bottom: 12px;
}
.ht-page .gen-gate-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* ---- Gen footer actions ---- */
.ht-page .gen-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line-1);
}
.ht-page .gen-footer-info {
  font-size: 13px; color: var(--ink-3); max-width: 400px;
}

/* ---- Gen 2-col layout ---- */
.ht-page .gen-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 639px) {
  .ht-page .gen-2col { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Gen textarea ---- */
.ht-page textarea.gen-textarea,
.ht-page .gen-textarea {
  width: 100%; padding: 12px 14px;
  /* 16px on mobile prevents iOS focus zoom (#224 c8); 13.5px keeps
     desktop density close to the pre-c8 look. */
  font-size: 16px;
  font-family: var(--font-sans); color: var(--ink-1);
  background: var(--bg); border: 1px solid var(--line-1);
  border-radius: 10px; resize: vertical; min-height: 100px;
}
.ht-page textarea.gen-textarea:focus,
.ht-page .gen-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
@media (min-width: 640px) {
  .ht-page textarea.gen-textarea,
  .ht-page .gen-textarea { font-size: 13.5px; }
}

/* ---- Gen input ---- */
.ht-page input.gen-input,
.ht-page .gen-input {
  width: 100%; padding: 12px 14px;
  /* iOS focus zoom protection at < 640px; see gen-textarea note. */
  font-size: 16px;
  font-family: var(--font-sans); color: var(--ink-1);
  background: var(--bg-raised); border: 1px solid var(--line-1);
  border-radius: 8px;
}
.ht-page input.gen-input:focus,
.ht-page .gen-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
@media (min-width: 640px) {
  .ht-page input.gen-input,
  .ht-page .gen-input { font-size: 14px; }
}

/* ---- Goal radio buttons ---- */
.ht-page .gen-goal {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: 8px; cursor: pointer;
  background: var(--brand-tint); border: 1px solid var(--brand-tint);
  transition: all 150ms; text-align: left;
}
.ht-page .gen-goal:hover { border-color: var(--brand); }
.ht-page .gen-goal.active { border-color: var(--brand); }
.ht-page .gen-goal-dot {
  width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0;
  border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.ht-page .gen-goal.active .gen-goal-dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--brand);
}
.ht-page .gen-goal-label { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.ht-page .gen-goal-hint { font-size: 12px; color: var(--ink-3); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ht-page .hero-dash-wrap { transform: none; }
}

/* ============================================================
   WORKSHOP — Two-pane proposal editor (Screen 4 V2)
   ============================================================ */

/* ---- Top bar ---- */
.ht-page .gen-workshop-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 12px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line-1);
}
.ht-page .gen-workshop-topbar-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.ht-page .gen-workshop-topbar-badge {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink-1); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0; text-decoration: none;
}
.ht-page .gen-workshop-topbar-brand {
  font-weight: 600; font-size: 13px; color: var(--ink-1);
  text-decoration: none; flex-shrink: 0;
}
.ht-page .gen-workshop-topbar-divider {
  width: 1px; height: 18px; background: var(--line-2); flex-shrink: 0;
}
.ht-page .gen-workshop-topbar-draft {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
  background: var(--warning-tint); color: var(--warning-ink);
  flex-shrink: 0;
}
.ht-page .gen-workshop-topbar-meta {
  font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ht-page .gen-workshop-topbar-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.ht-page .gen-workshop-topbar-signin {
  font-size: 13px; color: var(--ink-2);
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line-2); background: transparent;
  transition: background 120ms;
}
.ht-page .gen-workshop-topbar-signin:hover { background: var(--bg-tint); }
.ht-page .gen-workshop-topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; border: none;
  transition: background 120ms;
}
.ht-page .gen-workshop-topbar-cta:hover { background: var(--brand-hover); }
@media (max-width: 639px) {
  .ht-page .gen-workshop-topbar { padding: 8px 16px; }
  .ht-page .gen-workshop-topbar-meta { display: none; }
  .ht-page .gen-workshop-topbar-signin { display: none; }
}

/* ---- Two-pane grid ---- */
.ht-page .gen-workshop-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: calc(100vh - 57px);
}
@media (max-width: 768px) {
  .ht-page .gen-workshop-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Document pane (left) ---- */
.ht-page .gen-workshop-doc-area {
  padding: 24px;
  border-right: 1px solid var(--line-1);
}
.ht-page .gen-workshop-doc {
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ht-page .gen-workshop-doc-inner {
  position: relative;
  padding: 28px 36px 24px;
}
.ht-page .gen-workshop-doc::before {
  content: 'DRAFT';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: var(--font-display);
  font-size: 200px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-1);
  opacity: 0.05;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}
.ht-page .gen-workshop-doc-inner > * { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .ht-page .gen-workshop-doc-area { padding: 16px; border-right: none; }
  .ht-page .gen-workshop-doc-inner { padding: 24px 20px 24px; }
  .ht-page .gen-workshop-doc::before { font-size: 100px; }
}

/* ---- Right rail ---- */
.ht-page .gen-workshop-rail {
  background: var(--bg-raised);
  display: flex; flex-direction: column;
  position: sticky; top: 57px;
  height: calc(100vh - 57px);
  overflow-y: auto;
}
@media (max-width: 768px) {
  .ht-page .gen-workshop-rail {
    position: static;
    height: auto;
    border-top: 1px solid var(--line-1);
  }
}
.ht-page .gen-workshop-rail-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-sunken);
  position: sticky; top: 0; z-index: 1;
}
.ht-page .gen-workshop-rail-title {
  font-size: 13px; font-weight: 600; color: var(--ink-1);
  margin: 0;
}
.ht-page .gen-workshop-rail-sub {
  font-size: 11px; color: var(--ink-3); line-height: 1.4;
  margin: 2px 0 0;
}
.ht-page .gen-workshop-rail-card {
  margin: 10px 12px 0;
  background: var(--bg-raised);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ht-page .gen-workshop-rail-card-header {
  padding: 8px 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-1);
}
.ht-page .gen-workshop-rail-section {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
}
.ht-page .gen-workshop-rail-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 5px;
}
.ht-page .gen-workshop-rail-hint {
  font-size: 11px; color: var(--ink-4); margin-top: 4px;
  font-style: italic;
}
.ht-page .gen-workshop-rail-edit-hint {
  font-size: 11px; color: var(--ink-4);
  cursor: not-allowed;
  text-decoration: underline; text-decoration-style: dotted;
}
.ht-page .gen-workshop-rail-select {
  width: 100%; padding: 6px 10px; font-size: 13px;
  font-family: var(--font-sans); color: var(--ink-2);
  background: var(--bg-raised);
  border: 1px solid var(--line-2) !important;
  border-radius: 6px !important; cursor: pointer;
}
.ht-page .gen-workshop-rail-select:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-tint) !important;
}
.ht-page .gen-workshop-rail-cta {
  padding: 16px;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line-2);
  margin-top: auto;
}
.ht-page .gen-workshop-rail-cta p {
  font-size: 12px; color: var(--ink-2); margin: 0 0 8px;
  line-height: 1.4;
}

/* ---- Editable field affordance (dashed-underline click-to-edit) ---- */
.ht-page .gen-edit-field {
  display: inline-block;
  min-width: 40px;
  padding: 1px 0;
  border: 0 none transparent !important;
  border-bottom: 1px dashed var(--line-2) !important;
  color: var(--ink-2);
  cursor: text;
  transition: background 120ms, border-color 120ms;
}
.ht-page .gen-edit-field:hover {
  background: var(--bg-tint);
}
.ht-page .gen-edit-field:focus {
  outline: none;
  color: var(--ink-1);
  background: var(--brand-tint);
  border-bottom: 1px solid var(--brand) !important;
}

/* ---- Inline item inputs (seamless dashed-underline pattern) ---- */
/* Override Tailwind preflight AND dark-mode input styles from base_blue.html */
.ht-page .gen-item-input {
  width: 100% !important; padding: 2px 0 !important; font-size: 14px !important;
  font-family: var(--font-sans) !important; color: var(--ink-2) !important;
  background: transparent !important; background-color: transparent !important;
  border: 0 none transparent !important;
  border-bottom: 1px dashed var(--line-2) !important;
  border-radius: 0 !important; box-shadow: none !important;
  -webkit-appearance: none !important; appearance: none !important;
  transition: background 120ms;
}
.ht-page .gen-item-input:hover {
  background: var(--bg-tint) !important; background-color: var(--bg-tint) !important;
}
.ht-page .gen-item-input:focus {
  outline: none !important;
  color: var(--ink-1) !important;
  background: var(--brand-tint) !important; background-color: var(--brand-tint) !important;
  border: 0 none transparent !important;
  border-bottom: 1px solid var(--brand) !important;
}
/* iOS focus-zoom protection for workshop editable surfaces (#224 c8).
   Inline `style="font-size: 12px"` / `13px` on the scope textarea,
   line-item description, and money edit fields would trigger Safari's
   focus zoom on mobile. Override to 16px below 640px without touching
   the desktop density. Applies to all <input>, <textarea>, and
   contenteditable spans inside the workshop document. */
@media (max-width: 639px) {
  .ht-page .gen-workshop-doc input,
  .ht-page .gen-workshop-doc textarea,
  .ht-page .gen-workshop-doc [contenteditable="true"] {
    font-size: 16px !important;
  }
}

.ht-page .gen-item-input.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.ht-page .gen-item-input::placeholder {
  color: var(--ink-4) !important;
}
/* Hide number input spinners */
.ht-page .gen-item-input[type="number"]::-webkit-inner-spin-button,
.ht-page .gen-item-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.ht-page .gen-item-input[type="number"] { -moz-appearance: textfield; }
/* Also neutralize dark-mode for rail dropdowns inside workshop */
.ht-page .gen-workshop-rail-select {
  background-color: var(--bg-raised) !important;
  color: var(--ink-2) !important;
  border: 1px solid var(--line-2) !important;
}

/* ---- Estimate type pills (segmented control) ---- */
.ht-page .gen-type-group {
  display: flex; gap: 0;
  padding: 3px;
  background: var(--bg-tint) !important;
  border: 1px solid var(--line-1);
  border-radius: 8px;
}
.ht-page .gen-type-pill {
  padding: 8px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  background: transparent !important; border: none !important;
  color: var(--ink-3) !important;
  transition: all 150ms;
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.2;
}
.ht-page .gen-type-pill:hover {
  background: rgba(255,255,255,0.6) !important;
  color: var(--ink-2) !important;
}
.ht-page .gen-type-pill.active {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  font-weight: 600;
  color: var(--brand) !important;
}
.ht-page .gen-type-pill.active:hover {
  background: #fff !important;
  color: var(--brand) !important;
}
.ht-page .gen-type-pill-sub {
  font-size: 10px; color: var(--ink-4) !important; font-weight: 400;
}
.ht-page .gen-type-pill.active .gen-type-pill-sub {
  color: var(--brand) !important; opacity: 0.7;
}

/* ---- Document section label ---- */
.ht-page .gen-workshop-doc-section {
  margin-bottom: 22px;
}
.ht-page .gen-workshop-doc-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 6px;
}
/* Terms sections (border-top separator) */
.ht-page .gen-workshop-doc-terms {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
}

/* Workshop "Based on" composition summary (#224 c7) — read-only chips
   that mirror the user's /gen/ step 3 selections. */
.ht-page .workshop-comp-summary {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
}
.ht-page .workshop-comp-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ht-page .workshop-comp-edit-link {
  font-size: 11px;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.ht-page .workshop-comp-edit-link:hover { color: var(--brand-hover); }
.ht-page .workshop-comp-meta {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 10px;
}
.ht-page .workshop-comp-job + .workshop-comp-job { margin-top: 10px; }
.ht-page .workshop-comp-job-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.ht-page .workshop-comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ht-page .workshop-comp-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid transparent;
}
.ht-page .workshop-comp-chip-include {
  background: var(--comp-include-bg);
  color: var(--comp-include-fg);
  border-color: var(--comp-include-border);
}
.ht-page .workshop-comp-chip-excluded {
  background: var(--bg-raised);
  color: var(--ink-4);
  border-color: var(--line-2);
  text-decoration: line-through;
}
.ht-page .workshop-comp-chip-addon {
  background: var(--comp-addon-on-bg);
  color: #fff;
  border-color: var(--comp-addon-on-bg);
  font-weight: 500;
}

/* ---- Neutralize Tailwind dark-mode for entire workshop ---- */
/* base_blue.html applies .dark input/textarea/select { bg: dark-slate }
   but the workshop uses its own design tokens on a light background. */
.dark .ht-page input,
.dark .ht-page textarea,
.dark .ht-page select {
  background-color: transparent !important;
  border-color: var(--line-2) !important;
  color: var(--ink-2) !important;
}
.dark .ht-page input::placeholder,
.dark .ht-page textarea::placeholder {
  color: var(--ink-4) !important;
}
.dark .ht-page label {
  color: var(--ink-2) !important;
}
/* Neutralize dark-mode on buttons, divs, spans inside workshop */
.dark .ht-page,
.dark .ht-page div,
.dark .ht-page span,
.dark .ht-page p,
.dark .ht-page button,
.dark .ht-page a,
.dark .ht-page aside,
.dark .ht-page h1, .dark .ht-page h2, .dark .ht-page h3 {
  color: inherit;
}
.dark .ht-page {
  color: var(--ink-1);
}

/* ---- Save status indicator ---- */
.ht-page .gen-save-status {
  font-size: 12px; color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 300ms;
}
