/* Babyphone.Online — professional visual system v2
   Final visual layer only; behaviour and application state stay in index.html. */

:root {
  --pro-navy: #0c2f63;
  --pro-blue: #2f8ff0;
  --pro-blue-soft: #5faeff;
  --pro-pink: #ff6f9e;
  --pro-pink-soft: #ff8db2;
  --pro-muted: #6e83a8;
  --pro-line: rgba(47, 143, 240, 0.18);
  --pro-surface: rgba(255, 255, 255, 0.86);
  --pro-shadow: 0 18px 46px rgba(12, 47, 99, 0.09);
  --pro-shadow-sm: 0 8px 24px rgba(12, 47, 99, 0.07);
  --pro-radius: 24px;
}

html {
  background: #fff;
}

body {
  color: var(--pro-navy);
  background: #fff;
}

button,
input,
select,
textarea {
  font-family: "Quicksand", "Nunito", system-ui, sans-serif;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[role="switch"]:focus-visible {
  outline: 3px solid rgba(47, 143, 240, 0.35);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Landing */
body:not(.app-mode):not(.content-page) {
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 19%, rgba(255, 111, 158, 0.09), transparent 29%),
    radial-gradient(circle at 16% 38%, rgba(95, 174, 255, 0.11), transparent 32%),
    #fff;
}

body:not(.app-mode):not(.content-page)::before,
body:not(.app-mode):not(.content-page)::after {
  display: none;
}

.setup-wrap,
.lp {
  min-height: 100vh;
  background: transparent;
}

.lp {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

.lp-nav {
  position: sticky;
  z-index: 30;
  top: 10px;
  width: 100%;
  min-height: 70px;
  margin: 10px 0 0;
  padding: 10px 16px 10px 20px;
  border: 1px solid rgba(95, 174, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--pro-shadow-sm), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.18);
}

.lp-brand .bp-brand-lockup {
  gap: 10px;
}

.lp-brand .bp-brand-icon {
  width: 42px;
  height: 46px;
}

.lp-brand .bp-wordmark {
  font-size: clamp(19px, 1.8vw, 27px);
  letter-spacing: -0.045em;
}

.lp-nav-right {
  gap: 28px;
}

.lp-navlink {
  color: var(--pro-navy);
  font-size: 14px;
  font-weight: 800;
}

.lp-nav .lang-pill {
  min-height: 48px;
  padding: 8px 15px;
  border-color: var(--pro-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.lp-hero {
  min-height: 445px;
  padding: 34px 24px 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(26px, 5vw, 80px);
  align-items: center;
}

.lp-hero-text {
  align-self: end;
  padding: 0 0 24px;
}

.lp-hero-text h1 {
  max-width: 660px;
  margin: 0;
  color: var(--pro-navy);
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.062em;
}

.lp-sub {
  max-width: 650px;
  margin: 26px 0 0;
  color: #536b93;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.55;
}

.lp-hero-visual {
  position: relative;
  align-self: center;
  width: min(620px, 100%);
  height: 340px;
  justify-self: center;
  filter: none;
}

.lp-hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 5% 1%;
  border: 1px solid rgba(95, 174, 255, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 46%, rgba(255, 255, 255, 0.98) 0 35%, rgba(231, 242, 255, 0.72) 62%, transparent 75%);
  box-shadow: inset 0 0 50px rgba(47, 143, 240, 0.08);
}

.bp-signal-ring {
  opacity: 0.6;
}

.bp-hero-baby {
  width: min(450px, 79%);
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(12, 47, 99, 0.18));
}

.bp-heart-crop {
  top: 2%;
  right: 8%;
  width: 82px;
  height: 82px;
  transform: rotate(8deg);
  filter: drop-shadow(0 12px 18px rgba(255, 111, 158, 0.2));
}

.lp-bullets {
  align-self: start;
  max-width: 620px;
  margin: 0;
  gap: 10px;
}

.lp-bullets li {
  min-height: 48px;
  padding: 7px 10px 7px 7px;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.lp-bullets .lp-b-ic {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(47, 143, 240, 0.14);
  border-radius: 11px;
  background: #f5faff;
}

.lp-bullets b {
  color: var(--pro-navy);
  font-size: 11px;
  line-height: 1.15;
}

.lp-bullets small {
  display: none;
}

.lp-choose {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bp-action-dock {
  min-height: 150px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.42fr);
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bp-action-baby,
.bp-action-parent {
  min-height: 150px;
  border-radius: 24px;
  box-shadow: var(--pro-shadow-sm);
  backdrop-filter: blur(20px);
}

.bp-action-baby {
  padding: 0;
  border: 1px solid rgba(255, 111, 158, 0.44);
  background: linear-gradient(135deg, rgba(255, 250, 252, 0.97), rgba(255, 245, 248, 0.82));
}

.bp-baby-start {
  width: 100%;
  min-height: 148px;
  padding: 18px 26px 18px 18px;
  grid-template-columns: 74px minmax(0, 1fr) 24px;
  color: var(--pro-pink);
  font-size: clamp(20px, 2vw, 27px);
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.bp-action-icon-baby {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 111, 158, 0.25);
  background: rgba(255, 255, 255, 0.82);
}

.bp-action-icon-baby img {
  width: 59px;
  height: 64px;
}

.bp-action-parent {
  padding: 18px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(47, 143, 240, 0.38);
  background: linear-gradient(135deg, rgba(250, 253, 255, 0.96), rgba(245, 250, 255, 0.82));
}

.bp-action-icon-parent {
  align-self: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--pro-line);
  background: rgba(255, 255, 255, 0.86);
}

.bp-parent-title {
  color: var(--pro-blue);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 800;
}

.bp-parent-connect p {
  margin: 3px 0 9px;
  color: #60779f;
  font-size: 13px;
}

.bp-parent-controls {
  grid-template-columns: minmax(150px, 1fr) auto 58px;
  gap: 9px;
  margin: 0;
}

.bp-parent-controls .lp-code-input {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--pro-line);
  border-radius: 13px;
  color: var(--pro-navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(12, 47, 99, 0.04);
}

.bp-connect-btn {
  position: static;
  width: auto;
  min-width: 122px;
  min-height: 48px;
  border-radius: 13px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(47, 143, 240, 0.22);
}

.bp-parent-controls .lp-qr-btn {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.lp-assure {
  display: none;
}

.lp-how {
  margin: 74px 0 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--pro-shadow);
}

.lp-how img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.lp-trust {
  width: 100%;
  max-width: none;
  margin: 84px 0 0;
  padding: 0 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lp-h2 {
  margin-bottom: 38px;
  color: var(--pro-navy);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lp-trust-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lp-trust-item,
.lp-trust-item:nth-child(even) {
  position: relative;
  width: 100%;
  max-width: none;
  height: 210px;
  min-height: 190px;
  margin: 0;
  padding: 34px 170px 34px 34px;
  display: block;
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--pro-shadow-sm);
}

.lp-trust-item:nth-child(even) {
  padding: 34px 170px 34px 34px;
}

.lp-trust-ic {
  width: 42px;
  height: 42px;
  margin: 0 0 15px;
  border: 1px solid var(--pro-line);
  border-radius: 13px;
  color: var(--pro-blue);
  background: #f5faff;
  box-shadow: none;
}

.lp-trust-item b {
  color: var(--pro-navy);
  font-size: 19px;
}

.lp-trust-item p {
  max-width: 420px;
  margin: 7px 0 0;
  color: #60779f;
  font-size: 14px;
  line-height: 1.5;
}

.bp-trust-baby,
.lp-trust-item:nth-child(even) .bp-trust-baby {
  position: absolute;
  right: 24px;
  left: auto;
  bottom: 15px;
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0.98;
  transform: none;
}

.lp-footer {
  margin: 72px 0 24px;
  padding: 40px 26px 26px;
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--pro-shadow-sm);
}

/* ---------------------------------------------------------------- Pairing */
body.app-mode {
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 174, 255, 0.13), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 111, 158, 0.11), transparent 30%),
    #fff;
}

