/* SlateRoom case study. Loaded after home-haptic.css and pages-haptic.css.
   Section 03 illustrations use SlateRoom's public tokens (site/src/styles.css): dark tiles,
   #f5f5f7 ink, #6ec2ff accent, 20px cards, 12px media, SF Pro. Built in HTML/CSS/SVG. */

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.pill-btn--line:hover { background: var(--white); color: var(--black); box-shadow: none; }

/* Decision cards (section 02) */
.decisions { --cols: 3; }
.decisions h3 { margin-top: 40px; }

/* ---------- Section 03: experience illustrations ---------- */
.sr { --sr-bg: #0b0b0b; --sr-tile: #141414; --sr-lift: #1d1d1f; --sr-ink: #f5f5f7; --sr-ink-2: #d2d2d7; --sr-muted: #a1a1a6; --sr-faint: #6e6e73;
      --sr-line: rgba(245, 245, 247, 0.12); --sr-line-2: rgba(245, 245, 247, 0.24); --sr-accent: #6ec2ff; --sr-warn: #ffb340;
      --sr-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif; }
.sr-steps { display: flex; flex-direction: column; gap: 120px; margin-top: 96px; }
.sr-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 64px; align-items: center; }
.sr-step__text { align-self: center; }
.sr-step__num { font-size: 14px; letter-spacing: -0.02em; color: var(--muted); }
.sr-step__title { margin: 16px 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -0.05em; }
.sr-step__copy { max-width: 46ch; font-size: 18px; line-height: 1.5; letter-spacing: -0.015em; color: var(--body); }
.sr-note { margin-top: 64px; font-size: 14px; color: var(--muted); }

/* The illustration stage */
.sr-stage { position: relative; padding: 40px; border-radius: 20px; background: var(--sr-bg); color: var(--sr-ink); font-family: var(--sr-font); overflow: hidden; }
.sr-replay { position: absolute; top: 16px; right: 16px; z-index: 2; height: 32px; padding: 0 14px; border: 0; border-radius: 70px; background: var(--sr-lift); color: var(--sr-ink-2); font: 500 13px/1 var(--sr-font); cursor: pointer; }
.sr-replay:hover { color: var(--sr-ink); }
.sr-replay:focus-visible, .sr-toggle button:focus-visible { outline: 2px solid var(--sr-accent); outline-offset: 2px; }
.sr-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #86868b; }
.sr-card { padding: 22px 24px; border: 1px solid var(--sr-line); border-radius: 20px; background: var(--sr-tile); }
.sr-rec { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.sr-small { font-size: 14px; line-height: 1.45; color: var(--sr-muted); }
.sr-quote { font-size: 17px; line-height: 1.4; color: var(--sr-ink-2); }
.sr-tc { font: 500 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--sr-accent); }

/* Visual 1: edit to source */
.v1 { display: grid; gap: 22px; }
.v1 .sr-card { display: grid; gap: 14px; }
.v1-source { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: end; }
.v1-quote { justify-self: end; text-align: right; }
/* a fine line from the quotation down to the highlighted passage (0:12–0:15 sits at 80–100%) */
.v1-line { display: block; width: 1px; height: 26px; margin: 10px 0 6px 90%; background: var(--sr-accent); }
.v1-still { width: 140px; height: auto; aspect-ratio: 7 / 4; border-radius: 12px; object-fit: cover; }
.v1-track { position: relative; height: 40px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--sr-lift) 0 3px, transparent 3px 6px), var(--sr-tile); overflow: hidden; }
.v1-hit { position: absolute; top: 0; bottom: 0; left: 80%; width: 20%; border-radius: 6px; background: var(--sr-accent); }
.v1-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px/1 ui-monospace, 'SF Mono', monospace; color: var(--sr-faint); }

/* Visual 2: audience reason */
.v2 { display: grid; grid-template-columns: minmax(0, 0.8fr) 28px minmax(0, 1fr) 28px minmax(0, 1.25fr); align-items: center; }
.v2-arrow { height: 1px; background: var(--sr-line-2); position: relative; }
.v2-arrow::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--sr-line-2); }
.v2-signal { border-style: dashed; border-color: var(--sr-line-2); }
.v2-signal p { font-size: 17px; line-height: 1.35; }
.v2-rec .sr-rec { font-size: clamp(22px, 2.1vw, 30px); }
.v2-why { margin-top: 22px; padding-left: calc(37% + 8px); }
.v2 .sr-card { display: grid; gap: 10px; padding: 18px 18px 20px; }

