/* Matrix Workshops: homepage section, CTA block and request modal. Uses the site's tokens and .btn classes. */
#workshops, [id^="workshops-"] { scroll-margin-top: 88px; }

/* Section */
.ws-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ws-badges > span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--border); background: var(--bg-surface); padding: 6px 14px; }

/* Tier cards: pricing-card layout, secondary style, no "most popular" tag */
.ws-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 8px; }
.ws-tier { background: var(--bg-surface); padding: 40px 34px; display: flex; flex-direction: column; }
.ws-tier .pname { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ws-tier .wdur { font-size: 13px; color: var(--blue-400); margin-bottom: 18px; }
.ws-tier .pamt { margin-bottom: 14px; }
.ws-tier .pamt .v { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ws-tier .wtag { font-size: 15px; font-weight: 500; color: var(--text-primary); line-height: 1.4; margin-bottom: 16px; }
.ws-tier .wdesc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1 1 0%; }
.ws-tier .wfor { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.ws-tier .wfor b { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; color: var(--text-muted); display: block; margin-bottom: 4px; }
.ws-tier .btn { margin-top: 28px; }
.ws-lab { text-align: center; font-size: 15px; color: var(--text-secondary); margin-top: 32px; }
.ws-lab a { color: var(--blue-400); }
.ws-foot { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* How it runs + data */
.ws-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 56px; font-size: 14px; color: var(--text-secondary); }
.ws-steps li { list-style: none; display: flex; align-items: center; gap: 14px; }
.ws-steps li + li::before { content: "→"; color: var(--blue-500); }
.ws-steps li b { color: var(--text-primary); font-weight: 500; }
.ws-data { margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.ws-data a { color: var(--blue-400); }
.ws-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 44px; }
.ws-cta a.ws-link { font-size: 14px; color: var(--text-secondary); }
.ws-cta a.ws-link:hover { color: var(--blue-400); }

/* Text links under existing cards and demos */
.ws-setup { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--blue-400); background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.ws-setup:hover { text-decoration: underline; }
.pricing-ws { text-align: center; margin-top: 18px; font-size: 15px; color: var(--text-secondary); }
.pricing-ws a { color: var(--blue-400); font-weight: 500; }
.final .final-sub a + a { margin-left: 22px; }

/* /demo and /tour CTA block */
.ws-promo { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
.ws-promo h2 { font-size: 36px; letter-spacing: -.03em; }
.ws-promo p { font-size: 17px; color: var(--text-secondary); margin: 16px auto 32px; max-width: 560px; }
.ws-promo .ws-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Modal */
body.ws-lock { overflow: hidden; }
.ws-modal { --bg-base: #07091A; --bg-surface: #0C1226; --bg-elevated: #111D3C; --border: #1A2B45; --text-primary: #EDF1FF; --text-secondary: #8899BB; --text-muted: #7385A8; --blue-500: #1A6EF5; --blue-400: #4D90FF; position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 3vmin; overflow-y: auto; font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--text-primary); }
.ws-modal.open { display: flex; }
.ws-backdrop { position: fixed; inset: 0; background: rgba(3,5,14,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ws-dialog { position: relative; width: min(96vw, 640px); max-height: 94vh; overflow-y: auto; margin: auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px 30px 26px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(90,120,180,.25); outline: none; }
.ws-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer; background: rgba(7,9,26,.72); color: var(--text-primary); font-size: 26px; line-height: 1; font-family: inherit; display: flex; align-items: center; justify-content: center; }
.ws-close:hover { background: rgba(26,110,245,.45); }
.ws-mtitle { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; padding-right: 48px; }
.ws-intro { font-size: 15px; color: #B4C1DB; margin: 10px 0 22px; }
.ws-field { margin-bottom: 16px; }
.ws-field label, .ws-systems legend { display: block; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 8px; }
.ws-req { color: var(--blue-400); }
.ws-field input, .ws-field select, .ws-field textarea { width: 100%; background: var(--bg-base); border: 1px solid #2C4468; color: var(--text-primary); padding: 11px 13px; font-size: 15px; font-family: inherit; border-radius: 0; }
.ws-field textarea { resize: vertical; }
.ws-field input:hover, .ws-field select:hover, .ws-field textarea:hover { border-color: #0E3A8A; }
.ws-field input:focus-visible, .ws-field select:focus-visible, .ws-field textarea:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; border-color: var(--blue-500); }
.ws-field [aria-invalid="true"] { border-color: #ff8a8a; }
.ws-ferr, .ws-error { font-size: 13px; color: #ff8a8a; margin-top: 6px; }
.ws-error a { color: inherit; text-decoration: underline; }
.ws-hint, .ws-note { font-size: 13px; color: var(--blue-400); margin: -6px 0 16px; }
.ws-note { color: var(--text-muted); margin: 8px 0 0; }
.ws-systems { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.ws-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.ws-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.ws-check input { width: 16px; height: 16px; accent-color: var(--blue-500); }
.ws-check input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.ws-form .btn { margin-top: 8px; }
.ws-form .btn:disabled { opacity: .6; cursor: default; }
.ws-thanks p { font-size: 17px; line-height: 1.55; margin: 26px 0; }

@media (max-width: 1024px) { .ws-tiers { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ws-tier { padding: 32px 24px; }
  .ws-promo h2 { font-size: 28px; }
  .ws-checks { grid-template-columns: 1fr; }
  .ws-modal { padding: 0; align-items: flex-start; }
  .ws-dialog { width: 100vw; max-height: none; min-height: 100vh; border-radius: 0; padding: 24px 16px; }
  .final .final-sub a + a { display: block; margin: 12px 0 0; }
}

/* Button base for pages that don't ship the site's .btn styles (e.g. /tour) */
.ws-modal .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 500; padding: 13px 26px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.ws-modal .btn-primary { background: var(--blue-500); color: #fff; }
.ws-modal .btn-primary:hover { background: var(--blue-400); }
.ws-modal .btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border); }
.ws-modal .btn-secondary:hover { border-color: var(--blue-500); }
.demo-card .ws-setup { align-self: flex-start; }
