/* ==========================================================================
   css/website.css — Agent C (Website Tab)
   
   Visual design strictly following DESIGN.md and mycolor.space sibling aesthetic:
   - Montserrat typography throughout
   - Pure white #fff background with generous vertical whitespace
   - Centered titles (800-900 weight, 20-22px, #1b1b1b) and grey sublines (#888, 14px)
   - Controls as pills (border-radius: 999px, soft shadow) & letter-spaced text links
   - Mock website preview in a large rounded (16px) frame with soft big shadow
     (0 30px 60px rgba(0,0,0,.12)) and browser dots bar in #f3f3f3
   - Role palette using pure square swatches (~112px desktop, 4px radius, 5px gap)
     in an 8x2 grid on desktop, with role name above hex and circular pencil button to edit
   - Minimal contrast table: NO colored badges, two overlapping circles, big ratio "18.9",
     colored level text (#00a383 pass, #e5484d fail), grey APCA Lc, teal text-link "FIX"
   - Client Site Tokens: 5 square swatches, dark #1b1b1b code block with COPY CSS pill
   - Mobile (<640px): wide bars (~65% width x 72px) with hex to the right, no scroll at 360px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root View Container & Typography
   -------------------------------------------------------------------------- */
.website-view {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #1b1b1b;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 100px 20px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.website-section {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.website-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1b1b1b;
  text-align: center;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.website-section-subline {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888888;
  text-align: center;
  margin: 0 0 32px 0;
  letter-spacing: 0.01em;
}

.website-hairline {
  width: 100%;
  max-width: 920px;
  height: 1px;
  background-color: #eeeeee;
  border: none;
  margin: 56px auto;
}

/* --------------------------------------------------------------------------
   2. Controls Section (Mode Pills, CVD Links, Seed Assignment)
   -------------------------------------------------------------------------- */
.website-header-section {
  padding-top: 8px;
}

.website-mode-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.website-pill-btn {
  height: 44px;
  border-radius: 999px;
  padding: 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.website-pill-btn.pill-teal {
  background-color: #00c9a7;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.website-pill-btn.pill-teal:hover {
  background-color: #00a383;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.website-pill-btn.pill-ghost {
  background: transparent;
  border: 2px solid #dddddd;
  color: #555555;
}

.website-pill-btn.pill-ghost:hover {
  border-color: #bbbbbb;
  color: #1b1b1b;
}

/* CVD uppercase text links */
.website-cvd-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.website-cvd-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.website-cvd-link:hover {
  color: #1b1b1b;
}

.website-cvd-link.is-active {
  color: #1b1b1b;
  border-bottom-color: #00c9a7;
  font-weight: 700;
}

.website-cvd-sep {
  color: #cccccc;
  font-size: 11px;
  user-select: none;
}

/* Seed Assignment Pill Selects */
.website-assign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.website-assign-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.website-assign-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888888;
}

.website-pill-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  color: #1b1b1b;
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: 6px 30px 6px 14px;
  height: 38px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.website-pill-select:focus {
  outline: none;
  border-color: #00c9a7;
  box-shadow: 0 0 0 2px rgba(0, 201, 167, 0.2);
}

.website-reset-wrap {
  display: inline-flex;
  align-items: center;
}

.website-reset-overrides-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e5484d;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 10px;
  transition: opacity 0.15s ease;
}

.website-reset-overrides-link:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   3. Live Mock Website Preview (Large Rounded Shadow Frame)
   -------------------------------------------------------------------------- */
.mock-preview-section {
  width: 100%;
}

.mock-browser-frame {
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8e8e8;
  background-color: #ffffff;
  text-align: left;
}

.mock-browser-bar {
  background-color: #f3f3f3;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  user-select: none;
  box-sizing: border-box;
}

.mock-browser-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 70px;
}

