/* Inter variable 400–800 (SIL OFL 1.1), self-hosted. Paths are relative to dist/theme.css. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Smart Remote TV — the product site of a phone remote for Android TV.
 *
 * One accent: the app's blue (#3B82F6, Theme.swift `accent`). The site itself
 * has a light and a dark mode; the drawn phones are always dark, because the
 * app is (UIUserInterfaceStyle: Dark) and a light phone would be a different app.
 * The phone palette is the app's own and is not themable.
 */

/* -------------------------------------------------------------------------
 * Colour modes: light base, OS dark unless light was chosen, explicit dark.
 * The two dark blocks must match — build.mjs refuses to build when they drift.
 * ---------------------------------------------------------------------- */

:root {
  --rt-accent: #3b82f6;
  --rt-on-accent: #ffffff;

  --rt-sans: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --rt-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;

  --rt-radius-sm: 10px;
  --rt-radius: 16px;
  --rt-radius-lg: 28px;
  --rt-pill: 999px;
  --rt-band: clamp(56px, 7vw, 112px);
  --rt-gutter: 20px;

  --rt-bg: #ffffff;
  --rt-panel: #ffffff;
  --rt-tint: #f3f6fc;
  --rt-fill: #e9eef8;
  --rt-line: #e2e8f2;
  --rt-ink: #0d1326;
  --rt-muted: #5b6579;
  --rt-glow: rgba(59, 130, 246, 0.16);
  --rt-shadow: 0 30px 70px -30px rgba(13, 19, 38, 0.45);
  --rt-shadow-sm: 0 10px 26px -14px rgba(13, 19, 38, 0.3);
  --rt-good: #16a34a;
  --rt-warn: #b45309;
  --rt-warn-bg: #fff7e6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rt-bg: #0b1020;
    --rt-panel: #121a2e;
    --rt-tint: #0e152a;
    --rt-fill: #1a2238;
    --rt-line: #222c45;
    --rt-ink: #eceff4;
    --rt-muted: #9aa3af;
    --rt-glow: rgba(59, 130, 246, 0.28);
    --rt-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
    --rt-shadow-sm: 0 10px 26px -12px rgba(0, 0, 0, 0.6);
    --rt-good: #4ade80;
    --rt-warn: #f5b84a;
    --rt-warn-bg: #241c0e;
  }
}

:root[data-theme="dark"] {
  --rt-bg: #0b1020;
  --rt-panel: #121a2e;
  --rt-tint: #0e152a;
  --rt-fill: #1a2238;
  --rt-line: #222c45;
  --rt-ink: #eceff4;
  --rt-muted: #9aa3af;
  --rt-glow: rgba(59, 130, 246, 0.28);
  --rt-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --rt-shadow-sm: 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  --rt-good: #4ade80;
  --rt-warn: #f5b84a;
  --rt-warn-bg: #241c0e;
}

/* ---- Base ---- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--rt-bg);
  color: var(--rt-ink);
}

.rt {
  min-height: 100vh;
  background: var(--rt-bg);
  color: var(--rt-ink);
  font-family: var(--rt-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.rt *,
.rt *::before,
.rt *::after {
  box-sizing: border-box;
}

.rt a {
  color: inherit;
}

.rt img {
  max-width: 100%;
}

.rt h1,
.rt h2,
.rt h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rt__container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--rt-gutter);
}

.rt__measure {
  max-width: 780px;
}

.rt__skip {
  position: absolute;
  left: -9999px;
}

.rt__skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--rt-radius-sm);
  background: var(--rt-accent);
  color: var(--rt-on-accent);
}

.rt__eyebrow {
  margin: 0 0 12px;
  color: var(--rt-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rt__lead {
  margin: 14px 0 0;
  color: var(--rt-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

.rt__accent {
  color: var(--rt-accent);
}

.rt__note {
  margin: 28px auto 0;
  max-width: 720px;
  color: var(--rt-muted);
  font-size: 14px;
  text-align: center;
}

/* ---- Buttons ---- */

