/* Shopwise case study (Nov 2026) — Chance v2 language:
   white page, no grey panels, no dividers, depth from soft shadows,
   text behind + toggles. Shopwise's own Lexend + terracotta stay inside the phone UI. */

:root {
  --sw-ink: #111111;
  --sw-muted: #6e737a;
  --sw-accent: #b36636;
  --sw-shadow: 0 1px 2px rgba(15, 20, 30, .04), 0 8px 24px rgba(15, 20, 30, .06), 0 32px 64px -16px rgba(15, 20, 30, .12);
  --sw-shadow-hover: 0 1px 2px rgba(15, 20, 30, .05), 0 12px 32px rgba(15, 20, 30, .08), 0 40px 80px -20px rgba(15, 20, 30, .16);
  --sw-ease: cubic-bezier(.2, .7, .2, 1);
}

body.sw-case { --soft-white: #fff; --portfolio-shell-background: #fff; background: #fff; color: var(--sw-ink); }
.sw-page .sw-chapters { display: none !important; }
html:has(body.sw-case), body.sw-case, body.sw-case::before { background: #fff !important; }
body.sw-case { --ds-bg: #fff; --ds-rail: #fff; }
body.sw-case .portfolio-rail, body.sw-case .site-header { background: #fff; }

.sw-page { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding-top: 96px; }
.sw-page h1, .sw-page h2, .sw-page h3, .sw-page p, .sw-page figure, .sw-page dl, .sw-page dd { margin: 0; }
.sw-page img { display: block; max-width: 100%; height: auto; }
.sw-page button { font: inherit; color: inherit; }
.sw-page svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared pieces ---------- */
.sw-section { padding: 144px 0 0; }
.sw-head { margin-bottom: 56px; }
.sw-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); margin-bottom: 16px !important; }
.sw-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }

.sw-card { background: #fff; border-radius: 24px; box-shadow: var(--sw-shadow); }

.sw-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--sw-shadow); color: var(--sw-ink); flex: none; }
.sw-icon svg { width: 22px; height: 22px; }
.sw-icon.sm { width: 32px; height: 32px; box-shadow: none; }
.sw-icon.sm svg { width: 20px; height: 20px; }

.sw-phone { position: relative; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: var(--sw-shadow); aspect-ratio: 585 / 1266; }
.sw-phone img { width: 100%; height: 100%; object-fit: cover; }

