/* ===================================================================
   SwiftHome 的 playful 草稿（project/swifthome-play.html，2026-10-24）。
   照 IXDS-720 的 process book（项目当时叫 SwiftStay，Team Turquoise）：
     纸    #f4f1ec 米白；色带 #dacfc6 灰褐；黑页 #0d0d0d 白字
     字    粗黑无衬线（Inter 700，process book 是 Helvetica Neue Bold），大标题紧排，配一行空心字回声
     线    棕色细线 + 箭头 + 黑点的时间线；1px 黑框的表格盒子
     点缀  Team Turquoise 的青色 #3fbfc2（只做小标）；app 自己的暖棕 #ba9478、奶油卡 #efebe0、深色底部导航 #2a211b
   色值从 process book 和录屏里取样。棕色字 #7a5236 在纸色上 6:1。
   =================================================================== */
body.is-swift {
  --sh-paper: #f4f1ec; --sh-taupe: #dacfc6; --sh-black: #0d0d0d; --sh-line: #8a6a52;
  --sh-turq: #3fbfc2; --sh-brown: #ba9478; --sh-brown-d: #7a5236; --sh-cream: #efebe0; --sh-nav: #2a211b;
  --flag: var(--sh-brown-d); --chart: var(--sh-brown);
  background: var(--sh-paper);
}
.is-swift .v2main, .is-swift .v2band { background: var(--sh-paper); }
.is-swift .v2band.is-tint { --paper-warm: #ffffff; background: var(--sh-taupe); }
.is-swift .v2band.sh-dark { --paper-warm: #1a1a1a; background: var(--sh-black); color: #ffffff; }
.is-swift .v2end { background: var(--sh-paper); }
.sh-head .pl-n { color: var(--sh-brown-d); }
.is-swift .pl-h { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(34px, 4.4vw, 60px); color: #0d0d0d; max-width: 18ch; }
.sh-dark .pl-h { color: #ffffff; }
.sh-dark .pl-n { color: var(--sh-turq); }
.sh-dark .pl-replay { color: rgba(255, 255, 255, .7); }
.is-swift .pl-jump a:hover { color: var(--sh-brown-d); border-color: var(--sh-brown-d); }

/* 按钮：app 那颗深棕胶囊 */
.sh-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--sh-nav); color: #ffffff; cursor: pointer; font: 600 15px/1 var(--f-ui);
  transition: transform .3s var(--pl-spring), background .3s var(--ease);
}
.sh-btn:hover { transform: translateY(-1px); }
.sh-btn[aria-pressed="true"] { background: var(--sh-brown); color: #1a120c; }
.sh-btn:focus-visible { outline: 2px solid var(--sh-brown-d); outline-offset: 3px; }

/* ---------- 开场 ---------- */
.vxp-meta.sh-intro { display: block; }
.sh-strip { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-bottom: 12px; margin-bottom: clamp(18px, 2.4vw, 28px); border-bottom: 1.5px solid #0d0d0d; font: 600 14px/1.2 var(--f-ui); color: #0d0d0d; }
.sh-team { margin-left: auto; }
.sh-team em { font-style: normal; font-family: 'Allison', cursive; font-size: 1.9em; line-height: .5; color: var(--sh-turq); margin-left: 4px; }
.sh-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 44px); align-items: stretch; }
.sh-brand {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 340px; padding: clamp(24px, 3vw, 40px);
  border-radius: 34px; background: linear-gradient(180deg, #c7a389, var(--sh-brown) 60%, #a17b61); color: #ffffff;
  box-shadow: 0 30px 60px -40px rgba(58, 36, 20, .7);
}
.sh-brand p { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.02em; }
.sh-brand small { font: 400 14px/1.4 var(--f-ui); opacity: .85; }
.sh-need { display: flex; flex-direction: column; gap: 16px; }
.sh-eyebrow { font: 700 13px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--sh-brown-d); }
.sh-need-q { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -.01em; color: #2a2a2a; }
.sh-need-q b { font-weight: 700; color: #0d0d0d; }
.sh-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid #0d0d0d; }
.sh-facts li { padding: 12px 16px; font: 400 13.5px/1.35 var(--f-ui); color: #444; }
.sh-facts li + li { border-left: 1.5px solid #0d0d0d; }
.sh-facts b { display: block; font: 700 30px/1.1 var(--f-display); letter-spacing: -.03em; color: #0d0d0d; }
.sh-need .pl-jump { margin-top: 4px; }
@media (max-width: 860px) { .sh-intro-grid { grid-template-columns: 1fr; } .sh-brand { min-height: 240px; } .sh-team { margin-left: 0; } }

/* ---------- 01 两端题上的点 ---------- */
.sh-spec { padding: clamp(18px, 2.6vw, 34px); background: #ffffff; border: 1.5px solid #0d0d0d; }
.sh-spec-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.sh-who { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; font: 600 14px/1 var(--f-ui); color: #333; }
.sh-who li { display: inline-flex; align-items: center; gap: 7px; }
.sh-who li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12); }
.sh-rows { position: relative; display: grid; }
.sh-row { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; align-items: center; gap: 16px; min-height: 62px; border-top: 1px solid #e6e1da; }
.sh-row:first-child { border-top: 0; }
.sh-end { font: 500 13.5px/1.3 var(--f-ui); color: #3b4a8a; }
.sh-end.is-r { text-align: right; }
.sh-track { position: relative; height: 34px; }
.sh-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid #c9cfe6; }
.sh-dot {
  position: absolute; top: 50%; left: calc(var(--x) * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12), 0 0 0 2px #ffffff;
  transition: opacity .5s var(--ease), transform .5s var(--pl-spring);
}
.sh-pat { position: absolute; left: calc(var(--px) * 100%); top: -2px; transform: translate(-6%, -100%); white-space: nowrap; font: 700 13px/1.2 var(--f-ui); color: #d1453b; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.sh-spec.is-found .sh-dot.is-off { opacity: .18; transform: scale(.8); }
.sh-spec.is-found .sh-pat { opacity: 1; }
.sh-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sh-path path { fill: none; stroke: #d1453b; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0; transition: opacity .4s var(--ease); }
.sh-spec.is-found .sh-path path { opacity: 1; }
@media (max-width: 860px) {
  .sh-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 4px 10px; padding: 10px 0; }
  .sh-end { grid-row: 1; } .sh-track { grid-column: 1 / -1; grid-row: 2; }
  .sh-pat { white-space: normal; width: 70%; font-size: 12px; }
  .sh-path { display: none; }
}

/* ---------- 02 便签 → 承诺 ---------- */
.sh-goals { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: center; }
.sh-pats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sh-pats li { padding-left: 16px; border-left: 2px solid var(--sh-line); font: 400 16px/1.45 var(--f-ui); color: #3b4a8a; }
.sh-notes { display: grid; gap: 12px; }
.sh-notes button {
  padding: 22px 16px; border: 0; background: var(--n); color: #111; cursor: pointer; text-align: center; font: 700 16px/1.2 var(--f-ui);
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, .35); transform: rotate(var(--r, 0deg)); transition: transform .35s var(--pl-spring), box-shadow .3s var(--ease);
}
.sh-notes button:nth-child(odd) { --r: -1.2deg; } .sh-notes button:nth-child(even) { --r: 1deg; }
.sh-notes button:hover { transform: rotate(0) translateY(-2px); }
.sh-notes button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.sh-notes button[aria-selected="true"] { transform: rotate(0) scale(1.05); box-shadow: 0 0 0 2.5px #111, 0 16px 26px -14px rgba(0, 0, 0, .5); }
.sh-promise { position: relative; display: flex; align-items: center; gap: 16px; }
.sh-arrow { flex: none; width: 60px; height: 2px; background: #111; position: relative; }
.sh-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid #111; }
.sh-sticky { padding: 26px 24px; background: var(--n); font: 500 18px/1.45 var(--f-ui); color: #1a1a1a; box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); transition: opacity .25s var(--ease), background .3s var(--ease); }
.sh-sticky.is-swap { opacity: 0; }
.sh-hmw { margin-top: clamp(26px, 3.4vw, 44px); padding: clamp(20px, 2.4vw, 30px); border: 1.5px solid #0d0d0d; background: #ffffff; font: 400 clamp(19px, 1.8vw, 24px)/1.5 var(--f-display); letter-spacing: -.01em; color: #222; }
.sh-hmw span { font-weight: 700; color: #0d0d0d; }
@media (max-width: 980px) { .sh-goals { grid-template-columns: 1fr; } .sh-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sh-arrow { display: none; } }
@media (max-width: 560px) { .sh-notes { grid-template-columns: 1fr 1fr; } }

/* ---------- 03 SCAMPER（黑页白卡） ---------- */
.sh-scamper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.sh-scamper button {
  position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; min-height: 300px; padding: 18px 14px;
  border: 0; border-radius: 22px; background: #ffffff; color: #111; text-align: left; cursor: pointer;
  transition: transform .4s var(--pl-spring), background .3s var(--ease);
}
.sh-scamper button:hover { transform: translateY(-3px); }
.sh-scamper button:focus-visible { outline: 2px solid var(--sh-turq); outline-offset: 3px; }
.sh-scamper b { font: 700 clamp(44px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -.03em; }
.sh-sc-h { font: 700 15px/1.2 var(--f-ui); }
.sh-sc-t { font: 400 14px/1.45 var(--f-ui); color: #333; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--pl-spring); }
.sh-scamper em { margin-top: auto; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--sh-brown); color: #1a120c; font: 600 12.5px/1 var(--f-ui); font-style: normal; opacity: 0; transition: opacity .35s var(--ease) .1s; }
.sh-scamper [aria-expanded="true"] .sh-sc-t, .sh-scamper [aria-expanded="true"] em { opacity: 1; transform: none; }
html:not(.js) .sh-sc-t, html:not(.js) .sh-scamper em { opacity: 1; transform: none; }
@media (max-width: 1080px) { .sh-scamper { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sh-scamper button { min-height: 240px; } }
@media (max-width: 620px) { .sh-scamper { grid-template-columns: 1fr 1fr; } }

/* ---------- 04 功能：一屏深色舞台（2026-10-26，照 Kohler 的 .kapp） ----------
   录屏自带 iPhone 外壳和黑底，所以底色用纯黑和它接上；手机高度 = 视口减顶栏。
   说明和手机并排居中（原来左右各占一栏，字和录屏离得太远），说明展开在被选中的按钮里。
   吸附和"用点力才滑得走"在 v2.js（data-snap="firm"），--pull 是被拉住时舞台跟着挪的那一点。 */
.is-swift .v2band.sh-dark:has(> .sh-proto) { background: #000000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.sh-proto { padding-block: 0; scroll-margin-top: var(--v2top-h, 80px); }
.sh-feat {
  --stage-h: max(calc(100svh - var(--v2top-h, 80px)), 560px);
  height: var(--stage-h); display: grid; grid-template-columns: minmax(0, 440px) auto; justify-content: center; align-items: center;
  gap: clamp(32px, 4.4vw, 72px); padding-block: 14px;
  transform: translateY(calc(var(--pull, 0) * 1px)); transition: transform .35s var(--pl-spring);
}
.sh-feat-side { display: grid; gap: clamp(18px, 2.6vh, 30px); align-content: center; }
.sh-feat-side .pl-head { margin: 0; flex-wrap: wrap; row-gap: 12px; }
.sh-feat-side .pl-h { font-size: clamp(30px, 3.2vw, 46px); }
.sh-tabs { list-style: none; padding: 6px; margin: 0; display: grid; gap: 4px; border-radius: 26px; background: var(--sh-nav); }
.sh-tabs button { display: grid; gap: 4px; width: 100%; padding: 14px 18px; border: 0; border-radius: 20px; background: transparent; color: rgba(255, 255, 255, .7); text-align: left; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.sh-tabs button:hover { color: #ffffff; }
.sh-tabs button:focus-visible { outline: 2px solid var(--sh-brown); outline-offset: -2px; }
.sh-tabs button[aria-selected="true"] { background: var(--sh-cream); color: #111; }
.sh-fn { font: 600 12px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.sh-tabs b { font: 700 18px/1.2 var(--f-ui); }
.sh-fd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.sh-fd > span { overflow: hidden; min-height: 0; font: 400 16px/1.5 var(--f-ui); color: #333; opacity: 0; transition: opacity .3s var(--ease); }
.sh-tabs button[aria-selected="true"] .sh-fd { grid-template-rows: 1fr; }
.sh-tabs button[aria-selected="true"] .sh-fd > span { padding-top: 6px; opacity: 1; transition-delay: .15s; }
.sh-fd em { display: inline-block; margin-left: 4px; padding: 5px 10px; background: var(--n); font: 700 12.5px/1 var(--f-ui); font-style: normal; color: #111; vertical-align: 1px; }
.sh-fd em::before { content: 'Goal · '; font-weight: 500; opacity: .7; }
.sh-stage { position: relative; height: calc(var(--stage-h) - 28px); aspect-ratio: 600 / 1098; background: #000000;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5% 95%, transparent), linear-gradient(transparent, #000 3% 97%, transparent); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 5% 95%, transparent), linear-gradient(transparent, #000 3% 97%, transparent); mask-composite: intersect; }
.sh-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.sh-stage video.is-on { opacity: 1; }
@media (max-width: 900px) {
  .sh-feat { height: auto; grid-template-columns: minmax(0, 1fr); padding-block: clamp(48px, 8vw, 80px); transform: none; }
  .sh-stage { height: auto; width: min(320px, 78vw); justify-self: center; }
}

/* ---------- 05 过程时间线 ---------- */
#process { overflow: hidden; }
.sh-echo { display: flex; gap: 0; margin: 0 0 28px; white-space: nowrap; font: 700 clamp(64px, 9vw, 140px)/1 var(--f-display); letter-spacing: -.05em; color: #0d0d0d; user-select: none; }
.sh-echo span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px #0d0d0d; }
.sh-time { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; border-top: 2px solid var(--sh-line); }
.sh-time::after { content: ''; position: absolute; right: -2px; top: -7px; border: 6px solid transparent; border-left: 10px solid var(--sh-line); }
.sh-time li { position: relative; padding: 26px 14px 0 0; font: 400 14px/1.45 var(--f-ui); color: #444; opacity: .35; transition: opacity .4s var(--ease); }
.sh-time li::before { content: ''; position: absolute; left: 0; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #0d0d0d; transform: scale(.6); transition: transform .4s var(--pl-spring), background .3s var(--ease); }
.sh-time li b { display: block; font: 700 17px/1.2 var(--f-ui); color: #0d0d0d; }
.sh-time li span { display: block; margin: 4px 0 6px; font: 600 12.5px/1 var(--f-ui); color: var(--sh-brown-d); }
.sh-time li.is-on { opacity: 1; }
.sh-time li.is-on::before { transform: scale(1); }
html:not(.js) .sh-time li { opacity: 1; }
@media (max-width: 980px) {
  .sh-time { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--sh-line); padding-left: 20px; }
  .sh-time::after { display: none; }
  .sh-time li { padding: 0 0 18px; } .sh-time li::before { left: -29px; top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-dot, .sh-pat, .sh-path path, .sh-sticky, .sh-sc-t, .sh-scamper em, .sh-stage video, .sh-time li, .sh-fd, .sh-fd > span { transition-duration: .01s !important; }
}
/* 两栏的小标，照 process book 那页的蓝色标题 */
.sh-pats::before, .sh-notes::before { display: block; margin-bottom: 6px; font: 700 18px/1.2 var(--f-ui); color: #3b4a8a; }
.sh-pats::before { content: 'Patterns'; }
.sh-notes::before { content: 'Design goals'; text-align: center; }

/* ---------- 一屏看全（2026-10-26） ---------- */
@media (min-width: 861px) {
  /* 01 八道两端题：行高收一点（连线是 js 量完行位置再画的，跟着变） */
  .sh-row { min-height: 54px; }
  /* 04 原型本来就是一屏舞台（.sh-feat 高 = 视口减顶栏），不用再收 */
}