.pair-wrap {
  min-height: 100vh;
  padding: clamp(28px, 5vh, 60px) 20px;
}

.pair-head,
.pair-box {
  width: min(560px, calc(100% - 24px));
}

.pair-head {
  padding: 26px 30px 10px;
}

.pair-head h1 {
  color: var(--pro-navy);
  font-size: clamp(34px, 4vw, 48px);
}

.pair-box {
  padding: 28px;
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--pro-shadow);
  backdrop-filter: blur(22px);
}

.bigcode,
.bigcode-input {
  color: var(--pro-blue);
}

.btn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
}

/* -------------------------------------------------------------- App header */
#screenParent,
#screenBaby {
  min-height: 100dvh;
  padding: 14px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 8%, rgba(95, 174, 255, 0.11), transparent 32%),
    radial-gradient(circle at 90% 9%, rgba(255, 111, 158, 0.1), transparent 30%),
    #fff;
}

#screenParent .dash-topbar,
#screenBaby .dash-topbar {
  width: min(1500px, 100%);
  min-height: 66px;
  margin: 0 auto 12px;
  padding: 9px 14px 9px 18px;
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--pro-shadow-sm), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.18);
}

.dash-brand .bp-brand-icon {
  width: 34px;
  height: 38px;
}

.dash-brand .bp-wordmark {
  font-size: 17px;
}

