:root {
  --ink: #191c22;
  --muted: #7f8691;
  --blue: #2864e8;
  --line: #e8ebef;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  margin: 0;
  background: #fbfcfd;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

main,
section,
header,
footer,
.wrap,
.hero,
.hero-copy,
.hero-art,
.signing-section,
.signing-card,
.signing-content,
.categories,
.app-grid,
.features,
.guide {
  min-width: 0;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

/* Fixed viewport glow wrapper prevents off-screen blobs from widening Safari viewport */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  filter: blur(85px);
  border-radius: 50%;
  opacity: .55;
}

.g1 {
  width: 390px;
  height: 390px;
  right: -140px;
  top: 90px;
  background: #e6edff;
}

.g2 {
  width: 300px;
  height: 300px;
  left: -170px;
  top: 650px;
  background: #eef2f8;
}

/* Header (Desktop untouched) */
.header {
  height: 82px;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ebef;
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  flex: 0 0 auto;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.brand i {
  height: 22px;
  width: 1px;
  background: #dfe2e7;
}

.brand b {
  font-weight: 700;
}

.header nav {
  display: flex;
  gap: 34px;
}

.header nav a {
  font-size: 11px;
  color: #858b95;
  font-weight: 600;
}

.header nav a:hover,
.header nav .active {
  color: #20242b;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.online {
  font-size: 9px;
  color: #777f8a;
}

.online i,
.chip-b > i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31b77a;
  margin-right: 7px;
  box-shadow: 0 0 0 4px #31b77a18;
}

.dark-btn {
  background: #191c22;
  color: #fff;
  border-radius: 24px;
  padding: 12px 17px;
  font-size: 10px;
  font-weight: 700;
}

.head-right button {
  display: none;
  border: 0;
  background: none;
  font-size: 21px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero (Desktop untouched) */
.hero {
  min-height: 605px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  padding: 40px 0 50px;
}

.eyebrow,
label {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #8c939e;
}

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

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: #cbd1da;
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(48px, 5.7vw, 76px);
  line-height: 1.02;
  letter-spacing: -5px;
  margin: 25px 0 22px;
  font-weight: 800;
}

.hero h1 em,
.section-head h2 em,
.guide h2 em {
  font-style: normal;
  color: #9aa1ac;
}

.hero-copy > p {
  max-width: 530px;
  color: #747b86;
  font-size: 12px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.blue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--blue);
  color: #fff;
  padding: 15px 20px;
  border-radius: 28px;
  font-size: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 9px 22px #2864e825;
  transition: .25s;
}

.blue-btn:hover {
  background: #174fc8;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #2864e83a;
}

.plain-link {
  font-size: 10px;
  font-weight: 700;
}

.stats {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 50px;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.stats b {
  font-size: 21px;
  letter-spacing: -1px;
}

.stats small {
  font-size: 8px;
  line-height: 1.5;
  color: #858c97;
}

.stats > i {
  width: 1px;
  height: 27px;
  background: #e1e4e9;
  flex: none;
}

.stats-mobile {
  display: none;
}

.hero-art {
  height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art > img {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px #1c2b4618);
  animation: float 7s ease-in-out infinite;
}

.halo {
  position: absolute;
  width: min(390px, 85%);
  height: min(390px, 85%);
  border-radius: 50%;
  background: radial-gradient(circle, #e3eaff, #f0f3fa 53%, transparent 72%);
  animation: breathe 7s infinite;
  pointer-events: none;
}

.orbit {
  position: absolute;
  width: min(470px, 95%);
  height: 285px;
  border: 1px solid #e0e6f2;
  border-radius: 50%;
  transform: rotate(-20deg);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #fff;
  background: #ffffffd9;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: 0 12px 35px #25324b12;
  font-size: 17px;
  color: #4772d6;
  max-width: calc(100% - 12px);
}

.float-chip b {
  display: block;
  font-size: 9px;
  color: #222832;
}

.float-chip small {
  display: block;
  font-size: 8px;
  color: #939aa4;
  margin-top: 4px;
}

.chip-a {
  right: 0;
  top: 58px;
}

.chip-b {
  left: 0;
  bottom: 45px;
  color: #31a879;
}

/* Trust bar */
.trust {
  height: 72px;
  border-block: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #969da7;
  font-weight: 700;
  overflow: hidden;
}

.trust > i {
  height: 1px;
  background: #e5e8ed;
  flex: 1 1 auto;
  min-width: 12px;
}

.trust b {
  font-size: 13px;
  letter-spacing: -.4px;
  color: #343943;
  white-space: nowrap;
}

.trust b em {
  font-style: normal;
  color: #8e95a0;
}

.trust small {
  font-size: 9px;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
}

/* Signing section (Desktop untouched) */
.signing-section {
  padding: 8px 0 24px;
  scroll-margin-top: 100px;
}

.signing-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 27px 30px 25px;
  border: 1px solid #e8ebef;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 15px 45px rgba(27, 45, 78, .055);
}

.signing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 21px;
}

.signing-title-group {
  min-width: 0;
}

.signing-heading label {
  display: block;
  margin: 0 0 8px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #8c939e;
}

.signing-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -1px;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 22px;
  background: #f0faf4;
  color: #52936f;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.secure-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35b779;
  box-shadow: 0 0 0 4px #35b77918;
  flex: 0 0 auto;
}

