:root {
  --bg: #09090b;
  --surface: #111114;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --dim: #5f5f69;
  --line: rgba(255, 255, 255, 0.08);
  --spectrum: linear-gradient(90deg, #ff4d5e, #ff8a1f 25%, #1aa3e8 55%, #7c5cff 78%, #d63bd0);
  --spectrum-conic: conic-gradient(from 90deg, #ff4d5e, #ff8a1f, #1aa3e8, #7c5cff, #d63bd0, #ff4d5e);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 20px;
}

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

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

/* До applyI18n не показываем шаблонный текст из index.html */
html:not(.i18n-ready) body > *:not(.bg) {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h3,
p,
dl,
dd,
ol {
  margin: 0;
  padding: 0;
}

ol {
  list-style: none;
}

a {
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(100% 60% at 50% -10%, #1b1035 0%, transparent 60%),
    radial-gradient(80% 50% at 50% 110%, #1a0b1f 0%, transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.blob--1 {
  width: 46vmax;
  height: 46vmax;
  top: -14vmax;
  left: -16vmax;
  background: #5b3bd9;
  opacity: 0.32;
  animation: float1 22s ease-in-out infinite alternate;
}

.blob--2 {
  width: 38vmax;
  height: 38vmax;
  top: 30%;
  right: -18vmax;
  background: #d63b7a;
  opacity: 0.2;
  animation: float2 26s ease-in-out infinite alternate;
}

.blob--3 {
  width: 34vmax;
  height: 34vmax;
  bottom: -16vmax;
  left: 10%;
  background: #1a8fd6;
  opacity: 0.18;
  animation: float1 30s ease-in-out infinite alternate-reverse;
}

@keyframes float1 {
  to {
    transform: translate(12vmax, 8vmax) scale(1.15);
  }
}

@keyframes float2 {
  to {
    transform: translate(-10vmax, -12vmax) scale(0.9);
  }
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent);
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.lang {
  position: relative;
}

.lang-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-chev {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .lang-chev {
  transform: rotate(180deg);
}

.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 200px;
  max-height: min(320px, 50vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14141a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang-drop[hidden] {
  display: none;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.lang-opt:hover,
.lang-opt.is-active {
  background: rgba(124, 92, 255, 0.18);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 0;
  text-align: center;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  opacity: 0.85;
  cursor: pointer;
}

.scroll-hint svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
  animation: hint 1.4s ease-in-out infinite;
}

@keyframes hint {
  50% {
    transform: translateY(5px);
  }
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(32px, 9vw, 60px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.spectrum {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 8s linear infinite;
}

@keyframes flow {
  to {
    background-position: 200% 0;
  }
}

.lead {
  margin: 16px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}


.c-main-action-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  height: 60px;
  margin-top: 26px;
  padding: 0 30px 0 26px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font: inherit;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #c026d3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 32px -10px rgba(168, 85, 247, 0.75),
    0 0 0 0 rgba(168, 85, 247, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease), filter 0.2s;
  animation: call 2.6s ease-out infinite;
}

.c-main-action-button:hover {
  filter: brightness(1.08);
}

.c-main-action-button:active {
  transform: scale(0.97);
}

.c-gp-icon-box {
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.c-gp-icon-img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.c-btn-caption {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.c-btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  flex: none;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.c-main-action-button.is-loading {
  cursor: progress;
  animation: none;
}

.c-main-action-button.is-loading .c-btn-spinner {
  display: block;
}

.c-main-action-button.is-loading .c-gp-icon-box {
  transform: scale(0.88);
  opacity: 0.75;
}

.c-main-action-button.is-done .c-gp-icon-box {
  animation: pop 0.45s var(--ease);
}

@keyframes pop {
  40% {
    transform: scale(1.15);
  }
}

.c-main-action-button:disabled {
  cursor: default;
  animation: none;
  box-shadow: none;
  background: #26262b;
  color: var(--dim);
}

.c-main-action-button:disabled::before {
  display: none;
}

.c-main-action-button:disabled .c-gp-icon-box {
  opacity: 0.35;
}

@keyframes call {
  70%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 12px 32px -10px rgba(168, 85, 247, 0.75),
      0 0 0 14px rgba(168, 85, 247, 0);
  }
}

.c-main-action-button::before {
  content: "";
  z-index: -1;
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}

@keyframes shine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.hint {
  margin-top: 10px;
  font-size: 13px;
  color: #f87171;
  text-align: center;
}


.stage {
  position: relative;
  display: flex;
  justify-content: center;
  zoom: 0.76;
  text-align: left;
}

@media (max-height: 760px) {
  .stage {
    zoom: 0.62;
  }
}

@media (max-height: 640px) {
  .stage {
    zoom: 0.52;
  }
}

.halo {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  border-radius: 50%;
  background: var(--spectrum-conic);
  filter: blur(70px);
  opacity: 0.28;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19;
  padding: 8px;
  border-radius: 42px;
  background: #18181c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(120% 60% at 100% 100%, rgba(255, 77, 94, 0.2), transparent 60%),
    #0d0d12;
}

.island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 10;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  border-radius: 12px;
  background: #000;
}

.statusbar {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
}

.sb-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sb-icons i {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.sb-icons i:first-child {
  width: 8px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.sb-icons b {
  width: 18px;
  height: 9px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box;
  padding: 1px;
}

.is-press {
  transform: scale(0.93) !important;
  filter: brightness(0.85);
}


.browser {
  position: absolute;
  inset: 38px 0 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 8px;
  color: var(--muted);
}

.ub-home {
  width: 16px;
  height: 16px;
  flex: none;
}

.ub-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #202027;
  font-size: 10.5px;
  color: #e4e4e7;
}

.ub-field {
  min-width: 0;
}

.ub-field span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ub-field svg {
  flex: none;
  width: 11px;
  height: 11px;
  color: var(--muted);
}

.ub-tabs {
  width: 15px;
  height: 15px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.ub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ub-menu i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.ub-progress {
  height: 2px;
  background: #8ab4f8;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.phone[data-stage="downloading"] .ub-progress {
  animation: ubload 0.9s var(--ease) forwards;
}

@keyframes ubload {
  0% {
    opacity: 1;
    transform: scaleX(0);
  }
  70% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

.web {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 18px 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(90% 50% at 50% 0%, rgba(124, 92, 255, 0.22), transparent 70%);
}

.web-icon {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px -6px rgba(124, 92, 255, 0.6);
}

.web-icon img,
.sheet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.web-name {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.web-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.web-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  margin-top: 18px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -8px rgba(168, 85, 247, 0.8);
  transition: transform 0.15s, filter 0.15s;
}

.web-ico {
  width: 15px;
  height: 15px;
  filter: invert(1);
}

.web-line {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.web-btn + .web-line {
  margin-top: 28px;
}

.web-line--short {
  width: 60%;
  align-self: flex-start;
}


.dlbar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 18px;
  background: #24242c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(160%);
  transition: transform 0.45s var(--ease);
}

.dl-ico {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  color: #8ab4f8;
  background: rgba(138, 180, 248, 0.15);
}

.dl-ico svg {
  position: absolute;
  inset: 7px;
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  transition: opacity 0.3s, transform 0.3s;
}

.dl-ok {
  opacity: 0;
  transform: scale(0.5);
}

.phone[data-stage="downloading"] .dl-arrow {
  animation: nudge 0.9s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(2px);
  }
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-name {
  font-size: 11px;
  font-weight: 600;
}

.dl-meta {
  position: relative;
  height: 12px;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.dl-meta > span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.dl-meta-ok {
  opacity: 0;
}

.dl-track {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: opacity 0.3s;
}

.dl-track span {
  display: block;
  width: calc(var(--p, 0) * 1%);
  height: 100%;
  background: #8ab4f8;
}

.dl-open {
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0b1f3a;
  background: #8ab4f8;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.35s var(--ease), filter 0.15s;
}

.phone:is([data-stage="downloading"], [data-stage="downloaded"], [data-stage="ask"], [data-stage="installing"], [data-stage="installed"]) .dlbar {
  transform: none;
}

.phone:is([data-stage="downloaded"], [data-stage="ask"], [data-stage="installing"], [data-stage="installed"]) :is(.dl-meta-ok, .dl-ok, .dl-open) {
  opacity: 1;
  transform: none;
}

.phone:is([data-stage="downloaded"], [data-stage="ask"], [data-stage="installing"], [data-stage="installed"]) :is(.dl-meta-run, .dl-arrow, .dl-track) {
  opacity: 0;
}


.installer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 22px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.sheet {
  width: 100%;
  padding: 18px 14px 12px;
  border-radius: 24px;
  background: #1f1f26;
  transform: translateY(50px);
  transition: transform 0.45s var(--ease);
}

.sheet-app {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 4px;
  border-radius: 11px;
  background: #fff;
}

.sheet-name {
  font-size: 14px;
  font-weight: 700;
}

.sheet-body {
  position: relative;
  height: 72px;
  margin-top: 14px;
}

.pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.pane p {
  font-size: 12px;
  color: #e4e4e7;
}

.sheet-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
}

.s-btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #8ab4f8;
  transition: transform 0.15s, filter 0.15s;
}

.s-btn--main {
  color: #0b1f3a;
  background: #8ab4f8;
}

.s-track {
  display: block;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: rgba(138, 180, 248, 0.2);
  overflow: hidden;
}

.s-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: #8ab4f8;
  animation: indet 1.1s ease-in-out infinite;
}

@keyframes indet {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

.phone:is([data-stage="ask"], [data-stage="installing"], [data-stage="installed"]) .installer {
  opacity: 1;
}

.phone:is([data-stage="ask"], [data-stage="installing"], [data-stage="installed"]) .sheet {
  transform: none;
}

.phone[data-stage="ask"] .pane--ask,
.phone[data-stage="installing"] .pane--progress,
.phone[data-stage="installed"] .pane--done {
  opacity: 1;
  transform: none;
}

.done-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.done-check {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.55);
  transform: scale(0);
  transition: transform 0.45s var(--ease) 0.1s;
}

.done-check svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.phone[data-stage="installed"] .done-check {
  transform: scale(1);
}

.phone[data-stage="installed"] .done-check svg {
  animation: draw 0.45s 0.2s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.phone[data-stage="open"] .browser {
  opacity: 0;
  transform: scale(0.94);
}


.app {
  position: absolute;
  inset: 0;
  z-index: 7;
  padding: 44px 14px 0;
  background: #0b0b0f;
  border-radius: 34px;
  opacity: 0;
  transform: scale(0.2);
  transform-origin: var(--ox, 50%) var(--oy, 80%);
  transition: transform 0.55s var(--ease), opacity 0.3s;
  pointer-events: none;
}

.phone[data-stage="open"] .app {
  opacity: 1;
  transform: none;
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: radial-gradient(60% 40% at 50% 50%, rgba(124, 92, 255, 0.3), transparent 70%), #0b0b0f;
}

.splash-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 0 20px;
}

.splash-done img {
  width: 76px;
  height: 76px;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.splash-success {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
}

.phone[data-stage="open"] .app > :not(.splash) {
  display: none;
}

.phone[data-stage="open"] .splash {
  opacity: 1;
  animation: none;
}

.phone[data-stage="open"] .splash-done img {
  animation: success-logo 0.65s var(--ease) forwards;
}

.phone[data-stage="open"] .splash-success {
  animation: success-text 0.5s var(--ease) 0.45s forwards;
}

@keyframes success-logo {
  from {
    transform: scale(0.55);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes success-text {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.app-top img {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 6px;
  background: #fff;
}

.avatar {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--spectrum-conic);
}

.player {
  position: relative;
  height: 124px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  background: #15151b;
  isolation: isolate;
}

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.85));
}

.player-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone[data-stage="open"] .player-img {
  animation: kenburns 6s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.15) translateX(4%);
  }
  to {
    transform: scale(1);
  }
}

.live {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: #ef4444;
}

.p-title {
  font-size: 12px;
  font-weight: 700;
}

.p-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.p-track {
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.p-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.phone[data-stage="open"] .p-track span {
  width: 70%;
  transition: width 3s linear 1.4s;
}

.row-title {
  margin: 14px 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 8px;
}

.row span {
  flex: none;
  border-radius: 10px;
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.row--channels span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.row--channels span:nth-child(1) { background: linear-gradient(135deg, #22c55e, #065f2c); }
.row--channels span:nth-child(2) { background: linear-gradient(135deg, #ff4d5e, #8a1c3a); }
.row--channels span:nth-child(3) { background: linear-gradient(135deg, #1aa3e8, #0c3d66); }
.row--channels span:nth-child(4) { background: linear-gradient(135deg, #d63bd0, #5c1259); }
.row--channels span:nth-child(5) { background: linear-gradient(135deg, #ff8a1f, #7a2e05); }
.row--channels span:nth-child(6) { background: linear-gradient(135deg, #7c5cff, #2e1a7a); }

.row--posters span {
  width: 56px;
  height: 80px;
  overflow: hidden;
  background: #1c1c22;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.row--posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone[data-stage="open"] .row span {
  transform: none;
  opacity: 1;
}

.phone[data-stage="open"] .row span:nth-child(1) { transition-delay: 1.15s; }
.phone[data-stage="open"] .row span:nth-child(2) { transition-delay: 1.22s; }
.phone[data-stage="open"] .row span:nth-child(3) { transition-delay: 1.29s; }
.phone[data-stage="open"] .row span:nth-child(4) { transition-delay: 1.36s; }
.phone[data-stage="open"] .row span:nth-child(5) { transition-delay: 1.43s; }
.phone[data-stage="open"] .row span:nth-child(6) { transition-delay: 1.5s; }

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 12px 18px 24px;
  background: linear-gradient(transparent, #0b0b0f 35%);
}

.tabs svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
}

.tabs svg.on {
  color: #fff;
}

.touch {
  position: absolute;
  z-index: 8;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  pointer-events: none;
}

.touch.is-on {
  animation: touch 0.6s ease-out;
}

@keyframes touch {
  0% {
    opacity: 0;
    transform: scale(1.8);
  }
  40% {
    opacity: 1;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 9;
  width: 90px;
  height: 4px;
  margin-left: -45px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
}


.block {
  position: relative;
  margin-top: 36px;
  padding-top: 28px;
  scroll-margin-top: 12px;
}

.block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.55), rgba(214, 59, 208, 0.45), rgba(26, 163, 232, 0.4), transparent);
}

.block-kicker {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.features article {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.features article::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  background: #7c5cff;
}

.features article:nth-child(2)::after {
  background: #d63bd0;
}

.features article:nth-child(3)::after {
  background: #1aa3e8;
}

.f-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features h3,
.steps h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features p,
.steps p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.steps {
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 28px;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: flex;
  gap: 18px;
  counter-increment: step;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -24px;
  width: 1px;
  background: var(--line);
}

.s-dot {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.s-dot::before {
  content: counter(step);
}

.steps h3 {
  margin-top: 4px;
}


.footer {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 24px var(--pad) calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

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

.footer nav {
  display: flex;
  gap: 18px;
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--fg);
}


.doc {
  width: 100%;
  max-width: 640px;
  max-height: 86svh;
  margin: auto auto 0;
  padding: 0;
  display: none;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  color: var(--fg);
  background: #141418;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
}

.doc[open] {
  display: flex;
  animation: doc-in 0.4s var(--ease);
}

.doc::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes doc-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

body:has(.doc[open]) {
  overflow: hidden;
}

.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 22px;
  border-bottom: 1px solid var(--line);
}

.doc-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.doc-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.doc-close svg {
  width: 18px;
  height: 18px;
}

.doc-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px calc(28px + env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.doc-body p,
.doc-body ul {
  margin: 0 0 12px;
}

.doc-body ul {
  padding-left: 18px;
}

.doc-body li + li {
  margin-top: 4px;
}

.doc-body h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  color: var(--fg);
}

.doc-date {
  font-size: 12px;
  color: var(--dim);
}

@media (min-width: 720px) {
  .doc {
    margin: auto;
    border-radius: 24px;
  }
}

.footer-note {
  margin-top: 12px;
  line-height: 1.5;
}


.sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  background: rgba(24, 24, 28, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}

.sticky.is-on {
  transform: none;
}

.sticky img {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.sticky-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 15px;
}

.sticky-text span {
  font-size: 12px;
  color: var(--muted);
}

.sticky-btn {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -8px rgba(168, 85, 247, 0.8);
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


@media (max-width: 360px) {
  :root {
    --pad: 14px;
  }

}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .steps li {
    flex-direction: column;
    gap: 14px;
  }

  .steps li:not(:last-child)::after {
    left: 44px;
    right: -32px;
    top: 16px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .sticky {
    display: none;
  }

  .footer {
    padding-bottom: 32px;
  }
}

@media (min-width: 960px) {
  :root {
    --pad: 32px;
  }

  .block {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Color themes selected by settings.json: colorTheme */
:root,
html[data-theme="pattern1"] {
  --theme-bg-top: #1b1035;
  --theme-bg-bottom: #1a0b1f;
  --theme-a: #8b5cf6;
  --theme-b: #c026d3;
  --theme-c: #1aa3e8;
  --theme-blob-a: #5b3bd9;
  --theme-blob-b: #d63b7a;
  --theme-blob-c: #1a8fd6;
  --theme-soft: rgba(124, 92, 255, 0.22);
  --theme-soft-strong: rgba(124, 92, 255, 0.30);
  --theme-hover: rgba(124, 92, 255, 0.18);
  --theme-glow: rgba(168, 85, 247, 0.75);
  --theme-glow-soft: rgba(168, 85, 247, 0.50);
  --theme-action: linear-gradient(135deg, #8b5cf6, #c026d3);
}

html[data-theme="pattern2"] {
  --bg: #050a12;
  --surface: #0c1522;
  --fg: #f5f9ff;
  --muted: #9bacc0;
  --dim: #5b6f86;
  --line: rgba(125, 211, 252, 0.13);
  --spectrum: linear-gradient(90deg, #38bdf8, #60a5fa 32%, #818cf8 66%, #22d3ee);
  --spectrum-conic: conic-gradient(from 90deg, #38bdf8, #60a5fa, #818cf8, #22d3ee, #38bdf8);
  --theme-bg-top: #0b2a46;
  --theme-bg-bottom: #071b2c;
  --theme-a: #38bdf8;
  --theme-b: #6366f1;
  --theme-c: #22d3ee;
  --theme-blob-a: #0b79b7;
  --theme-blob-b: #4338ca;
  --theme-blob-c: #087f98;
  --theme-soft: rgba(56, 189, 248, 0.18);
  --theme-soft-strong: rgba(99, 102, 241, 0.27);
  --theme-hover: rgba(56, 189, 248, 0.14);
  --theme-glow: rgba(14, 165, 233, 0.62);
  --theme-glow-soft: rgba(34, 211, 238, 0.34);
  --theme-action: linear-gradient(135deg, #2563eb, #06b6d4);
}

html[data-theme="pattern3"] {
  --bg: #edf2f7;
  --surface: #ffffff;
  --fg: #17212b;
  --muted: #5f6e7d;
  --dim: #7b8896;
  --line: rgba(30, 50, 70, 0.13);
  --spectrum: linear-gradient(90deg, #7892ad, #92a8bc 42%, #b0becb 72%, #d1d9e1);
  --spectrum-conic: conic-gradient(from 90deg, #7892ad, #92a8bc, #b0becb, #d1d9e1, #7892ad);
  --theme-bg-top: #d7e3ef;
  --theme-bg-bottom: #e2e9f0;
  --theme-a: #5d7d9d;
  --theme-b: #8194a8;
  --theme-c: #9cabb9;
  --theme-blob-a: #9db8d2;
  --theme-blob-b: #c1ccd8;
  --theme-blob-c: #a9bfce;
  --theme-soft: rgba(93, 125, 157, 0.13);
  --theme-soft-strong: rgba(93, 125, 157, 0.20);
  --theme-hover: rgba(93, 125, 157, 0.12);
  --theme-glow: rgba(72, 104, 136, 0.38);
  --theme-glow-soft: rgba(72, 104, 136, 0.24);
  --theme-action: linear-gradient(135deg, #52769a, #7f94aa);
}

.bg {
  background:
    radial-gradient(100% 60% at 50% -10%, var(--theme-bg-top) 0%, transparent 60%),
    radial-gradient(80% 50% at 50% 110%, var(--theme-bg-bottom) 0%, transparent 60%),
    var(--bg);
}
.blob--1 { background: var(--theme-blob-a); }
.blob--2 { background: var(--theme-blob-b); }
.blob--3 { background: var(--theme-blob-c); }
.lang-opt:hover,
.lang-opt.is-active { background: var(--theme-hover); }
.c-main-action-button,
.web-btn,
.sticky-btn { background: var(--theme-action); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 28px -10px var(--theme-glow); }
.c-main-action-button { animation-name: theme-call; }
@keyframes theme-call {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 28px -10px var(--theme-glow), 0 0 0 0 var(--theme-glow-soft); }
  60% { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 28px -10px var(--theme-glow), 0 0 0 14px transparent; }
}
.screen { background: radial-gradient(120% 60% at 0% 0%, var(--theme-soft-strong), transparent 60%), radial-gradient(120% 60% at 100% 100%, var(--theme-soft), transparent 60%), #0d1112; }
.web { background: radial-gradient(90% 50% at 50% 0%, var(--theme-soft), transparent 70%); }
.web-icon { box-shadow: 0 10px 30px -6px var(--theme-glow); }
.splash { background: radial-gradient(60% 40% at 50% 50%, var(--theme-soft-strong), transparent 70%), #0b0f0e; }
.block::before { background: var(--spectrum); }
.features article::after { background: var(--theme-a); }
.features article:nth-child(2)::after { background: var(--theme-b); }
.features article:nth-child(3)::after { background: var(--theme-c); }


/* Light surfaces for pattern3; the phone demo intentionally stays dark. */
html[data-theme="pattern3"] .lang-drop {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(38, 55, 72, 0.16);
}
html[data-theme="pattern3"] .features article {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(52, 72, 92, 0.08);
}
html[data-theme="pattern3"] .sticky {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: 0 -16px 40px rgba(52, 72, 92, 0.10);
}
html[data-theme="pattern3"] .block-kicker,
html[data-theme="pattern3"] .sticky-text span {
  color: var(--muted);
}

/* Keep the animated phone UI readable inside the light page theme. */
html[data-theme="pattern3"] .phone {
  --fg: #f7f9fb;
  --muted: #b4bec8;
  --dim: #7f8b98;
  --line: rgba(255, 255, 255, 0.12);
  color: var(--fg);
}
html[data-theme="pattern3"] .phone .web-sub,
html[data-theme="pattern3"] .phone .install-sub,
html[data-theme="pattern3"] .phone .download-meta,
html[data-theme="pattern3"] .phone .app-sub {
  color: var(--muted);
}


/* Pattern 2: cinematic blue treatment matching the phone animation. */
html[data-theme="pattern2"] .phone {
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.16), 0 40px 80px -20px rgba(0,0,0,.82), 0 24px 60px -28px rgba(14,165,233,.72);
}
html[data-theme="pattern2"] .screen {
  background: radial-gradient(120% 65% at 0% 0%, rgba(99,102,241,.30), transparent 60%), radial-gradient(120% 65% at 100% 100%, rgba(34,211,238,.22), transparent 60%), #07101a;
}
html[data-theme="pattern2"] .c-main-action-button,
html[data-theme="pattern2"] .web-btn,
html[data-theme="pattern2"] .sticky-btn {
  border: 1px solid rgba(125,211,252,.22);
}
html[data-theme="pattern2"] .features article {
  background: linear-gradient(145deg, rgba(56,189,248,.055), rgba(99,102,241,.025));
}
html[data-theme="pattern2"] .phone,
html[data-theme="pattern2"] .web-icon,
html[data-theme="pattern2"] .splash-done img {
  outline-color: rgba(125,211,252,.18);
}

/* Pattern 3: structured light background instead of a flat empty canvas. */
html[data-theme="pattern3"] .bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 151, 190, .30) 0%, transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(151, 168, 202, .24) 0%, transparent 28%),
    radial-gradient(ellipse at 52% 78%, rgba(255, 255, 255, .92) 0%, transparent 42%),
    linear-gradient(rgba(72, 98, 124, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 98, 124, .055) 1px, transparent 1px),
    linear-gradient(145deg, #f8fbfe 0%, #e5edf5 48%, #f4f7fa 100%);
  background-size: auto, auto, auto, 46px 46px, 46px 46px, auto;
}
html[data-theme="pattern3"] .blob--1 { opacity: .18; }
html[data-theme="pattern3"] .blob--2 { opacity: .14; }
html[data-theme="pattern3"] .blob--3 { opacity: .16; }
html[data-theme="pattern3"] .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 70px;
  left: 50%;
  width: min(620px, 92vw);
  height: 380px;
  transform: translateX(-50%);
  border: 1px solid rgba(77, 108, 139, .10);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.48), transparent 66%);
  box-shadow: 0 28px 90px rgba(69, 95, 121, .10);
  pointer-events: none;
}

/* Pattern 3 refinements: no hero ring, stronger headline accent. */
html[data-theme="pattern3"] {
  --spectrum: linear-gradient(90deg, #365f86, #4f7598 38%, #6d87a1 70%, #466b8e);
  --spectrum-conic: conic-gradient(from 90deg, #365f86, #4f7598, #6d87a1, #466b8e, #365f86);
}
html[data-theme="pattern3"] .hero::after { display: none; }
html[data-theme="pattern3"] .bg {
  background:
    radial-gradient(ellipse at 8% 18%, rgba(111, 151, 190, .27) 0%, transparent 34%),
    radial-gradient(ellipse at 92% 16%, rgba(151, 168, 202, .22) 0%, transparent 32%),
    radial-gradient(ellipse at 52% 76%, rgba(255, 255, 255, .88) 0%, transparent 46%),
    linear-gradient(125deg, transparent 0 38%, rgba(76, 103, 130, .045) 38.2%, transparent 38.5% 64%, rgba(76, 103, 130, .035) 64.2%, transparent 64.5%),
    linear-gradient(rgba(72, 98, 124, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 98, 124, .045) 1px, transparent 1px),
    linear-gradient(145deg, #f8fbfe 0%, #e5edf5 48%, #f4f7fa 100%);
  background-size: auto, auto, auto, auto, 46px 46px, 46px 46px, auto;
}

/* Normalize uploaded app logos in every landing placement. */
.nav-brand img,
.web-icon,
.sheet-icon,
.splash-done img,
.app-top img,
.sticky img {
  overflow: hidden;
  padding: 0;
  background: #fff;
  aspect-ratio: 1;
}
.nav-brand img,
.web-icon img,
.sheet-icon img,
.splash-done img,
.app-top img,
.sticky img {
  display: block;
  object-fit: cover;
  object-position: center;
}
.web-icon img,
.sheet-icon img {
  border-radius: inherit;
}
.nav-brand img { border-radius: 8px; }
.web-icon { border-radius: 18px; }
.sheet-icon { border-radius: 11px; }
.splash-done img { border-radius: 22px; }
.app-top img { border-radius: 9px; }
.sticky img { border-radius: 11px; }

/* App logo visual sizing: larger containers plus controlled artwork zoom. */
.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transform: scale(var(--app-icon-scale, 1));
  transform-origin: center;
}
.web-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}
.web-icon img { transform: scale(var(--app-icon-scale, 1)); }
.sheet-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.sheet-icon img { transform: scale(var(--app-icon-scale, 1)); }
.splash-done img {
  width: 84px;
  height: 84px;
  transform: scale(var(--app-icon-scale, 1));
}
.phone[data-stage="open"] .splash-done img {
  --logo-final-scale: 1.10;
}
.app-top img {
  width: 34px;
  height: 34px;
  transform: scale(var(--app-icon-scale, 1));
  transform-origin: center;
}
.sticky img {
  width: 44px;
  height: 44px;
  transform: scale(var(--app-icon-scale, 1));
  transform-origin: center;
}


/* Preserve per-instance logo scale at the end of the success animation. */
@keyframes success-logo {
  from { transform: scale(.55); opacity: 0; }
  to { transform: scale(var(--app-icon-scale, 1)); opacity: 1; }
}


/* Unified app-icon fit: white fill only for transparent logos, average size everywhere. */
.nav-brand img,
.web-icon,
.sheet-icon,
.splash-done img,
.app-top img,
.sticky img {
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  transform: none !important;
}
.nav-brand img,
.web-icon img,
.sheet-icon img,
.splash-done img,
.app-top img,
.sticky img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}
.nav-brand img { width: 36px; height: 36px; padding: 3px; border-radius: 10px; }
.web-icon { width: 72px; height: 72px; padding: 7px; border-radius: 20px; }
.sheet-icon { width: 42px; height: 42px; padding: 4px; border-radius: 12px; }
.splash-done img { width: 84px; height: 84px; padding: 8px; border-radius: 24px; }
.app-top img { width: 24px; height: 24px; padding: 2px; border-radius: 7px; }
.sticky img { width: 44px; height: 44px; padding: 4px; border-radius: 12px; }
html.icon-solid .nav-brand img,
html.icon-solid .web-icon,
html.icon-solid .sheet-icon,
html.icon-solid .splash-done img,
html.icon-solid .app-top img,
html.icon-solid .sticky img {
  padding: 0;
  background: transparent;
}
html.icon-transparent .nav-brand img,
html.icon-transparent .web-icon,
html.icon-transparent .sheet-icon,
html.icon-transparent .splash-done img,
html.icon-transparent .app-top img,
html.icon-transparent .sticky img {
  background: #fff;
}
@keyframes success-logo {
  from { transform: scale(.55); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
