:root {
  color-scheme: light;
  --bg: #eaf4f8;
  --ink: #0b1522;
  --muted: #5a6b7d;
  --line: rgba(15, 28, 46, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blue: #2f7bff;
  --cyan: #14b8c6;
  --teal: #0f766e;
  --ok: #0f9f6e;
  --warn: #b45309;
  --hero-ink: #e8f7ff;
  --hero-muted: rgba(210, 232, 245, 0.72);
  --depth-1: 0 10px 24px rgba(7, 16, 28, 0.08);
  --depth-2: 0 22px 50px rgba(7, 16, 28, 0.14);
  --depth-3: 0 40px 90px rgba(7, 16, 28, 0.22);
  --shadow: var(--depth-2);
  --shadow-soft: var(--depth-1);
  --radius: 26px;
  --radius-sm: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(56px, 9vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 42% at 88% 18%, rgba(47, 123, 255, 0.10), transparent 58%),
    radial-gradient(ellipse 50% 36% at 8% 72%, rgba(20, 184, 198, 0.10), transparent 60%),
    linear-gradient(180deg, #f3f9fc 0%, #eaf4f8 48%, #eef7f3 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 28, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
main, nav, footer, .hero-band {
  position: relative;
  z-index: 1;
}
body.is-auth { --auth-shift: 1; }
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 0;
  transition: padding 0.35s var(--ease);
}
.nav.is-scrolled { padding-top: 8px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 14px 10px 16px;
  border-radius: 20px;
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  animation: navIn 0.55s var(--ease) both;
}
.nav.is-scrolled .nav-inner {
  background: var(--glass-strong);
  box-shadow: 0 14px 36px rgba(15, 28, 46, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #05070d;
  box-shadow: 0 6px 14px rgba(15, 28, 46, 0.16);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desk-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #05070d;
}
.desk-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text-short { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border-radius: 18px;
  flex-direction: column;
  gap: 2px;
  transform-origin: top center;
  animation: drawerIn 0.28s var(--ease) both;
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav button {
  padding: 14px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  border: 0;
  background: transparent;
  min-height: 48px;
}
.mobile-nav a:hover,
.mobile-nav button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 28, 46, 0.08); }
.btn:active { transform: translateY(0); }
.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.btn.dark { border: 0; color: #fff; background: #0f1c2e; }
.btn.ghost { background: rgba(255, 255, 255, 0.42); }
.btn.full { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 28px;
  align-items: center;
  padding: clamp(40px, 7vw, 72px) 0 28px;
  min-height: min(78vh, 720px);
  overflow: visible;
}
.hero-copy { position: relative; z-index: 1; }
.brand-lockup {
  font-family: var(--display);
  font-size: clamp(44px, 7.2vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  background: linear-gradient(120deg, #0f1c2e 0%, #0e7490 55%, #1d6feb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.lead {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.hero-glow {
  position: absolute;
  inset: 4% -6% 0 -4%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 46% at 28% 40%, rgba(45, 212, 191, 0.18), transparent 70%),
    radial-gradient(ellipse 42% 40% at 78% 55%, rgba(29, 111, 235, 0.12), transparent 72%),
    radial-gradient(ellipse 34% 28% at 60% 16%, rgba(125, 211, 252, 0.22), transparent 74%);
  filter: blur(2px);
}
/* Stage sized for natural desktop window + overlapping Pro Max phone */
.product-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  height: 600px;
  overflow: visible;
}

/* Desktop client — natural readable size; phone overlaps (no desk scale/squash) */
.desk-window {
  position: absolute;
  left: 0;
  top: 28px;
  width: 580px;
  height: 500px;
  max-width: none;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 148px 1fr;
  background: linear-gradient(165deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 70px rgba(15, 28, 46, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-0.9deg);
  animation: deskFloat 9s ease-in-out infinite;
}
.desk-traffic {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.desk-traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  font-style: normal;
}
.desk-traffic i:nth-child(1) { background: #ff5f57; }
.desk-traffic i:nth-child(2) { background: #febc2e; }
.desk-traffic i:nth-child(3) { background: #28c840; }
.desk-sidebar {
  padding: 28px 12px 14px;
  border-right: 1px solid rgba(15, 28, 46, 0.06);
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desk-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #122033;
}
.desk-brand em {
  font-style: normal;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
  font-size: 10px;
  font-weight: 800;
}
.desk-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7a8a;
}
.desk-nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, #1d6feb, #22d3ee);
  box-shadow: 0 6px 14px rgba(29, 111, 235, 0.28);
}
.desk-nav-item i {
  width: 14px;
  text-align: center;
  font-style: normal;
  font-size: 11px;
  opacity: 0.9;
}
.desk-status {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  color: #8a97a6;
  font-weight: 700;
  line-height: 1.45;
}
.desk-status b {
  display: block;
  color: #5b6b7c;
  font-size: 12px;
}
.desk-main {
  padding: 28px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.desk-main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.desk-main-head strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #122033;
}
.desk-main-head span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #7a8796;
  font-weight: 600;
}
.desk-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7a8796;
  font-weight: 700;
  white-space: nowrap;
}
.desk-help {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 28, 46, 0.06);
  color: #5b6b7c;
  font-size: 12px;
  font-weight: 800;
}
.desk-beta {
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
  font-size: 11px;
  font-weight: 800;
}
.desk-body {
  display: grid;
  grid-template-columns: 1.22fr 0.95fr;
  gap: 12px;
  min-height: 0;
  flex: 1;
}
.desk-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.desk-connect {
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(94, 234, 212, 0.16), transparent 34%),
    linear-gradient(165deg, #0d2a30 0%, #0a2429 46%, #071c22 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(6, 18, 32, 0.22);
}
.desk-connect .connect-state { font-size: 12px; margin-bottom: 2px; }
.desk-connect .connect-route {
  font-size: 20px;
  margin: 0 0 4px;
  color: #fff;
}
.desk-connect .connect-tag { font-size: 11px; padding: 4px 8px; }
.desk-connect .connect-meta { margin-top: 2px; font-size: 12px; }
.desk-connect .disconnect-btn {
  margin-top: 2px;
  height: 42px;
  font-size: 14px;
  border-radius: 999px;
}
.desk-connect .route-row {
  margin-top: 0;
  height: 38px;
  font-size: 12px;
  border-radius: 12px;
}
.desk-connect .mode-row { margin-top: 0; gap: 8px; }
.desk-connect .mode-btn { height: 34px; font-size: 12px; border-radius: 10px; }
.desk-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #122033;
}
.desk-speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.desk-speed .speed-card {
  margin: 0;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
}
.desk-speed .speed-card span { font-size: 12px; }
.desk-speed .speed-card b { margin-top: 4px; font-size: 16px; }
.desk-checkin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(15, 28, 46, 0.05);
  font-size: 13px;
  font-weight: 800;
  color: #122033;
}
.desk-checkin .ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #2563eb;
  font-size: 13px;
  flex-shrink: 0;
}
.desk-checkin span {
  display: block;
  margin-top: 2px;
  color: #7a8796;
  font-weight: 600;
  font-size: 11px;
}
.desk-panel {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 16px rgba(15, 28, 46, 0.05);
  min-width: 0;
}
.desk-panel h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #122033;
}
.desk-panel .desk-account-email {
  margin: 0;
  font-size: 11px;
  color: #6b7a8a;
  line-height: 1.4;
  font-weight: 600;
  word-break: break-all;
}
.desk-panel .vip-line {
  margin-top: 8px;
  font-size: 13px;
  color: #122033;
  font-weight: 800;
}
.desk-kv {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.desk-kv div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7a8a;
}
.desk-kv b {
  color: #122033;
  font-weight: 800;
  text-align: right;
}
.desk-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.desk-mini-btn {
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #1d6feb;
  color: #fff;
}
.desk-mini-btn.ghost {
  background: rgba(15, 28, 46, 0.06);
  color: #5b6b7c;
}
.desk-line-row {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 28, 46, 0.04);
  font-size: 13px;
  font-weight: 800;
  color: #122033;
}
.desk-line-row span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7a8a;
}