.dash-topright .lang-pill {
  min-height: 44px;
  border-color: var(--pro-line);
  border-radius: 13px;
  background: #fff;
}

.dash-gear,
.dsb-fs,
.icon-btn {
  border: 1px solid var(--pro-line);
  color: var(--pro-navy);
  background: #fff;
  box-shadow: none;
}

/* ------------------------------------------------------------ Parent unit */
#screenParent .dash {
  width: min(1500px, 100%);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

#screenParent .dash-side {
  align-self: start;
  padding: 8px 6px;
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--pro-shadow-sm);
}

#screenParent .dash-nav {
  gap: 5px;
}

#screenParent .dnav {
  min-height: 58px;
  padding: 7px 4px;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #6d83a7;
  background: transparent;
}

#screenParent .dnav svg {
  width: 20px;
  height: 20px;
}

#screenParent .dnav span {
  font-size: 9px;
  font-weight: 800;
}

#screenParent .dnav.active {
  border-color: rgba(47, 143, 240, 0.22);
  color: var(--pro-blue);
  background: #f3f8ff;
  box-shadow: none;
}

#screenParent .dash-main {
  min-width: 0;
}

#screenParent .dash-titlerow {
  min-height: 60px;
  margin: 0 0 10px;
  padding: 8px 10px;
  flex-wrap: nowrap;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--pro-shadow-sm);
}

#screenParent .dash-title-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

#screenParent .dash-title h1 {
  color: var(--pro-navy);
  font-size: 25px;
}

#screenParent .dash-status {
  min-width: 0;
  padding: 5px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

#screenParent .dsb-item {
  min-height: 36px;
  padding: 5px 13px;
  border-left: 1px solid var(--pro-line);
}

#screenParent .dsb-item:first-child {
  border-left: 0;
}

#screenParent .dview.active {
  min-width: 0;
}

#screenParent #dviewMonitor.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  grid-template-areas:
    "video controls"
    "audio controls"
    "stats stats"
    "log log";
  gap: 10px 12px;
  align-items: stretch;
}

