/* Orbit Player — orbit-player.com
   Dressed like the player itself: the Nord theme, Roboto, and the bordered tiles of its Settings menu. */
:root {
  --rail: #0f1115;       /* the player's side rail / bottom bar */
  --page: #333a47;       /* the page, as in the player's Settings */
  --panel: #2d323e;      /* a band set back from the page */
  --tile: #383f4d;       /* tiles */
  --tile-hover: #434a5b;
  --line: #252a33;       /* tile borders, as in the player */
  --rule: #4a5263;       /* hairlines on the page */
  --text: #eceff4;
  --dim: #a9b1c0;
  --accent: #88c0d0;     /* Nord's blue: section headings, switches, buttons */
  --on-accent: #1b2028;
  --ring: #add096;       /* the logo's green, used only with the logo */
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 17px/1.55 Roboto, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--rail); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }

/* ---------- Header: the player's dark bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: var(--rail);
}
.brand img { width: 150px; height: auto; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.top nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--dim); }
.top nav a:not(.btn):hover { color: var(--accent); }
.menu { display: none; }

/* ---------- Buttons and links (the player's "Set PIN" button) ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500;
  text-decoration: none;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.1); }
.top nav a.btn { color: var(--on-accent); }
.btn.small { padding: 8px 16px; }
.btn.ghost { background: var(--tile); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--tile-hover); filter: none; }
.link { font-weight: 500; color: var(--accent); text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; max-width: none; }
.fine { color: var(--dim); font-size: 0.88rem; }

/* ---------- Tiles: the rows of the player's Settings menu ---------- */
.tile-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: var(--tile); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); text-decoration: none;
}
.tile-row .ic { flex: none; width: 24px; height: 24px; color: var(--text); }
.tile-row .tx { flex: 1; min-width: 0; }
.tile-row b { display: block; font-size: 1.12rem; font-weight: 500; }
.tile-row .tx span { display: block; color: var(--dim); font-size: 0.95rem; }
.tile-row .chev { flex: none; width: 20px; height: 20px; color: var(--dim); }
a.tile-row:hover { background: var(--tile-hover); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: 24px;
  max-width: 1400px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 104px);
}
.lede { font-size: 1.2rem; margin-top: 24px; max-width: 54ch; color: var(--text); }
.hero .fine { margin-top: 26px; max-width: 54ch; }

.orbit { margin: 0; }
.orbit svg { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--ring); stroke-width: 5; }
.ring.thin { stroke-width: 1.5; stroke: var(--rule); }
.you rect:first-of-type { fill: var(--text); }
.you rect:last-of-type { fill: var(--page); }
.you-label { fill: var(--text); font: 700 20px Roboto, sans-serif; }
.chip rect { fill: var(--tile); stroke: var(--line); stroke-width: 1.5; }
.chip text { fill: var(--text); font: 500 15px Roboto, sans-serif; }
.chip.alt rect { fill: var(--accent); stroke: var(--accent); }
.chip.alt text { fill: var(--on-accent); }