.rt__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--rt-pill);
  background: var(--rt-accent);
  color: var(--rt-on-accent) !important;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px var(--rt-accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.rt__button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.rt__button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.rt__button--ghost {
  background: transparent;
  color: var(--rt-ink) !important;
  box-shadow: inset 0 0 0 1px var(--rt-line);
}

.rt__text-link {
  color: var(--rt-accent) !important;
  font-weight: 650;
  text-decoration: none;
}

.rt__text-link:hover {
  text-decoration: underline;
}

.rt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.rt__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--rt-pill);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rt-line);
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}

.rt__icon-btn:hover {
  box-shadow: inset 0 0 0 1px var(--rt-ink);
}

/* ---- Store badges: black in both modes, like the official ones ---- */

.rt__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rt__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  height: 54px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: #05070d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.rt__store:hover {
  transform: translateY(-1px);
}

.rt__store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.rt__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rt__store small {
  font-size: 11px;
  opacity: 0.8;
}

.rt__store strong {
  font-size: 18px;
  font-weight: 650;
}

.rt__store--soon {
  opacity: 0.6;
  cursor: default;
}

/* ---- Header ---- */

.rt__header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--rt-bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rt-line);
}

.rt__header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.rt__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.rt__brand img,
.rt__brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
}

.rt__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.rt__brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.rt__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rt__brand-text strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.rt__brand-text small {
  color: var(--rt-muted);
  font-size: 13px;
}

.rt__menu-button {
  display: none;
}

.rt__header-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.rt__nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt__nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--rt-pill);
  color: var(--rt-muted);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}

.rt__nav a:hover {
  background: var(--rt-fill);
  color: var(--rt-ink);
}

.rt__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Language switcher ---- */

.rt__lang {
  position: relative;
}

.rt__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--rt-pill);
  box-shadow: inset 0 0 0 1px var(--rt-line);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.rt__lang summary::-webkit-details-marker {
  display: none;
}

.rt__lang summary i {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.rt__flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}

.rt__lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border-radius: var(--rt-radius);
  background: var(--rt-panel);
  box-shadow: var(--rt-shadow-sm), inset 0 0 0 1px var(--rt-line);
  list-style: none;
}

.rt__lang a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--rt-radius-sm);
  font-size: 14px;
  text-decoration: none;
}

.rt__lang a:hover,
.rt__lang a[aria-current="page"] {
  background: var(--rt-fill);
}

/* ---- Mobile header: :target drawer ---- */

@media (max-width: 900px) {
  .rt__menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: var(--rt-pill);
    box-shadow: inset 0 0 0 1px var(--rt-line);
  }

  .rt__menu-bars,
  .rt__menu-bars::before,
  .rt__menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .rt__menu-bars {
    position: relative;
  }

  .rt__menu-bars::before,
  .rt__menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .rt__menu-bars::before {
    top: -6px;
  }

  .rt__menu-bars::after {
    top: 6px;
  }

  .rt__menu-bars--x {
    background: transparent;
  }

  .rt__menu-bars--x::before {
    top: 0;
    transform: rotate(45deg);
  }

  .rt__menu-bars--x::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .rt__menu-button--close {
    display: none;
  }

  .rt:has(#rt-menu:target) .rt__menu-button--open {
    display: none;
  }

  .rt:has(#rt-menu:target) .rt__menu-button--close {
    display: inline-flex;
  }

  .rt__header-panel {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px var(--rt-gutter) 32px;
    overflow-y: auto;
    background: var(--rt-bg);
  }

  .rt__header-panel:target {
    display: flex;
  }

  .rt__nav ul {
    flex-direction: column;
  }

  .rt__nav a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--rt-line);
    font-size: 18px;
    color: var(--rt-ink);
  }

  .rt__nav a:hover {
    background: transparent;
  }

  .rt__header-actions {
    flex-wrap: wrap;
  }
}

/* ---- Sections ---- */

.rt__section {
  padding: var(--rt-band) 0;
}

.rt__section--tint {
  background: var(--rt-tint);
}

.rt__section--ink {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    linear-gradient(180deg, #0b1020, #101830);
  color: #eceff4;
}

.rt__section--ink .rt__lead,
.rt__section--ink .rt__note {
  color: #9aa3af;
}

.rt__section--text {
  padding: 0 0 28px;
}

.rt__section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.rt__section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 780;
}

.rt__section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Hero ---- */