.signing-content {
  width: 100%;
  max-width: 100%;
}

.field-title {
  display: block;
  margin: 0 0 7px;
  color: #303640;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.1px;
}

.notice {
  margin: 0 0 14px;
  color: #858c97;
  font-size: 11px;
  line-height: 1.75;
}

.notice strong {
  color: #525b68;
  font-weight: 800;
}

.input-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.udid {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #e1e5eb;
  border-radius: 13px;
  background: #fff;
  color: #242a34;
  outline: none;
  font-size: 12px;
  letter-spacing: .2px;
  transition: border-color .2s, box-shadow .2s;
}

.udid::placeholder {
  color: #a5abb4;
}

.udid:focus {
  border-color: #8ba8ee;
  box-shadow: 0 0 0 4px #2864e811;
}

.input-wrap.udid-success-wrap::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #2bc45b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
}

.udid.udid-success {
  padding-left: 51px;
  background: #f3fbf5;
  border-color: #b9e9c4;
  color: #172033;
}

.primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 49px;
  margin-top: 11px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #3475ee, #245cdb);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 19px #2864e822;
  transition: transform .2s, opacity .2s;
}

.primary span {
  margin-left: 10px;
  font-size: 15px;
}

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

.primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.helper {
  margin: 10px 0 0;
  text-align: center;
  color: #9aa1ac;
  font-size: 9px;
  line-height: 1.5;
}

.error-box {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ffd8d5;
  border-radius: 12px;
  background: #fff6f5;
  color: #c54a43;
  font-size: 10px;
  line-height: 1.5;
}

.error-box.show {
  display: block;
}

/* Sections, Categories, Apps, Features, Guide, Footer (Desktop untouched) */
.section {
  padding: 100px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}

.section-head label,
.guide label {
  display: block;
  margin-bottom: 13px;
}

.section-head h2,
.guide h2 {
  font-size: 37px;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1.12;
}