/* ---------- Bands. A section's small heading is accent-coloured, like "Playlists" in the player. ---------- */
.band { padding: clamp(56px, 7vw, 104px) 0; }
.band.light { background: var(--panel); }
.intro { font-size: 1.12rem; margin-top: 18px; max-width: 60ch; color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sub { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin: 44px 0 14px; }

/* Players */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.platforms article { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 6px; }
.platforms .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.platforms .head svg { flex: none; width: 26px; height: 26px; }
.platforms h3 { font-size: 1.2rem; }
.where { color: var(--dim); font-size: 0.95rem; margin: 2px 0 0; }
.platforms article > p { color: var(--text); font-size: 0.98rem; }

.does { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.does li { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--dim); }
.does b { color: var(--text); font-weight: 500; }

/* Family */
.steps { margin: 32px 0 24px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 54px; max-width: 54ch; color: var(--dim); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -3px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700;
}
.steps b { display: block; color: var(--text); font-weight: 500; }

/* The mock-up of the account page */
.panel { background: var(--page); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel-title { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin: 2px 6px 12px; }
.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.devices li { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.devices li.open { border-color: var(--accent); }
.dev-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dev-head b { font-weight: 500; }
.dev-head .meta { color: var(--dim); font-size: 0.86rem; margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5e6779; align-self: center; flex: none; }
.dot.on { background: var(--ring); }
.devices dl { margin: 12px 0 0; }
.devices dl div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.devices dt { color: var(--dim); }
.devices dd { margin: 0; text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--page); }
.seg i { font-style: normal; padding: 3px 11px; font-size: 0.84rem; color: var(--dim); }
.seg i.sel { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.sw { display: inline-block; width: 46px; height: 26px; border-radius: 13px; background: var(--page); border: 1px solid var(--line); position: relative; vertical-align: middle; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); }
.sw.on { background: var(--accent); border-color: var(--accent); }
.sw.on::after { left: 23px; background: #fff; }
.sent { margin: 10px 0 0; font-size: 0.86rem; color: var(--accent); font-weight: 500; }

/* Clients */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.cols > div { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 6px; }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--dim); font-size: 0.98rem; }
.private { margin-top: 12px; padding: 20px; background: var(--tile); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
.private h3 { margin-bottom: 8px; }
.private p { margin: 0; color: var(--dim); }

/* White label */
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.ticks li { padding: 13px 16px 13px 46px; position: relative; max-width: 58ch; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 13px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-self: center; }
.tile { aspect-ratio: 3 / 4; border-radius: 16px; display: grid; place-items: center; text-align: center; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.05; border: 1px solid var(--line); }
.tile.t1 { background: #f2e9d8; color: #7a2e12; font-weight: 900; letter-spacing: 0.02em; transform: translateY(-18px); }
.tile.t2 { background: #1d2b6b; color: #ffd166; font-weight: 300; font-style: italic; }
.tile.t3 { background: #e4572e; color: #fff; font-weight: 900; letter-spacing: 0.08em; transform: translateY(18px); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.price { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.price:nth-child(2) { border-color: var(--accent); }
.amount { margin: 12px 0 14px; }
.num { font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: var(--accent); }
.per { color: var(--dim); }
.has { list-style: none; padding: 0; margin: 0 0 26px; align-self: stretch; }
.has li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); }
.has li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 6px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.has li.no { color: var(--dim); }
.has li.no::before { border: 0; width: 12px; height: 3px; top: 19px; background: #6c7588; transform: none; }
.price .btn { margin-top: auto; }

/* What we are not */
.notice { background: var(--rail); border-left: 6px solid var(--accent); padding: clamp(36px, 5vw, 60px) 0; }
.notice h2 { max-width: none; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.notice p { margin: 14px 0 0; max-width: 78ch; color: var(--dim); }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }

/* Questions: tiles that open */
#questions h2 { margin-bottom: 28px; }
details { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 500; font-size: 1.08rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 21px; width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(-45deg); transition: transform 0.15s; }
details[open] summary::after { transform: rotate(45deg); top: 18px; }
details p { color: var(--dim); padding: 0 16px 8px; }

/* Footer: the dark bar again */
.foot { background: var(--rail); padding: 44px 0 52px; color: var(--dim); font-size: 0.94rem; }
.foot img { width: 66px; height: auto; margin-bottom: 20px; }
.foot a { margin-right: 22px; color: var(--text); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .orbit { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .platforms, .cols, .prices, .downloads, .does { grid-template-columns: minmax(0, 1fr); }
  .swatches { max-width: 420px; }

  .menu {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: var(--tile); color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .menu[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .top nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--rail);
    padding: 8px var(--gutter) 22px;
  }
  .top nav.show { display: flex; }
  .top nav a:not(.btn), .top nav .linkbtn { display: block; padding: 14px 0; width: 100%; text-align: left; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .top nav form { width: 100%; }
  .top nav .btn { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after { transition: none; }
}