.rt__hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px);
  background:
    radial-gradient(50% 60% at 78% 40%, var(--rt-glow), transparent 70%),
    var(--rt-bg);
}

.rt__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.rt__hero-title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.rt__hero-copy {
  max-width: 560px;
}

.rt__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 32px;
}

.rt__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--rt-muted);
  font-size: 14px;
  font-weight: 550;
}

.rt__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rt__hero-notes svg {
  width: 17px;
  height: 17px;
  fill: var(--rt-good);
}

.rt__hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.rt__hero-phones .rt__phone--front {
  position: relative;
  z-index: 2;
  width: min(320px, 72%);
  transform: translateX(-14%);
}

.rt__hero-phones .rt__phone--back {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 50%;
  width: min(270px, 60%);
  transform: translateX(-2%) rotate(6deg);
  opacity: 0.92;
}

.rt__hero-phones--one .rt__phone--front {
  transform: none;
}

@media (max-width: 900px) {
  .rt__hero-grid {
    grid-template-columns: 1fr;
  }

  .rt__hero-phones {
    margin-top: 12px;
  }
}

/* -------------------------------------------------------------------------
 * The phone. Outside: a titanium frame. Inside: the app at 1em = 10pt,
 * because the screen is a size container 44em (440pt) wide.
 * ---------------------------------------------------------------------- */

.rt__phone {
  margin: 0;
  padding: 3.2%;
  border-radius: 13.5% / 6.4%;
  background: linear-gradient(145deg, #3a3f4b, #16181e 45%, #2b2f38);
  box-shadow:
    var(--rt-shadow),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 5px #0a0b0f;
}

.rt__screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 440 / 956;
  overflow: hidden;
  border-radius: 11% / 5.1%;
  background: #0d1326;
}

.rt__app {
  --a-bg-top: #0b1020;
  --a-bg-bottom: #101830;
  --a-key: #1a2238;
  --a-key-edge: rgba(255, 255, 255, 0.07);
  --a-pad: #141b2e;
  --a-accent: #3b82f6;
  --a-accent-deep: #1d4ed8;
  --a-text: #eceff4;
  --a-dim: #9aa3af;
  --a-green: #22c55e;

  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 1.6em;
  background: linear-gradient(180deg, var(--a-bg-top), var(--a-bg-bottom));
  color: var(--a-text);
  font-family: var(--rt-ios);
  font-size: calc(100cqw / 44);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  user-select: none;
}

.rt__app .rt__ph {
  width: 2.2em;
  height: 2.2em;
  fill: currentColor;
  flex: none;
}

/* Status bar + Dynamic Island */
.rt__sb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6em;
  padding: 0.6em 1.4em 0 1.6em;
  font-size: 1em;
}

.rt__sb-time {
  font-size: 1.7em;
  font-weight: 600;
}

.rt__sb-island {
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 12.4em;
  height: 3.6em;
  border-radius: 2em;
  background: #000;
  transform: translateX(-50%);
}

.rt__sb-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.rt__sb-icons svg {
  width: 1.8em;
  height: 1.3em;
  fill: currentColor;
}

.rt__sb-icons .rt__ph {
  width: 1.8em;
  height: 1.8em;
}

.rt__sb-batt {
  position: relative;
  width: 2.7em;
  height: 1.3em;
  padding: 0.15em;
  border: 0.12em solid rgba(255, 255, 255, 0.5);
  border-radius: 0.4em;
}

.rt__sb-batt i {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: 0.2em;
  background: currentColor;
}

/* App header: icon, name, connection, cast + settings */
.rt__ah {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin-top: 1.4em;
  height: 4.6em;
}

.rt__ah-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4em;
  height: 4.4em;
  border-radius: 1.1em;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0.4em 1.2em -0.3em rgba(59, 130, 246, 0.7);
}

.rt__ah-logo .rt__ph {
  width: 2.6em;
  height: 2.6em;
}

.rt__ah-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.25em;
}

.rt__ah-text b {
  font-size: 2em;
  font-weight: 700;
  white-space: nowrap;
}

.rt__ah-text small {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--a-dim);
  font-size: 1.35em;
  white-space: nowrap;
}

.rt__ah-text small .rt__ph {
  width: 1em;
  height: 1em;
}

