@font-face { font-family: Fellix; src: url(/app/fellix-light.ttf) format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: Fellix; src: url(/app/fellix-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PP Supply Sans'; src: url(/app/ppsupply.ttf) format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --black: #000;
  --ink: #050608;
  --light: #fff;
  --grey: #8b8d93;
  --dim: #4a4c52;
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .06);
  --navy: #2a4bff;
  --navy-soft: rgba(52, 92, 255, .18);
  --radius: .25rem;
  --sans: Fellix, Arial, sans-serif;
  --mono: 'PP Supply Sans', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--light); }
body { font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: 0; pointer-events: none; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.75) 45%, #000 85%); }
header, main, footer { position: relative; z-index: 1; }

.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2rem; font-size: .72rem; line-height: 1; }
.label { color: var(--grey); }
.muted { color: var(--grey); }
.small { font-size: .85rem; }

/* top bar: same three-part layout as the site */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.4rem 2rem; }
.top .link { text-decoration: none; color: var(--grey); justify-self: start; }
.top .link:hover { color: var(--light); }
.brand img { display: block; width: 9.5rem; height: auto; }
.top .btn { justify-self: end; }

.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .2rem; font-size: .72rem; line-height: 1;
  padding: .85rem 1.1rem; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.1); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.18); }
.btn.solid { background: var(--light); color: var(--black); }
.btn.solid:hover { background: #d9dbe2; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--dim); }
.btn.on .dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.15); }

main { width: min(1240px, 100%); margin: 0 auto; padding: 0 2rem; }

.intro { text-align: center; padding: 9vh 0 6vh; }
.intro .kicker { color: var(--light); margin-bottom: 1.6rem; }
h1 { font-weight: 300; font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: .95; letter-spacing: -.04em; margin: 0; }
.lede { max-width: 34rem; margin: 1.8rem auto 0; color: var(--grey); font-size: 1.05rem; }
h2 { font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.03em; margin: 1rem 0 0; }
h3 { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; margin: .9rem 0 0; }

/* corner-bracket frame, like the site's comparison cards */
.frame { position: relative; padding: .625rem; }
.frame > i { position: absolute; width: .9rem; height: .9rem; border-color: rgba(255,255,255,.45); border-style: solid; border-width: 0; pointer-events: none; }
.frame > i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame > i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame > i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame > i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.desk .frame { display: grid; grid-template-columns: 1.25fr 1fr; gap: .625rem; }
.desk-img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.desk-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .4s; }
.desk-img .tag { position: absolute; left: 1rem; top: 1rem; }
.desk-body { background: var(--black); border-radius: var(--radius); padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.desk-body p { margin: 1.2rem 0 0; max-width: 26rem; }
.actions { margin-top: 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.note { color: var(--grey); margin-top: 1.2rem; line-height: 1.6; letter-spacing: .12rem; }
.specs { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.specs span:last-child { color: var(--light); }
.state { display: flex; align-items: center; gap: .55rem; color: var(--light); margin-bottom: 1.1rem; }
.state::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #3ddc84; animation: pulse 1.6s ease-in-out infinite; }
.state.idle::before { background: var(--dim); animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,.5); } 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } }

