/* The homepage playground: a MacBook and an iPhone running Kite, built from
   HTML and CSS so it stays sharp at any size and can be recolored live. */

.play { margin-top: 44px; position: relative; }
.play-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--faint); font-size: 14px; min-height: 22px; transition: opacity .3s; }
.play-dot { display: none; }

/* The scene is designed at a fixed size and scaled to fit (play.js sets --s). */
.scene-wrap { position: relative; width: 100%; max-width: 1060px; margin: 0 auto; aspect-ratio: 1000 / 650; }
.scene { position: absolute; left: 0; top: 0; width: 1000px; height: 650px; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.scene-wrap.compact { aspect-ratio: 560 / 900; max-width: 520px; }
.scene-wrap.compact .scene { width: 560px; height: 900px; }

/* ── MacBook ─────────────────────────────────────────────────────────── */
.mb {
  --lid-a: #e6e7e9; --lid-b: #b7b9bd; --base-a: #e9eaec; --base-b: #a9abb0; --lip: #8e9096;
  position: absolute; left: 176px; top: 8px; width: 780px;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,.45));
}
.compact .mb { left: 20px; top: 0; transform: scale(.667); transform-origin: 0 0; }
.mb-lid {
  position: relative; padding: 2px; border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, var(--lid-a), var(--lid-b));
  transition: background .5s var(--ease);
}
.mb-bezel { position: relative; padding: 16px 13px 22px; border-radius: 22px 22px 8px 8px; background: #050506; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.mb-bezel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%); }
.mb-notch { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 116px; height: 20px; border-radius: 0 0 9px 9px; background: #050506; z-index: 5; }
.mb-notch::after { content: ""; position: absolute; left: 50%; top: 7px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c3a55, #07090d 70%); }
.mb-base {
  position: relative; left: -44px; width: 868px; height: 17px; margin-top: -1px;
  border-radius: 2px 2px 26px 26px / 2px 2px 14px 14px;
  background: linear-gradient(180deg, var(--base-a) 0%, var(--base-b) 70%, color-mix(in srgb, var(--base-b) 70%, #000) 100%);
  transition: background .5s var(--ease);
}
.mb-lip { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 150px; height: 7px; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, var(--lip), var(--base-a)); }
.mb-shadow { position: absolute; left: -20px; right: -20px; bottom: -26px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: -1; }

/* ── macOS desktop (752 × 470) ───────────────────────────────────────── */
.desk {
  --bar: rgba(20,22,28,.45); --bar-text: #fff; --win: rgba(34,35,40,.94); --win-2: rgba(255,255,255,.06); --win-text: #eceef3; --win-muted: #9aa0ad; --win-line: rgba(255,255,255,.08);
  --dock: rgba(40,42,50,.38); --dock-line: rgba(255,255,255,.18);
  position: relative; width: 752px; height: 470px; border-radius: 10px 10px 2px 2px; overflow: hidden;
  font: 12px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--win-text);
  user-select: none; -webkit-user-select: none; isolation: isolate;
}
@media (hover: hover) and (pointer: fine) { .desk.live { cursor: none; } }
.desk.light { --bar: rgba(255,255,255,.5); --bar-text: #111; --win: rgba(250,250,252,.96); --win-2: rgba(0,0,0,.04); --win-text: #1d1d1f; --win-muted: #6e6e73; --win-line: rgba(0,0,0,.08); --dock: rgba(255,255,255,.4); --dock-line: rgba(255,255,255,.55); }
.wallpaper { position: absolute; inset: 0; z-index: -1; transition: opacity .6s; }
.wp-dusk { background: radial-gradient(90% 70% at 75% 15%, #3d5a80 0%, transparent 60%), radial-gradient(80% 70% at 15% 100%, #2b3a55 0%, transparent 65%), linear-gradient(170deg, #1a2233, #0f141e); }
.wp-sunset { background: radial-gradient(90% 60% at 50% 100%, #d99a6c 0%, transparent 60%), linear-gradient(180deg, #3a3550, #8c5a6a 60%, #c98f6e); }
.wp-ocean { background: radial-gradient(80% 60% at 70% 110%, #3f8f8a 0%, transparent 60%), linear-gradient(170deg, #0d2438, #1d4d63); }
.wp-meadow { background: radial-gradient(80% 60% at 30% 110%, #8fae6a 0%, transparent 55%), linear-gradient(170deg, #2e4a3c, #5f7f58); }
.wp-graphite { background: radial-gradient(70% 70% at 70% 30%, #5a5f6b 0%, transparent 60%), linear-gradient(160deg, #1f2127, #3a3d45); }

.menubar { position: absolute; left: 0; right: 0; top: 0; height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 14px;
  background: var(--bar); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); color: var(--bar-text); font-size: 12.5px; z-index: 50; }
.menubar b { font-weight: 700; }
.menubar .mb-menus { display: flex; gap: 15px; opacity: .92; }
.menubar .mb-right { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.menubar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kite-extra { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; transition: background .2s; }
.kite-extra.watching { background: rgba(255,255,255,.22); }

.windows { position: absolute; inset: 24px 0 0; }
.win {
  position: absolute; border-radius: 11px; background: var(--win); color: var(--win-text); overflow: hidden;
  box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 0 .5px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(255,255,255,.12);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  transform-origin: 50% 120%; animation: winOpen .42s var(--ease);
  transition: box-shadow .2s, opacity .2s, transform .2s;
}
.win.back { box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.4); }
.win.back .win-title { opacity: .55; }
.win.closing { animation: winClose .22s ease-in forwards; }
@keyframes winOpen { from { opacity: 0; transform: translateY(60px) scale(.35); } to { opacity: 1; transform: none; } }
@keyframes winClose { to { opacity: 0; transform: scale(.92); } }
.win-bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--win-line); cursor: default; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win.back .lights i { background: rgba(128,128,128,.4); }
.win-title { flex: 1; text-align: center; font-weight: 600; font-size: 12px; margin-right: 44px; }
.win-body { height: calc(100% - 30px); }

/* Window contents */
.w-music { display: grid; grid-template-columns: 124px 1fr; gap: 16px; padding: 16px; }
.w-art { width: 124px; height: 124px; border-radius: 10px; background: radial-gradient(60% 60% at 30% 30%, #ff9a6b, transparent 70%), radial-gradient(70% 70% at 80% 80%, #7c4dff, transparent 70%), #ff3d6e; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.w-music h4 { margin: 8px 0 2px; font-size: 16px; }
.w-music p { margin: 0 0 14px; color: var(--win-muted); }
.w-prog { height: 4px; border-radius: 2px; background: var(--win-line); overflow: hidden; }
.w-prog i { display: block; height: 100%; width: 30%; background: var(--win-text); border-radius: 2px; transition: width 1s linear; }
.w-times { display: flex; justify-content: space-between; color: var(--win-muted); font-size: 10.5px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.w-controls { display: flex; gap: 18px; align-items: center; }
.w-controls svg { width: 20px; height: 20px; fill: currentColor; }
.w-controls .big svg { width: 26px; height: 26px; }
.w-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; }
.w-photos span { aspect-ratio: 1; border-radius: 2px; }
.w-notes { display: grid; grid-template-columns: 110px 1fr; }
.w-notes aside { border-right: 1px solid var(--win-line); padding: 10px 8px; background: var(--win-2); }
.w-notes aside div { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; }
.w-notes aside div:first-child { background: #e7b60d; color: #111; }
.w-notes aside small { display: block; color: inherit; opacity: .65; font-size: 10px; }
.w-note { padding: 14px 16px; }
.w-note h4 { margin: 0 0 8px; font-size: 16px; }
.w-typed { white-space: pre-wrap; word-break: break-word; min-height: 20px; font-size: 13px; }
.w-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #e7b60d; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.w-browser .w-url { margin: 8px 12px; height: 24px; border-radius: 7px; background: var(--win-2); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--win-muted); font-size: 11px; }
.w-page { padding: 6px 18px; }
.w-page .hero-block { height: 86px; border-radius: 10px; background: #1d1d20; margin-bottom: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.w-page .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w-page .row3 span { height: 48px; border-radius: 8px; background: var(--win-2); }
.w-mail div { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 8px; padding: 9px 12px; border-bottom: 1px solid var(--win-line); }
.w-mail i { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; }
.w-mail b { font-size: 12px; }
.w-mail small { color: var(--win-muted); font-size: 10.5px; }
.w-mail span { grid-column: 2 / 4; color: var(--win-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-cal { padding: 10px 14px; }
.w-cal h4 { margin: 0 0 8px; font-size: 16px; }
.w-cal h4 span { color: #ff453a; }
.w-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 11px; }
.w-cal-grid b { color: var(--win-muted); font-weight: 600; font-size: 9.5px; }
.w-cal-grid span { padding: 5px 0; border-radius: 50%; }
.w-cal-grid span.today { background: #ff453a; color: #fff; font-weight: 700; }
.w-cal-grid span.dim { opacity: .35; }
.w-msgs { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.w-msgs p { margin: 0; max-width: 72%; padding: 7px 11px; border-radius: 15px; background: var(--win-2); font-size: 12px; }
.w-msgs p.me { align-self: flex-end; background: #0a84ff; color: #fff; }
.w-code { background: #16171d; color: #d6deeb; padding: 10px 14px; font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.w-code .k { color: #c792ea; } .w-code .s { color: #addb67; } .w-code .f { color: #82aaff; } .w-code .c { color: #637777; }

/* Dock */
.dock { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 7px; padding: 6px 7px; border-radius: 17px;
  background: var(--dock); border: 1px solid var(--dock-line); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); z-index: 40; }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 1px; background: var(--dock-line); }
.dock button { position: relative; width: 42px; height: 42px; padding: 0; border: 0; background: none; cursor: inherit; transition: transform .18s var(--ease); }
@media (hover: hover) { .dock button:hover { transform: translateY(-5px) scale(1.12); } }
.dock button.bounce { animation: bounce .9s var(--ease); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-16px); } 50% { transform: translateY(0); } 70% { transform: translateY(-7px); } }
.dock button::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 3.5px; height: 3.5px; margin-left: -1.75px; border-radius: 50%; background: var(--bar-text); opacity: 0; transition: opacity .3s; }
.dock button.running::after { opacity: .75; }

/* App icons (dock, phone) */
.app-icon { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 23%; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 2px 5px rgba(0,0,0,.25); overflow: hidden; }
.app-icon svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-music { background: linear-gradient(180deg, #ff6b81, #fa2d48); }
.ic-photos { background: #fff; }
.ic-photos svg { stroke: none; width: 76%; height: 76%; }
.ic-notes { background: linear-gradient(180deg, #ffd84d 0 27%, #fff 27%); }
.ic-notes svg { stroke: #c9c9c9; stroke-width: 1.6; }
.ic-browser { background: linear-gradient(180deg, #5ac8fa, #0a7aff); }
.ic-mail { background: linear-gradient(180deg, #52b8ff, #1a73f0); }
.ic-calendar { background: #fff; }
.ic-calendar svg { stroke: none; width: 84%; height: 84%; }
.ic-messages { background: linear-gradient(180deg, #6ee37a, #2ab843); }
.ic-code { background: linear-gradient(160deg, #2a2e3a, #111318); }
.ic-code svg { stroke: #7cc4ff; }
.ic-kite { background: #1c1c1f; }
.ic-kite svg { stroke: none; }

.cursor-arrow { position: absolute; left: 0; top: 0; width: 20px; height: 26px; z-index: 100; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.cursor-arrow.glide { transition: transform .7s var(--ease); }
.click-ring { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); pointer-events: none; z-index: 99; animation: ring .5s ease-out forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.ctx-menu { position: absolute; z-index: 90; min-width: 130px; padding: 4px; border-radius: 8px; background: var(--win); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 0 .5px rgba(0,0,0,.4); font-size: 12px; animation: winOpen .15s ease-out; transform-origin: 0 0; }
.ctx-menu div { padding: 3px 10px; border-radius: 4px; }
.ctx-menu div:first-child { background: #0a84ff; color: #fff; }
.ctx-menu hr { border: 0; height: 1px; background: var(--win-line); margin: 4px 6px; }

/* ── iPhone ─────────────────────────────────────────────────────────── */
.ip {
  --ti-a: #c9c3ba; --ti-b: #8f8a83; --ti-edge: #e7e1d8;
  position: absolute; left: 34px; top: 134px; width: 244px; height: 500px; padding: 4px; border-radius: 50px;
  background: linear-gradient(135deg, var(--ti-edge) 0%, var(--ti-a) 18%, var(--ti-b) 50%, var(--ti-a) 82%, var(--ti-edge) 100%);
  box-shadow: 0 60px 80px -20px rgba(0,0,0,.7), 0 30px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.25);
  transition: background .5s var(--ease); z-index: 10;
}
.compact .ip { left: 158px; top: 382px; }
.ip-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ti-b), var(--ti-a)); }
.ip-action { left: -3px; top: 96px; height: 24px; }
.ip-vol-up { left: -3px; top: 140px; height: 44px; }
.ip-vol-down { left: -3px; top: 194px; height: 44px; }
.ip-power { right: -3px; top: 160px; height: 70px; background: linear-gradient(270deg, var(--ti-b), var(--ti-a)); }
.ip-bezel { position: relative; height: 100%; padding: 7px; border-radius: 46px; background: #000; }
.ip-island { position: absolute; left: 50%; top: 17px; transform: translateX(-50%); width: 78px; height: 23px; border-radius: 12px; background: #000; z-index: 20; transition: width .35s var(--ease), height .35s var(--ease); }
.ip-island.wide { width: 104px; height: 25px; }
.ip-screen {
  position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #08090c; color: #eef1f7;
  font: 11px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; user-select: none; -webkit-user-select: none;
}
.ip-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.04), rgba(255,255,255,0) 35%); z-index: 30; }
.ip-status { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 0 30px; font-weight: 600; font-size: 12.5px; z-index: 10; }
.ip-status svg { height: 9.5px; width: auto; fill: currentColor; }
.ip-status .icons { display: flex; gap: 4px; align-items: center; }
.ip-app { position: absolute; inset: 46px 0 0; display: flex; flex-direction: column; }
.ip-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; }
.ip-head .mark { width: 26px; height: 26px; }
.ip-head b { display: block; font-size: 13.5px; }
.ip-head small { display: flex; align-items: center; gap: 4px; color: #838da2; font-size: 10px; }
.ip-head small i { width: 5px; height: 5px; border-radius: 50%; background: #30d158; }
.ip-views { position: relative; flex: 1; overflow: hidden; }
.ip-view { position: absolute; inset: 0; padding: 0 12px; animation: viewIn .3s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ip-search { height: 28px; border-radius: 9px; background: rgba(255,255,255,.07); display: flex; align-items: center; gap: 6px; padding: 0 9px; color: #838da2; margin-bottom: 12px; }
.ip-search svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ip-section { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #838da2; text-transform: uppercase; margin: 0 2px 8px; }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.ip-grid button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #d5dae4; font: inherit; font-size: 9.5px; cursor: pointer; }
.ip-grid .app-icon { width: 42px; height: 42px; transition: transform .15s var(--ease); }
.ip-grid button:active .app-icon, .ip-grid button.pressed .app-icon { transform: scale(.86); opacity: .8; }

.ip-toast { position: absolute; left: 12px; right: 12px; bottom: 66px; padding: 9px 11px; border-radius: 12px; background: rgba(40,44,54,.92); backdrop-filter: blur(10px); font-size: 10.5px; display: flex; gap: 7px; align-items: center; animation: viewIn .25s var(--ease); z-index: 5; }
.ip-toast i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex: none; }

.ip-mirror { position: relative; width: 100%; aspect-ratio: 752 / 470; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08); cursor: pointer; margin-top: 10px; }
.ip-mirror > .desk { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; border-radius: 0; }
.ip-live { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px 0; color: #838da2; font-size: 10px; }
.ip-live b { color: #4ade80; font-weight: 600; }
.ip-chips { display: flex; gap: 6px; margin-top: 12px; }
.ip-chips button, .ip-pad-btns button, .ip-media button { flex: 1; height: 32px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: #eef1f7; font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.ip-chips button:active, .ip-pad-btns button:active, .ip-media button:active, .ip-keys button:active { background: rgba(255,255,255,.18); }

.ip-pad { position: relative; height: 232px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.08); touch-action: none; cursor: grab; display: grid; place-items: center; color: #5d6576; font-size: 10.5px; text-align: center; margin-top: 4px; }
.ip-pad:active { cursor: grabbing; }
.ip-finger { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(255,255,255,.3); pointer-events: none; opacity: 0; transition: opacity .15s; }
.ip-finger.on { opacity: 1; }
.ip-pad-btns { display: flex; gap: 6px; margin-top: 8px; }

.ip-typed { height: 30px; border-radius: 9px; background: rgba(255,255,255,.06); padding: 0 10px; display: flex; align-items: center; color: #d5dae4; overflow: hidden; white-space: nowrap; margin-bottom: 8px; font-size: 11px; }
.ip-typed.empty { color: #5d6576; }
.ip-media { display: flex; gap: 6px; margin-bottom: 10px; }
.ip-media button svg { width: 13px; height: 13px; fill: currentColor; vertical-align: -2px; }
.ip-keys { display: flex; flex-direction: column; gap: 6px; }
.ip-keys div { display: flex; gap: 3px; justify-content: center; }
.ip-keys button { width: 18px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.14); color: #eef1f7; font: inherit; font-size: 11.5px; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.ip-keys button.wide { width: 34px; font-size: 10px; background: rgba(255,255,255,.08); }
.ip-keys button.space { width: 110px; font-size: 10px; }

.ip-tabs { display: flex; justify-content: space-around; padding: 6px 6px 22px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(10,11,15,.85); }
.ip-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 50px; padding: 4px 0; border: 0; background: none; color: #5d6576; font: inherit; font-size: 9px; font-weight: 600; cursor: pointer; transition: color .2s; }
.ip-tabs button.on { color: #0a84ff; }
.ip-tabs svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ip-home { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 86px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.75); z-index: 25; }

/* ── Customizer ─────────────────────────────────────────────────────── */
.customize { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 36px auto 0; padding: 12px 20px; max-width: 980px; border-radius: 12px; border: 1px solid var(--line-soft); }
.cz-group { display: flex; align-items: center; gap: 10px; }
.cz-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.cz-name { font-size: 12.5px; color: var(--faint); min-width: 94px; }
.cz-swatches { display: flex; gap: 7px; }
.cz-swatches button { position: relative; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .15s var(--ease); }
.cz-swatches button:hover { transform: scale(1.12); }
.cz-swatches button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); }
.cz-swatches button:focus-visible, .cz-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cz-seg { display: flex; padding: 3px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-soft); }
.cz-seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cz-seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }

.sw-natural { background: linear-gradient(135deg, #d8d2c9, #8f8a83); }
.sw-black { background: linear-gradient(135deg, #5a5a5e, #1f1f21); }
.sw-white { background: linear-gradient(135deg, #fbfaf7, #c9c8c4); }
.sw-blue { background: linear-gradient(135deg, #6a7a90, #2f3845); }
.sw-desert { background: linear-gradient(135deg, #e0cdb6, #a48d76); }
.sw-silver { background: linear-gradient(135deg, #f1f2f4, #aeb0b5); }
.sw-spaceblack { background: linear-gradient(135deg, #4a4b4e, #161719); }
.sw-midnight { background: linear-gradient(135deg, #4a5566, #1b2029); }
.sw-starlight { background: linear-gradient(135deg, #f5ecdf, #cbbfad); }
.sw-sky { background: linear-gradient(135deg, #deebf2, #9fb6c4); }
.sw-dusk { background: linear-gradient(135deg, #0f141e, #3d5a80); }
.sw-sunset { background: linear-gradient(135deg, #3a3550, #c98f6e); }
.sw-ocean { background: linear-gradient(135deg, #0d2438, #3f8f8a); }
.sw-meadow { background: linear-gradient(135deg, #2e4a3c, #8fae6a); }
.sw-graphite { background: linear-gradient(135deg, #1f2127, #5a5f6b); }

@media (max-width: 640px) {
  .customize { gap: 14px; padding: 14px; }
  .cz-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-arrow.glide { transition: none; }
}