/*
 * Phone frame — thin silver chrome (no chunky black bezel).
 * iPhone 17 Pro Max logical viewport 440×956 (~19.5:9). Overlaps desk.
 */
.phone {
  position: absolute;
  right: 8px;
  bottom: 12px;
  width: 248px;
  z-index: 3;
  border-radius: 30px;
  padding: 2.5px;
  /* Hairline metal rim — maximize app UI, minimize frame */
  background: linear-gradient(
    155deg,
    #f7f8fa 0%,
    #c9ced6 38%,
    #aeb4be 62%,
    #e8eaee 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 22px 52px rgba(15, 28, 46, 0.2),
    0 4px 14px rgba(15, 28, 46, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.08);
  animation: phoneFloat 7s ease-in-out infinite;
}
.app-home {
  border-radius: 27.5px;
  overflow: hidden;
  background: #f2f3f5;
  color: #122033;
  width: 100%;
  aspect-ratio: 440 / 956;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
/* Real mobile-app phone UI — bento card home (matches client screenshot) */
.phone .app-home {
  background: #f5f7fa;
  border-radius: 27.5px;
  aspect-ratio: 9 / 19.5;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 0;
  font-size: 10px;
  font-weight: 700;
  color: #122033;
  font-variant-numeric: tabular-nums;
}
.phone-status .status-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-status .status-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 8px;
}
.phone-status .status-bars i {
  width: 2px;
  border-radius: 1px;
  background: #122033;
  font-style: normal;
  display: block;
}
.phone-status .status-bars i:nth-child(1) { height: 3px; }
.phone-status .status-bars i:nth-child(2) { height: 5px; }
.phone-status .status-bars i:nth-child(3) { height: 7px; }
.phone-status .status-bars i:nth-child(4) { height: 9px; }
.phone-status .wifi-ico {
  width: 11px;
  height: 8px;
  display: block;
  color: #122033;
}
.phone-status .batt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.phone-status .batt-body {
  width: 16px;
  height: 8px;
  border: 1px solid #122033;
  border-radius: 2px;
  padding: 1px;
  box-sizing: border-box;
}
.phone-status .batt-body em {
  display: block;
  width: 55%;
  height: 100%;
  background: #122033;
  border-radius: 1px;
  font-style: normal;
}
.phone-status .batt-cap {
  width: 1.5px;
  height: 4px;
  background: #122033;
  border-radius: 0 1px 1px 0;
}
.phone .app-title-center {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #122033;
  letter-spacing: 0.02em;
  padding: 2px 0 0;
  line-height: 1.2;
}
.phone .app-header {
  padding: 4px 12px 6px;
  align-items: flex-start;
}
.phone .app-header-title { font-size: 17px; letter-spacing: -0.03em; }
.phone .app-header-sub { font-size: 10px; margin-top: 1px; color: #7a8796; font-weight: 600; }
.phone .app-protected { font-size: 10px; gap: 3px; margin-top: 4px; }
.phone .app-protected-shield { width: 13px; height: 13px; }

.phone-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 10px 4px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone-main::-webkit-scrollbar { display: none; }

.phone .connect-card {
  width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(94, 234, 212, 0.18), transparent 34%),
    linear-gradient(165deg, #0a3d3c 0%, #063532 42%, #041f22 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(4, 28, 32, 0.28);
}
.phone .connect-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.phone .connect-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.22);
}
.phone .connect-route {
  font-size: 15px;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.phone .connect-tags { gap: 4px; }
.phone .connect-tag {
  font-size: 8px;
  padding: 3px 6px;
  gap: 3px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}
.phone .connect-tag svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  opacity: 0.9;
}
.phone .connect-shield {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.phone .connect-shield svg {
  width: 18px;
  height: 18px;
  display: block;
}
.phone .connect-meta {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}
.phone .connect-meta b { color: #fff; }
.phone .connect-timer svg {
  width: 10px;
  height: 10px;
  opacity: 0.85;
}
.phone .disconnect-btn {
  margin-top: 8px;
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
  gap: 6px;
  display: flex;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}
.phone .pause-ico {
  width: 8px;
  height: 10px;
}
.phone .pause-ico:before,
.phone .pause-ico:after {
  width: 2.5px;
  height: 10px;
  background: #122033;
}
.phone .route-row {
  margin-top: 7px;
  height: 30px;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 9px;
  display: flex;
  background: rgba(0, 0, 0, 0.28);
  gap: 6px;
}
.phone .route-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.phone .route-row svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.85;
}
.phone .route-row strong {
  font-size: 9px;
  max-width: 52%;
}
.phone .mode-row {
  margin-top: 7px;
  gap: 6px;
  display: grid;
}
.phone .mode-btn {
  height: 30px;
  border-radius: 10px;
  font-size: 10px;
  gap: 4px;
  display: flex;
}
.phone .mode-btn svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.phone .speed-row {
  width: 100%;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.phone .speed-card {
  min-height: 0;
  padding: 8px 9px;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}
.phone .speed-card.upload { background: #d9eafb; }
.phone .speed-card.download { background: #f5e5d6; }
.phone .speed-card span { font-size: 9px; color: #6b7a8a; }
.phone .speed-card b { font-size: 12px; margin-top: 3px; color: #122033; letter-spacing: -0.02em; }

.phone .home-list {
  width: 100%;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone .home-row {
  padding: 8px 9px;
  border-radius: 12px;
  background: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(15, 28, 46, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone .home-row-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #2563eb;
}
.phone .home-row-icon.vip { background: #e8f1ff; color: #2563eb; }
.phone .home-row-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.phone .home-row-body { flex: 1; min-width: 0; }
.phone .home-row-body strong { display: block; font-size: 11px; color: #122033; }
.phone .home-row-body span {
  display: block;
  font-size: 8px;
  color: #7a8796;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone .home-chevron { color: #9aa6b2; font-size: 13px; }

.phone .app-preview-note {
  margin: 6px 0 2px;
  font-size: 7px;
  color: #9aa6b2;
  text-align: center;
}
.phone .app-tabbar {
  margin-top: auto;
  padding: 5px 6px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(15,28,46,0.06);
  flex-shrink: 0;
}
.phone .app-tab {
  min-height: 40px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #8a97a6;
  text-decoration: none;
  background: transparent;
}
.phone .app-tab.active {
  color: #1d6feb;
  background: transparent;
}
.phone .app-tab.active .tab-ico-wrap {
  background: rgba(29, 111, 235, 0.12);
  color: #1d6feb;
}
.phone .tab-ico-wrap {
  width: 28px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: inherit;
}
.phone .tab-ico {
  width: 15px;
  height: 15px;
  display: block;
  background: none;
  border-radius: 0;
  opacity: 1;
  color: inherit;
}
.phone .tab-ico.home,
.phone .tab-ico.member,
.phone .tab-ico.support,
.phone .tab-ico.me {
  clip-path: none;
  border-radius: 0;
  background: none;
}

.app-status-bar { display: none; }
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px 10px;
  gap: 12px;
}
.app-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: #05070d;
  flex-shrink: 0;
}
.app-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-stage .app-brand-logo { display: none; }
.app-header-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: #122033;
}
.app-header-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #7a8796;
  font-weight: 600;
}
.app-protected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.app-protected-shield {
  width: 18px;
  height: 18px;
  display: block;
  color: #16a34a;
  flex-shrink: 0;
}
.app-protected-dot { display: none; }

.connect-card {
  margin: 0 14px;
  padding: 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(94, 234, 212, 0.16), transparent 36%),
    linear-gradient(168deg, #0d2a30 0%, #0a2429 46%, #071c22 100%);
  box-shadow: 0 16px 36px rgba(7, 28, 34, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.connect-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.connect-state {
  font-size: 12px;
  font-weight: 800;
  color: #5eead4;
  margin-bottom: 6px;
}
.connect-route {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.connect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.connect-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.connect-shield {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.16);
}
.connect-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}
.connect-meta b { color: #fff; font-weight: 800; }
.connect-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}
.pause-ico {
  width: 10px;
  height: 12px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.pause-ico:before,
.pause-ico:after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: #122033;
}
.pause-ico:before { left: 1px; }
.pause-ico:after { right: 1px; }
.disconnect-btn {
  margin-top: 14px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #122033;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.route-row {
  margin-top: 12px;
  height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}
.route-row strong {
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-btn {
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.mode-btn.active {
  background: #fff;
  color: #122033;
}
.mode-btn.idle {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.speed-row {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.speed-card {
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 68px;
}
.speed-card.upload { background: #d7e9fb; }
.speed-card.download { background: #f6e6d6; }
.speed-card span {
  display: block;
  font-size: 12px;
  color: #5b6b7c;
  font-weight: 700;
}
.speed-card b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #122033;
}

.home-list {
  margin: 12px 14px 0;
  display: grid;
  gap: 10px;
}
.home-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 28, 46, 0.05);
}
.home-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.home-row-icon.vip { background: #eef2ff; color: #4f46e5; }
.home-row-body { flex: 1; min-width: 0; }
.home-row-body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #122033;
}
.home-row-body span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7a8c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-chevron {
  color: #9aa7b5;
  font-weight: 700;
  font-size: 16px;
}

.app-preview-note {
  margin: 10px 14px 0;
  font-size: 11px;
  color: #8a97a6;
  text-align: center;
  font-weight: 600;
}

.app-tabbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 28, 46, 0.06);
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 14px;
  color: #8a97a6;
  font-size: 11px;
  font-weight: 700;
  border: 0;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.app-tab span { font-size: 16px; line-height: 1; }
.app-tab.active {
  background: #e8f1ff;
  color: #2563eb;
}
.app-tab:hover { color: #122033; }


.shield-bolt {
  width: 14px;
  height: 18px;
  display: block;
  background: #fff;
  clip-path: polygon(35% 0%, 75% 0%, 55% 42%, 85% 42%, 25% 100%, 40% 55%, 15% 55%);
}
.tab-ico {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  margin-bottom: 1px;
}
.tab-ico.home {
  background: currentColor;
  clip-path: polygon(50% 8%, 92% 42%, 92% 90%, 62% 90%, 62% 60%, 38% 60%, 38% 90%, 8% 90%, 8% 42%);
}
.tab-ico.member {
  background: currentColor;
  clip-path: polygon(50% 4%, 62% 38%, 96% 38%, 68% 60%, 78% 94%, 50% 74%, 22% 94%, 32% 60%, 4% 38%, 38% 38%);
  opacity: 0.92;
}
.tab-ico.support {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}
.tab-ico.support:after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor;
  border-radius: 1px;
}
.tab-ico.me {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}
.tab-ico.me:before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  left: 4px;
  top: 2px;
}
.tab-ico.me:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: currentColor;
  left: 2px;
  bottom: 1px;
}

.mobile-app-chrome { display: none; }


/* Account modal — replaces full-page blank account layout */
#account.account-anchor {
  position: relative;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
}
.account-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(10, 18, 28, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.account-modal-backdrop.open { display: flex; }
body.account-modal-open { overflow: hidden; }
.account-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  margin: auto;
  overflow: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,252,0.96));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 28px 80px rgba(15, 28, 46, 0.28);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.account-modal-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.account-modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.account-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 28, 46, 0.08);
  background: rgba(255,255,255,0.9);
  color: #5b6b7c;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.account-modal-close:hover { color: var(--ink); }
.account-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  min-height: 0;
}
.account-modal .panel {
  margin: 0;
  background: rgba(255, 255, 255, 0.72);
}
.account-modal .device-head { margin-top: 14px; }
.password-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(15,28,46,0.07); }
.password-panel h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
}
.password-panel .form { margin-top: 8px; }
.account-modal .activity-head { margin-top: 14px; }
.activity-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
  flex-wrap: wrap;
}
.activity-head h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.activity-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.activity-panel {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.activity-panel .item .row-actions { margin-top: 10px; }
.activity-panel .item .hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.activity-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.activity-inline .input {
  flex: 1 1 140px;
  min-width: 0;
  height: 42px;
}
.activity-status {
  font-size: 13px;
  color: var(--ink);
  font-weight: 650;
}
.activity-guest {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.activity-points-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
}
.activity-points-balance .points-total {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.activity-points-balance .points-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 650;
}
.activity-redeem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.activity-redeem-grid .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .activity-redeem-grid {
    grid-template-columns: 1fr;
  }
  .activity-points-balance .points-total {
    font-size: 26px;
  }
}
@media (max-width: 720px) {
  .account-modal-backdrop { padding: 10px; align-items: flex-end; }
  .account-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 14px 14px;
    padding: 14px;
  }
  .account-modal-grid { grid-template-columns: 1fr; }
  .account-modal-head h2 { font-size: 22px; }
}