#screenParent .vcard {
  grid-area: video;
  width: 100%;
  height: clamp(300px, 48vh, 500px);
  min-height: 0;
  aspect-ratio: auto;
  border: 1px solid rgba(95, 174, 255, 0.45);
  border-radius: 24px;
  background: linear-gradient(150deg, #0c2f63, #071c40);
  box-shadow: 0 18px 38px rgba(12, 47, 99, 0.17);
}

#screenParent .vcard video {
  object-fit: cover;
}

#screenParent .vcard-badge,
#screenParent .vcard-focus,
#screenParent .vcard-hd {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 28, 64, 0.62);
  backdrop-filter: blur(14px);
}

#screenParent .ctrlrow {
  grid-area: controls;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  overflow: visible;
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenParent .ctrlbtn {
  width: 100%;
  min-height: 0;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  color: var(--pro-navy);
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

#screenParent .ctrlbtn:hover {
  border-color: rgba(47, 143, 240, 0.42);
  background: #f5faff;
  transform: translateY(-1px);
}

#screenParent .ctrlbtn:first-child {
  color: #fff;
  border-color: var(--pro-blue);
  background: linear-gradient(135deg, var(--pro-blue-soft), var(--pro-blue));
  box-shadow: 0 10px 22px rgba(47, 143, 240, 0.2);
}

#screenParent .ctrlbtn.danger {
  color: #d64570;
  border-color: rgba(255, 111, 158, 0.38);
  background: #fff8fa;
}

#screenParent .ctrlbtn .cb-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f2f7ff;
}

#screenParent .ctrlbtn:first-child .cb-ic {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

#screenParent .ctrlbtn span:last-child {
  font-size: 13px;
  font-weight: 800;
}

#screenParent .ameter {
  grid-area: audio;
  min-height: 52px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

#screenParent .ameter-bars {
  height: 10px;
}

#screenParent .ameter-scale {
  display: none;
}

#screenParent .statcards {
  grid-area: stats;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenParent .statcard {
  min-height: 82px;
  padding: 13px 16px;
  border: 0;
  border-left: 1px solid var(--pro-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screenParent .statcard:first-child {
  border-left: 0;
}

#screenParent .statcard b {
  color: var(--pro-navy);
}

#screenParent .evlog {
  grid-area: log;
  min-height: 54px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenParent .evlog-list {
  max-height: 72px;
  overflow: auto;
}

#screenParent .dpanel,
#screenParent #dviewLog .evlog {
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  color: var(--pro-navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--pro-shadow);
}

/* -------------------------------------------------------------- Baby unit */
#screenBaby .bdash {
  width: min(1500px, 100%);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "top top"
    "title title"
    "video controls"
    "stats controls"
    "pair features"
    "tip tip";
  gap: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#screenBaby .dash-topbar {
  grid-area: top;
  margin-bottom: 0;
}

#screenBaby .dash-titlerow {
  grid-area: title;
  min-height: 58px;
  margin: 0;
  padding: 6px 8px;
  flex-wrap: nowrap;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--pro-shadow-sm);
}

#screenBaby .dash-title h1 {
  color: var(--pro-navy);
  font-size: 25px;
}

#screenBaby .btn-stop {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pro-pink-soft), var(--pro-pink));
  box-shadow: 0 10px 22px rgba(255, 111, 158, 0.2);
}

#screenBaby .vcard.baby {
  grid-area: video;
  width: 100%;
  height: clamp(290px, 45vh, 480px);
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border: 1px solid rgba(95, 174, 255, 0.45);
  border-radius: 24px;
  background: linear-gradient(150deg, #0c2f63, #071c40) !important;
  box-shadow: 0 18px 38px rgba(12, 47, 99, 0.17);
}

#screenBaby .btoggles {
  grid-area: controls;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 10px;
  gap: 7px;
  border: 1px solid var(--pro-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
  backdrop-filter: blur(18px);
}

#screenBaby .btgl {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 8px 11px;
  gap: 10px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  color: var(--pro-navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

#screenBaby .btgl-ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
}