.rt__ah-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--a-green);
  box-shadow: 0 0 0.5em var(--a-green);
}

.rt__ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: var(--a-key);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
}

/* Tab bar */
.rt__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4em;
  height: 7em;
  margin-top: 1.6em;
  padding: 0.5em;
  border-radius: 2em;
  background: rgba(38, 46, 67, 0.75);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
}

.rt__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  border-radius: 1.6em;
  color: var(--a-dim);
  font-size: 1.35em;
  white-space: nowrap;
}

.rt__tab .rt__ph {
  width: 1.6em;
  height: 1.6em;
}

.rt__tab--on {
  background: linear-gradient(180deg, #4b8ff8, var(--a-accent-deep));
  color: #fff;
  font-weight: 650;
  box-shadow: 0 0.6em 1.6em -0.6em rgba(59, 130, 246, 0.9);
}

/* Keys */
.rt__keyrow {
  display: grid;
  grid-template-columns: 10.5em 8.8em 1fr;
  gap: 1em;
  height: 5.8em;
  margin-top: 1.4em;
}

.rt__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border-radius: 1.8em;
  background: linear-gradient(180deg, #1d2640, var(--a-key));
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge), 0 0.4em 1em -0.4em rgba(0, 0, 0, 0.6);
}

.rt__key--vol {
  justify-content: space-around;
}

.rt__key--vol > i {
  width: 0.1em;
  height: 2.6em;
  background: rgba(255, 255, 255, 0.14);
}

.rt__key--vol > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 1em;
}

.rt__key--vol > span {
  font-size: 2.2em;
  font-weight: 300;
}

.rt__key--vol > span .rt__ph {
  width: 1em;
  height: 1em;
}

/* D-pad area: four round keys around the circle */
.rt__pad {
  position: relative;
  flex: 1;
  min-height: 30em;
}

.rt__dpad {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26.4em;
  height: 26.4em;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #233056, #151d36 70%);
  box-shadow:
    inset 0 0 0 0.12em rgba(96, 140, 230, 0.5),
    0 0 3.6em -0.4em rgba(59, 130, 246, 0.45);
  transform: translate(-50%, -50%);
}

.rt__dpad .rt__ph {
  position: absolute;
  width: 2.2em;
  height: 2.2em;
}

.rt__dpad-up {
  top: 3.2em;
  left: calc(50% - 1.1em);
}

.rt__dpad-down {
  bottom: 3.2em;
  left: calc(50% - 1.1em);
}

.rt__dpad-left {
  left: 3.2em;
  top: calc(50% - 1.1em);
}

.rt__dpad-right {
  right: 3.2em;
  top: calc(50% - 1.1em);
}

.rt__ok {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9.6em;
  height: 9.6em;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1f2a4a, #121a31);
  box-shadow: inset 0 0 0 0.3em var(--a-accent), 0 0 2em -0.2em rgba(59, 130, 246, 0.8);
  font-size: 1em;
  transform: translate(-50%, -50%);
}

.rt__ok {
  font-size: 2.9em;
  font-weight: 700;
  width: 3.3em;
  height: 3.3em;
  box-shadow: inset 0 0 0 0.1em var(--a-accent), 0 0 0.7em -0.1em rgba(59, 130, 246, 0.8);
}

.rt__round {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4em;
  height: 6.4em;
  border-radius: 50%;
  background: linear-gradient(180deg, #1d2640, var(--a-key));
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge), 0 0.4em 1em -0.4em rgba(0, 0, 0, 0.6);
}

.rt__round--tl,
.rt__round--tr {
  top: calc(50% - 13.2em);
}

.rt__round--bl,
.rt__round--br {
  top: calc(50% + 6.8em);
}

.rt__round--tl,
.rt__round--bl {
  left: 0;
}

.rt__round--tr,
.rt__round--br {
  right: 0;
}

/* Transport bar and volume slider */
.rt__transport,
.rt__slider {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 2em;
  background: var(--a-pad);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
}

.rt__transport {
  height: 6.4em;
}

.rt__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12.2em;
  height: 5.1em;
  border-radius: 2.6em;
  background: linear-gradient(180deg, #4b8ff8, var(--a-accent-deep));
  box-shadow: 0 0.6em 1.8em -0.6em rgba(59, 130, 246, 0.9);
}

