/* Download page of bcRemoteTv. The colours are the app's own
   (lib/ui/theme.dart): a dark matte body, keys a shade lighter, and one
   pale key, which here is the download button. */
:root {
  --body: #1B2130;
  --deep: #151A27;
  --key: #2B3347;
  --line: #2F384D;
  --bone: #E8E4DA;
  --muted: #9AA3B8;
  --frame: #0D111B;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--body);
  color: var(--bone);
  font: 17px/1.6 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 0.18em; }

a:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Top bar */

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

.top nav { display: flex; align-items: center; gap: 4px; }

.top nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover { color: var(--bone); background: var(--key); }

.top nav .lang { color: var(--bone); border: 1px solid var(--line); margin-left: 8px; }

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.byline { margin: 0.9rem 0 1.6rem; color: var(--muted); }

.lead { margin: 0 0 2rem; max-width: 29em; font-size: 1.28rem; line-height: 1.5; }

.btn {
  display: inline-flex;
  flex-direction: column;
  padding: 15px 36px 16px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.btn small { font-size: 0.8rem; font-weight: 500; opacity: 0.72; }

.btn:hover { background: #fff; }

.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.note { margin: 1.4rem 0 0; max-width: 32em; color: var(--muted); font-size: 0.94rem; }

/* The phone sits on a disc the shape of the remote's direction pad. */
.stage { position: relative; display: grid; place-items: center; margin: 0; }

.stage::before {
  content: "";
  position: absolute;
  width: min(118%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--key);
}

.phone {
  position: relative;
  width: min(100%, 268px);
  border: 7px solid var(--frame);
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

/* Sections */

section { padding: 76px 0; }

.band { background: var(--deep); }

h2 {
  margin: 0 0 0.45em;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.sub { margin: 0 0 2.4rem; max-width: 37em; color: var(--muted); }

/* What it does: a name and a line about it, row after row. */
.can {
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr;
  column-gap: 44px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.can dt, .can dd { margin: 0; padding: 19px 0; border-bottom: 1px solid var(--line); }

.can dt { font-weight: 650; }

.can dd { color: var(--muted); }

/* Screens */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.shots figure { margin: 0; }

.shots .phone { width: min(100%, 250px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }

.shots figcaption { margin-top: 16px; max-width: 16em; color: var(--muted); font-size: 0.95rem; }

/* Installing is the one thing here that happens in order. */
.steps {
  margin: 0 0 2.6rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  color: var(--bone);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.steps strong { color: var(--bone); font-weight: 650; }

.know { margin: 0; padding-left: 1.15em; max-width: 44em; color: var(--muted); }

.know li { margin-bottom: 0.7em; }

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 0.94rem; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

footer p { margin: 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; padding-top: 24px; padding-bottom: 64px; }
  .stage::before { width: min(100%, 380px); }
  .top nav .opt { display: none; }
  section { padding: 56px 0; }
  .can { grid-template-columns: 1fr; }
  .can dt { padding-bottom: 0; border-bottom: 0; }
  .can dd { padding-top: 4px; }
  .shots { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .shots figcaption { text-align: center; margin-left: auto; margin-right: auto; }
  .steps li { grid-template-columns: 52px 1fr; }
  .btn { width: 100%; align-items: center; text-align: center; }
}
