/* GridSync case content — Figma O2YnRjvTtomRNOgAbAD4qK, frame 682:5324 → Content 682:5350.
   Every selector is scoped under .case (the shell wraps the markup in <div class="case">).
   The shell gives .case its 64px/120px padding; sections are 952px wide, 32px apart. */

.case {
  /* variables used by the design that are not in tokens.css */
  --case-shot-ring: var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-body);
}
.case *, .case *::before, .case *::after { box-sizing: border-box; }
.case p, .case h1, .case h2, .case figure { margin: 0; }
.case img { display: block; }
.case .case-loading { padding: 48px 0; text-align: center; font-size: var(--type-lead-size); line-height: var(--type-lead-lh); color: var(--text-primary); }
.case img.px { image-rendering: pixelated; }
.case svg.ico { display: block; flex: none; shape-rendering: crispEdges; } /* inlined icons: no extra requests */

/* Content frame 682:5350: vertical stack, gap 32, padding-bottom 96 (shell adds 64) */
.case .cs-root { display: flex; flex-direction: column; gap: 32px; width: 952px; margin: 0 auto; padding-bottom: 32px; }
.case .cs-sec { display: flex; flex-direction: column; gap: 24px; align-items: stretch; width: 952px; }

/* ---------- type ---------- */
.case .t-display-xl { font-family: var(--font-display); font-weight: 400; font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-lh); color: var(--text-primary); }
.case .t-display { font-family: var(--font-display); font-weight: 400; font-size: var(--type-display-size); line-height: var(--type-display-lh); color: var(--text-primary); }
.case .t-title { font-family: var(--font-display); font-weight: 400; font-size: var(--type-title-size); line-height: var(--type-title-lh); color: var(--text-primary); }
.case .t-lead { font-weight: 400; font-size: var(--type-lead-size); line-height: var(--type-lead-lh); color: var(--text-primary); }
.case .t-body { font-weight: 400; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--text-primary); }
.case .t-label { font-weight: 700; font-size: var(--type-label-size); line-height: var(--type-label-lh); color: var(--text-primary); }
.case .t-caption { font-weight: 600; font-size: var(--type-caption-size); line-height: var(--type-caption-lh); color: var(--text-primary); }
.case .t-heading-s { font-family: var(--font-display); font-weight: 400; font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-lh); color: var(--text-primary); }
.case .c-secondary { color: var(--text-secondary); }
.case .c-muted { color: var(--text-muted); }
.case .pre { white-space: pre-wrap; }
.case .w-800 { width: 800px; }
.case .w-829 { width: 829px; }
.case .w-720 { width: 720px; }

/* ---------- shared pieces ---------- */
.case .div-h { height: 2px; width: 100%; background: var(--border-subtle); flex: none; }
.case .div-v { width: 2px; align-self: stretch; background: var(--border-subtle); flex: none; }
.case .ring-subtle { --ring: var(--border-subtle); }