.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mock-dot.red { background-color: #ff5f56; }
.mock-dot.yellow { background-color: #ffbd2e; }
.mock-dot.green { background-color: #27c93f; }

.mock-browser-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 4px 18px;
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

.mock-browser-address svg {
  color: #888888;
}

.mock-browser-meta {
  width: 70px;
  text-align: right;
}

.mock-mode-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888888;
}

/* --------------------------------------------------------------------------
   Scoped Mock Site Content (Summit Ridge Roofing)
   Strictly references --mock-* CSS variables!
   -------------------------------------------------------------------------- */
.mock-site-viewport {
  background-color: var(--mock-bg);
  color: var(--mock-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Mock Nav */
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background-color: var(--mock-surface);
  border-bottom: 1px solid var(--mock-border);
  box-sizing: border-box;
}

.mock-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--mock-primary);
  color: var(--mock-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
}

.mock-brand-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--mock-text);
  letter-spacing: -0.01em;
}

.mock-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mock-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mock-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mock-nav-link:hover {
  color: var(--mock-text);
}

.mock-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: 6px;
  background-color: var(--mock-primary);
  color: var(--mock-on-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid var(--mock-primary);
  cursor: pointer;
  transition: filter 0.15s ease;
}

.mock-btn-primary:hover {
  filter: brightness(1.08);
}

.mock-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: 6px;
  background-color: var(--mock-surface);
  color: var(--mock-text);
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid var(--mock-border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mock-btn-secondary:hover {
  background-color: var(--mock-surface-alt);
}

.mock-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 6px;
  background-color: var(--mock-accent);
  color: var(--mock-on-accent);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--mock-accent);
  cursor: pointer;
  transition: filter 0.15s ease;
}

.mock-btn-accent:hover {
  filter: brightness(1.08);
}

/* Mock Hero */
.mock-hero {
  padding: 48px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.mock-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: var(--mock-surface-alt);
  border: 1px solid var(--mock-border);
  color: var(--mock-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mock-hero-title {
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--mock-text);
  max-width: 680px;
  margin: 0;
  text-align: center;
}

.mock-hero-subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mock-text-muted);
  max-width: 580px;
  margin: 0;
  text-align: center;
}

.mock-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.mock-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mock-border);
  width: 100%;
  max-width: 600px;
}

.mock-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mock-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mock-primary);
  font-family: var(--font-mono, monospace);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mock-stat-label {
  font-size: 0.75rem;
  color: var(--mock-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mock Features Grid */
.mock-features-section {
  padding: 0 28px 40px 28px;
  box-sizing: border-box;
}

.mock-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.mock-card {
  padding: 24px;
  background-color: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  text-align: left;
}

.mock-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--mock-surface-alt);
  color: var(--mock-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.mock-card-icon svg {
  display: block;
}

.mock-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mock-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.mock-card-desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--mock-text-muted);
  margin: 0;
}

/* Mock Lead Inquiry Form */
.mock-lead-section {
  padding: 0 28px 40px 28px;
  box-sizing: border-box;
}

.mock-lead-card {
  padding: 32px 24px;
  background-color: var(--mock-surface-alt);
  border: 1px solid var(--mock-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  box-sizing: border-box;
}

.mock-lead-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mock-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.mock-lead-desc {
  font-size: 0.875rem;
  color: var(--mock-text-muted);
  max-width: 480px;
  margin: 0;
}

.mock-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-top: 4px;
}

.mock-input {
  flex: 1 1 200px;
  min-height: 42px;
  padding: 8px 14px;
  background-color: var(--mock-surface);
  color: var(--mock-text);
  border: 1px solid var(--mock-border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.mock-input:focus {
  border-color: var(--mock-primary);
}

.mock-form-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mock-success);
}

.mock-form-reassurance svg {
  display: block;
  flex-shrink: 0;
}

/* Mock Testimonial */
.mock-testimonial-section {
  padding: 0 28px 40px 28px;
  box-sizing: border-box;
}

.mock-testimonial-card {
  padding: 28px;
  background-color: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  box-sizing: border-box;
}

.mock-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mock-warning);
}

.mock-stars svg {
  display: block;
}

.mock-quote {
  font-size: 0.9375rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--mock-text);
  margin: 0;
}

.mock-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mock-author-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--mock-secondary);
  color: var(--mock-on-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.mock-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mock-text);
}

.mock-author-role {
  font-size: 0.75rem;
  color: var(--mock-text-muted);
}

.mock-verified-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--mock-info);
  background-color: var(--mock-surface-alt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--mock-border);
}