#screenBaby .btgl-t b {
  font-size: 14px;
}

#screenBaby .btgl-t small {
  font-size: 11px;
}

#screenBaby .switch {
  width: 46px;
  height: 27px;
  flex-basis: 46px;
}

#screenBaby .bstat-row {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenBaby .bstat {
  min-height: 76px;
  padding: 11px 14px;
  border: 0;
  border-left: 1px solid var(--pro-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#screenBaby .bstat:first-child {
  border-left: 0;
}

#screenBaby .bstat .big {
  font-size: 21px;
}

#screenBaby .bgrid {
  display: contents;
}

#screenBaby .bpair {
  grid-area: pair;
  min-height: 128px;
  margin: 0;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head qr"
    "code qr";
  gap: 8px 18px;
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenBaby .bcard-h {
  grid-area: head;
}

#screenBaby .bpair-row {
  grid-area: code;
  margin: 0;
}

#screenBaby .bpair-code {
  padding: 4px 0;
  border: 0;
  color: var(--pro-blue);
  background: transparent;
  font-size: 28px;
}

#screenBaby .bpair-qrrow {
  grid-area: qr;
  margin: 0;
  align-items: center;
}

#screenBaby .bpair-qr {
  width: 92px;
  height: 92px;
  border: 6px solid #fff;
  border-radius: 13px;
}

#screenBaby .bpair-scan {
  display: none;
}

#screenBaby .btiles {
  grid-area: features;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#screenBaby .btile {
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--pro-line);
  border-radius: 17px;
  color: var(--pro-navy);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pro-shadow-sm);
}

#screenBaby .bt-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

#screenBaby .btip {
  grid-area: tip;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  color: #5d7399;
  background: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------------- Responsive app */