.rig { margin-top: .625rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cell { background: var(--black); padding: 1.6rem 1.4rem; min-width: 0; }
.big { font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -.02em; margin-top: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--grey); margin-top: .8rem; letter-spacing: .12rem; font-size: .65rem; }
.bar { height: 2px; background: var(--line); margin-top: 1rem; }
.bar b { display: block; height: 100%; width: 0; background: var(--light); transition: width .6s; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: .625rem; margin-top: .625rem; }
.panel { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; min-width: 0; }
.list { list-style: none; margin: 1rem 0 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.list li:last-child { border-bottom: 0; }
.list .when, .list .who { color: var(--grey); font-family: var(--mono); font-size: .65rem; letter-spacing: .12rem; text-transform: uppercase; }
.list a { color: var(--grey); font-family: var(--mono); font-size: .65rem; letter-spacing: .12rem; text-transform: uppercase; text-decoration: none; }
.list a:hover { color: var(--light); }
.up { display: grid; grid-template-columns: 7rem 1fr; gap: 1.2rem; align-items: center; margin-top: 1rem; }
.up img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.up .name { font-size: 1.4rem; font-weight: 300; }
.up p { margin: .4rem 0 0; color: var(--grey); font-size: .9rem; }

.sec-head { padding: 9rem 0 2.4rem; }
.table { border-top: 1px solid var(--line); }
.tr { display: grid; grid-template-columns: 6.5rem 1.3fr 1fr .8fr 1fr 1.1fr; gap: 1.2rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.tr.head { padding: .8rem 0; }
.tr.head span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2rem; font-size: .62rem; color: var(--dim); }
.tr img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.tr .nm { font-size: 1.3rem; font-weight: 300; letter-spacing: -.01em; }
.tr .md { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14rem; font-size: .62rem; color: var(--grey); display: block; margin-top: .4rem; }
.tr .num { font-variant-numeric: tabular-nums; }
.tr .num small { color: var(--grey); display: block; font-size: .78rem; margin-top: .2rem; }
.tr.you { background: var(--navy-soft); box-shadow: inset 2px 0 0 var(--navy); }
.tr.you .nm::after { content: 'Yours'; font-family: var(--mono); text-transform: uppercase; letter-spacing: .2rem; font-size: .58rem; margin-left: .7rem; vertical-align: middle; padding: .3rem .45rem; border-radius: var(--radius); background: var(--light); color: var(--black); }
#ladderNote { margin-top: 1.2rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats .cell .big { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.feed { margin-top: .625rem; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }

.foot { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; padding: 6rem 2rem 2rem; color: var(--dim); font-size: .62rem; }
.foot a { text-decoration: none; color: var(--grey); }
.foot a:hover { color: var(--light); }

.picker { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1rem; }
.picker-card { width: min(22rem, 100%); background: var(--black); padding: 1.8rem; display: flex; flex-direction: column; gap: .6rem; }
.picker-card .label { margin-bottom: .8rem; }
.picker-card .btn { justify-content: space-between; width: 100%; }
#pickerList { display: flex; flex-direction: column; gap: .5rem; }
#pickerList .btn img { width: 1.3rem; height: 1.3rem; border-radius: .2rem; }
#pickerClose { margin-top: .8rem; justify-content: center; background: transparent; color: var(--grey); }
.toast { position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 30; background: var(--light); color: var(--black); padding: 1rem 1.3rem; border-radius: var(--radius); letter-spacing: .12rem; line-height: 1.5; max-width: calc(100% - 2rem); text-align: center; }

@media (max-width: 991px) {
  .desk .frame { grid-template-columns: 1fr; }
  .grid4, .stats { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 5rem 1.3fr .8fr .8fr 1fr; }
  .tr .c-watts { display: none; }
}
@media (max-width: 600px) {
  .top { grid-template-columns: auto 1fr; padding: 1rem; gap: 1rem; }
  .top .link { display: none; }
  .brand img { width: 7.5rem; }
  .top .btn { padding: .75rem .8rem; letter-spacing: .12rem; }
  main { padding: 0 1rem; }
  .intro { padding: 7vh 0 4vh; }
  .desk-body { padding: 1.5rem 1.2rem; }
  .cell, .panel, .feed { padding: 1.2rem 1rem; }
  .grid4 .big { font-size: 1.25rem; }
  .tr { grid-template-columns: 3.6rem 1fr auto auto; gap: .8rem; }
  .tr .c-th, .tr .c-watts { display: none; }
  .tr .nm { font-size: 1.1rem; }
  .sec-head { padding-top: 5.5rem; }
  .list li { grid-template-columns: 1fr auto; }
  .list li .when { display: none; }
  .foot { padding: 4rem 1rem 1.5rem; gap: 1rem; }
}