/* Mock Footer */
.mock-footer {
  padding: 24px 28px;
  background-color: var(--mock-surface);
  border-top: 1px solid var(--mock-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.mock-footer-brand {
  font-size: 0.8125rem;
  color: var(--mock-text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-footer-brand strong {
  color: var(--mock-text);
}

.mock-footer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--mock-text-muted);
}

.mock-footer-meta svg {
  display: block;
  flex-shrink: 0;
}

.mock-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-footer-link {
  font-size: 0.75rem;
  color: var(--mock-text-muted);
  text-decoration: none;
}

.mock-footer-link:hover {
  color: var(--mock-text);
}

/* --------------------------------------------------------------------------
   4. Semantic Role Palette Swatches (Square Swatches Rows)
   8 columns x 2 rows on desktop!
   -------------------------------------------------------------------------- */
.role-palette-section {
  width: 100%;
}

.role-palette-grid {
  display: grid;
  grid-template-columns: repeat(8, 112px);
  justify-content: center;
  gap: 18px 8px;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 980px) and (min-width: 641px) {
  .role-palette-grid {
    grid-template-columns: repeat(4, 112px);
    gap: 18px 12px;
  }
}

/* Swatch Pencil & Reset controls attached to swatch-meta */
.swatch-pencil-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.swatch-pencil-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  color: #777777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.swatch-pencil-btn:hover {
  border-color: #00c9a7;
  color: #00c9a7;
  background-color: #ffffff;
  transform: scale(1.1);
}

.swatch-reset-mini-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px dashed #ef4444;
  background-color: #ffffff;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
  padding: 0;
}

.swatch-reset-mini-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
}

.swatch-color-picker-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   5. Minimal Contrast Audit Table
   No colored badge pills! Overlapping circles, big ratios, letter-spaced text.
   -------------------------------------------------------------------------- */
.contrast-section {
  width: 100%;
}

.contrast-summary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
  flex-wrap: wrap;
}

.contrast-summary-all-pass {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00a383;
}

.contrast-summary-fails {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5484d;
}

.contrast-fix-all-link {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00c9a7;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.contrast-fix-all-link:hover {
  color: #00a383;
}

.contrast-table-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

.contrast-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888888;
  padding: 14px 12px;
  border-bottom: 1px solid #eeeeee;
  white-space: nowrap;
}

.contrast-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}

.contrast-row:hover td {
  background-color: #fafafa;
}

.contrast-col-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contrast-circles-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 32px;
  height: 20px;
  flex-shrink: 0;
}

.contrast-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: inline-block;
}

.contrast-circle.fg-circle {
  margin-left: -7px;
  z-index: 2;
}

.contrast-pair-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contrast-pair-title {
  font-size: 13px;
  font-weight: 600;
  color: #1b1b1b;
}

.contrast-pair-sub {
  font-size: 10px;
  font-weight: 500;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contrast-col-ratio {
  white-space: nowrap;
}

.contrast-ratio-val {
  font-size: 17px;
  font-weight: 700;
  color: #1b1b1b;
  font-family: 'Montserrat', monospace;
}

.contrast-ratio-sub {
  font-size: 11px;
  color: #888888;
  font-weight: 500;
}

.contrast-level-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.contrast-level-text.pass {
  color: #00a383;
}

.contrast-level-text.fail {
  color: #e5484d;
}

.contrast-apca-text {
  font-size: 12px;
  font-weight: 500;
  color: #888888;
  font-family: ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}

.contrast-col-action {
  text-align: right;
  white-space: nowrap;
}

.contrast-fix-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #00c9a7;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.contrast-fix-link:hover {
  color: #00a383;
}

/* --------------------------------------------------------------------------
   6. Nathan's 5-Token Client Palette Section (Swatches + Dark Code Block)
   -------------------------------------------------------------------------- */
.client-tokens-section {
  width: 100%;
}

.client-tokens-swatches {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 0 auto 32px auto;
  box-sizing: border-box;
}

.client-tokens-code-box {
  width: 100%;
  max-width: 820px;
  margin: 32px auto 0 auto;
  background-color: #1b1b1b;
  border-radius: 12px;
  border-left: 3px solid #00c9a7;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  text-align: left;
}