.rt__slider {
  gap: 1.4em;
  height: 5.6em;
  margin-top: 1.4em;
  padding: 0 1.6em;
}

.rt__slider-track {
  position: relative;
  flex: 1;
  height: 0.5em;
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.12);
}

.rt__slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0.5em;
  background: #3567c4;
}

.rt__slider-knob {
  position: absolute;
  top: 50%;
  width: 3.6em;
  height: 2.4em;
  border-radius: 1.2em;
  background: #c4c9d2;
  transform: translate(-50%, -50%);
}

/* App tiles */
.rt__quick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 6.4em;
  gap: 1em;
  height: 6em;
  margin-top: 1.2em;
}

.rt__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.6em;
  color: #fff;
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 0.06em rgba(255, 255, 255, 0.08);
}

.rt__tile--youtube { background: linear-gradient(180deg, #ef3b33, #c81e1e); }
.rt__tile--netflix { background: #121418; color: #e50914; }
.rt__tile--disney { background: linear-gradient(180deg, #1e3a8a, #172a6a); font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.rt__tile--prime { background: #0f1b2a; color: #1fa8f0; }
.rt__tile--fpt { background: linear-gradient(180deg, #ff8a1e, #f26a0a); }
.rt__tile--vieon { background: linear-gradient(180deg, #16884a, #0e6b39); }
.rt__tile--tv360 { background: linear-gradient(180deg, #e52b3a, #b9172a); }
.rt__tile--spotify { background: #121418; color: #1ed760; }
.rt__tile--chrome { background: linear-gradient(180deg, #4a8df7, #2f6fe0); }

.rt__tile--grid {
  font-size: 1em;
  background: var(--a-key);
}

.rt__dots {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  margin-top: 0.9em;
}

.rt__dots i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.rt__dots .rt__dots-on {
  background: #fff;
}

.rt__homebar {
  align-self: center;
  width: 14em;
  height: 0.5em;
  margin: auto 0 0.9em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.85);
}

.rt__app--control .rt__homebar {
  margin-top: 1.6em;
}

/* Apps tab */
.rt__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
  margin-top: 1.7em;
}

.rt__grid .rt__tile {
  height: 4.75em;
  border-radius: 1em;
}

.rt__wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 3.2em;
  margin-top: 0.9em;
  border-radius: 0.9em;
  background: var(--a-pad);
  box-shadow: inset 0 0 0 0.06em var(--a-key-edge);
  font-size: 1.5em;
}

.rt__wide .rt__ph {
  width: 1.1em;
  height: 1.1em;
}

.rt__hint {
  margin: 1.4em 2em 0;
  color: var(--a-dim);
  font-size: 1.2em;
  text-align: center;
}

/* Keyboard tab */
.rt__numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 1.4em;
  padding: 1em;
  border-radius: 2em;
  background: var(--a-pad);
}

.rt__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.05em;
  border-radius: 0.65em;
  background: linear-gradient(180deg, #1d2640, var(--a-key));
  box-shadow: inset 0 0 0 0.04em var(--a-key-edge);
  font-size: 2.5em;
  font-weight: 400;
}

.rt__num .rt__ph {
  width: 1em;
  height: 1em;
}

.rt__num--blank {
  background: transparent;
  box-shadow: none;
}

.rt__type {
  display: grid;
  grid-template-columns: 1fr 6.4em 6.4em;
  gap: 0.8em;
  height: 5em;
  margin-top: 1.2em;
}

.rt__type > span {
  display: inline-flex;
  align-items: center;
  border-radius: 1.4em;
}

.rt__type-field {
  padding: 0 1.2em;
  background: var(--a-pad);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
  color: var(--a-dim);
  font-size: 1.6em;
  border-radius: 0.9em !important;
  white-space: nowrap;
  overflow: hidden;
}

.rt__type-del,
.rt__type-send {
  justify-content: center;
}

.rt__type-del {
  background: var(--a-key);
}

.rt__type-send {
  background: linear-gradient(180deg, #4b8ff8, var(--a-accent-deep));
  font-size: 1.5em;
  font-weight: 650;
  border-radius: 0.95em !important;
}

/* More tab */
.rt__list {
  margin-top: 1.5em;
  border-radius: 2em;
  background: var(--a-pad);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
  overflow: hidden;
}

.rt__row {
  display: flex;
  align-items: center;
  gap: 1.4em;
  height: 5.9em;
  padding: 0 1.6em;
  border-top: 0.1em solid rgba(255, 255, 255, 0.06);
}

.rt__row:first-child {
  border-top: 0;
}

.rt__row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2em;
  min-width: 0;
}

.rt__row b {
  font-size: 1.6em;
  font-weight: 500;
}

.rt__row small {
  color: var(--a-dim);
  font-size: 1.15em;
}

.rt__row--pro > .rt__ph:first-child {
  fill: #f2c94c;
}

.rt__row-end {
  width: 1.6em !important;
  height: 1.6em !important;
  color: var(--a-dim);
}

.rt__toggle {
  position: relative;
  width: 5.2em;
  height: 3.1em;
  border-radius: 2em;
  background: #3a4256;
}

.rt__toggle::after {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 0.25em;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: #fff;
}

/* Sub pages: touchpad, playback */
.rt__subhead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.4em;
  margin-top: 1.6em;
}

.rt__subhead .rt__ph {
  position: absolute;
  left: 0;
}

.rt__subhead b {
  font-size: 1.8em;
  font-weight: 650;
}

.rt__touch {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-top: 1.4em;
  border-radius: 2.4em;
  background: radial-gradient(70% 50% at 50% 45%, #18213b, #121a30);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
  overflow: hidden;
}

.rt__touch small {
  position: absolute;
  bottom: 2.4em;
  left: 0;
  right: 0;
  color: var(--a-dim);
  font-size: 1.2em;
  text-align: center;
}

.rt__touch-trail {
  position: absolute;
  top: 34%;
  left: 24%;
  width: 34%;
  height: 0.5em;
  border-radius: 1em;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7));
  transform: rotate(-18deg);
  transform-origin: right center;
}

.rt__touch-finger {
  position: absolute;
  top: calc(34% - 2.2em);
  left: calc(58% - 2.2em);
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 187, 252, 0.9), rgba(59, 130, 246, 0.25) 60%, transparent 72%);
}

.rt__touch-keys,
.rt__media3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  height: 5.4em;
  margin: 1.4em 0 1em;
}

.rt__touch-keys span,
.rt__media3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.6em;
  background: linear-gradient(180deg, #1d2640, var(--a-key));
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
}

.rt__media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 9em;
  margin-top: 1.4em;
  padding: 0 1.6em;
  border-radius: 2em;
  background: var(--a-pad);
  box-shadow: inset 0 0 0 0.1em var(--a-key-edge);
}

.rt__play--wide {
  width: 21em;
  height: 6.2em;
  border-radius: 3.1em;
}

.rt__play--wide .rt__ph {
  width: 2.8em;
  height: 2.8em;
}

.rt__media3 {
  margin: 1.2em 0 0;
}

/* ---- Screens block ---- */

.rt__screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt__screens-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.rt__screens-grid--5,
.rt__screens-grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt__screens-item {
  text-align: center;
}

.rt__screens-item .rt__phone {
  max-width: 260px;
  margin: 0 auto 22px;
}

.rt__screens-item > h3 {
  font-size: 19px;
  font-weight: 720;
}

.rt__screens-item > p {
  margin: 8px auto 0;
  max-width: 280px;
  color: var(--rt-muted);
  font-size: 15px;
}

@media (max-width: 980px) {
  .rt__screens-grid,
  .rt__screens-grid--3,
  .rt__screens-grid--5,
  .rt__screens-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .rt__screens-grid {
    gap: 28px 14px;
  }

  .rt__screens-item > h3 {
    font-size: 16px;
  }

  .rt__screens-item > p {
    font-size: 13px;
  }
}

/* ---- Features ---- */

.rt__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rt__feature {
  padding: 26px;
  border-radius: var(--rt-radius-lg);
  background: var(--rt-panel);
  box-shadow: inset 0 0 0 1px var(--rt-line);
}

.rt__feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rt-accent) 14%, transparent);
  color: var(--rt-accent);
}

.rt__feature-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.rt__feature h3 {
  font-size: 19px;
  font-weight: 700;
}

.rt__feature p {
  margin: 8px 0 0;
  color: var(--rt-muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .rt__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rt__features {
    grid-template-columns: 1fr;
  }
}

/* ---- Steps ---- */

.rt__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rt__step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--rt-radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.rt__step-n {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.rt__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4b8ff8, #1d4ed8);
  box-shadow: 0 8px 22px -8px rgba(59, 130, 246, 0.9);
}

.rt__step-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.rt__step h3 {
  font-size: 18px;
  font-weight: 700;
}

.rt__step p {
  margin: 8px 0 0;
  color: #9aa3af;
  font-size: 15px;
}

/* ---- Data list (privacy) ---- */

.rt__data {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rt-line);
}

.rt__data-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rt-line);
}

