:root {
  --bg: #07101b;
  --bg-deep: #030710;
  --panel: rgba(10, 20, 35, 0.88);
  --panel-strong: rgba(13, 25, 43, 0.98);
  --line: rgba(226, 236, 255, 0.16);
  --line-strong: rgba(226, 236, 255, 0.28);
  --text: #f4f7fc;
  --muted: #aab8d0;
  --accent: #74a9ff;
  --accent-strong: #3e77f6;
  --mint: #89ead5;
  --green: #1f8f5f;
  --amber: #b17a16;
  --red: #d73531;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 0%, rgba(116, 169, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(137, 234, 213, 0.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(215, 53, 49, 0.08), transparent 30%);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar,
.hero,
.emulator-section,
.system-section,
.price-section,
.guide-entry-card,
.flow-card,
.feature-card,
.screens-section,
.emulator-shell,
.privacy-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(53, 117, 230, 0.36);
}

.brand strong {
  display: block;
  font-size: 1.3rem;
}

.eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #95b9e8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.topnav > a {
  display: none;
}

.topnav a,
.button,
.app-tabs button,
.menu-row,
.stage-row,
.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.topnav a:hover,
.topnav a:focus-visible,
.button:hover,
.button:focus-visible,
.app-tabs button:hover,
.app-tabs button:focus-visible,
.menu-row:hover,
.menu-row:focus-visible,
.stage-row:hover,
.stage-row:focus-visible,
.tab:hover,
.tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(116, 169, 255, 0.58);
  outline: none;
}


.guide-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(116, 169, 255, 0.18), transparent 28%),
    rgba(10, 20, 35, 0.90);
}

.guide-entry-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.05;
}

.guide-entry-card p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-entry-card .button {
  white-space: nowrap;
}

.hero,
.emulator-section,
.flow,
.feature-section,
.screens-section {
  margin-top: 28px;
}