.client-tokens-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.client-tokens-code-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888888;
}

.client-copy-css-pill {
  background-color: #00c9a7;
  color: #ffffff;
  border-radius: 999px;
  height: 44px;
  padding: 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.client-copy-css-pill:hover {
  background-color: #00a383;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.client-copy-css-pill:active {
  transform: translateY(0);
}

.client-tokens-code-pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #ffffff;
  overflow-x: auto;
  white-space: pre;
}

/* --------------------------------------------------------------------------
   7. Mobile Responsiveness (<640px)
   Matches mycolor.space phone layout:
   - Palette swatches stack vertically as wide bars (~65% width x 72px)
   - Hex code & label to the right
   - Titles left-aligned with bars
   - No horizontal page scroll down to 360px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .website-view {
    padding: 32px 14px 60px 14px;
  }

  .website-section-title {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .website-section-subline {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .website-hairline {
    margin: 40px auto;
  }

  .website-mode-pills {
    margin-bottom: 20px;
  }

  .website-pill-btn {
    height: 40px;
    padding: 0 22px;
    font-size: 10px;
  }

  .website-cvd-links {
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .website-cvd-link {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 2px 0;
  }

  .website-cvd-sep {
    font-size: 9px;
  }

  .website-assign-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .website-assign-item {
    width: 260px;
    justify-content: space-between;
  }

  .website-pill-select {
    flex: 1;
    max-width: 175px;
    font-size: 10px;
    padding: 4px 26px 4px 10px;
  }

  /* Mock browser frame */
  .mock-browser-frame {
    border-radius: 12px;
  }

  .mock-browser-bar {
    padding: 10px 14px;
  }

  .mock-browser-address {
    padding: 3px 12px;
    font-size: 11px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mock-browser-meta {
    display: none;
  }

  .mock-hero {
    padding: 36px 14px;
  }

  .mock-hero-title {
    font-size: 1.5rem;
  }

  .mock-hero-stats {
    gap: 18px;
  }

  .mock-features-section,
  .mock-lead-section,
  .mock-testimonial-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mock-nav-links {
    display: none;
  }

  .mock-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Role swatches & Client tokens swatches: stack vertically as wide bars */
  .role-palette-section .website-section-title,
  .client-tokens-section .website-section-title {
    text-align: left;
    max-width: 340px;
    margin: 0 auto 6px auto;
  }

  .role-palette-section .website-section-subline,
  .client-tokens-section .website-section-subline {
    text-align: left;
    max-width: 340px;
    margin: 0 auto 24px auto;
  }

  .role-palette-grid,
  .client-tokens-swatches {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 340px;
    margin: 0 auto;
    gap: 5px;
  }

  /* Swatch pencil button on phone */
  .swatch-pencil-wrap {
    justify-content: flex-start;
    margin-top: 4px;
  }

  /* Contrast Table on Phone */
  .contrast-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contrast-table {
    font-size: 11px;
    width: 100%;
  }

  .contrast-table th {
    padding: 8px 3px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .contrast-table td {
    padding: 8px 3px;
  }

  .contrast-col-pair {
    gap: 6px;
    max-width: 130px;
  }

  .contrast-circles-wrap {
    width: 22px;
    height: 14px;
  }

  .contrast-circle {
    width: 13px;
    height: 13px;
  }

  .contrast-circle.fg-circle {
    margin-left: -4px;
  }

  .contrast-pair-title {
    font-size: 11px;
    line-height: 1.2;
  }

  .contrast-pair-sub {
    font-size: 8px;
  }

  .contrast-ratio-val {
    font-size: 13px;
  }

  .contrast-ratio-sub {
    font-size: 9px;
  }

  .contrast-level-text {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .contrast-apca-text {
    font-size: 9px;
  }

  .contrast-fix-link {
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 2px 2px;
  }

  /* Client Tokens Code Box on Phone */
  .client-tokens-code-box {
    padding: 18px 14px;
    border-radius: 8px;
  }

  .client-tokens-code-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .client-copy-css-pill {
    height: 38px;
    padding: 0 20px;
    font-size: 10px;
  }

  .client-tokens-code-pre {
    font-size: 11px;
  }
}