.rt__data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.rt__data-head h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rt__data-item p {
  margin: 6px 0 0;
  color: var(--rt-muted);
  font-size: 15px;
}

.rt__chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--rt-pill);
  font-size: 12px;
  font-weight: 700;
}

.rt__chip--stays {
  background: color-mix(in srgb, var(--rt-good) 15%, transparent);
  color: var(--rt-good);
}

.rt__chip--leaves {
  background: color-mix(in srgb, var(--rt-warn) 16%, transparent);
  color: var(--rt-warn);
}

.rt__data-when {
  color: var(--rt-muted);
  font-size: 13px;
}

/* ---- Notice ---- */

.rt__notice {
  padding: 0 0 var(--rt-band);
}

.rt__notice-inner {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: var(--rt-radius-lg);
  background: color-mix(in srgb, var(--rt-accent) 8%, var(--rt-panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rt-accent) 26%, transparent);
}

.rt__notice--warn .rt__notice-inner {
  background: var(--rt-warn-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rt-warn) 30%, transparent);
}

.rt__notice-mark svg {
  width: 28px;
  height: 28px;
  fill: var(--rt-accent);
}

.rt__notice--warn .rt__notice-mark svg {
  fill: var(--rt-warn);
}

.rt__notice h2 {
  font-size: 20px;
  font-weight: 720;
}