.feature-section-offset {
  margin-top: 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 30px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  min-height: calc(100vh - 126px);
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h3, p { margin-top: 0; }

.hero-intro,
.hero-text,
.section-head p,
.hero-points span,
.flow-card span,
.feature-card span,
.context-list span,
.context-list strong,
.footer,
.privacy-card p,
.privacy-card li {
  color: var(--muted);
  line-height: 1.56;
}

.hero-intro {
  max-width: 58ch;
  margin: 18px 0 12px;
  color: #e8f2ff;
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-weight: 900;
}

.button-primary {
  border-color: rgba(116, 169, 255, 0.78);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.button-price {
  border-color: rgba(137, 234, 213, 0.5);
  color: #07101b;
  background: linear-gradient(135deg, #89ead5, #74a9ff);
}

.language-switcher {
  position: relative;
  z-index: 80;
}

.language-pill {
  width: 42px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #111;
  background: linear-gradient(180deg, #000 0%, #dd0000 50%, #ffce00 100%);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  width: min(430px, calc(100vw - 36px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(8, 20, 39, 0.98);
  box-shadow: var(--shadow);
}

.language-menu > strong {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.site-menu {
  position: relative;
  z-index: 70;
}

.site-menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.site-menu-button svg,
.hms-settings svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.site-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(8, 20, 39, 0.98);
  box-shadow: var(--shadow);
}

.site-menu-panel a {
  display: grid;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 236, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  background: rgba(18, 35, 58, 0.78);
  text-decoration: none;
  font-weight: 950;
}


.site-menu-panel a {
  overflow-wrap: anywhere;
}

.language-menu button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(18, 35, 58, 0.78);
  text-align: left;
  cursor: pointer;
  font-weight: 900;
}

.language-menu button span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  color: #111;
  font-size: 0.8rem;
  font-weight: 950;
}

.language-menu [data-language="de"] span,
.language-pill[data-language="de"] { background: linear-gradient(180deg, #000 0%, #dd0000 50%, #ffce00 100%); color: #fff; }
.language-menu [data-language="en"] span,
.language-pill[data-language="en"] { background: linear-gradient(180deg, #012169 0%, #c8102e 52%, #fff 100%); color: #fff; }
.language-menu [data-language="fr"] span,
.language-pill[data-language="fr"] { background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%); color: #111; }
.language-menu [data-language="es"] span,
.language-pill[data-language="es"] { background: linear-gradient(180deg, #aa151b 0 26%, #f1bf00 26% 74%, #aa151b 74%); color: #111; }
.language-menu [data-language="ru"] span,
.language-pill[data-language="ru"] { background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); color: #111; }
.language-menu [data-language="zh"] span,
.language-pill[data-language="zh"] { background: linear-gradient(180deg, #de2910, #ffde00); color: #111; }
.language-menu [data-language="ar"] span,
.language-pill[data-language="ar"] { background: linear-gradient(180deg, #007a3d 0 33%, #fff 33% 66%, #000 66%); color: #111; }
.language-menu [data-language="hi"] span,
.language-pill[data-language="hi"] { background: linear-gradient(180deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%); color: #111; }
.language-menu [data-language="ja"] span,
.language-pill[data-language="ja"] { background: radial-gradient(circle at 50% 50%, #bc002d 0 28%, #fff 30%); color: #111; }


.hms-lang[data-language="de"] { background: linear-gradient(180deg, #000 0%, #dd0000 50%, #ffce00 100%); color: #fff; }
.hms-lang[data-language="en"] { background: linear-gradient(180deg, #012169 0%, #c8102e 52%, #fff 100%); color: #fff; }
.hms-lang[data-language="fr"] { background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%); color: #111; }
.hms-lang[data-language="es"] { background: linear-gradient(180deg, #aa151b 0 26%, #f1bf00 26% 74%, #aa151b 74%); color: #111; }
.hms-lang[data-language="ru"] { background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); color: #111; }
.hms-lang[data-language="zh"] { background: linear-gradient(180deg, #de2910, #ffde00); color: #111; }
.hms-lang[data-language="ar"] { background: linear-gradient(180deg, #007a3d 0 33%, #fff 33% 66%, #000 66%); color: #111; }
.hms-lang[data-language="hi"] { background: linear-gradient(180deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%); color: #111; }
.hms-lang[data-language="ja"] { background: radial-gradient(circle at 50% 50%, #bc002d 0 28%, #fff 30%); color: #111; }

.language-menu button:hover,
.language-menu button:focus-visible {
  background: rgba(116, 169, 255, 0.18);
  outline: none;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-system-strip,
.emulator-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.emulator-context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-points article,
.hero-system-strip article,
.emulator-context article,
.flow-card,
.feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.92), rgba(10, 18, 31, 0.94));
}

.hero-points strong,
.hero-system-strip strong,
.emulator-context strong,
.flow-card strong,
.feature-card strong,
.system-card strong {
  display: block;
  margin-bottom: 8px;
}

.hero-system-strip span,
.emulator-context span {
  color: var(--muted);
  line-height: 1.48;
}

.hero-preview {
  display: grid;
  place-items: center;
}

.hero-device-stack {
  position: relative;
  width: min(580px, 100%);
  min-height: 690px;
}

.hero-phone,
.hero-watch {
  position: absolute;
  border: 8px solid #11161d;
  background: #11161d;
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.42);
}

.hero-phone {
  width: 44%;
  border-radius: 30px;
}

.hero-phone-back {
  left: 14%;
  top: 23%;
  transform: rotate(-6deg);
  z-index: 1;
}

.hero-phone-front {
  right: 6%;
  top: 4%;
  transform: rotate(7deg);
  z-index: 3;
}

.hero-watch {
  right: 18%;
  bottom: 11%;
  width: 166px;
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: 4;
}

.section-head {
  max-width: 900px;
  margin-bottom: 20px;
}

.emulator-section,
.screens-section,
.system-section,
.price-section {
  padding: clamp(18px, 3vw, 30px);
  border-radius: 30px;
}

.emulator-shell {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 0%, rgba(116, 169, 255, 0.15), transparent 24%),
    linear-gradient(180deg, rgba(7, 16, 27, 0.96), rgba(4, 9, 16, 0.98));
}

.emulator-phone {
  align-self: start;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(145deg, #363b43, #080a0d 70%);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.46);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.app-emulator {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(117, 157, 216, 0.16), transparent 28%),
    linear-gradient(180deg, #071323, #08111d 62%, #050a12);
}

.original-mode .app-emulator {
  min-height: auto;
  aspect-ratio: 9 / 19.5;
  background: #071323;
}

.original-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emu-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 78px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(160, 195, 240, 0.28);
  border-radius: 14px;
  color: #eef6ff;
  font-weight: 900;
  text-align: center;
  background: rgba(8, 20, 34, 0.9);
  backdrop-filter: blur(10px);
}

.app-emulator:not(.view-home) .emu-toast {
  display: none;
}

.hotspot {
  position: absolute;
  z-index: 7;
  border: 0;
  background: rgba(116, 169, 255, 0.01);
  cursor: pointer;
}

.hotspot-settings {
  top: 5.5%;
  right: 5%;
  width: 14%;
  height: 7%;
}

.hotspot-back {
  top: 5.5%;
  left: 3%;
  display: none;
  width: 15%;
  height: 7%;
  z-index: 12;
}

.hotspot-solo {
  top: 19.5%;
  left: 7%;
  width: 86%;
  height: 7%;
}

.hotspot-confirm {
  top: 43%;
  left: 10%;
  width: 80%;
  height: 17%;
}

.hotspot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.hotspot-card {
  display: none;
  left: 7%;
  width: 86%;
  height: 8%;
  pointer-events: none;
}

.app-emulator.view-settings .hotspot-back,
.app-emulator.view-schedule .hotspot-back,
.app-emulator.view-contact .hotspot-back,
.app-emulator.view-permissions .hotspot-back,
.app-emulator.view-guardian .hotspot-back,
.app-emulator.view-system .hotspot-back,
.app-emulator.view-stages .hotspot-back {
  display: block;
}

.hotspot-card-1 { top: 12%; }
.hotspot-card-2 { top: 22%; }
.hotspot-card-3 { top: 32%; }
.hotspot-card-4 { top: 42%; }
.hotspot-card-5 { top: 52%; }
.hotspot-card-6 { top: 62%; }
.hotspot-card-7 { top: 72%; }
.hotspot-card-8 { top: 82%; }

.native-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.native-confirm {
  position: absolute;
  left: 14%;
  top: 45%;
  width: 72%;
  height: 10%;
  display: none;
  pointer-events: auto;
}

.app-emulator.view-home .native-confirm {
  display: block;
}

.native-confirm-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 42px;
  border-radius: 18px;
  transform: translateY(-50%);
  background: rgba(7, 23, 40, 0.01);
}

.native-confirm-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.native-confirm-thumb:active {
  cursor: grabbing;
}

.native-confirm-thumb img {
  width: 74px;
  height: 74px;
  pointer-events: none;
}

.native-panel {
  position: absolute;
  display: none;
  pointer-events: auto;
}

.app-emulator.view-schedule .native-schedule,
.app-emulator.view-contact .native-contact,
.app-emulator.view-guardian .native-guardian,
.app-emulator.view-system .native-system,
.app-emulator.view-stages .native-stages {
  display: grid;
}

.native-schedule {
  left: 8%;
  top: 13%;
  width: 84%;
  height: 58%;
}

.native-schedule label {
  position: absolute;
  color: transparent;
  font-size: 0;
}

.native-schedule input,
.native-contact input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  color: transparent;
  text-align: center;
  background: rgba(17, 31, 52, 0.06);
  opacity: 0.01;
}

.native-schedule input:focus,
.native-contact input:focus {
  outline: 2px solid rgba(116, 169, 255, 0.8);
  color: #fff;
  background: rgba(17, 31, 52, 0.78);
  opacity: 1;
}

.native-schedule input[type="range"]:focus {
  color: transparent;
}

.native-schedule label:nth-child(1) {
  left: 1%;
  top: 13%;
  width: 44%;
  height: 18%;
}

.native-schedule label:nth-child(2) {
  right: 1%;
  top: 13%;
  width: 44%;
  height: 18%;
}

.native-schedule label:nth-child(3) {
  left: 2%;
  top: 43%;
  width: 96%;
  height: 14%;
}

.native-schedule label:nth-child(4) {
  left: 2%;
  top: 76%;
  width: 96%;
  height: 14%;
}

.native-contact {
  left: 7%;
  top: 15%;
  width: 86%;
  height: 26%;
}

.native-contact input {
  position: absolute;
  text-align: left;
  padding: 0 10px;
}

.native-contact button,
.native-guardian button,
.native-system button,
.native-stages button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: transparent;
  font-weight: 900;
  background: transparent;
}

.native-contact input:nth-child(1) {
  left: 0;
  top: 20%;
  height: 24%;
}

.native-contact input:nth-child(2) {
  left: 0;
  top: 62%;
  height: 24%;
}

.native-contact button {
  position: absolute;
  left: 6%;
  top: 92%;
  width: 88%;
  color: transparent;
  background: transparent;
}

.native-guardian {
  left: 8%;
  top: 32%;
  width: 84%;
  height: 18%;
  gap: 0;
}

.native-guardian button {
  position: absolute;
  left: 0;
  width: 100%;
  color: transparent;
  background: transparent;
}

.native-guardian button:first-child {
  top: 0;
}

.native-guardian button:last-child {
  top: 58%;
  background: transparent;
}

.native-system {
  left: 8%;
  top: 9%;
  width: 84%;
  height: 70%;
  gap: 0;
}

.native-system button {
  position: absolute;
  right: 0;
  width: 22%;
  min-height: 56px;
  color: transparent;
  background: transparent;
}

.native-system button:nth-child(1) {
  top: 30%;
}

.native-system button:nth-child(2) {
  top: 58%;
}

.native-system button:nth-child(3) {
  top: 84%;
}

.native-stages {
  left: 8%;
  top: 11%;
  width: 84%;
  height: 74%;
  gap: 0;
}

.native-stages button {
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 74px;
  color: transparent;
  background: transparent;
}

.native-stages [data-stage="stage1"] {
  top: 16%;
}

.native-stages [data-stage="stage2"] {
  top: 43%;
}

.native-stages [data-stage="stage3"] {
  top: 70%;
}

.native-stages [data-native-action="fullRun"] {
  left: 18%;
  top: 2%;
  width: 64%;
  min-height: 42px;
}

.emu-drawer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  max-height: 72%;
  overflow: auto;
  border: 1px solid rgba(180, 212, 255, 0.24);
  border-radius: 20px;
  background: rgba(6, 15, 27, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  transform: translateY(calc(100% + 16px));
  transition: transform 180ms ease;
}

.emu-drawer.is-open {
  transform: translateY(0);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(180, 212, 255, 0.14);
  background: rgba(9, 22, 38, 0.98);
}

.drawer-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(180, 212, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-button,
.drawer-field,
.drawer-select {
  min-height: 42px;
  border: 1px solid rgba(180, 212, 255, 0.18);
  border-radius: 12px;
  color: #f3f8ff;
  background: rgba(18, 35, 58, 0.92);
}

.drawer-button {
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.drawer-button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.drawer-button.green { background: var(--green); }
.drawer-button.amber { background: var(--amber); }
.drawer-button.red { background: var(--red); }
.drawer-button.gray { background: rgba(96, 118, 147, 0.78); }

.drawer-field,
.drawer-select {
  width: 100%;
  padding: 0 10px;
}

.drawer-label {
  display: grid;
  gap: 5px;
  color: rgba(230, 240, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.drawer-note {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(180, 212, 255, 0.14);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(6, 16, 29, 0.94);
}

.app-header img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.app-header .language-pill {
  margin-left: auto;
  min-width: 42px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #f95d28, #bd190d);
}

.emu-screen {
  display: none;
  padding: 14px 14px 90px;
}

.emu-screen.is-active {
  display: block;
}

.due-card,
.confirm-card,
.context-list > div,
.setting-block,
.input-line,
.care-card,
.permission-row,
.guardian-status {
  border: 1px solid rgba(150, 188, 239, 0.16);
  border-radius: 18px;
  background: rgba(50, 79, 117, 0.62);
}

.due-card {
  display: grid;
  gap: 3px;
  padding: 13px;
  text-align: center;
}

.due-card span,
.confirm-card p,
.setting-block span {
  color: rgba(232, 241, 255, 0.72);
  font-size: 0.78rem;
}

.solo-toggle,
.stage-pill {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  color: #0c2039;
  font-weight: 900;
  background: #77b6ff;
}

.stage-pill {
  display: grid;
  place-items: center;
  color: #eaf2ff;
  background: rgba(112, 130, 154, 0.68);
}

.app-emulator.stage1 .stage-pill,
.app-emulator.stage1 .due-card,
.app-emulator.stage1 .confirm-card,
.app-emulator.stage1 .context-list > div {
  background: rgba(27, 104, 64, 0.78);
}

.app-emulator.stage2 .stage-pill,
.app-emulator.stage2 .due-card,
.app-emulator.stage2 .confirm-card,
.app-emulator.stage2 .context-list > div {
  background: rgba(143, 102, 17, 0.82);
}

.app-emulator.stage3 {
  background: radial-gradient(circle at 50% 0%, rgba(255, 72, 56, 0.18), transparent 30%), linear-gradient(180deg, #27080b, #11070b 64%, #05070d);
}

.app-emulator.stage3 .stage-pill,
.app-emulator.stage3 .due-card,
.app-emulator.stage3 .confirm-card,
.app-emulator.stage3 .context-list > div {
  background: rgba(104, 24, 28, 0.9);
  border-color: rgba(255, 160, 160, 0.2);
}

.confirm-card {
  margin-top: 12px;
  padding: 20px 16px;
  text-align: center;
}

.confirm-card h3 {
  margin-bottom: 4px;
  font-size: 1.75rem;
}

.shield-button {
  display: grid;
  place-items: center;
  width: min(230px, 100%);
  min-height: 76px;
  margin: 18px auto 0;
  border: 1px solid rgba(130, 185, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #133152, #071b30);
}

.shield-button img {
  width: 72px;
  height: 72px;
}

.context-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.context-list > div,
.setting-block,
.care-card,
.permission-row,
.guardian-status {
  padding: 14px;
}

.context-list span,
.context-list strong {
  display: block;
}

.context-list span,
.feature-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-row,
.stage-row,
.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 14px;
  color: #f5f8ff;
  font-weight: 900;
  background: rgba(17, 34, 56, 0.9);
}

.danger-row,
.stage-three,
.sms-row,
.alarm-row.is-playing {
  background: var(--red);
}

.stage-one { background: var(--green); }
.stage-two { background: var(--amber); }
.neutral-row { background: rgba(96, 118, 147, 0.78); }
.alarm-row { background: rgba(36, 87, 214, 0.9); }

.setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.setting-grid label {
  display: grid;
  gap: 6px;
  color: rgba(232, 241, 255, 0.78);
  font-weight: 800;
}

.setting-grid input,
.input-line {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(150, 188, 239, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(8, 20, 34, 0.88);
}

.care-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.app-tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-tabs button,
.tab {
  min-height: 42px;
  color: #eef5ff;
  font-weight: 900;
  background: rgba(18, 35, 58, 0.92);
}

.app-tabs button.is-active,
.tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.device-mirrors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.mirror-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.mirror-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}

.mirror-head strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(40, 142, 96, 0.94);
  font-size: 0.8rem;
}

.mirror-card.stage1 .mirror-head strong { color: #102016; background: #8ee0a3; }
.mirror-card.stage2 .mirror-head strong { background: #d49c23; }
.mirror-card.stage3 .mirror-head strong,
.mirror-card.disconnected .mirror-head strong { background: var(--red); }

.mirror-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 8px solid #11161d;
  border-radius: 28px;
  background: #11161d;
}

.watch-card img {
  width: min(170px, 100%);
  aspect-ratio: 1 / 1;
  margin: 34px auto;
  border-radius: 50%;
}

.flow-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.feature-column {
  display: grid;
  gap: 16px;
}

.feature-label {
  margin: 0 0 2px;
  color: #95b9e8;
}

.system-section,
.price-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(116, 169, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 20, 35, 0.9), rgba(7, 14, 25, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.system-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.92), rgba(10, 18, 31, 0.94));
}

.system-card img {
  width: 116px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 7px solid #11161d;
  border-radius: 22px;
  background: #11161d;
}

.watch-system-card img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.system-card span,
.price-copy p,
.price-card small {
  color: var(--muted);
  line-height: 1.5;
}

.price-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: center;
}

.price-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(137, 234, 213, 0.35);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 35, 58, 0.98), rgba(8, 20, 39, 0.98));
}

.price-card > span {
  color: #89ead5;
  font-weight: 950;
}

.price-options {
  display: grid;
  gap: 8px;
  color: rgba(235, 241, 255, 0.82);
  font-weight: 900;
}

.price-options span:nth-child(n + 2) {
  color: #89ead5;
}

.price-deal {
  display: grid;
  gap: 2px;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid rgba(137, 234, 213, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(137, 234, 213, 0.22), transparent 34%),
    rgba(137, 234, 213, 0.08);
}

.price-deal span {
  color: #89ead5;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-deal strong {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.price-deal p {
  margin: 0;
  color: rgba(235, 241, 255, 0.82);
  font-weight: 900;
}

.price-card > strong {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: #89ead5;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  padding: 0 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.gallery figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 7px solid #11161d;
  border-radius: 24px;
}

.gallery.is-wear {
  grid-template-columns: repeat(auto-fit, minmax(160px, 210px));
}

.gallery.is-wear img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 32px 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: #d8e7ff;
  font-weight: 850;
  text-decoration: none;
}

.legal-topbar {
  width: min(1380px, calc(100% - 32px));
  margin: 18px auto 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.privacy-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.privacy-card {
  padding: clamp(20px, 4vw, 42px);
  border-radius: 28px;
}

.privacy-card h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.privacy-card h2 {
  margin-top: 30px;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.45rem;
}

@media (max-width: 1180px) {
  .hero,
  .emulator-shell,
  .price-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-device-stack {
    min-height: 590px;
  }

  .device-mirrors,
  .flow-grid,
  .feature-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    padding: 18px;
  }

  h1 {
    max-width: none;
  }

  .hero-points,
  .hero-system-strip,
  .emulator-context,
  .device-mirrors,
  .flow-grid,
  .feature-grid,
  .system-grid,
  .setting-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .system-card img {
    width: 92px;
  }

  .hero-device-stack {
    min-height: 430px;
  }

  .hero-phone {
    width: 47%;
    border-width: 6px;
    border-radius: 22px;
  }

  .hero-phone-back {
    left: 1%;
    top: 25%;
  }

  .hero-phone-front {
    right: 1%;
    top: 7%;
  }

  .hero-watch {
    right: 28%;
    bottom: 4%;
    width: 126px;
    border-width: 6px;
  }

  .emulator-section,
  .screens-section,
  .system-section,
  .price-section,
  .emulator-shell {
    padding: 14px;
  }

  .app-emulator {
    min-height: 720px;
  }

  .watch-card img {
    margin: 12px auto;
  }

  .footer {
    flex-direction: column;
  }
}

/* HMS web emulator rebuilt as real interface controls, not screenshot hotspots. */
.hms-emulator-shell {
  display: grid;
  grid-template-columns: minmax(360px, 460px);
  justify-content: center;
  gap: 22px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hms-phone {
  width: min(100%, 430px);
  min-width: 0;
  margin: 0 auto;
  padding: 18px 14px 16px;
  border: 12px solid #111820;
  border-radius: 42px;
  background: #303640;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 16px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hms-app {
  position: relative;
  width: 100%;
  height: min(760px, 78vh);
  min-height: 680px;
  overflow-y: hidden;
  padding: 16px;
  border-radius: 28px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(17, 37, 62, 0.98), rgba(10, 24, 42, 0.98)),
    #0b182a;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(116, 169, 255, 0.55) rgba(255, 255, 255, 0.08);
  contain: layout paint;
}

.hms-app:not([data-view="home"]) {
  overflow-y: auto;
}

.hms-app.stage1 {
  background: linear-gradient(180deg, rgba(23, 81, 61, 0.98), rgba(10, 35, 31, 0.98));
}

.hms-app.stage2 {
  background: linear-gradient(180deg, rgba(101, 73, 19, 0.98), rgba(35, 27, 14, 0.98));
}

.hms-app.stage3 {
  background: linear-gradient(180deg, rgba(112, 26, 33, 0.98), rgba(47, 12, 20, 0.98));
}

.hms-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 38px minmax(0, 1fr) 48px 34px;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(8, 20, 39, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.hms-header img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hms-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hms-back,
.hms-settings,
.hms-lang {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hms-back,
.hms-settings {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  background: transparent;
  font-size: 1.85rem;
  line-height: 1;
}

.hms-back {
  visibility: hidden;
}

.hms-back.is-visible {
  visibility: visible;
}

.hms-settings.is-hidden {
  visibility: hidden;
}

.hms-lang {
  min-width: 48px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 15px;
  background: linear-gradient(180deg, #990b12, #f3a300);
  font-weight: 950;
}

.hms-view {
  display: none;
  animation: hmsFade 0.18s ease-out;
}

.hms-view.is-active {
  display: grid;
  gap: 10px;
}

@keyframes hmsFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hms-due,
.hms-stage-pill,
.hms-confirm-card,
.hms-info-card,
.hms-ready-card,
.hms-card,
.hms-menu-card,
.permission-card,
.permission-row,
.switch-row,
.stage-config,
.hms-field,
.hms-range,
.hms-wheel-field {
  border: 1px solid rgba(226, 236, 255, 0.28);
  border-radius: 22px;
  background: rgba(18, 35, 58, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hms-due {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.hms-due span,
.hms-info-card span,
.hms-field,
.hms-range,
.permission-row span,
.hms-menu-card span {
  color: rgba(235, 241, 255, 0.74);
  font-weight: 800;
}

.hms-due strong {
  font-size: 1.05rem;
}

.hms-solo,
.hms-wide-button,
.hms-danger-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 950;
}

.hms-solo {
  display: grid;
  gap: 2px;
  place-items: center;
  color: #07101b;
  background: #74b6f5;
}

.hms-solo.is-active {
  color: #fff;
  background: #1f8f5f;
}

.hms-solo span {
  font-size: 0.92rem;
}

.hms-stage-pill {
  padding: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(135, 145, 159, 0.78);
  font-size: 1.05rem;
  font-weight: 950;
}

.hms-confirm-card {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  text-align: center;
}

.hms-confirm-card h3,
.hms-ready-card h3,
.hms-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.hms-confirm-card p,
.hms-ready-card p,
.hms-card p {
  margin: 0;
  color: rgba(235, 241, 255, 0.82);
  line-height: 1.45;
}

.hms-confirm-slider {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  align-items: center;
  min-height: 94px;
  padding: 12px 16px;
  border: 1px solid rgba(226, 236, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 48, 80, 0.78), rgba(11, 24, 43, 0.78));
  touch-action: none;
  user-select: none;
}

.hms-confirm-slider::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 50%;
  height: 14px;
  border-radius: 999px;
  background: rgba(160, 180, 203, 0.42);
  transform: translateY(-50%);
}

.hms-confirm-slider span {
  z-index: 1;
  color: rgba(226, 236, 255, 0.62);
  font-weight: 950;
  letter-spacing: 0;
}

.hms-confirm-thumb {
  z-index: 2;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.38));
}

.hms-confirm-thumb:active {
  cursor: grabbing;
}

.hms-confirm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hms-info-card,
.hms-ready-card,
.hms-card {
  padding: 14px;
}

.hms-info-card {
  display: grid;
  gap: 4px;
}

.hms-ready-card {
  display: none;
  gap: 8px;
  background: rgba(16, 30, 51, 0.92);
}

.hms-ready-card span {
  color: #b7f4cd;
  font-weight: 900;
}

.hms-menu-card,
.permission-row,
.switch-row,
.stage-config,
.care-row {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 16px;
  border-color: rgba(226, 236, 255, 0.24);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.hms-menu-card strong,
.permission-row,
.switch-row,
.stage-config strong,
.care-row {
  font-size: 1.04rem;
  font-weight: 950;
}

.hms-field,
.hms-range,
.hms-wheel-field {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.hms-field input,
.hms-range input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(226, 236, 255, 0.42);
  border-radius: 14px;
  color: #fff;
  background: rgba(8, 20, 39, 0.7);
  padding: 0 12px;
}

.hms-range input {
  accent-color: #7e5dc8;
}

.hms-wheel-field > span {
  color: rgba(235, 241, 255, 0.74);
  font-weight: 900;
}

.time-wheels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.time-wheels > strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.8rem;
}

.time-wheel {
  display: grid;
  min-width: 0;
  gap: 0;
}

.wheel-window {
  display: grid;
  gap: 2px;
  justify-items: center;
  width: 100%;
  min-width: 0;
  height: 126px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(226, 236, 255, 0.36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 20, 39, 0.72));
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.wheel-window::-webkit-scrollbar {
  display: none;
}

.wheel-window span {
  display: grid;
  place-items: center;
  height: 34px;
  color: rgba(235, 241, 255, 0.42);
  font-size: 1rem;
  font-weight: 850;
}

.wheel-window strong {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  padding: 0;
  border-block: 1px solid rgba(226, 236, 255, 0.24);
  color: #fff;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 950;
}

.device-mirrors.is-hidden {
  display: none;
}

.day-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-row button {
  min-height: 44px;
  border: 1px solid rgba(226, 236, 255, 0.22);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 950;
}

.day-row button.is-active {
  color: #fff;
  background: #1f8f5f;
}

.hms-wide-button {
  color: #06101e;
  background: #f7f7f7;
}

.hms-danger-button {
  color: #fff;
  background: #8b2032;
}

.permission-card {
  padding: 18px;
}

.permission-card strong {
  display: block;
  font-size: 1.1rem;
}

.permission-card span {
  color: rgba(235, 241, 255, 0.74);
  font-weight: 800;
}

.permission-row,
.switch-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.permission-row span {
  color: #b7f4cd;
}

.switch-row span {
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: rgba(235, 228, 236, 0.88);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.16);
}

.switch-row span::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 4px;
  border-radius: 50%;
  background: #88848c;
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch-row.is-on span {
  background: #7e5dc8;
}

.switch-row.is-on span::after {
  background: #fff;
  transform: translateX(24px);
}

.care-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 10px;
  border-radius: 17px;
  background: rgba(8, 20, 39, 0.5);
}

.stage-config {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
}

.stage-one {
  background: rgba(31, 143, 95, 0.86);
}

.stage-two {
  background: rgba(177, 122, 22, 0.9);
}

.stage-three {
  background: rgba(215, 53, 49, 0.92);
}

.hms-toast {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: none;
  min-height: 54px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(116, 169, 255, 0.35);
  border-radius: 18px;
  color: #fff;
  background: rgba(3, 12, 24, 0.94);
  text-align: center;
  font-weight: 950;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.hms-toast.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hms-app.stage1 .hms-stage-pill {
  color: #f7fff9;
  background: #1f8f5f;
}

.hms-app.stage2 .hms-stage-pill {
  color: #fff;
  background: #b17a16;
}

.hms-app.stage3 .hms-stage-pill {
  color: #fff;
  background: #d73531;
}

@media (max-width: 1180px) {
  .hms-emulator-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .hms-emulator-shell {
    padding: 12px;
  }

  .hms-phone {
    padding: 12px 8px 10px;
    border-width: 8px;
    border-radius: 30px;
  }

  .hms-app {
    height: 720px;
    min-height: 640px;
    padding: 12px;
    border-radius: 22px;
  }

  .hms-header {
    grid-template-columns: 32px 36px minmax(0, 1fr) 46px 32px;
    gap: 5px;
    padding: 9px;
  }

  .hms-header img {
    width: 36px;
    height: 36px;
  }

  .hms-header strong {
    font-size: 0.95rem;
  }

  .hms-back,
  .hms-settings {
    width: 32px;
    height: 32px;
  }

  .hms-confirm-slider {
    grid-template-columns: 1fr 78px 1fr;
    min-height: 104px;
    padding-inline: 12px;
  }

  .hms-confirm-thumb {
    width: 78px;
    height: 78px;
  }
}

/* Mobile header fix: keep language and settings controls on the right side of the site header. */
@media (max-width: 740px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    flex: 0 0 auto;
  }

  .brand > div {
    min-width: 0;
  }

  .brand strong,
  .eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topnav {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .language-switcher,
  .site-menu {
    flex: 0 0 auto;
  }

  .language-menu,
  .site-menu-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    top: 92px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
  }

  .site-menu-panel {
    justify-self: auto;
  }
}

@media (max-width: 740px) {
  .guide-entry-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .guide-entry-card .button {
    width: 100%;
    justify-content: center;
  }
}


/* Schritt-für-Schritt-Anleitung */
.guide-hero,
.guide-section,
.guide-card,
.guide-check-card,
.guide-warning-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(116, 169, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(6, 13, 22, 0.98));
}

.guide-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
}

.guide-hero p,
.guide-section p,
.guide-card p,
.guide-step p,
.guide-timeline p,
.guide-check-card p,
.guide-warning-card p {
  color: var(--muted);
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.guide-check-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(137, 234, 213, 0.16), transparent 34%),
    rgba(6, 18, 31, 0.92);
}

.guide-check-card strong {
  color: var(--accent-soft);
  font-size: 1.25rem;
}

.guide-section {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 28px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 22px;
}

.section-heading h2,
.guide-warning-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.guide-steps {
  display: grid;
  gap: 14px;
}

.guide-step,
.guide-timeline article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.guide-step > span,
.guide-timeline article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #04111f;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 12px 26px rgba(72, 159, 255, 0.28);
}

.guide-step h3,
.guide-card h3,
.guide-timeline h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.guide-step p,
.guide-card p,
.guide-timeline p {
  margin: 0;
}

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

.guide-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.guide-timeline {
  display: grid;
  gap: 14px;
}

.guide-warning-section {
  padding: 0;
  overflow: hidden;
}

.guide-warning-card {
  padding: clamp(22px, 3vw, 36px);
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(215, 53, 49, 0.12), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(137, 234, 213, 0.10), transparent 30%),
    rgba(10, 20, 35, 0.94);
}

.guide-warning-card .button {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .guide-hero,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .guide-step,
  .guide-timeline article {
    grid-template-columns: 1fr;
  }

  .guide-step > span,
  .guide-timeline article > span {
    width: 42px;
    height: 42px;
  }
}