/* Sections */
section { padding: var(--space) 0; }
.section-head {
  margin-bottom: 28px;
  max-width: 40rem;
}
.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  color: #0e7490;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.download-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.download-card,
.price-card {
  min-height: 220px;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid transparent;
}
.download-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 28, 46, 0.11);
  border-color: rgba(8, 145, 178, 0.12);
}
.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  background: linear-gradient(135deg, #0f1c2e, #0e7490);
}
.download-card h3,
.price-card h3 {
  margin: 14px 0 8px;
  font-size: 21px;
  font-family: var(--display);
}
.download-card p,
.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.platform-note {
  font-size: 13px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-weight: 600;
}
.price-tag {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  margin: 14px 0 8px;
  letter-spacing: -0.03em;
}

/* Account */
.account-shell {
  border-radius: 26px;
  padding: 18px;
  overflow: hidden;
}
.account-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}
.panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 28, 46, 0.06);
  border-radius: 18px;
  padding: 20px;
  transition: opacity 0.28s ease, transform 0.28s var(--ease);
}
.panel h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
}
.panel > p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 14px;
}

.auth-summary {
  display: none;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
body.is-auth .auth-summary { display: flex; }
body.is-auth #authPanelTitle { display: none; }
body.is-auth #authPanelLead { display: none; }
body.is-auth #authForm { display: none; }
body:not(.is-auth) .auth-summary { display: none; }
body:not(.is-auth) #loggedInActions { display: none; }
body:not(.is-auth) #accountServices { opacity: 0.55; }
body:not(.is-auth) #devicePanelActions { display: none; }

.account-identity b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.account-identity span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 700;
}
.field .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.input {
  height: 48px;
  width: 100%;
  border: 1px solid rgba(15, 28, 46, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px; /* avoid iOS zoom */
}
.input:focus {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list { display: grid; gap: 10px; }
.item {
  display: block;
  border: 1px solid rgba(15, 28, 46, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.item:hover { border-color: rgba(8, 145, 178, 0.16); }
.item strong { display: block; color: var(--ink); margin-bottom: 4px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.item-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }

.device-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
  flex-wrap: wrap;
}
.device-head h3 { margin: 0; font-family: var(--display); font-size: 18px; }

/* Help */
.help-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details.item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { margin-bottom: 8px; }
.faq-list details[open] {
  border-color: rgba(8, 145, 178, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.rescue {
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(45, 212, 191, 0.18), transparent 32%),
    linear-gradient(135deg, #0f1c2e, #0f172a 52%, #134e4a);
  box-shadow: var(--shadow);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.rescue h2 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.rescue p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 14px;
}
.rescue .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.rescue .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #99f6e4;
  border-color: rgba(255, 255, 255, 0.14);
}

.footer {
  padding: 28px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 28, 46, 0.08);
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 16px;
  line-height: 1.7;
  max-width: 70ch;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  z-index: 70;
  min-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

.hidden { display: none !important; }
.auth-only { display: none; }
body.is-auth .auth-only { display: inline-flex; }
body.is-auth .auth-only.password-panel,
body.is-auth .auth-only.block { display: block; }
body.is-auth .guest-only { display: none !important; }
body:not(.is-auth) .auth-only { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.loading-dot::after {
  content: "…";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px) scaleY(0.98); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes deskFloat {
  0%, 100% { transform: rotate(-1.1deg) translateY(0); }
  50% { transform: rotate(-0.5deg) translateY(-5px); }
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

/* Floating online support launcher (bottom-right). Crisp's photo bubble is hidden; we keep this vector FAB. */
.support-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6feb, #0b5cab);
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 28, 46, 0.28);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s ease;
}
.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 28, 46, 0.32);
}
.support-fab:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.45);
  outline-offset: 3px;
}
.support-fab-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  line-height: 1;
}
.support-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
/* Never let Crisp's circular photo launcher sit on top of the mobile tab bar */
@media (max-width: 960px) {
  .crisp-client .cc-1xry0i,
  .crisp-client [data-id="chat_button"],
  #crisp-chatbox > div > a[aria-label],
  .crisp-client .cc-kxkl {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 640px) {
  .support-fab-label { display: none; }
  .support-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

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

/* Mobile bottom tab bar — hidden on desktop */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  min-height: 56px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(15, 28, 46, 0.08);
  box-shadow: 0 -10px 28px rgba(15, 28, 46, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  border-radius: 12px;
  color: #6b7a8a;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav a.is-active {
  color: #1d6feb;
  background: rgba(29, 111, 235, 0.08);
  outline: none;
}
.bottom-nav .bn-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.bottom-nav .bn-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav a span:not(.bn-ico) {
  display: block;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle,
  .mobile-nav { display: none !important; }
  .account-grid, .help-grid { grid-template-columns: 1fr; }
  .mobile-app-chrome { display: block; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { display: grid; }
  .support-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1180px); }
  .brand-text-full { display: none; }
  .brand-text-short { display: inline; }
}

/* ===== Premium 3D / creative layout layer ===== */
.shell { width: min(1180px, calc(100% - 32px)); }

.glass {
  background: linear-gradient(155deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--depth-1), inset 0 1px 0 rgba(255,255,255,0.85);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.btn {
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 28, 46, 0.08);
  transform-style: preserve-3d;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), transparent);
  pointer-events: none;
}
.btn.primary {
  background: linear-gradient(135deg, #2f7bff 0%, #14b8c6 58%, #0f766e 120%);
  box-shadow: 0 14px 28px rgba(47, 123, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn.primary:hover { box-shadow: 0 18px 34px rgba(47, 123, 255, 0.34); }
.btn.dark {
  background: linear-gradient(160deg, #15263a, #0b1522);
  box-shadow: 0 14px 28px rgba(7, 16, 28, 0.28);
}
.btn.ghost {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
}

.nav { padding-top: 16px; }
.nav-inner {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 16px 40px rgba(7, 16, 28, 0.08);
  transform: translateZ(0);
}

/* Immersive hero band — balanced composition */
.hero-band {
  position: relative;
  margin: 12px 0 10px;
  padding: clamp(32px, 4.5vw, 48px) clamp(22px, 3.2vw, 40px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
  background:
    radial-gradient(ellipse 46% 58% at 12% 18%, rgba(20, 184, 198, 0.26), transparent 58%),
    radial-gradient(ellipse 42% 48% at 88% 22%, rgba(47, 123, 255, 0.30), transparent 60%),
    radial-gradient(ellipse 36% 36% at 72% 92%, rgba(15, 118, 110, 0.18), transparent 55%),
    linear-gradient(155deg, #071018 0%, #0b1a28 42%, #10263a 100%);
  box-shadow: var(--depth-3), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(148, 210, 255, 0.12);
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 190, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 68% at 62% 42%, #000 12%, transparent 76%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 12s ease-in-out infinite;
}
.hero-orb.a { width: 200px; height: 200px; left: -36px; top: 48px; background: rgba(20,184,198,0.24); }
.hero-orb.b { width: 240px; height: 240px; right: -48px; bottom: -28px; background: rgba(47,123,255,0.20); animation-delay: -4s; }
.hero-orb.c { width: 120px; height: 120px; left: 46%; top: 14%; background: rgba(94,234,212,0.14); animation-delay: -7s; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 0;
  min-height: 0;
  overflow: visible;
  perspective: 1400px;
}
.hero-copy {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fe9ff;
  background: rgba(20, 184, 198, 0.12);
  border: 1px solid rgba(159, 233, 255, 0.22);
  backdrop-filter: blur(10px);
}
.hero-kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5eead4; box-shadow: 0 0 12px #5eead4;
  font-style: normal;
}
.brand-lockup {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  margin: 0 0 12px !important;
  color: rgba(186, 230, 253, 0.72) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 42px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
  color: #f4fbff;
  text-wrap: balance;
  font-weight: 800;
}
.hero h1 .hero-line { display: inline; }
.hero h1 .hero-line.accent {
  display: inline;
  margin-left: 0.2em;
  background: linear-gradient(110deg, #7dd3fc 0%, #5eead4 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--hero-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  max-width: 28rem;
  margin: 0 !important;
}
.hero-actions {
  margin-top: 22px !important;
  gap: 12px !important;
}
.hero-note {
  margin-top: 18px !important;
  color: rgba(186, 230, 253, 0.55) !important;
  border-left: 2px solid rgba(94, 234, 212, 0.4);
  padding-left: 12px;
  font-size: 12px !important;
  line-height: 1.55 !important;
  max-width: 28rem;
}
.hero-actions .btn.ghost {
  color: #e8f7ff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-actions .btn.dark {
  color: #e8f7ff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  border-radius: 24px;
}
.hero-glow {
  inset: 8% 4% 4% 4% !important;
  background:
    radial-gradient(ellipse 48% 46% at 34% 40%, rgba(45, 212, 191, 0.24), transparent 70%),
    radial-gradient(ellipse 42% 40% at 72% 58%, rgba(47, 123, 255, 0.18), transparent 72%) !important;
  filter: blur(6px);
}
.product-stage {
  width: min(100%, 640px) !important;
  height: 440px !important;
  transform-style: preserve-3d;
  transform: rotateY(-6deg) rotateX(4deg) scale(0.92);
  transform-origin: center center;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.product-stage.is-tilting { transition: transform 0.08s linear; }
.desk-window {
  left: 4% !important;
  top: 18px !important;
  width: min(520px, 86%) !important;
  height: 400px !important;
  transform: translateZ(12px) rotate(-0.6deg) !important;
  animation: none !important;
  box-shadow:
    0 28px 60px rgba(0,0,0,0.32),
    0 8px 20px rgba(20,184,198,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
.phone {
  right: 1% !important;
  bottom: 6px !important;
  width: 210px !important;
  transform: translateZ(40px) rotate(2.5deg) !important;
  animation: none !important;
  box-shadow:
    0 18px 40px rgba(15, 28, 46, 0.22),
    0 2px 8px rgba(15, 28, 46, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.06) !important;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: none;
  margin-bottom: 22px;
}
.section-head > div:first-child { max-width: 40rem; flex: 1 1 280px; }
.section-head > p {
  margin: 0 !important;
  flex: 0 1 280px;
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px) !important;
  letter-spacing: -0.035em;
}
.eyebrow {
  position: relative;
  transform: skewX(-8deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, rgba(47,123,255,0.12), rgba(20,184,198,0.14));
  border-color: rgba(47,123,255,0.16);
  color: #0e7490;
}

/* Equal download cards — 2x2 */
.download-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  perspective: 1200px;
  align-items: stretch;
}
.download-grid .download-card:nth-child(n) {
  grid-column: auto !important;
  min-height: 0 !important;
}
.download-card,
.price-card,
.guide-card {
  position: relative;
  height: 100%;
  min-height: 240px;
  transform-style: preserve-3d;
  border: 1px solid rgba(255,255,255,0.75);
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68));
  box-shadow: var(--depth-1), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.download-card::before,
.price-card::before,
.guide-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 70%;
  height: 70%;
  background: linear-gradient(120deg, rgba(255,255,255,0.5), transparent 60%);
  transform: rotate(18deg);
  pointer-events: none;
  opacity: 0.45;
}
.download-card:hover,
.price-card:hover,
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--depth-2);
  border-color: rgba(47,123,255,0.16);
}
.download-card > div:last-child,
.price-card > button {
  margin-top: auto;
}
.platform-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.platform-meta {
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.tilt-3d.is-tilting { transition: transform 0.08s linear; }
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(15,28,46,0.16);
}

/* Pricing — equal 2x2, strong CTAs */
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  perspective: 1200px;
  align-items: stretch;
}
.pricing-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.price-card {
  min-height: 268px;
  padding: 22px !important;
}
.price-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.price-card .price-tag { margin-top: auto; }
.price-card .btn.ghost,
.download-card .btn.ghost {
  background: #0f1c2e;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px rgba(15, 28, 46, 0.18);
}
.price-card .btn.ghost:hover,
.download-card .btn.ghost:hover {
  background: #15263a;
}
.pricing-grid .price-card:nth-child(n) {
  transform: none;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  perspective: 1000px;
  align-items: stretch;
}
.guide-card {
  padding: 26px;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.guide-card .btn { align-self: flex-start; margin-top: auto; }

.panel {
  box-shadow: var(--depth-1);
  border: 1px solid rgba(255,255,255,0.72);
}

.footer {
  position: relative;
  margin-top: 20px;
  padding-top: 28px;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(47,123,255,0.08), transparent 60%);
}

@keyframes orbDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(14px,-10px,0) scale(1.05); }
}

