/* Window Hands website. No build step, no third-party assets. */
:root {
  --bg: #FBF6F0;
  --band: #F4ECE3;
  --card: #FFFFFF;
  --ink: #3E2A22;
  --ink-soft: #6B5248;
  --muted: #9A7F72;
  --line: #EADFD5;
  --accent: #FF6F91;
  --accent-ink: #D94B72;
  --accent-soft: #FFE6EC;
  --blue: #4D8DF7;
  --green: #2BB58A;
  --amber: #F4A92A;
  --shadow: 0 1px 2px #3E2A2210, 0 8px 24px #3E2A2212;
  --radius: 18px;
  --stage: linear-gradient(160deg, #DCEBFA, #F4E3F4 55%, #FDEFD9);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1820;
    --band: #221E28;
    --card: #2A2531;
    --ink: #F5EDE6;
    --ink-soft: #D3C4BA;
    --muted: #A8978D;
    --line: #3A3340;
    --accent-soft: #4A2633;
    --accent-ink: #FF8FA8;
    --shadow: 0 1px 2px #0006, 0 10px 30px #0005;
    --stage: linear-gradient(160deg, #2A3550, #3A2B44 55%, #4A3A2E);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; text-align: center; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin: 0; }
kbd { font: 12px var(--mono); padding: 1px 6px; border-radius: 6px; background: #0000001a; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.sub { max-width: 760px; margin: 14px auto 36px; text-align: center; color: var(--ink-soft); font-size: 18px; }
section { padding: 92px 0; }
.band { background: var(--band); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.noscript { text-align: center; padding: 16px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.navin { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 17px; white-space: nowrap; }
.links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.links a { text-decoration: none; color: var(--ink-soft); padding: 6px 10px; border-radius: 10px; font-size: 15px; white-space: nowrap; }
.links a:hover { background: var(--accent-soft); color: var(--ink); }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
.iconbtn:hover { border-color: var(--accent); }
@media (max-width: 900px) { .links { display: none; } }

/* ---- buttons & chips ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font: 700 17px var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px #FF6F9155; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px #FF6F9166; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.small kbd { background: #ffffff33; color: #fff; }
.ghostbtn { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ghostbtn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: var(--accent); }
.chip:disabled { opacity: .45; cursor: default; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.sel select { font: inherit; color: inherit; background: transparent; border: 0; padding: 0 2px; cursor: pointer; }
.chip.sel select option { color: #222; }
.chip.check input { accent-color: var(--accent); margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.badge.soon { background: #FFF1D6; color: #A8670A; }
.badge.now { background: #DDF6EC; color: #16805F; }
.badge.later { background: #ECE8F5; color: #625486; }
@media (prefers-color-scheme: dark) {
  .badge.soon { background: #4A3A1A; color: #FFCB70; }
  .badge.now { background: #183D31; color: #7EE2BE; }
  .badge.later { background: #352F45; color: #C8BCEB; }
}
.textlink { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---- hero ---- */
.hero { padding: 64px 0 80px; text-align: center; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.035em; margin: 18px 0 0; font-weight: 850; }
.hl { background: linear-gradient(90deg, var(--accent), #FF9F6E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 760px; margin: 20px auto 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.heroDemo { margin: 44px auto 0; max-width: 1180px; }

/* ---- demo frames ---- */
.demo { margin: 0; position: relative; border-radius: 22px; background: var(--stage); box-shadow: var(--shadow), inset 0 0 0 1px #0000000d; padding: 14px; overflow: hidden; }
.demobar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.effectTag { font-size: 14px; color: var(--ink-soft); }
.caption { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 10px; font-size: clamp(15px, 2vw, 19px); font-weight: 600; text-align: left; }
.caption .step { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }
.heroDemo[data-step="2"] .step, .heroDemo[data-step="3"] .step { background: #8E7E78; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .demo { padding: 12px; }
.side { font-weight: 700; margin: 2px 4px 10px; text-align: left; }
.tally { min-height: 26px; margin: 10px 4px 0; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.compare + .center { margin-top: 18px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

/* ---- the desk (scaled virtual screens) ---- */
.deskhost { position: relative; overflow: hidden; border-radius: 14px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.deskhost.failed { display: grid; place-items: center; min-height: 200px; padding: 20px; color: var(--ink-soft); font-size: 15px; text-align: center; }
.desk { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; font-family: var(--font); color: #333; }
.layer { position: absolute; left: 0; top: 0; }
.screen { position: absolute; border-radius: 12px; box-shadow: 0 0 0 9px #1C1D22, 0 0 0 10px #3A3C44, 0 24px 48px #00000033; }
.screen .wall { position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(140deg, #9ED0FF 0%, #C8B6FF 45%, #FFB8C9 75%, #FFD9A8 100%); transition: filter .3s, opacity .3s; }
.screen.laptop .wall { background: linear-gradient(150deg, #B5F0DD 0%, #9ED0FF 50%, #D4C2FF 100%); }
.screen .menubar { position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 12.5px; color: #222; background: #ffffffa8; border-radius: 12px 12px 0 0; transition: opacity .3s; }
.screen .menubar .apple { width: 11px; height: 13px; border-radius: 50% 50% 45% 45%; background: #222; }
.screen .menubar em { margin-left: auto; font-style: normal; }
.screen .nosignal { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #9AA0AE; font-size: 22px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.screen .nosignal i { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #4A4E5A; position: relative; }
.screen .nosignal i::after { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: #4A4E5A; transform: rotate(45deg); }
.screen.off .wall { filter: brightness(.12) saturate(0); }
.screen.off .menubar { opacity: 0; }
.screen.off .nosignal { opacity: 1; }
.screen .stand { position: absolute; left: 50%; top: calc(100% + 10px); width: 150px; margin-left: -75px; height: 64px; background: linear-gradient(90deg, #B9BDC6, #E4E7EC 50%, #B9BDC6); clip-path: polygon(22% 0, 78% 0, 88% 100%, 12% 100%); }
.screen .stand::after { content: ""; position: absolute; left: -30px; right: -30px; bottom: 0; height: 9px; border-radius: 6px; background: #A9AEB8; }
.screen .deck { position: absolute; left: -46px; right: -46px; top: calc(100% + 10px); height: 22px; border-radius: 4px 4px 18px 18px; background: linear-gradient(#E6E8EC, #B8BCC5); }
.screen .deck::after { content: ""; position: absolute; left: 50%; top: 0; width: 110px; margin-left: -55px; height: 8px; border-radius: 0 0 8px 8px; background: #A3A8B2; }

.win { position: absolute; border-radius: 11px; background: #fff; box-shadow: 0 12px 30px #0000002e, 0 0 0 1px #00000014; overflow: hidden; --tint: #FF6F91; }
.win.glide { transition: left .38s cubic-bezier(.3,.7,.2,1), top .38s cubic-bezier(.3,.7,.2,1), width .38s cubic-bezier(.3,.7,.2,1), height .38s cubic-bezier(.3,.7,.2,1); }
.win .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #F3F1F0; border-bottom: 1px solid #E6E2DF; font-size: 13px; color: #777; }
.win .bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; flex: none; }
.win .bar i:nth-child(2) { background: #FEBC2E; }
.win .bar i:nth-child(3) { background: #28C840; }
.win .bar .title { flex: 1; text-align: center; margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .bar .title::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--tint); margin-right: 6px; vertical-align: 0; }
.win .body { padding: 16px; height: calc(100% - 30px); overflow: hidden; }
.win .body b { display: block; height: 10px; border-radius: 5px; background: #EEE8E4; margin: 0 0 12px; }
.win .body b.h { height: 16px; background: #E2D9D3; margin-bottom: 16px; }
.win.kind-code .body { background: #23262F; }
.win.kind-code .body b { background: #3A3F4D; }
.win.kind-code .body b.k { background: #C792EA88; }
.win.kind-code .body b.i { margin-left: 26px; }
.win.kind-code .body b.s { background: #C3E88D77; }
.win.kind-code .bar { background: #2E323C; border-color: #1E2128; color: #A9B0BF; }
.win .url { height: 20px; border-radius: 10px; background: #F0EEED; margin-bottom: 14px; }
.win .hero { height: 34%; border-radius: 10px; background: linear-gradient(120deg, #CFE3FF, #E7D8FF); margin-bottom: 14px; }
.win .bubble { height: 26px; border-radius: 13px; margin-bottom: 12px; background: #EEF0F3; }
.win .bubble.r { margin-left: auto; background: #CDEFE2; }
.win .cover { width: 46%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, #FFB8C9, #FFD9A8); margin-bottom: 14px; }
.win .grip { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; display: none; cursor: nwse-resize; }
.win .grip::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-right: 2.5px solid #C9B8AE; border-bottom: 2.5px solid #C9B8AE; }
.interactive .win { cursor: grab; touch-action: none; }
.interactive .win.dragging { cursor: grabbing; }
.interactive .win .grip { display: block; }

.ghost { position: absolute; border: 2.5px dashed #FF6F91; border-radius: 11px; background: #FF8FA314; pointer-events: none; }
.ghost.home::before { content: "🏠"; position: absolute; left: 8px; top: 4px; font-size: 18px; }

.actor { position: absolute; pointer-events: none; }
.actor.click { pointer-events: auto; cursor: pointer; }
.actor img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.actor.shadow img { filter: drop-shadow(0 3px 4px #00000040); }
.actor .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; text-align: center; white-space: nowrap; font-family: var(--font); }
.actor.shadow .lbl { box-shadow: 0 3px 8px #00000040; }

.cursor { position: absolute; display: none; width: 34px; height: 34px; z-index: 300; pointer-events: none; filter: drop-shadow(0 2px 3px #0005); }
.cursor svg { transform-origin: 4px 2px; transition: transform .12s; }
.cursor.down svg { transform: scale(.86); }
.deskNote { position: absolute; transform: translate(-50%, -100%); background: #1F2430; color: #fff; font-size: 18px; padding: 6px 12px; border-radius: 10px; white-space: nowrap; transition: opacity .4s, transform .4s; }
.deskNote.out { opacity: 0; transform: translate(-50%, -140%); }

/* ---- how ---- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps .num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---- cards & grids ---- */
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .g4, .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .g3, .g4, .g5 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .ico { font-size: 28px; margin-bottom: 10px; }
.card.mini { padding: 18px; }
.card.mini .ico { font-size: 22px; margin-bottom: 6px; }
.card.mini h4 { margin-bottom: 6px; }
.card.mini p { font-size: 14px; }
.soonTitle { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 56px 0 22px; font-size: 22px; }
.soonGrid .card { background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: none; border: 1.5px dashed var(--line); }

/* ---- playground ---- */
.playbox { display: grid; gap: 14px; }
.playbox .demo { width: 100%; max-width: 940px; margin: 0 auto; }
.playbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.effectChips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.status { margin-left: auto; font-weight: 600; color: var(--ink-soft); min-height: 24px; }
@media (max-width: 700px) { .status { margin-left: 0; width: 100%; } }

/* ---- control ---- */
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.two h2, .two .sub { text-align: left; margin-left: 0; }
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modes li { background: var(--card); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.modes b { font-size: 16px; }
.modes span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 820px) { .two, .modes { grid-template-columns: 1fr; } }

/* ---- your own hands (teaser) ---- */
.promo { max-width: 820px; margin: 0 auto; text-align: center; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1.5px dashed var(--line); border-radius: 22px; padding: 44px 28px 36px; }
.promo h2 { margin: 14px 0 0; }
.promo .sub { margin-bottom: 0; }
.promoIcons { margin: 22px 0 0; font-size: 34px; letter-spacing: 12px; }

/* ---- roadmap & faq ---- */
.road ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.road li { margin: 6px 0; }
details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); margin: 12px 0; padding: 0 20px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--ink-soft); }
#faq h2 { margin-bottom: 28px; }

/* ---- cta & footer ---- */
.cta { padding: 80px 0 96px; background: radial-gradient(900px 400px at 50% 100%, var(--accent-soft), transparent 70%); }
.cta h2 { margin: 18px 0 26px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.footin { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .win.glide, summary::after { transition: none; }
}