.rt__notice p {
  margin: 8px 0 0;
  color: var(--rt-muted);
}

.rt__notice-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rt__notice-list li {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.rt__notice-list span {
  color: var(--rt-muted);
}

@media (max-width: 600px) {
  .rt__notice-inner {
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
  }
}

/* ---- FAQ ---- */

.rt__faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.rt__faq {
  border-top: 1px solid var(--rt-line);
}

.rt__faq-item {
  border-bottom: 1px solid var(--rt-line);
}

.rt__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.rt__faq-item summary::-webkit-details-marker {
  display: none;
}

.rt__faq-item summary i {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.rt__faq-item summary i::before,
.rt__faq-item summary i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--rt-accent);
  transition: transform 0.2s ease;
}

.rt__faq-item summary i::after {
  transform: rotate(90deg);
}

.rt__faq-item[open] summary i::after {
  transform: rotate(0deg);
}

.rt__faq-item p {
  margin: 0 0 20px;
  color: var(--rt-muted);
}

@media (max-width: 900px) {
  .rt__faq-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---- CTA ---- */

.rt__cta {
  padding: var(--rt-band) 0;
  background:
    radial-gradient(50% 90% at 50% 0%, rgba(59, 130, 246, 0.3), transparent 70%),
    linear-gradient(180deg, #0b1020, #101830);
  color: #eceff4;
  text-align: center;
}

.rt__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.rt__cta h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
}

.rt__cta .rt__lead {
  max-width: 620px;
  margin: 0;
  color: #9aa3af;
}

.rt__cta .rt__stores {
  justify-content: center;
  margin-top: 10px;
}

.rt__cta .rt__text-link {
  color: #93bbfc !important;
}

/* ---- Pages and documents ---- */

.rt__page-head {
  padding: clamp(40px, 6vw, 80px) 0 32px;
}

.rt__page-head .rt__container {
  max-width: 820px;
}

.rt__page-head h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rt__doc-updated {
  margin: 12px 0 0;
  color: var(--rt-muted);
  font-size: 14px;
}

.rt__toc {
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: var(--rt-radius);
  background: var(--rt-tint);
  box-shadow: inset 0 0 0 1px var(--rt-line);
}

.rt__toc b {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rt__toc ul {
  columns: 2;
  column-gap: 32px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rt__toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.rt__toc a {
  color: var(--rt-muted);
  font-size: 15px;
  text-decoration: none;
}

.rt__toc a:hover {
  color: var(--rt-accent);
}

@media (max-width: 600px) {
  .rt__toc ul {
    columns: 1;
  }
}

.rt__doc .rt__section {
  padding: 0 0 28px;
}

.rt__doc .rt__section-head {
  margin-bottom: 18px;
}

.rt__doc .rt__section-head h2 {
  font-size: 23px;
  font-weight: 720;
}

.rt__doc .rt__notice {
  padding-bottom: 28px;
}

.rt__prose {
  font-size: 17px;
  line-height: 1.75;
}

.rt__prose h2 {
  margin: 36px 0 12px;
  font-size: 23px;
  font-weight: 720;
  scroll-margin-top: 90px;
}

.rt__prose h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.rt__prose p,
.rt__prose ul,
.rt__prose ol {
  margin: 0 0 14px;
}

.rt__prose li {
  margin: 4px 0;
}

.rt__prose a {
  color: var(--rt-accent);
}

.rt__prose > div > :first-child {
  margin-top: 0;
}

.rt__figure {
  margin: 0 auto;
}

.rt__figure img {
  border-radius: var(--rt-radius);
}

.rt__figure figcaption {
  margin-top: 10px;
  color: var(--rt-muted);
  font-size: 14px;
  text-align: center;
}

/* ---- Posts ---- */

.rt__post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  color: var(--rt-muted);
  font-size: 14px;
}

.rt__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.rt__post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: var(--rt-radius-lg);
  background: var(--rt-panel);
  box-shadow: inset 0 0 0 1px var(--rt-line);
}

.rt__post-card h3 {
  font-size: 19px;
}

.rt__post-card h3 a {
  text-decoration: none;
}

.rt__post-card p {
  margin: 8px 0 0;
  color: var(--rt-muted);
  font-size: 15px;
}

.rt__post-card-date {
  margin: 0 0 8px !important;
  font-size: 13px !important;
}

.rt__empty {
  color: var(--rt-muted);
}

.rt__pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.rt__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rt-line);
  text-decoration: none;
}