/* ===== Unified responsive fixes (wins over legacy) ===== */
@media (max-width: 960px) {
  .nav { padding-top: 10px; }
  .nav-inner { min-height: 56px; }
  .hero-band {
    border-radius: 24px;
    padding: 20px 16px 22px;
    margin: 8px 0 6px;
  }
  .hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .hero-copy { order: 1; max-width: none; }
  .hero-visual { order: 2; }
  .brand-lockup {
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    margin: 0 0 10px !important;
  }
  .hero h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
  }
  .hero h1 .hero-line,
  .hero h1 .hero-line.accent {
    display: inline !important;
  }
  .lead { font-size: 14px !important; line-height: 1.65 !important; max-width: none !important; }
  .hero-actions { margin-top: 18px !important; }
  .hero-note { margin-top: 14px !important; font-size: 12px !important; max-width: none; }
  .hero-orb.c { display: none; }

      /* Tablet: show the real app phone mock, hide overlapping desk */
      .hero-visual {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        border-radius: 18px;
        background: transparent;
        padding: 4px 0 0;
      }
      .hero-glow { display: none; }
      .product-stage {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        display: grid;
        place-items: center;
      }
      .desk-window { display: none !important; }
      .phone {
        display: block !important;
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: min(320px, 72vw) !important;
        margin: 0 auto !important;
        transform: none !important;
        animation: none !important;
        padding: 2.5px !important;
      }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .section-head > p { flex: 1 1 auto; max-width: none; }
  .guide-grid { grid-template-columns: 1fr !important; }
  .download-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .download-card,
  .price-card {
    min-height: 0 !important;
    padding: 16px !important;
  }
  .price-card { min-height: 240px !important; }
  section { padding: 40px 0; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1180px); }
  .nav { padding-top: max(8px, env(safe-area-inset-top)); }
  .nav-inner {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 16px;
  }
  .nav-actions .btn.ghost { display: none; }
  .nav-actions .btn.primary {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
  .nav-toggle,
  .mobile-nav { display: none !important; }
  .bottom-nav { display: grid; }
  .support-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero-band {
    border-radius: 20px;
    padding: 18px 14px 18px;
  }
  .hero-orb { display: none !important; }
  .hero-kicker { font-size: 11px; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: none; }
  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  .hero-actions .btn {
    flex: none !important;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    padding: 0 12px;
  }

  /* Phone-only preview, compact */
  .hero-visual {
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    padding: 4px 0 0;
    background: transparent;
  }
  .hero-glow { display: none; }
  .product-stage {
    height: auto !important;
    width: 100% !important;
    display: grid;
    place-items: center;
  }
  .desk-window { display: none !important; }
  .phone {
    display: block !important;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
        width: min(328px, 88vw) !important;
    margin: 0 auto !important;
    transform: none !important;
    animation: none !important;
    padding: 2.5px !important;
  }
  .phone .app-home { border-radius: 27.5px; }

  .download-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .download-card,
  .price-card,
  .guide-card {
    min-height: 0 !important;
  }
  .download-card { min-height: 200px !important; }
  .price-card { min-height: 220px !important; padding: 18px !important; }
  .platform-icon { width: 42px; height: 42px; border-radius: 13px; }
  .download-card h3,
  .price-card h3 { font-size: 18px; margin: 10px 0 6px; }
  .price-tag { font-size: 26px; }
  .platform-note,
  .platform-meta { min-height: 0; -webkit-line-clamp: 3; }

  section { padding: 36px 0; }
  .section-head h2 { font-size: clamp(24px, 7vw, 32px) !important; }
  .hint, .pricing-note { font-size: 13px; }
  .panel { padding: 16px; }
  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .footer-inner,
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal p { font-size: 12px; }

  .help-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .rescue { padding: 20px 16px; border-radius: 20px; }
  .toast {
    left: 16px;
    right: 16px;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: translateY(16px);
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }

  .support-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .account-modal {
    max-height: min(92vh, 900px);
    border-radius: 20px 20px 12px 12px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .item-actions .btn { width: 100%; }

  /* Prevent iOS input zoom */
  .input, input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 400px) {
  .hero-actions { grid-template-columns: 1fr !important; }
  .nav-actions .btn.primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none !important; }
  .product-stage,
  .tilt-3d,
  .download-card,
  .price-card,
  .guide-card {
    transform: none !important;
    transition: box-shadow 0.2s ease !important;
  }
}

/* Below-fold sections skip layout work until near viewport */
section#install-guide,
section#pricing,
section#account,
section#help {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.bottom-nav a span:not(.bn-ico) {
  font-size: 11px;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .phone .app-home {
    font-size: 13px;
  }
  .connect-card,
  .stats-row,
  .list-card {
    box-shadow: 0 8px 18px rgba(15, 28, 46, 0.06);
  }
}