@media (max-width: 1080px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  }

  #screenParent .dash {
    grid-template-columns: 1fr;
  }

  #screenParent .dash-side {
    order: 2;
    padding: 6px;
    overflow-x: auto;
  }

  #screenParent .dash-nav {
    min-width: 630px;
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
  }

  #screenParent .dnav {
    min-height: 48px;
  }

  #screenParent #dviewMonitor.active {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  #screenBaby .bdash {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 780px) {
  .lp {
    width: min(100% - 20px, 620px);
  }

  .lp-nav {
    top: 6px;
    min-height: 60px;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .lp-brand .bp-brand-icon {
    width: 32px;
    height: 35px;
  }

  .lp-brand .bp-wordmark {
    font-size: 16px;
  }

  .lp-navlink {
    display: none;
  }

  .lp-nav-right {
    gap: 6px;
  }

  .lp-nav .lang-pill {
    min-height: 42px;
    max-width: 138px;
    padding: 6px 10px;
  }

  .lp-hero {
    min-height: 0;
    padding: 26px 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .lp-hero-text {
    order: 1;
    padding: 0;
  }

  .lp-hero-text h1 {
    max-width: 520px;
    font-size: clamp(42px, 11.5vw, 56px);
    line-height: 0.98;
  }

  .lp-sub {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .lp-hero-visual {
    order: 2;
    width: 100%;
    height: min(58vw, 240px);
    margin-top: 10px;
  }

  .bp-hero-baby {
    width: min(300px, 78%);
    max-height: 215px;
  }

  .bp-heart-crop {
    width: 58px;
    height: 58px;
  }

  .lp-bullets {
    order: 3;
    width: 100%;
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .lp-bullets li {
    min-width: 0;
    min-height: 52px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }

  .lp-bullets .lp-b-ic {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .lp-bullets b {
    font-size: 9px;
  }

  .bp-action-dock {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bp-action-baby,
  .bp-action-parent {
    min-height: 0;
    border-radius: 22px;
  }

  .bp-baby-start {
    min-height: 82px;
    padding: 9px 14px 9px 9px;
    grid-template-columns: 60px minmax(0, 1fr) 22px;
    font-size: 20px;
  }

  .bp-action-icon-baby {
    width: 58px;
    height: 58px;
  }

  .bp-action-icon-baby img {
    width: 48px;
    height: 52px;
  }

  .bp-action-parent {
    padding: 14px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
  }

  .bp-action-icon-parent {
    width: 60px;
    height: 60px;
  }

  .bp-parent-title {
    font-size: 20px;
  }

  .bp-parent-controls {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .bp-parent-controls .lp-code-input {
    min-width: 0;
  }

  .bp-connect-btn {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  .bp-parent-controls .lp-qr-btn {
    grid-column: 2;
    grid-row: 1;
    width: 52px;
    height: 52px;
  }

  .lp-how {
    margin-top: 54px;
    padding: 10px;
    border-radius: 22px;
    overflow-x: auto;
  }

  .lp-how img {
    width: 720px;
    max-width: none;
  }

  .lp-trust {
    margin-top: 62px;
    padding: 0;
  }

  .lp-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lp-trust-item,
  .lp-trust-item:nth-child(even) {
    min-height: 150px;
    padding: 24px 130px 24px 24px;
  }

  .bp-trust-baby,
  .lp-trust-item:nth-child(even) .bp-trust-baby {
    right: 16px;
    width: 102px;
    height: 102px;
  }

  .lp-footer {
    margin-top: 52px;
  }

  #screenParent,
  #screenBaby {
    padding: 8px;
  }

  #screenParent .dash-topbar,
  #screenBaby .dash-topbar {
    min-height: 58px;
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: 16px;
  }

  .dash-topright .dash-gear {
    display: none;
  }

  #screenParent .dash-titlerow,
  #screenBaby .dash-titlerow {
    min-height: 54px;
    padding: 5px 7px;
  }

  #screenParent .dash-titlerow {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  #screenParent .dash-status {
    width: 100%;
    max-width: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--pro-line);
  }

  #screenParent .dsb-item {
    min-width: 0;
    border-left: 1px solid var(--pro-line);
    border-top: 1px solid var(--pro-line);
  }

  #screenParent .dsb-item:nth-child(odd) {
    border-left: 0;
  }

  #screenParent .dsb-item:nth-child(-n + 2) {
    border-top: 0;
  }

  #screenParent .dsb-fs {
    display: none;
  }

  #screenParent #dviewMonitor.active {
    display: flex;
    flex-direction: column;
  }

  #screenParent .vcard {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  #screenParent .ctrlrow {
    order: 3;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #screenParent .ctrlrow::-webkit-scrollbar,
  #screenParent .dash-side::-webkit-scrollbar {
    display: none;
  }

  #screenParent .ctrlbtn {
    flex: 0 0 152px;
    min-height: 70px;
    scroll-snap-align: start;
  }

  #screenParent .ameter {
    order: 2;
  }

  #screenParent .statcards {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #screenParent .statcard:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--pro-line);
  }

  #screenParent .statcard:nth-child(4) {
    border-top: 1px solid var(--pro-line);
  }

  #screenParent .evlog {
    order: 5;
  }

  #screenBaby .bdash {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "title"
      "video"
      "stats"
      "controls"
      "pair"
      "features"
      "tip";
  }

  #screenBaby .vcard.baby {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  #screenBaby .btoggles {
    display: flex;
  }

  #screenBaby .btgl {
    min-height: 66px;
  }

  #screenBaby .bstat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #screenBaby .bstat {
    min-height: 88px;
    padding: 10px 8px;
    border-top: 0;
    border-left: 1px solid var(--pro-line);
  }

  #screenBaby .bstat:first-child {
    border-left: 0;
  }

  #screenBaby .bstat .big {
    font-size: 17px;
    letter-spacing: 0.08em;
  }

  #screenBaby .bstat small {
    font-size: 10px;
    line-height: 1.25;
  }

  #screenBaby .bpair {
    min-height: 122px;
  }

  #screenBaby .btiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
