@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/instrument-sans-400-600.woff2") format("woff2"); }

:root {
  --bg: #0d0e11;
  --panel: #15161b;
  --panel-2: #1c1d24;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f3f5;
  --muted: #a3a3ae;
  --accent: #ff7a45;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --top: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: var(--top) minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 35%, #17181e 0%, var(--bg) 70%);
  color: var(--text);
  font: 400 15px/1.45 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #140a05; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(button, a):focus-visible { border-radius: 999px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.brand-wrap { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  position: relative; width: 24px; height: 18px;
  border: 1.6px solid var(--text); border-radius: 5px;
}
.brand__mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 6px; border-radius: 2px; background: var(--accent); }
.brand__name { font-weight: 600; letter-spacing: -.01em; }
.brand__by { color: var(--muted); font-size: .86rem; text-underline-offset: 3px; transition: color .2s ease; }
.brand__by:hover { color: var(--text, #fff); text-decoration: underline; }

.devices {
  display: flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
}
.devices button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  color: var(--muted); font-size: .9rem;
  transition: color .2s ease, background-color .2s ease;
}
.devices button[aria-checked="true"] { background: var(--text); color: #111216; }
@media (hover: hover) and (pointer: fine) { .devices button[aria-checked="false"]:hover { color: var(--text); } }

.top__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top__close { width: 40px; height: 40px; margin-left: 4px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem;
  transition: background-color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.ghost b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); font-weight: 500; font-size: .8rem; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.ghost:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .ghost:hover { background: var(--panel); border-color: var(--line-2); } }

/* ---------- stage ---------- */
.stage { position: relative; min-height: 0; }
.screen { position: absolute; inset: 22px 92px 14px; }
.shot {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1b21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -40px rgba(0, 0, 0, .9);
  transition: opacity .45s var(--ease-out), translate .6s var(--ease-out);
}
.shot iframe { display: block; border: 0; transform-origin: 0 0; background: #1a1b21; }
.shot.is-entering { opacity: 0; translate: var(--from, 0) 0; }
.shot.is-leaving { opacity: 0; translate: calc(var(--from, 0) * -1) 0; pointer-events: none; }
.shot--phone {
  padding: 9px; border-radius: 48px;
  background: linear-gradient(145deg, #2a2b31, #0b0b0e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -36px rgba(0, 0, 0, .95);
}
.shot--phone .shot__clip { border-radius: 40px; overflow: hidden; height: 100%; }
.shot--tablet { padding: 12px; border-radius: 34px; background: linear-gradient(145deg, #2a2b31, #0b0b0e); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -36px rgba(0, 0, 0, .95); }
.shot--tablet .shot__clip { border-radius: 22px; overflow: hidden; height: 100%; }
.shot__clip { height: 100%; }
.loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.nav-btn {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-top: -26px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(21, 22, 27, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 1.1rem;
  transition: transform .16s var(--ease-out), background-color .2s ease, opacity .2s ease;
}
.nav-btn--prev { left: 22px; }
.nav-btn--next { right: 22px; }
.nav-btn:active { transform: scale(.94); }
.nav-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .nav-btn:not(:disabled):hover { background: var(--panel-2); } }

/* ---------- dock ---------- */
.dock {
  position: relative;
  display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr); align-items: center; gap: 24px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
  background: rgba(13, 14, 17, .92);
}
.info { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; min-width: 0; }
.info__count { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.info__name { margin: 0; font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.info__line { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info__more {
  grid-column: 1 / -1; justify-self: start;
  margin-top: 4px; font-size: .85rem; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .info__more:hover { text-decoration-color: currentColor; } }

.strip { display: flex; gap: 8px; max-width: 46vw; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button {
  position: relative; flex: none;
  width: 116px; aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, transform .16s var(--ease-out);
}
.strip button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .62; transition: opacity .2s ease; }
.strip button[aria-current="true"] { box-shadow: 0 0 0 2px var(--text); }
.strip button[aria-current="true"] img { opacity: 1; }
.strip button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .strip button:hover img { opacity: 1; } }
.strip .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }

.choose { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.choose .mob { display: none; }
.icon-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-size: 1.05rem;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--panel-2); } }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(255, 122, 69, .5); background: rgba(255, 122, 69, .1); }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--text); color: #111216;
  font-weight: 600;
  transition: transform .16s var(--ease-out), background-color .25s ease, color .25s ease;
}
.cta .ic { display: none; }
.cta:active { transform: scale(.97); }
.cta.is-chosen { background: var(--accent); color: #1a0b03; }
.cta.is-chosen .ic { display: block; }

.details {
  position: absolute; left: 16px; bottom: calc(100% + 10px); z-index: 5;
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: rgba(21, 22, 27, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform-origin: 20% 100%;
  animation: pop .22s var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.details__desc { margin: 0 0 16px; color: #d6d6dc; max-width: 52ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 16px; }
.facts dt { color: var(--muted); font-size: .78rem; }
.facts dd { margin: 2px 0 0; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.moves { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; }
.moves li { display: flex; gap: 10px; color: #d6d6dc; font-size: .9rem; }
.moves li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(5, 5, 7, .6); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 30; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); }
.sheet[hidden] { display: none; }
.sheet__head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { margin: 0 auto 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.sheet__head h2 span { color: var(--muted); font-weight: 400; }

.sheet--grid { inset: 14px; border-radius: 24px; overflow: hidden; animation: rise .38s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.99); } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; transition: color .2s ease, background-color .2s ease; }
.filters button[aria-pressed="true"] { background: var(--text); color: #111216; border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 0; padding: 22px; list-style: none; overflow: auto; }
.tile { position: relative; }
.tile__open { display: block; width: 100%; text-align: left; }
.tile__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile__open:hover .tile__img { transform: translateY(-3px); } }
.tile__name { display: block; margin-top: 12px; font-weight: 600; font-size: 1.05rem; }
.tile__line { display: block; color: var(--muted); font-size: .9rem; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tile__tags li { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.tile .icon-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: rgba(13, 14, 17, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #1a0b03; font-size: .76rem; font-weight: 600; }

.sheet--picks { top: 0; right: 0; bottom: 0; width: min(420px, 100vw); border-width: 0 0 0 1px; animation: slide .34s var(--ease-out); overflow: auto; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.chosen { padding: 20px; border-bottom: 1px solid var(--line); }
.chosen__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.chosen__k { margin: 0 0 10px; color: var(--accent); font-size: .85rem; font-weight: 600; }
.chosen__name { margin: 12px 0 2px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.chosen__text { margin: 0 0 16px; color: var(--muted); }
.chosen__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chosen__btns .cta { text-decoration: none; }
.chosen__btns .cta .ic { display: block; }
.chosen__empty { margin: 0; color: var(--muted); }
.picks__h { margin: 18px 20px 6px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.picks { margin: 0; padding: 0 12px 20px; list-style: none; display: grid; gap: 4px; }
.pick { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .pick:hover { background: var(--panel-2); } }
.pick img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.pick__open { text-align: left; }
.pick__name { display: block; font-weight: 600; }
.pick__line { display: block; color: var(--muted); font-size: .85rem; }
.pick .icon-btn { width: 36px; height: 36px; border-color: transparent; color: var(--muted); }
.picks__empty { margin: 0 20px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 120px; z-index: 40;
  margin: 0; padding: 10px 16px;
  border-radius: 999px;
  background: var(--text); color: #111216;
  font-size: .9rem; font-weight: 500;
  translate: -50% 12px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, translate .35s var(--ease-out);
}
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .devices span, .ghost span { display: none; }
  .strip { max-width: 34vw; }
  .screen { inset: 18px 76px 12px; }
  .nav-btn--prev { left: 14px; }
  .nav-btn--next { right: 14px; }
}
@media (max-width: 760px) {
  :root { --top: 56px; }
  .top { padding: 0 12px; gap: 8px; }
  .brand__by, .devices { display: none; }
  .top__close { width: 38px; height: 38px; margin-left: 0; }
  .screen { inset: 0; }
  .shot { border-radius: 0; box-shadow: none; }
  .nav-btn { display: none; }
  .dock { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .strip { display: none; }
  .info__name { font-size: 1.15rem; }
  .info__line { display: none; }
  .info__more { margin-top: 0; }
  .cta { height: 46px; padding: 0 18px; }
  .choose .icon-btn[data-full] { display: none; }
  .choose { gap: 6px; }
  .choose .mob { display: grid; }
  .choose .icon-btn { width: 40px; height: 40px; }
  .icon-btn:disabled { opacity: .3; }
  .details { left: 8px; right: 8px; width: auto; }
  .sheet--grid { inset: 0; border-radius: 0; }
  .grid { grid-template-columns: 1fr; padding: 16px; }
  .sheet__head { flex-wrap: wrap; }
  .filters { order: 3; width: 100%; }
  .toast { bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