.section-head > p {
  font-size: 10px;
  line-height: 1.8;
  color: #838a95;
  max-width: 290px;
  margin: 0 0 3px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category {
  border: 1px solid #e9ebef;
  background: #fff;
  border-radius: 17px;
  padding: 16px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: .25s;
  min-width: 0;
}

.category:hover,
.category.selected {
  border-color: #cbd8fb;
  box-shadow: 0 10px 30px #1b3c7a0b;
  transform: translateY(-3px);
}

.category.selected {
  background: #f8faff;
}

.category > i {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-style: normal;
  flex: none;
}

.category span {
  min-width: 0;
}

.category span b {
  display: block;
  font-size: 10px;
}

.category span small {
  display: block;
  font-size: 8px;
  color: #9299a3;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category strong {
  margin-left: auto;
  color: #a4aab4;
  font-size: 12px;
}

.c-all {
  background: #edf2ff;
  color: #3668d9;
}

.c-game {
  background: #f1efff;
  color: #7865c8;
}

.c-ent {
  background: #fff2e9;
  color: #d98a50;
}

.c-health {
  background: #eaf7f1;
  color: #3e9d78;
}

.c-edu {
  background: #fdf0f3;
  color: #cb7088;
}

.apps {
  background: #f3f5f8;
  padding: 90px 0;
}

.tools {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.tools input {
  width: 220px;
  min-width: 0;
  height: 39px;
  border: 1px solid #e1e5eb;
  border-radius: 22px;
  background: #fff;
  padding: 0 14px;
  outline: 0;
  font-size: 10px;
}

.tools span {
  font-size: 9px;
  color: #7d8490;
  white-space: nowrap;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  background: #fff;
  border: 1px solid #e9ebef;
  border-radius: 19px;
  padding: 20px 18px 16px;
  min-height: 215px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: .25s;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px #172b4d0c;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.app-top > small {
  font-size: 7px;
  letter-spacing: 1px;
  color: #9ba2ad;
  font-weight: 800;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  flex: none;
}

.game-icon {
  background: linear-gradient(145deg, #e8edff, #cbd8ff);
  color: #4266c4;
}

.media-icon {
  background: linear-gradient(145deg, #ffeadf, #f8cbb1);
  color: #b66d4d;
}

.health-icon {
  background: linear-gradient(145deg, #dff5e9, #b8e6cf);
  color: #398a65;
}

.edu-icon {
  background: linear-gradient(145deg, #f9e5ec, #f1c6d4);
  color: #a85f7a;
}

.app-card h3 {
  font-size: 14px;
  margin: 18px 0 7px;
}

.app-card p {
  font-size: 9px;
  line-height: 1.7;
  color: #858c97;
  margin: 0 0 15px;
}

.app-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid #f0f1f4;
  padding-top: 12px;
  margin-top: auto;
}

.app-card footer small,
.demo-note {
  font-size: 8px;
  color: #a0a6af;
}

.install {
  border: 0;
  background: #f0f4ff;
  color: #3565d0;
  border-radius: 20px;
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.install:hover {
  background: var(--blue);
  color: #fff;
}

.demo-note {
  font-size: 9px;
  margin-top: 18px;
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.feature {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  min-width: 0;
  padding: 25px;
  background: #f4f6f9;
  border: 1px solid #edf0f4;
  border-radius: 21px;
}

.featured {
  background: linear-gradient(145deg, #edf2ff, #f7f8fb);
}

.feature > i {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #416bd0;
  font-size: 18px;
  font-style: normal;
  margin-bottom: 26px;
  box-shadow: 0 5px 15px #243b6710;
}

.feature label {
  font-size: 8px;
  letter-spacing: 1.2px;
}

.feature h3 {
  font-size: 19px;
  letter-spacing: -.7px;
  line-height: 1.25;
  margin: 12px 0 9px;
}

.feature p {
  font-size: 9px;
  line-height: 1.8;
  color: #858c97;
  max-width: 260px;
}

.infinity {
  position: absolute;
  right: 15px;
  bottom: -42px;
  font-size: 170px;
  color: #dfe7fb;
  pointer-events: none;
}

.guide {
  background: #191d26;
  color: #fff;
  border-radius: 27px;
  padding: 52px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 55px;
  position: relative;
  overflow: hidden;
  margin-bottom: 95px;
}

.guide::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: #294c9b33;
  filter: blur(55px);
  right: -140px;
  top: -190px;
  pointer-events: none;
}

.guide > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.guide label {
  color: #aab6d4;
}

.guide h2 {
  font-size: 42px;
  margin: 18px 0;
}

.guide h2 em {
  color: #8fa7e7;
}

.guide p {
  font-size: 10px;
  line-height: 1.9;
  color: #aab0bd;
  max-width: 340px;
  margin-bottom: 25px;
}

.guide .steps {
  align-self: center;
}

.guide .steps > div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff19;
}

.guide .steps > div:first-child {
  border-top: 1px solid #ffffff19;
}

.guide .steps > div > b {
  font-size: 10px;
  color: #8ea7ed;
}

.guide .steps strong {
  display: block;
  font-size: 11px;
}

.guide .steps small {
  display: block;
  font-size: 9px;
  color: #9ba2b0;
  margin-top: 5px;
}

.guide .steps i {
  font-style: normal;
  margin-left: auto;
  color: #849bd7;
}

.site-footer {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #9298a2;
}

.site-footer .brand img {
  width: 29px;
  height: 29px;
}

.site-footer > a:last-child {
  font-weight: 700;
  color: #646b76;
}

/* Alerts */
.vsign-alert-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: 20px;
  background: rgba(242, 247, 252, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.vsign-alert-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vsign-alert {
  width: min(430px, 100%);
  padding: 24px 20px 20px;
  text-align: center;
  border: 1px solid #e5eaf0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 50, 72, .14);
  transform: translateY(8px) scale(.985);
  transition: transform .22s ease;
}

.vsign-alert-overlay.show .vsign-alert {
  transform: none;
}

.vsign-alert-icon {
  margin-bottom: 9px;
  font-size: 25px;
  line-height: 1;
}

.vsign-alert h2 {
  margin: 0;
  color: #e53935;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.35px;
}

.vsign-alert p {
  margin: 13px 2px 18px;
  color: #687588;
  font-size: 13px;
  line-height: 1.62;
}

.vsign-alert p strong {
  color: #273449;
  font-weight: 800;
}

.vsign-alert-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 15px;
  background: #e53935;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1px;
  box-shadow: 0 9px 20px #e5393529;
}

/* Signing progress modal */
.sign-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(247, 251, 255, .965);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.sign-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sign-modal {
  width: min(470px, 100%);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
  overflow: auto;
  padding: 25px 18px 19px;
  text-align: center;
  border: 1px solid #dce7f1;
  border-radius: 25px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 25px 70px rgba(31, 70, 111, .12);
  transform: translateY(10px) scale(.98);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.sign-overlay.show .sign-modal {
  transform: none;
}

.progress-ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  flex: 0 0 auto;
}

.progress-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #e9eff5;
  stroke-width: 8;
}

.ring-value {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 376.99;
  stroke-dashoffset: 376.99;
}

.progress-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.percent {
  color: #263247;
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
}

.sign-title {
  margin: 0;
  color: #2e3a4e;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 820;
  letter-spacing: -.45px;
}

.sign-sub {
  min-height: 20px;
  margin: 5px auto 17px;
  color: #8b98aa;
  font-size: 12px;
  line-height: 1.45;
}

.sign-modal .steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  text-align: left;
  align-self: auto;
}

.sign-modal .steps > div,
.sign-modal .step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 9px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  color: #a0aaba;
  background: #f8fafc;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.sign-modal .step-dot {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9eff5;
  color: #9ca8b7;
  font-size: 10px;
  font-weight: 850;
  transition: all .3s ease;
}

.sign-modal .step-text {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.sign-modal .step.active {
  color: #1678df;
  background: #eef7ff;
  transform: translateX(1px);
}

.sign-modal .step.active .step-dot {
  color: #fff;
  background: #0a84ff;
  box-shadow: 0 5px 12px rgba(10, 132, 255, .18);
}

.sign-modal .step.done {
  color: #198a4e;
  background: #f0faf4;
}

.sign-modal .step.done .step-dot {
  color: #fff;
  background: #20b85b;
}

/* Result view */
.result-view {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 18%, rgba(32, 184, 91, .08), transparent 34%), linear-gradient(180deg, #f8fcff, #fff);
}

.result-view.show {
  display: flex;
  animation: resultFade .45s ease both;
}

.result-card {
  width: min(570px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px 20px 21px;
  text-align: center;
  border: 1px solid #dce9e1;
  border-radius: 25px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 25px 70px rgba(36, 86, 61, .10);
  animation: resultCardIn .55s cubic-bezier(.22, 1, .36, 1) both;
}

.success-circle {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #def8e8;
  color: #20b85b;
  animation: successPop .55s cubic-bezier(.22, 1, .36, 1) both;
}

.success-circle svg {
  width: 30px;
  height: 30px;
}

.result-title {
  margin: 0;
  color: #2d394d;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.55px;
}

.result-description {
  max-width: 430px;
  margin: 6px auto 16px;
  color: #8b98aa;
  font-size: 12.5px;
  line-height: 1.5;
}

.result-description strong {
  color: #65748a;
}

.device-box {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #dfe8ef;
  border-radius: 15px;
  background: #f8fafc;
}

.device-label {
  margin-bottom: 4px;
  color: #9aa6b5;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .7px;
}

.device-value {
  color: #4c596d;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-all;
}

#installButton.install {
  width: 100%;
  min-height: 55px;
  margin-top: 0;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #24c965, #18ae52);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(32, 184, 91, .18);
  transition: transform .22s ease, opacity .22s ease;
}

#installButton.install:active {
  transform: scale(.988);
}

#installButton.install.expired {
  background: #dfe5ea;
  color: #8994a2;
  box-shadow: none;
  cursor: not-allowed;
}

.expiry {
  margin: 9px 0 0;
  color: #a0aaba;
  font-size: 11px;
  line-height: 1.4;
}

.expiry strong {
  color: #758295;
  font-variant-numeric: tabular-nums;
}

.back {
  display: inline-block;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8591a2;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  cursor: pointer;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(.96); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes resultFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes resultCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes successPop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

/* Tablet */
@media (max-width: 900px) {
  .header nav {
    gap: 17px;
  }

  .hero h1 {
    font-size: 57px;
  }

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

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

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

  .featured {
    grid-column: span 2;
  }

  .guide {
    gap: 30px;
    padding: 42px;
  }
}

/* Mobile (Compact typography & PC-matched signing header layout) */
@media (max-width: 650px) {
  html {
    scroll-padding-top: 22px;
  }

  #signing {
    scroll-margin-top: 18px;
  }

  .wrap,
  .header {
    width: calc(100% - 36px);
  }

  .header {
    height: 66px;
  }

  .header nav,
  .online,
  .dark-btn {
    display: none;
  }

  .head-right button {
    display: block;
  }

  .header nav.mobile-open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    gap: 4px;
    padding: 11px;
    background: #fffffff2;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 15px 35px #172b4d12;
  }

  .header nav.mobile-open a {
    display: block;
    padding: 9px 12px;
    font-size: 12px;
  }

  /* Hero on mobile */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
    padding-bottom: 34px;
    gap: 0;
  }

  .hero-art {
    order: 0;
    height: 360px;
    min-height: 360px;
    margin: 0 0 10px;
    flex: none;
  }

  .hero-art > img {
    width: 100%;
    max-width: 375px;
    max-height: none;
    object-fit: contain;
  }

  .halo {
    width: min(290px, 75vw);
    height: min(290px, 75vw);
  }

  .orbit {
    width: min(275px, 70vw);
    height: min(170px, 44vw);
  }

  .chip-a {
    top: 10px;
    right: 0;
    padding: 9px 11px;
  }

  .chip-b {
    bottom: 12px;
    left: 0;
    padding: 9px 11px;
  }

  .stats-desktop {
    display: none;
  }

  .stats-mobile {
    display: flex;
    order: 1;
    margin: 6px auto 28px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: 100%;
  }

  .stats-mobile div {
    flex: 1 1 0;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }

  .stats-mobile b {
    font-size: 17px;
    letter-spacing: -.7px;
  }

  .stats-mobile small {
    font-size: 8px;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
  }

  .stats-mobile > i {
    width: 1px;
    height: 24px;
    background: #e1e4e9;
    flex: none;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .hero-copy .eyebrow {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
    font-size: 8.5px;
    letter-spacing: 1.3px;
    gap: 7px;
  }

  .hero h1 {
    text-align: center;
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.05;
    letter-spacing: -2.2px;
    margin: 14px 0 12px;
  }

  /* Compact, clean mobile paragraph font-size as requested */
  .hero-copy > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    font-size: 11.5px;
    line-height: 1.75;
  }

  .hero-actions {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }

  .hero-actions .blue-btn {
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    padding: 12px 16px;
    min-height: 42px;
  }

  .hero-actions .blue-btn b {
    font-size: 13px;
    line-height: 1;
  }

  .hero-actions > a:not(.blue-btn) {
    font-size: 11px;
  }

  .trust {
    height: 54px;
    gap: 10px;
    font-size: 6.5px;
  }

  .trust b {
    font-size: 11.5px;
  }

  .trust small {
    display: none;
  }

  /* Signing card: PC-like side-by-side header on mobile with compact font-sizes */
  .signing-section {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .signing-card {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .signing-heading {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 15px;
  }

  .signing-title-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  .signing-heading label {
    margin: 0 0 5px;
    font-size: 7.5px;
    letter-spacing: 1.25px;
    white-space: nowrap;
  }

  .signing-heading h2 {
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.6px;
    white-space: nowrap;
  }

  .secure-pill {
    flex: 0 0 auto;
    font-size: 8.5px;
    padding: 6px 10px;
    gap: 6px;
  }

  .secure-pill i {
    width: 5px;
    height: 5px;
  }

  .field-title {
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .notice {
    font-size: 11px;
    line-height: 1.65;
    margin: 0 0 12px;
  }

  /* 16px computed input size prevents iOS Safari focus auto-zoom while placeholder stays compact */
  .udid {
    font-size: 16px;
    height: 44px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
  }

  .udid::placeholder {
    font-size: 12px;
  }

  .input-wrap.udid-success-wrap::before {
    width: 24px;
    height: 24px;
    left: 10px;
    font-size: 13px;
  }

  .udid.udid-success {
    padding-left: 42px;
  }

  .primary {
    min-height: 44px;
    margin-top: 9px;
    font-size: 12.5px;
    border-radius: 12px;
  }

  .primary span {
    margin-left: 7px;
    font-size: 14px;
  }

  .helper {
    margin-top: 8px;
    font-size: 9.5px;
    line-height: 1.5;
  }

  .error-box {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Other sections on mobile */
  .section {
    padding: 62px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 22px;
  }

  .section-head label,
  .guide label {
    font-size: 8px;
    margin-bottom: 9px;
  }

  .section-head h2 {
    font-size: 26px;
    letter-spacing: -1.3px;
  }

  .section-head > p {
    margin-top: 9px;
    font-size: 10.5px;
    line-height: 1.65;
  }

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

  .category {
    padding: 11px 9px;
    gap: 8px;
  }

  .category > i {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .category span b {
    font-size: 10px;
  }

  .category span small {
    font-size: 7.5px;
    margin-top: 3px;
  }

  .category strong {
    display: none;
  }

  .apps {
    padding: 58px 0;
  }

  .tools {
    margin-top: 14px;
    justify-content: space-between;
    gap: 10px;
  }

  .tools input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    font-size: 16px;
  }

  .tools input::placeholder {
    font-size: 11px;
  }

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

  .app-card {
    padding: 13px 11px;
    min-height: 190px;
  }

  .app-card h3 {
    font-size: 12px;
    margin: 14px 0 6px;
  }

  .app-card p {
    font-size: 8.5px;
    line-height: 1.6;
  }

  .app-card footer small {
    font-size: 7.5px;
  }

  .install {
    font-size: 8px;
    padding: 6px 8px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .featured {
    grid-column: auto;
  }

  .feature {
    min-height: 195px;
    padding: 20px;
  }

  .feature h3 {
    font-size: 17px;
  }

  .feature p {
    font-size: 9.5px;
  }

  .guide {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
    gap: 22px;
    margin-bottom: 54px;
    border-radius: 22px;
  }

  .guide h2 {
    font-size: 28px;
    letter-spacing: -1.4px;
    margin: 12px 0;
  }

  .guide p {
    font-size: 10.5px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .guide .blue-btn {
    font-size: 10.5px;
    padding: 12px 16px;
  }

  .site-footer {
    height: auto;
    min-height: 90px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .site-footer > span {
    order: 3;
    width: 100%;
  }

  .vsign-alert-overlay {
    padding: 16px;
  }

  .vsign-alert {
    padding: 22px 17px 17px;
    border-radius: 20px;
  }

  .vsign-alert h2 {
    font-size: 17px;
  }

  .vsign-alert p {
    font-size: 12.5px;
  }

  .vsign-alert-button {
    min-height: 49px;
    font-size: 12.5px;
  }

  .sign-modal {
    padding: 22px 14px 16px;
    border-radius: 22px;
  }

  .sign-modal .steps {
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .hero-art {
    height: 325px;
    min-height: 325px;
  }

  .stats-mobile {
    gap: 6px;
    margin-bottom: 24px;
  }

  .stats-mobile b {
    font-size: 16px;
  }

  .stats-mobile small {
    font-size: 7.5px;
  }

  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -1.9px;
  }

  .hero-copy > p {
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .blue-btn {
    font-size: 10.5px;
    padding: 11px 14px;
  }

  .hero-actions > a:not(.blue-btn) {
    font-size: 10.5px;
  }

  /* Keep signing header strictly side-by-side even on <= 390px screens */
  .signing-card {
    padding: 18px 14px 16px;
  }

  .signing-heading {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .signing-heading label {
    font-size: 7px;
    letter-spacing: 1.1px;
  }

  .signing-heading h2 {
    font-size: 17px;
  }

  .secure-pill {
    font-size: 8px;
    padding: 5px 8px;
    gap: 5px;
  }

  .notice {
    font-size: 10.5px;
  }

  .field-title {
    font-size: 12px;
  }

  .helper {
    font-size: 9px;
  }
}