.rt__pager a[aria-current="page"] {
  background: var(--rt-accent);
  color: var(--rt-on-accent);
  box-shadow: none;
}

/* ---- 404 / 500 ---- */

.rt__state {
  padding: clamp(64px, 10vw, 140px) 0;
  text-align: center;
}

.rt__state-mark {
  margin: 0;
  background: linear-gradient(180deg, var(--rt-accent), color-mix(in srgb, var(--rt-accent) 30%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(90px, 16vw, 170px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.rt__state h1 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 38px);
}

.rt__state p {
  color: var(--rt-muted);
}

.rt__state .rt__actions {
  justify-content: center;
  margin-top: 24px;
}

/* ---- Footer ---- */

.rt__footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--rt-line);
  background: var(--rt-tint);
}

.rt__footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.rt__footer-about p {
  max-width: 380px;
  margin: 16px 0 0;
  color: var(--rt-muted);
  font-size: 15px;
}

.rt__footer-build {
  font-size: 13px !important;
}

.rt__footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rt__footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt__footer-col li {
  margin: 8px 0;
}

.rt__footer-col a {
  color: var(--rt-muted);
  font-size: 15px;
  text-decoration: none;
}

.rt__footer-col a:hover {
  color: var(--rt-ink);
}

.rt__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.rt__footer-contact .rt__button {
  color: var(--rt-ink) !important;
}

.rt__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--rt-line);
  color: var(--rt-muted);
  font-size: 14px;
}

.rt__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.rt__footer-bottom a {
  text-decoration: none;
}

.rt__footer-bottom a:hover {
  color: var(--rt-ink);
}

.rt__builtwith {
  margin-left: 12px;
}

@media (max-width: 900px) {
  .rt__footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rt__footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .rt__footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .rt * {
    transition: none !important;
  }
}