/* + reveal */
.sw-reveal-row { user-select: none; -webkit-user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.sw-reveal-row h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.sw-plus { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--sw-shadow); cursor: pointer; transition: background-color .2s ease, transform .25s var(--sw-ease); }
.sw-plus::before, .sw-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--sw-ease); }
.sw-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.sw-reveal.is-open .sw-plus { background: var(--sw-ink); color: #fff; }
.sw-reveal.is-open .sw-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.sw-plus:focus-visible, .sw-pill:focus-visible, .sw-seg button:focus-visible, .sw-flow-grid button:focus-visible { outline: 2px solid #075eae; outline-offset: 3px; }
.js-sw .sw-reveal-body { display: none; }
.js-sw .sw-reveal.is-open .sw-reveal-body { display: block; animation: sw-in .3s var(--sw-ease); }
.sw-reveal-body { margin-top: 12px !important; color: var(--sw-muted); font-size: 16px; line-height: 1.55; max-width: 46ch; }
@keyframes sw-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* black pill */
.sw-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px 12px 24px; border-radius: 999px; background: #111; border: 1px solid #111; color: #fff !important; font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.sw-pill svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sw-pill:hover { background: #2b2d31; border-color: #2b2d31; }
.sw-pill:active { transform: scale(.98); }
.sw-pill-toggle[aria-expanded="true"] { background: #fff; color: #111 !important; }
.sw-pill-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* segmented */
.sw-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--sw-shadow); margin-bottom: 48px; max-width: 100%; }
.sw-seg button { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 500; color: var(--sw-muted); cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.sw-seg button:hover { color: var(--sw-ink); }
.sw-seg button[aria-selected="true"] { background: #111; color: #fff; }
.sw-seg-scroll { overflow-x: auto; scrollbar-width: none; }
.sw-seg-scroll::-webkit-scrollbar { display: none; }
[data-panel][hidden] { display: none !important; }
[data-panel] { animation: sw-in .35s var(--sw-ease); }

/* hover label pill on figures */
.sw-trio figcaption, .sw-sb-grid figcaption, .sw-watches figcaption {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 6px); opacity: 0;
  padding: 7px 14px; border-radius: 999px; background: rgba(17, 17, 17, .88); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
@media (hover: hover) { figure[data-on-dark] figcaption { background: #fff !important; color: #111 !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); } }
.sw-trio figure:hover figcaption, .sw-sb-grid figure:hover figcaption, .sw-watches figure:hover figcaption { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) {
  .sw-trio figcaption, .sw-sb-grid figcaption, .sw-watches figcaption { position: static; transform: none; opacity: 1; background: none; color: var(--sw-muted); padding: 10px 0 0; text-align: center; white-space: normal; }
  .sw-trio .sw-phone { overflow: visible; }
  .sw-trio .sw-phone img { border-radius: 36px; }
}

/* ---------- 01 Hero ---------- */
.sw-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 48px 0 0; }
.sw-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.sw-brand img { width: 48px; height: 48px; filter: drop-shadow(0 4px 10px rgba(97, 76, 61, .18)); }
.sw-brand span { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: #614c3d; }
.sw-hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.sw-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 48px !important; padding: 28px; border-radius: 24px; background: #fff; box-shadow: var(--sw-shadow); max-width: 520px; }
.sw-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); margin-bottom: 4px; }
.sw-meta dd { font-size: 16px; line-height: 1.4; font-weight: 500; }
.sw-hero-phones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.sw-hero-phones .sw-phone:nth-child(1) { margin-top: 72px; }
.sw-hero-phones .sw-phone:nth-child(3) { margin-top: 36px; }

/* ---------- 02 Problem ---------- */
.sw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sw-stat { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 8px; }
.sw-stat strong { font-size: clamp(48px, 5.4vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.sw-stat span { font-size: 17px; color: var(--sw-muted); }
.sw-source { margin-top: 20px; font-size: 12px; color: #9aa0a6; }
.sw-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.sw-pains .sw-card, .sw-lessons .sw-card { padding: 28px; }
.sw-pains .sw-icon, .sw-lessons .sw-icon { margin-bottom: 28px; }

/* ---------- 03 Alex ---------- */
.sw-alex { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 72px; align-items: center; }
.sw-alex-portrait { border-radius: 28px; overflow: hidden; box-shadow: var(--sw-shadow); }
.sw-big { font-size: clamp(80px, 11vw, 148px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.sw-big-label { font-size: 20px; color: var(--sw-muted); margin-top: 12px !important; }
.sw-facts { list-style: none; padding: 0; margin: 40px 0 40px; display: grid; gap: 14px; }
.sw-facts li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.sw-storyboards { margin-top: 64px; }
.sw-sb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sw-sb-grid figure { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--sw-shadow); aspect-ratio: 16 / 9; }
.sw-sb-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .sw-sb-grid figure { overflow: visible; aspect-ratio: auto; box-shadow: none; } .sw-sb-grid img { border-radius: 20px; box-shadow: var(--sw-shadow); aspect-ratio: 16 / 9; } }

/* ---------- 04 Research ---------- */
.sw-expert { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.sw-expert-card { padding: 40px; }
.sw-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.sw-expert-card h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.sw-answer { display: flex; align-items: center; gap: 10px; margin-top: 28px !important; font-size: 18px; color: var(--sw-muted); }
.sw-expert-portrait { border-radius: 28px; overflow: hidden; box-shadow: var(--sw-shadow); }
.sw-note { margin-top: 48px; max-width: 560px; }
.sw-note .sw-reveal-row h3 { font-size: 17px; font-weight: 500; }

/* ---------- 05 Testing ---------- */
.sw-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.sw-pair-phones { position: relative; aspect-ratio: 1 / 1.38; margin-bottom: 32px; }
.sw-pair-phones .sw-pc { position: absolute; left: 0; top: 0; width: 58%; cursor: pointer; will-change: transform; }
.sw-pc[data-side] { transform: rotate(-4deg); z-index: 1; }
[data-front="after"] .sw-pc[data-side="after"], [data-front="before"] .sw-pc[data-side="before"] { transform: translate(72.4%, 36px); z-index: 2; cursor: default; box-shadow: var(--sw-shadow-hover); }
.sw-pc.to-front { animation: sw-to-front .62s var(--sw-ease) both; }
.sw-pc.to-back { animation: sw-to-back .62s var(--sw-ease) both; }
@keyframes sw-to-front {
  0% { transform: rotate(-4deg); z-index: 1; }
  45% { transform: translate(-34%, 18px) rotate(-11deg); z-index: 1; }
  50% { z-index: 3; }
  100% { transform: translate(72.4%, 36px); z-index: 3; }
}
@keyframes sw-to-back {
  0% { transform: translate(72.4%, 36px); z-index: 2; }
  45% { transform: translate(108%, 10px) rotate(6deg); z-index: 2; }
  50% { z-index: 0; }
  100% { transform: rotate(-4deg); z-index: 0; }
}
.sw-tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--sw-ink); box-shadow: var(--sw-shadow); font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.sw-tag[aria-pressed="true"] { background: #111; color: #fff; }
.sw-tag:focus-visible { outline: 2px solid #075eae; outline-offset: 2px; }

/* ---------- 06 How it works ---------- */
.sw-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 48px; }
.sw-trio .sw-phone:nth-child(2) { transform: translateY(40px); }

/* ---------- 07 AI rules ---------- */
.sw-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sw-rule { padding: 20px 20px 24px; transition: box-shadow .25s ease, transform .25s ease; }
.sw-rule:hover { box-shadow: var(--sw-shadow-hover); transform: translateY(-3px); }
.sw-rule-img { border-radius: 16px; overflow: hidden; aspect-ratio: 540 / 1174; margin-bottom: 20px; background: #f6f4f1; }
.sw-rule-img video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-rule-img img { width: 100%; object-fit: cover; object-position: top; }
.sw-rule h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 08 Other side ---------- */
.sw-watches { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: 40px; }
.sw-watches figure { position: relative; margin: 0; }
/* Apple Watch Series 11 46mm (watchOS 26 library bezel): 280x440 around a 208x248 screen at (36, 96) */
.sw-watch-dev { position: relative; aspect-ratio: 280 / 440; filter: drop-shadow(0 24px 40px rgba(15, 20, 30, .16)); }
.sw-watch-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.sw-watch-screen { --pt: calc(100cqw / 208); position: absolute; left: 12.857%; top: 21.818%; width: 74.286%; height: 56.364%; container-type: inline-size; overflow: hidden; background: #000; border-radius: 21% / 17.6%; color: #fff; font-family: ui-rounded, "SF Compact Rounded", "SF Pro Rounded", -apple-system, system-ui, sans-serif; z-index: 1; }
.sw-watch-screen p { margin: 0; }
.sw-w-view { position: absolute; inset: 0; padding: calc(10 * var(--pt)) calc(7 * var(--pt)); display: flex; flex-direction: column; gap: calc(6 * var(--pt)); opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .45s var(--sw-ease); pointer-events: none; }
.sw-w-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sw-w-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 calc(10 * var(--pt)); font-size: calc(14 * var(--pt)); color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: .01em; }
.sw-w-top b { font-size: calc(16 * var(--pt)); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw-w-top-r { justify-content: flex-end; }
.sw-w-card { position: relative; border-radius: calc(18 * var(--pt)); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); padding: calc(10 * var(--pt)) calc(10 * var(--pt)); font-size: calc(15 * var(--pt)); line-height: 1.2; }
.sw-w-live p { font-size: calc(16 * var(--pt)); font-weight: 600; }
.sw-w-orange { color: #e3a07a; }
.sw-w-live .sw-w-app { position: absolute; right: calc(9 * var(--pt)); top: calc(9 * var(--pt)); width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); border-radius: 50%; }
.sw-w-track { position: relative; height: calc(10 * var(--pt)); margin-top: calc(8 * var(--pt)); border-radius: 99px; background: rgba(255,255,255,.16); }
.sw-w-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 30%); border-radius: 99px; background: #d98b62; transition: width 1s linear; }
.sw-w-track i::after { content: ""; position: absolute; right: calc(-6 * var(--pt)); top: 50%; width: calc(13 * var(--pt)); height: calc(13 * var(--pt)); border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 0 calc(2 * var(--pt)) #d98b62; }
.sw-w-mini p { font-size: calc(14 * var(--pt)); font-weight: 600; }
.sw-w-dim { color: rgba(255,255,255,.6); font-size: calc(13 * var(--pt)); font-weight: 500; }
.sw-w-mini .sw-w-dim { font-size: calc(12 * var(--pt)); }
.sw-w-note { padding-top: calc(19 * var(--pt)); margin-top: calc(10 * var(--pt)); }
.sw-w-note .sw-w-app { position: absolute; left: calc(8 * var(--pt)); top: calc(-13 * var(--pt)); width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); border-radius: 50%; }
.sw-w-now { position: absolute; right: calc(10 * var(--pt)); top: calc(5 * var(--pt)); font-size: calc(12 * var(--pt)); color: rgba(255,255,255,.55); }
.sw-w-strong { font-weight: 700; font-size: calc(15 * var(--pt)); letter-spacing: .01em; }
.sw-w-btn { flex: none; height: calc(34 * var(--pt)); border: 0; border-radius: 99px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.09)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #fff; font: inherit; font-size: calc(15 * var(--pt)); font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.sw-w-btn.is-accent { background: #d98b62; color: #2a1a10; box-shadow: none; }
.sw-w-btn:hover { filter: brightness(1.15); }
.sw-w-btn:active, .sw-w-end:active, .sw-w-stars button:active { transform: scale(.94); }
.sw-w-center { text-align: center; }
.sw-w-big { font-size: calc(26 * var(--pt)); font-weight: 600; }
.sw-w-view[data-view="call"], .sw-w-view[data-view="done"], .sw-w-view[data-view="thanks"], .sw-w-view[data-view="later"], .sw-w-view[data-view="rate"] { justify-content: center; }
.sw-w-end { align-self: center; margin-top: calc(10 * var(--pt)); width: calc(50 * var(--pt)); height: calc(50 * var(--pt)); border: 0; border-radius: 50%; background: #ff453a; color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s ease; }
.sw-w-end svg { width: 55%; height: 55%; }
.sw-w-check { align-self: center; width: calc(46 * var(--pt)); height: calc(46 * var(--pt)); border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; margin-bottom: calc(4 * var(--pt)); }
.sw-w-check.is-accent { background: #d98b62; color: #2a1a10; }
.sw-w-check svg { width: 55%; height: 55%; }
.sw-w-stars { display: flex; justify-content: center; gap: calc(2 * var(--pt)); }
.sw-w-stars button { width: calc(34 * var(--pt)); height: calc(34 * var(--pt)); padding: 0; border: 0; background: none; color: rgba(255,255,255,.22); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.sw-w-stars button.is-lit { color: #e3a07a; }
.sw-w-stars svg { width: 100%; height: 100%; }
.sw-watch-screen button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sw-watches figcaption { z-index: 3; bottom: 6%; }
.sw-console { max-width: 1100px; margin: 0 auto; }
.sw-gmwin { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sw-shadow-hover); }
.sw-gmwin .sw-browser-bar { position: relative; }
.sw-gm-open { margin-left: auto; font-size: 13px; font-weight: 500; color: #111; text-decoration: none; padding: 6px 12px; border-radius: 99px; background: #f3f3f3; }
.sw-gm-open:hover { background: #111; color: #fff; }
.sw-gmwin-screen { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.sw-gmwin-screen img { display: block; width: 100%; height: 100%; }
.sw-gmwin-screen iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; background: #fff; }

/* ---------- 08 Try it ---------- */
.sw-live { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: center; }
/* iPhone 17 Pro bezel from Apple's iOS 26 UI kit (450 × 920 artwork around a 402 × 874 screen) */
.sw-iphone { position: relative; width: 380px; aspect-ratio: 450 / 920; filter: drop-shadow(0 30px 60px rgba(15, 20, 30, .16)); }
.sw-iphone-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.sw-iphone-screen { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; border-radius: 13.7% / 6.3%; overflow: hidden; background: #fff; z-index: 1; }
.sw-iphone-screen iframe, .sw-browser-screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.sw-iphone-screen iframe { width: 402px; height: 874px; }
.sw-statusbar { position: absolute; inset: 0 0 auto 0; height: 6.2%; padding: 0 9% 0 13%; display: flex; align-items: center; justify-content: space-between; z-index: 3; pointer-events: none; color: #111; font: 600 clamp(12px, 4.2cqw, 17px) / 1 -apple-system, "SF Pro Text", system-ui, sans-serif; container-type: normal; }
.sw-iphone-screen { container-type: inline-size; }
.sw-statusbar { font-size: 4.2cqw; }
.sw-sb-icons { display: flex; gap: 1.6cqw; align-items: center; }
.sw-sb-icons svg { width: auto; height: 3cqw; fill: currentColor; stroke: none; }
.sw-browser { display: none; }
.sw-live[data-mode="gm"] { grid-template-columns: 1fr; }
.sw-live[data-mode="gm"] .sw-iphone { display: none; }
.sw-live[data-mode="gm"] .sw-browser { display: block; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sw-shadow-hover); }
.sw-browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #fff; }
.sw-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e5e8; }
.sw-browser-bar span { margin-left: 12px; font-size: 13px; color: var(--sw-muted); }
.sw-browser-screen { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.sw-browser-screen iframe { width: 1440px; height: 900px; }
.sw-live[data-mode="gm"] .sw-flows { max-width: none; }
.sw-live[data-mode="gm"] :is(.sw-flows-label, .sw-flow-grid) { display: none; }
.sw-flows { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 520px; }
.sw-flows-label { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); }
.sw-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.sw-flow-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px; border: 0; border-radius: 20px; background: #fff; box-shadow: var(--sw-shadow); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.sw-flow-grid button svg { width: 24px; height: 24px; }
.sw-flow-grid button:hover { transform: translateY(-2px); }
.sw-flow-grid button[aria-pressed="true"] { background: #111; color: #fff; }
#sw-open-full { margin-top: 12px; }
.sw-live[data-mode="gm"] { grid-template-columns: 1fr; }
.sw-live[data-mode="gm"] .sw-flows { max-width: none; }
.sw-live[data-mode="gm"] :is(.sw-flows-label, .sw-flow-grid) { display: none; }

/* ---------- 09 Design system ---------- */
.sw-tokens { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.sw-tokens > span { width: 72px; height: 72px; border-radius: 50%; background: var(--c); box-shadow: var(--sw-shadow); }
.sw-aa { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; box-shadow: var(--sw-shadow); font-family: "Lexend Deca", "SF Pro", -apple-system, sans-serif; font-size: 26px; font-weight: 500; margin-left: 16px; }
.sw-tokens > span { position: relative; }
.sw-tokens > span::after { content: attr(data-hex); position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 4px); opacity: 0; padding: 4px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.sw-tokens > span:hover::after { opacity: 1; transform: translate(-50%, 0); }
.sw-aa { border: 0; color: var(--sw-ink); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .3s var(--sw-ease); }
.sw-aa:hover { transform: scale(1.06); }
.sw-aa[aria-expanded="true"] { background: #111; color: #fff; }
.sw-aa:focus-visible { outline: 2px solid #075eae; outline-offset: 3px; }
.sw-tokens { position: relative; transition: padding .5s var(--sw-ease); }
.sw-tokens.is-open { padding-block: 210px; }
.sw-tokens.is-open .sw-aa { z-index: 3; }
.sw-type-cloud { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.sw-type-cloud[hidden] { display: none; }
.sw-tokens.is-open { touch-action: pan-x; cursor: grab; }
.sw-tokens.is-dragging { cursor: grabbing; user-select: none; }
.sw-cap { position: absolute; left: 0; top: 0; display: inline-flex; align-items: baseline; gap: 14px; padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: var(--sw-shadow); font-family: "Lexend Deca", "SF Pro", -apple-system, sans-serif; transform-origin: 0 50%; opacity: 0; transform: translate(0, -50%) scale(.2); transition: transform .55s var(--sw-ease), opacity .4s ease, box-shadow .2s ease; will-change: transform; cursor: pointer; }
.sw-tokens.is-dragging .sw-cap { transition: opacity .2s ease, box-shadow .2s ease; }
.sw-cap.is-focus { box-shadow: var(--sw-shadow-hover); cursor: default; }
.sw-cap-name { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b36636; white-space: nowrap; }
.sw-cap-sample { font-size: var(--fs); font-weight: var(--fw); line-height: var(--lh); letter-spacing: var(--ls, normal); color: #171412; white-space: nowrap; }
.sw-cap-spec { font-size: 11px; color: var(--sw-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sw-tokens, .sw-cap { transition: opacity .2s ease !important; } }
.sw-ds { max-width: none; }
.sw-ds .sw-reveal-row { max-width: 720px; }
.sw-ds .sw-reveal-body { max-width: none; }
.sw-ds-img { display: block; margin-top: 28px; border-radius: 20px; overflow: hidden; box-shadow: var(--sw-shadow); }

/* ---------- 10 Reflection ---------- */
.sw-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

/* ---------- Footer ---------- */
.sw-footer { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; padding: 160px 0 96px; }
.sw-next { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.sw-next > p { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sw-muted); margin: 0; }
.sw-next-title { display: block; font-size: clamp(48px, 7vw, 88px); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--sw-ink); text-decoration: none; }
.sw-next-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.sw-next-actions .sw-pill:hover svg { transform: translateX(3px); }
.sw-text-link { font-size: 15px; color: var(--sw-ink); }
.sw-top { justify-self: end; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--sw-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.sw-top-icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: #fff; box-shadow: var(--sw-shadow); transition: transform .2s ease, background-color .15s ease, color .15s ease; }
.sw-top-icon svg { width: 22px; height: 22px; }
.sw-top:hover .sw-top-icon { background: #111; color: #fff; transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sw-hero { grid-template-columns: 1fr; }
  .sw-hero-phones { max-width: 680px; }
  .sw-alex { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
  .sw-rules { grid-template-columns: repeat(2, 1fr); }
  .sw-pairs { grid-template-columns: 1fr; max-width: 460px; }
  .sw-live { grid-template-columns: 1fr; justify-items: center; gap: 48px; }
  .sw-flows { width: 100%; }
}
@media (max-width: 760px) {
  .sw-page { width: calc(100% - 32px); padding-top: 72px; }
  .sw-section { padding-top: 104px; }
  .sw-head { margin-bottom: 40px; }
  .sw-meta { grid-template-columns: 1fr; padding: 22px; }
  .sw-hero-phones { gap: 10px; }
  .sw-hero-phones .sw-phone { border-radius: 20px; }
  .sw-stats, .sw-pains, .sw-lessons, .sw-sb-grid { grid-template-columns: 1fr; }
  .sw-alex, .sw-expert { grid-template-columns: 1fr; gap: 32px; }
  .sw-alex-portrait, .sw-expert-portrait { max-width: 320px; }
  .sw-expert-portrait { order: -1; }
  .sw-expert-card { padding: 28px; }
  .sw-head h2 br { display: none; }
  .sw-trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding: 8px 16px 48px; margin: 0 -16px; justify-content: flex-start; }
  .sw-trio .sw-phone { flex: 0 0 68%; scroll-snap-align: center; }
  .sw-trio .sw-phone:nth-child(2) { transform: none; }
  .sw-rules { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sw-rule { padding: 12px 12px 16px; border-radius: 18px; }
  .sw-rule h3 { font-size: 15px; }
  .sw-watches { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 66%; justify-content: start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px 17% 48px; margin: -24px -16px 0; scrollbar-width: none; }
  .sw-watches::-webkit-scrollbar { display: none; }
  .sw-watches figure { scroll-snap-align: center; }
  .sw-device { width: min(320px, 100%); }
  .sw-iphone { width: 100%; }
  .sw-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-tokens > span, .sw-aa { width: 48px; height: 48px; }
  .sw-aa { font-size: 18px; margin-left: 0; }
  .sw-footer { grid-template-columns: 1fr; padding: 112px 0 64px; }
  .sw-top { justify-self: start; flex-direction: row; }
  .sw-top-icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-page *, .sw-page *::before, .sw-page *::after { animation: none !important; transition: none !important; }
}
.sw-live[data-mode="gm"] .sw-device { width: 100%; }
.sw-homebar { position: absolute; left: 50%; bottom: 1%; width: 34%; height: .6%; min-height: 4px; border-radius: 3px; background: #111; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.sw-iphone-screen.is-light .sw-statusbar { color: #fff; }
.sw-iphone-screen.is-light .sw-homebar { background: #fff; }
.sw-iphone-screen.no-status .sw-statusbar { opacity: 0; }

/* How-it-works video (05) */

/* Table of contents: same light-blue current state as Chance AI, no grey block */
body.sw-case .portfolio-rail__link.is-current,body.sw-case .portfolio-rail__link[aria-current]{background:#eaf3fc!important;color:#075eae!important}
body.sw-case .portfolio-rail__link.is-current :is(.portfolio-rail__label,.np-icon,.portfolio-rail__index){color:#075eae!important}
body.sw-case .portfolio-rail__link:not(.is-current):hover{background:#f3f7fb}
@media (max-width: 760px) {
  .sw-tokens::before { content: ""; flex-basis: 100%; height: 0; order: 98; }
  .sw-aa { order: 99; }
  .sw-cap { padding: 10px 16px; gap: 10px; }
  .sw-cap-spec { display: none; }
  .sw-tokens > span { transition: opacity .3s ease; }
  .sw-tokens.is-open > span { opacity: 0; pointer-events: none; }
}