/* Visual 3: preview */
.v3-frame { position: relative; display: grid; place-items: end start; width: min(100%, 360px); aspect-ratio: 16 / 9; margin-bottom: 26px; border-radius: 12px; overflow: hidden; background: var(--sr-tile); }
.v3-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-frame figcaption { position: relative; margin: 14px; padding: 7px 12px; border-radius: 70px; background: rgba(11, 11, 11, 0.78); font-size: 13px; font-weight: 500; }
.v3-row { margin-top: 18px; }
.v3-row__label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--sr-muted); }
.v3-track { display: flex; gap: 4px; height: 48px; }
.v3-seg { display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: transform 0.9s cubic-bezier(0.62, 0.05, 0.01, 0.99), opacity 0.4s; }
.v3-seg--setup { flex: 5.5; background: #2c2c2e; color: var(--sr-ink-2); }
.v3-seg--how { flex: 6.5; background: #3a3a3c; color: var(--sr-ink-2); }
.v3-seg--price { flex: 3; background: var(--sr-accent); color: #0b0b0b; }
.v3-row.is-dim { opacity: 0.45; }
.sr-toggle { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 70px; background: var(--sr-tile); }
.sr-toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: 70px; background: transparent; color: var(--sr-muted); font: 500 14px/1 var(--sr-font); cursor: pointer; }
.sr-toggle button[aria-pressed="true"] { background: var(--sr-ink); color: #0b0b0b; }

/* Visual 4: simulated reactions */
.v4-source { padding: 0 0 26px; border-bottom: 1px solid var(--sr-line); }
.v4-source .sr-quote { margin-top: 12px; font-size: clamp(20px, 1.9vw, 26px); color: var(--sr-ink); line-height: 1.3; }
.v4-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 26px 0 16px; }
.v4-badge { padding: 5px 10px; border: 1px solid rgba(255, 179, 64, 0.5); border-radius: 70px; color: var(--sr-warn); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.v4-cards { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.v4-cards::before { content: ''; position: absolute; left: 24px; top: -42px; height: 30px; border-left: 1px dashed var(--sr-line-2); }
.v4-cards .sr-card { border-style: dashed; border-color: var(--sr-line-2); background: transparent; }
.v4-cards .sr-quote { color: var(--sr-ink-2); }

/* Motion: elements start hidden only when motion is allowed and JS is on; .is-played reveals them */
.js .sr-motion [data-sr] { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .sr-motion.is-played [data-sr] { opacity: 1; transform: none; }
.js .sr-motion.is-played [data-sr="2"] { transition-delay: 0.35s; }
.js .sr-motion.is-played [data-sr="3"] { transition-delay: 0.7s; }
.js .sr-motion.is-played [data-sr="4"] { transition-delay: 1.05s; }
.js .sr-motion .v1-hit { transform: scaleX(0); transform-origin: left; transition: transform 0.7s ease; }
.js .sr-motion.is-played .v1-hit { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    .js .sr-motion [data-sr], .js .sr-motion .v1-hit { opacity: 1 !important; transform: none !important; transition: none !important; }
    .v3-seg { transition: none; }
    .sr-replay { display: none; }
}

/* Workflow and shipped capabilities */
.workflow { --cols: 5; list-style: none; padding: 0; }
.workflow li span { font-size: 14px; color: var(--muted); }
.workflow .beta { display: inline-block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.workflow .beta b { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 70px; background: rgba(255, 214, 10, 0.16); color: #8a6d00; font-size: 12px; font-weight: 600; }
.shipped { --cols: 5; }
.shipped h3 { margin-top: 24px; }
.contrib { --cols: 4; }
.contrib h3 { margin-top: 24px; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }

@media (max-width: 1100px) {
    .workflow, .shipped { --cols: 3; }
    .workflow > :nth-child(3n), .shipped > :nth-child(3n) { border-right: 0; }
    .workflow > :nth-child(n + 4), .shipped > :nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 991px) {
    .sr-step { grid-template-columns: 1fr; }
    .sr-step__copy { max-width: 60ch; }
    .decisions { --cols: 1; }
    .decisions > * { border-right: 0; }
    .decisions > * + * { border-top: 1px solid var(--line); }
    .workflow, .shipped, .contrib { --cols: 2; }
}
@media (max-width: 767px) {
    .sr-steps { gap: 80px; margin-top: 56px; }
    .sr-stage { padding: 56px 18px 22px; border-radius: 16px; }
    .v1-source { grid-template-columns: 96px minmax(0, 1fr); }
    .v1-still { width: 96px; }
    .v1-quote { justify-self: start; text-align: left; }
    .v1-line { margin-left: 90%; }
    .v2 { grid-template-columns: 1fr; gap: 0; }
    .v2-arrow { width: 1px; height: 22px; margin-left: 24px; }
    .v2-arrow::after { right: -3px; top: auto; bottom: 0; border: 3.5px solid transparent; border-top: 5px solid var(--sr-line-2); }
    .v2-why { padding-left: 0; }
    .v3-seg { padding: 0 8px; font-size: 12px; }
    .v4-cards { grid-template-columns: 1fr; }
    .workflow, .shipped, .contrib { --cols: 1; }
}