/* Shot (681:5355): 2px stepped border-strong ring, 2px mat, image fill, optional caption */
.case .shot { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.case .shot-mat { --ring: var(--case-shot-ring); flex: 1 1 0; min-height: 0; padding: 2px; display: flex; flex-direction: column; }
.case .shot-img { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.case .shot-img img { position: absolute; max-width: none; }
.case .shot-img img.cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 01 · Overview (700:6007) ---------- */
.case .cs-overview { gap: 32px; }
.case .ov-header { display: flex; gap: 48px; align-items: center; }
.case .ov-title { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.case .ov-shot { width: 360px; height: 204px; flex: none; }
.case .ov-facts { display: flex; flex-direction: column; }
.case .ov-row { display: flex; gap: 32px; align-items: flex-start; padding: 16px 0; }
.case .ov-row > :first-child { width: 180px; flex: none; }
.case .ov-row > :last-child { flex: 1 1 0; min-width: 0; }

/* ---------- 02 · Meta (700:6063) ---------- */
.case .meta-cols { display: flex; align-items: flex-start; }
.case .meta-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 24px; }
.case .meta-col:first-child { padding: 0 24px 0 0; }

/* ---------- 03 · Context (709:6458) ---------- */
.case .ctx-cols { display: flex; flex-direction: column; gap: 24px; }
.case .ctx-crops { display: flex; gap: 12px; align-items: flex-start; overflow: hidden; }
.case .ctx-crop { flex: 1 1 0; min-width: 0; height: 219px; }
.case .ctx-arrow { align-self: stretch; display: flex; align-items: center; justify-content: center; padding-bottom: 24px; flex: none; }

/* ---------- 04 · Problem (751:6557) ---------- */
.case .pains { display: flex; gap: 16px; align-items: flex-start; }
.case .pain { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px; }

/* ---------- 05 · Sources (769:7809) ---------- */
.case .sources { display: flex; gap: 32px; align-items: flex-start; overflow: hidden; }
.case .source { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.case .source > img, .case .source > svg { width: 64px; height: 64px; }

/* ---------- 05 · User (769:7908) ---------- */
.case .dossier { position: relative; }
.case .folder { padding: 12px; background: var(--ill-gold-light); }
.case .sheet { display: flex; gap: 32px; align-items: flex-start; padding: 28px; background: var(--ill-paper-light); }
.case .photo-col { display: flex; flex-direction: column; align-items: center; flex: none; }
.case .photo { position: relative; width: 168px; height: 184px; display: flex; align-items: center; justify-content: center; }
.case .photo-plate { position: absolute; inset: 0; background: var(--ill-paper); }
.case .photo > img, .case .photo > svg { position: relative; width: 128px; height: 128px; }
.case .clip { position: absolute; left: 20px; top: -4px; width: 20px; height: 36px; overflow: hidden; }
.case .clip i { position: absolute; display: block; }
.case .clip i.s { background: var(--ill-steel-base); }
.case .clip i.d { background: var(--ill-steel-dark); }
.case .info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.case .fields { display: flex; flex-direction: column; }
.case .field-row { display: flex; gap: 16px; align-items: stretch; padding: 10px 0; }
.case .field-row > :first-child { width: 140px; flex: none; }
.case .field-row > :last-child { flex: 1 1 0; min-width: 0; }
.case .field-line { height: 2px; background: var(--ill-paper-shade); }
/* Stamp 769:7904: bounding box 121.2×53.9 at right 769.8 / top 251.74, rotated 9.03° */
.case .stamp-box { position: absolute; right: 769.8px; top: 251.74px; width: 121.2px; height: 53.92px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.case .stamp {
  display: block; flex: none; transform: rotate(9.03deg);
  border: 2px solid var(--ill-red-base); padding: 4px 10px;
  font-family: var(--font-display); font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-lh);
  color: var(--ill-red-base); white-space: nowrap;
}

/* ---------- 05 · Needs (774:8036) ---------- */
.case .needs { display: flex; gap: 32px; align-items: flex-start; overflow: hidden; }
.case .needs-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.case .need { display: flex; gap: 12px; align-items: center; }
.case .need > p { flex: 1 1 0; min-width: 0; }
.case .check { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--ill-green-light); }
.case .needs-side { width: 380px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.case .needs-secondary { display: flex; flex-direction: column; gap: 8px; }
.case .needs-hard { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--ill-gold-light); }

/* ---------- 05 · User journey (793:11358) — Canvas viewer 793:10773 ---------- */
.case .uf-viewer { --ring: var(--border-strong); display: flex; flex-direction: column; width: 100%; }
.case .uf-viewer::after { z-index: 2; }
.case .uf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px; height: 50px;
  background: var(--surface-raised); border-bottom: 2px solid var(--border-subtle);
  border-radius: 10px 10px 0 0; overflow: hidden;
}
.case .uf-name { width: 260px; align-self: stretch; }
.case .uf-right { display: flex; gap: 16px; align-items: center; }
.case .uf-hint { display: flex; gap: 8px; align-items: center; }
.case .uf-hint > p { width: 252px; }
.case .uf-canvas {
  position: relative; height: 480px; overflow: hidden;
  border-radius: 0 0 10px 10px;
  background-color: var(--surface-base);
  background-image: url("../assets/img/canvas-dots.png");
  background-repeat: repeat; background-size: 24px 24px; background-position: 0 0;
  cursor: grab; touch-action: none; user-select: none;
}
.case .uf-canvas.is-dragging { cursor: grabbing; }
.case .uf-flow { position: absolute; left: 0; top: 0; width: 3572px; height: 3358px; transform-origin: 0 0; transform: translate(24px, 24px); }
.case .uf-svg { position: absolute; left: 0; top: 0; shape-rendering: crispEdges; }
.case .uf-flow p { position: absolute; margin: 0; white-space: pre-wrap; overflow-wrap: break-word; color: var(--text-secondary); }
.case .uf-t { font-weight: 600; font-size: 13px; line-height: 16px; }
.case .uf-note { font-weight: 600; font-size: 11px; line-height: 16px; }
.case .uf-title { font-family: var(--font-display); font-size: 28px; line-height: 36px; color: var(--text-primary) !important; white-space: nowrap !important; }
.case .uf-c { text-align: center; }
/* full-screen mode of the viewer (Icon/16/Maximize button) */
.case .uf-viewer:fullscreen { background: var(--surface-base); }
.case .uf-viewer:fullscreen .uf-canvas { flex: 1 1 0; height: auto; }

/* ---------- 06 · Progress (814:12338) ---------- */
.case .tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.case .tag { display: block; padding: 6px 12px; background: var(--surface-sunken); }
.case .stages { display: flex; flex-direction: column; gap: 56px; }
.case .stage { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.case .stage-head { display: flex; gap: 12px; align-items: center; }
.case .marker { display: block; width: 12px; height: 12px; flex: none; }
.case .stage-link { display: flex; gap: 8px; align-items: center; cursor: pointer; color: var(--text-primary); text-decoration: none; }
.case .stage-link .t-label { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.case .twins { display: flex; gap: 16px; align-items: flex-start; width: 100%; overflow: hidden; }
.case .twins > .shot { flex: 1 1 0; min-width: 0; }

/* ---------- 07 · Solution (833:8184) — Compare monitors 838:268 + Tabs 840:54 ---------- */
.case .cmp {
  position: relative; display: block; width: 952px; height: 858px; padding: 0; margin: 0;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  --cmp-t: 450ms cubic-bezier(.42, 0, .58, 1);   /* Smart animate, ease in and out, 450 ms */
}
.case .cmp:focus-visible { outline: none; }
.case .cmp:focus-visible .cmp-tabs { --ring: var(--control-focus-ring); }
.case .mon { position: absolute; display: block; transform-origin: 0 0; transition: left var(--cmp-t), top var(--cmp-t), transform var(--cmp-t), opacity var(--cmp-t); }
.case .mon span, .case .mon i { position: absolute; display: block; }
.case .mon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Monitor · old — drawn at its large size 912×566 */
.case .mon-old { width: 912px; height: 566px; }
.case .mon-old i { background: var(--ill-paper-shade); }
.case .mo-neck { left: 400px; bottom: 24px; width: 112px; height: 50px; }
.case .mo-neck-face { left: 4px; right: 4px; top: 6px; bottom: 4px; background: var(--ill-paper-light); }
.case .mo-base { left: 276px; bottom: 0; width: 360px; height: 28px; }
.case .mo-base-face { left: 4px; right: 4px; top: 4px; bottom: 4px; background: var(--ill-paper-light); }
.case .mo-casing { left: 0; right: 0; top: 0; bottom: 68px; }
.case .mo-casing-face { inset: 6px; background: var(--ill-paper-light);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 6px 6px); }
.case .mo-bezel { left: 20px; right: 20px; top: 20px; bottom: 122px; background: var(--ill-steel-base); }
.case .mo-screen { left: 28px; right: 28px; top: 28px; bottom: 130px; overflow: hidden; }
.case .mo-led { right: 20px; bottom: 94px; width: 12px; height: 8px; background: var(--ill-red-base); }
.case .mo-btn { bottom: 94px; width: 12px; height: 8px; background: var(--ill-paper-shade); }
/* Monitor · modern — drawn at its large size 912×564 */
.case .mon-new { width: 912px; height: 564px; }
.case .mn-neck { left: 426px; bottom: 20px; width: 60px; height: 60px; background: var(--ill-steel-base); }
.case .mn-neck-shade { left: 471px; bottom: 20px; width: 15px; height: 60px; background: var(--ill-steel-dark); }
.case .mn-base { left: 306px; bottom: 0; width: 300px; height: 20px; background: var(--ill-steel-light); }
.case .mn-base-shade { left: 310px; bottom: 0; width: 292px; height: 8px; background: var(--ill-steel-base); }
.case .mn-bezel { left: 0; right: 0; top: 0; bottom: 80px; background: var(--ill-ink); }
.case .mn-screen { left: 12px; right: 12px; top: 12px; bottom: 128px; overflow: hidden; }
/* State=Before */
.case .cmp[data-state="before"] .mon-old { left: 0; top: 56px; transform: none; opacity: 1; z-index: 2; }
.case .cmp[data-state="before"] .mon-new { left: 516px; top: 0; transform: scale(0.478070, 0.483156); opacity: .9; z-index: 1; }
/* State=After */
.case .cmp[data-state="after"] .mon-old { left: 0; top: 0; transform: scale(0.478070, 0.483216); opacity: .9; z-index: 1; }
.case .cmp[data-state="after"] .mon-new { left: 40px; top: 56px; transform: none; opacity: 1; z-index: 2; }

/* Tabs 840:54 — 320×40 segmented control, 2px stepped ring */
.case .cmp-tabs { --ring: var(--border-strong); position: absolute; left: 316px; top: 650px; width: 320px; height: 40px; display: block; z-index: 3; transition: top var(--cmp-t); }
.case .cmp[data-state="after"] .cmp-tabs { top: 648px; }
.case .tabs-track { position: absolute; left: 2px; top: 2px; width: 316px; height: 36px; background: var(--surface-raised); }
.case .tabs-knob {
  position: absolute; top: 6px; left: 6px; width: 154px; height: 28px; display: block;
  background: var(--surface-negative-subtle);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  transition: left var(--cmp-t), background-color var(--cmp-t);
}
.case .cmp[data-state="after"] .tabs-knob { left: 160px; background: var(--surface-positive-subtle); }
.case .tabs-opt { position: absolute; top: 11px; white-space: nowrap; }

/* Points · Before / After */
.case .cmp-points { position: absolute; left: 0; top: 722px; width: 952px; display: flex; gap: 24px; align-items: flex-start; overflow: hidden; transition: top var(--cmp-t), opacity var(--cmp-t); }
.case .cmp[data-state="after"] .cmp-points { top: 720px; }
.case .cmp[data-state="before"] .cmp-points-after,
.case .cmp[data-state="after"] .cmp-points-before { opacity: 0; }
.case .cmp-point { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; gap: 12px; align-items: flex-start; overflow: hidden; }
.case .marker8 { display: block; width: 8px; height: 8px; flex: none; }
.case .cmp-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.case .cmp-text > span { display: block; }

@media (prefers-reduced-motion: reduce) {
  .case .cmp { --cmp-t: 0ms; }
}

/* ---------- 11 · What I would do differently (861:8454) ---------- */
.case .diff-points { display: flex; gap: 16px; align-items: flex-start; overflow: hidden; }
.case .diff-point { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 20px; overflow: hidden; }
.case .diff-plate { position: absolute; inset: 0; background: var(--surface-raised); }
.case .diff-point > p { position: relative; }

/* ---------- 10 · Results (852:8400) ---------- */
.case .business { display: flex; gap: 16px; align-items: center; padding: 20px 24px; background: var(--surface-positive-subtle); overflow: hidden; }
.case .business > img, .case .business > svg { width: 24px; height: 24px; flex: none; }
.case .business-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.case .numbers { display: flex; align-items: flex-start; }
.case .stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 24px; }
.case .stat.stat-first { padding: 0 24px 0 0; }

/* ---------- 13 · Thanks (865:1462) ---------- */
.case .cs-thanks { gap: 32px; }
.case .outro { width: 952px; height: 256px; }
.case .case-stats { display: flex; gap: 24px; align-items: flex-start; overflow: hidden; }
.case .next-case { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.case .next-case > p { width: 262px; }
.case .next-cases { display: flex; gap: 10px; align-items: flex-start; }
.case .next-cases .case-file { border: 0; background: none; font: inherit; cursor: pointer; }

/* ---------- Design process (890:8236): three phase cards over faint traffic lights + loop ---------- */
.case .proc { display: flex; flex-direction: column; gap: 8px; }
.case .proc-phases { display: flex; gap: 16px; align-items: stretch; }
.case .proc-phase { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; overflow: hidden; }
.case .proc-tl { position: absolute; right: -36px; width: 96px; height: 240px; max-width: none; pointer-events: none; }
.case .proc-phase > p, .case .proc-items { position: relative; }
.case .proc-items { display: flex; gap: 4px; align-items: flex-start; }
.case .proc-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.case .proc-step img, .case .proc-step svg { width: 40px; height: 40px; flex: none; }
.case .proc-step p { width: 100%; }
.case .proc-loop { position: relative; width: 952px; height: 28px; flex: none; }
.case .proc-loop i { position: absolute; display: block; background: var(--text-muted); }
.case .proc-loop-label { position: absolute; left: 289px; top: 9px; padding: 0 8px; background: var(--surface-base); white-space: nowrap; }
