:root {
  --bg: #eef4f3;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #697586;
  --line: #dce4e2;
  --teal: #0f766e;
  --teal-dark: #0a5954;
  --gold: #c68a1d;
  --red: #b42318;
  --green: #067647;
  --green-bg: #e9f9ef;
  --red-bg: #fff0ed;
  --gold-bg: #fff7e8;
  --shadow: 0 22px 70px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbfb, var(--bg));
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  background: #0d2f34;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 47, 52, 0.96) 0%, rgba(13, 47, 52, 0.78) 34%, rgba(13, 47, 52, 0.08) 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 5vw, 56px);
  align-self: center;
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--teal-dark);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
}

.hero p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.workflow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.form-card,
.process-card,
.screenshot-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 228, 226, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(23, 33, 43, 0.08);
}

.form-card {
  padding: clamp(18px, 3vw, 30px);
}

.process-card {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.form-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.form-heading p {
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6f4f2;
  color: var(--teal-dark);
  font-weight: 900;
}

.form-heading h2 {
  margin: 0;
  font-size: 22px;
}

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

.step-block {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.field-label {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.input-affix {
  display: flex;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.input-affix:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.input-affix input {
  border: 0;
  box-shadow: none;
}

.input-affix span {
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.segmented {
  width: 100%;
  min-height: 48px;
  padding: 5px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  background: #f1f5f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  white-space: nowrap;
}

.choice.is-selected {
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(23, 33, 43, 0.12);
}

.notice,
.form-error {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.65;
}

.notice {
  margin-bottom: 16px;
  background: #edf7f6;
  color: var(--teal-dark);
}

.notice.warning {
  margin-bottom: 0;
  background: var(--gold-bg);
  color: #8a5b05;
}

.form-error {
  margin-top: 16px;
  background: var(--red-bg);
  color: var(--red);
}

.form-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.dark-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn {
  background: var(--teal);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.secondary-btn {
  background: #ffffff;
  border-color: var(--line);
  color: #344054;
}

.dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #17212b;
  color: #ffffff;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list div {
  padding: 14px;
  border-radius: 8px;
  background: #f8fbfb;
  border: 1px solid var(--line);
}

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

.process-list strong {
  margin-bottom: 6px;
}

.process-list span {
  color: var(--muted);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.result-page {
  min-height: 100vh;
  width: min(860px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  place-items: start center;
}

.screenshot-card {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(202, 218, 248, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(27, 91, 195, 0.14);
}

.result-hero {
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #155dff, #0f7bff 48%, #0fb7d4);
  position: relative;
  overflow: hidden;
}

.result-hero.unsupported,
.result-hero.unavailable {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #d33b2f, #f06a42);
}

.result-hero.manualPayment {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #c77a16, #f0ad2f);
}

.result-hero::after {
  content: "";
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  right: -60px;
  bottom: -84px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.result-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.result-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}

.result-brand span::before {
  content: "";
  width: 16px;
  height: 14px;
  background: #ffffff;
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 14% 100%, 14% 42%, 0 42%);
}

.result-topline em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.result-main {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.result-main > div {
  min-width: 0;
}

.status-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  position: relative;
}

.status-mark::before {
  content: "";
  width: 30px;
  height: 16px;
  border-left: 6px solid #ffffff;
  border-bottom: 6px solid #ffffff;
  position: absolute;
  left: 20px;
  top: 23px;
  transform: rotate(-45deg);
}

.unsupported .status-mark::before,
.unavailable .status-mark::before {
  width: 34px;
  height: 6px;
  border: 0;
  background: #ffffff;
  left: 19px;
  top: 33px;
  transform: rotate(0);
}

.result-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.result-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.result-reason {
  margin: 0;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  font-size: 16px;
}

.result-body {
  padding: 24px 28px 28px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.result-section + .result-section {
  margin-top: 22px;
}

.section-title {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.section-title h2 {
  margin: 0;
  color: #0b1830;
  font-size: 18px;
}

.section-title span {
  color: #7181a0;
  font-size: 13px;
}

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

.info-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dbe5f6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(32, 68, 120, 0.04);
}

.info-item span,
.info-item strong {
  display: block;
}

.info-item span {
  margin-bottom: 6px;
  color: #7181a0;
  font-size: 13px;
}

.info-item strong {
  color: #13233b;
  font-size: 17px;
  line-height: 1.35;
  word-break: break-word;
}

.phone-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
}

.phone-info span {
  grid-column: 1 / -1;
}

.mini-copy {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(21, 93, 255, 0.18);
  background: #eef6ff;
  color: #155dff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-copy:hover {
  background: #e3efff;
}

.primary-info .info-item {
  background: #f8fbff;
}

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

.compact-info .info-item strong {
  font-size: 15px;
}

.admin-item {
  display: grid;
  gap: 12px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-item a {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.admin-item:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(23, 33, 43, 0.08);
}

.admin-copy {
  width: max-content;
}

.screenshot-tip {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #eef6ff;
  border: 1px dashed #9cc2ff;
  color: #37557c;
  line-height: 1.7;
  display: grid;
  gap: 4px;
}

.screenshot-tip strong {
  color: #155dff;
}

.result-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-actions .dark-btn,
.result-actions .secondary-btn,
.copy-btn {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 20px;
}

.result-actions .dark-btn {
  background: linear-gradient(135deg, #155dff, #0f7bff);
  box-shadow: 0 12px 24px rgba(21, 93, 255, 0.22);
}

.result-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.service-contact {
  margin-top: 12px;
  color: #37557c;
  font-size: 14px;
}

.service-contact strong {
  color: #13233b;
}

.copy-btn {
  border: 1px solid rgba(21, 93, 255, 0.18);
  background: #eef6ff;
  color: #155dff;
  cursor: pointer;
  font-weight: 900;
}

.copy-btn:hover {
  background: #e3efff;
}

.admin-settings-block {
  border-bottom: 1px solid #dbe5f6;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.settings-form .step-block {
  display: grid;
  gap: 8px;
}

.settings-form .primary-btn {
  min-height: 46px;
  border-radius: 12px;
}

.settings-saved {
  color: #155dff;
  font-weight: 900;
  align-self: center;
}

.admin-page {
  padding: 28px 16px;
}

.admin-login-card {
  width: min(460px, 100%);
  margin: 7vh auto 0;
}

.admin-login-card .settings-form {
  grid-template-columns: 1fr;
}

.admin-logout {
  min-height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-dashboard-block,
.admin-toolbar-block {
  border-bottom: 1px solid #dbe5f6;
}

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

.dashboard-grid .loading-state {
  grid-column: 1 / -1;
}

.dashboard-card {
  min-height: 108px;
  padding: 16px;
  border: 1px solid #dbe5f6;
  border-radius: 14px;
  display: grid;
  align-content: space-between;
  background: #f8fbff;
}

.dashboard-card span {
  color: #657692;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-card strong {
  color: #13233b;
  font-size: 30px;
  line-height: 1;
}

.dashboard-card.supported {
  background: var(--green-bg);
  border-color: rgba(6, 118, 71, 0.18);
}

.dashboard-card.unsupported {
  background: var(--red-bg);
  border-color: rgba(180, 35, 24, 0.16);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 120px 132px;
  gap: 12px;
  align-items: center;
}

.admin-toolbar .primary-btn,
.admin-toolbar .secondary-btn {
  min-height: 46px;
  border-radius: 12px;
}

.admin-record-list {
  display: grid;
  gap: 12px;
}

.admin-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe5f6;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-record-main {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 5px;
}

.admin-record-main strong,
.admin-record-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-badge {
  width: max-content;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #155dff;
  font-size: 12px;
  font-weight: 900;
}

.result-badge.supported {
  background: var(--green-bg);
  color: var(--green);
}

.result-badge.unsupported {
  background: var(--red-bg);
  color: var(--red);
}

.result-badge.unavailable {
  background: #eef2f6;
  color: #526071;
}

.result-badge.manualPayment {
  background: var(--gold-bg);
  color: #8a5b05;
}

.mini-copy.danger {
  border-color: rgba(180, 35, 24, 0.2);
  color: var(--red);
  background: #fff7f5;
}

.loading-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #dce4e2;
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}

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

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

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(13, 47, 52, 0.96), rgba(13, 47, 52, 0.68) 58%, rgba(13, 47, 52, 0.14));
  }

  .hero-copy {
    grid-row: 1;
  }

  .hero-image {
    grid-row: 1;
    grid-column: 1;
    min-height: 390px;
  }

  .process-card {
    position: static;
  }

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

  .admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-record {
    grid-template-columns: 1fr;
  }

  .admin-record-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 580px);
    padding: 10px 0 26px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-image {
    min-height: 430px;
  }

  .admin-page {
    padding: 10px;
  }

  .admin-toolbar,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dashboard-card {
    min-height: 92px;
    padding: 13px;
  }

  .dashboard-card strong {
    font-size: 24px;
  }

  .admin-record-main strong,
  .admin-record-main span {
    white-space: normal;
  }

  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .result-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn,
  .dark-btn {
    width: 100%;
  }

  .result-page {
    width: min(100% - 18px, 520px);
    padding: 10px 0 18px;
  }

  .screenshot-card {
    border-radius: 18px;
  }

  .result-hero {
    padding: 20px;
  }

  .result-topline {
    align-items: flex-start;
  }

  .result-topline em {
    max-width: 120px;
    text-align: right;
    line-height: 1.4;
  }

  .result-main {
    margin-top: 22px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
  }

  .status-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .status-mark::before {
    width: 22px;
    height: 12px;
    border-left-width: 5px;
    border-bottom-width: 5px;
    left: 16px;
    top: 17px;
  }

  .unsupported .status-mark::before,
  .unavailable .status-mark::before {
    width: 26px;
    height: 5px;
    left: 14px;
    top: 25px;
  }

  .result-hero h1 {
    font-size: 25px;
    line-height: 1.22;
  }

  .result-reason {
    font-size: 14px;
    line-height: 1.65;
  }

  .result-body {
    padding: 18px;
  }

  .section-title {
    display: block;
  }

  .section-title h2 {
    font-size: 17px;
  }

  .section-title span {
    display: block;
    margin-top: 4px;
  }

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

  .info-item {
    padding: 10px 11px;
    border-radius: 12px;
  }

  .info-item span {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .info-item strong {
    font-size: 14px;
  }

  .phone-info {
    grid-template-columns: 1fr;
  }

  .wide-info {
    grid-column: 1 / -1;
  }

  .mini-copy {
    width: max-content;
    margin-top: 8px;
  }

  .screenshot-tip {
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }
}

/* Reference-style home page */
.reference-home {
  width: min(1600px, 100vw);
  min-height: 100vh;
  padding: 0 0 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(180deg, #eef6ff 0%, #f8fbff 64%, #ffffff 100%);
  border-radius: 0 0 32px 32px;
}

.reference-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background:
    linear-gradient(90deg, rgba(43, 121, 255, 0.13), rgba(43, 121, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.6));
  border-top: 1px solid rgba(91, 142, 255, 0.18);
  border-bottom: 1px solid rgba(91, 142, 255, 0.1);
  pointer-events: none;
}

.topbar {
  height: 72px;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 6;
  background: transparent;
}

.reference-home .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #081426;
  font-size: 22px;
  font-weight: 900;
}

.reference-home .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b8cff, #165dff);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.28);
  position: relative;
}

.reference-home .brand-mark::before {
  content: "";
  width: 16px;
  height: 14px;
  background: #ffffff;
  clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 14% 100%, 14% 42%, 0 42%);
}

.security-pill {
  min-height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(86, 132, 230, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #3a5d96;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(27, 91, 195, 0.08);
  backdrop-filter: blur(16px);
}

.security-pill span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f0ff;
  color: #165dff;
  font-size: 13px;
  position: relative;
}

.security-pill span::before {
  content: "";
  width: 12px;
  height: 14px;
  background: #165dff;
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
}

.hero-banner {
  width: min(1320px, calc(100% - 56px));
  min-height: 330px;
  margin: -72px auto 0;
  padding-top: 72px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(460px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  overflow: hidden;
  background-image: url("./assets/hero-seamless-bg.png");
  background-size: cover;
  background-position: center;
  border-radius: 0 0 10px 10px;
}

.reference-home .hero-copy {
  padding: 24px 0 40px 16px;
  color: #081426;
  position: relative;
  z-index: 3;
}

.reference-home .hero-copy::after {
  content: none;
}

.reference-home .hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 4.8vw, 64px);
  line-height: 1.12;
  font-weight: 950;
  color: #071328;
  position: relative;
}

.reference-home .hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #395077;
  font-size: 21px;
  line-height: 1.6;
}

.reference-home .hero-image {
  display: none;
}

.home-content {
  width: min(1320px, calc(100% - 56px));
  margin: 26px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: stretch;
}

.glass-card {
  border: 1px solid rgba(202, 218, 248, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(27, 91, 195, 0.14);
  backdrop-filter: blur(18px);
}

.reference-home .form-card {
  padding: 30px 34px 28px;
  min-height: 520px;
}

.reference-home .form-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reference-home .form-heading p {
  width: 6px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4b95ff, #165dff);
}

.reference-home .form-heading h2 {
  margin: 0;
  color: #0b1830;
  font-size: 22px;
  font-weight: 950;
}

.reference-home .form-heading span {
  color: #7082a7;
  font-size: 14px;
}

.reference-home .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 18px;
}

.reference-home .step-block {
  display: grid;
  grid-template-columns: minmax(116px, 140px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.reference-home .field-label {
  color: #13233b;
  font-size: 14px;
  font-weight: 900;
  white-space: normal;
  line-height: 1.35;
  min-width: 0;
}

.reference-home .field-label::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: 1px;
  border-radius: 999px;
  background: #3b82ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 255, 0.1);
}

.reference-home input,
.reference-home select {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #dbe5f6;
  color: #15243c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reference-home input::placeholder {
  color: #a0adc7;
}

.reference-home input:focus,
.reference-home select:focus {
  border-color: #2b83ff;
  box-shadow: 0 0 0 4px rgba(43, 131, 255, 0.14);
}

.reference-home .input-affix {
  display: flex;
  min-height: 44px;
  border-color: #dbe5f6;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.reference-home .input-affix input {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reference-home .input-affix span {
  flex: 0 0 58px;
  color: #8190ad;
  background: #f7faff;
  border-left: 1px solid #dbe5f6;
}

.reference-home .segmented {
  min-height: 44px;
  padding: 4px;
  border: 1px solid #dbe5f6;
  gap: 4px;
  background: #f5f8fd;
  border-radius: 12px;
  overflow: hidden;
  grid-auto-columns: minmax(0, 1fr);
}

.reference-home .choice {
  min-height: 34px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  color: #4b5c78;
  border: 1px solid transparent;
  font-weight: 800;
  box-shadow: none;
  padding: 0 8px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-home .choice.is-selected {
  color: #165dff;
  background: #ffffff;
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
}

.reference-home .more-fields {
  grid-column: 1 / -1;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.reference-home .more-fields summary {
  min-height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  border-radius: 10px;
  background: #f3f7fd;
  color: #14243d;
  cursor: pointer;
  font-weight: 900;
}

.reference-home .more-fields summary::-webkit-details-marker {
  display: none;
}

.reference-home .more-fields summary span {
  color: #7181a0;
  font-weight: 600;
}

.reference-home .more-fields summary::after {
  content: "⌄";
  color: #486086;
  font-size: 18px;
}

.reference-home .more-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
}

.reference-home .notice {
  margin: 0 0 16px;
  border-radius: 10px;
  background: #edf5ff;
  color: #2458a8;
}

.reference-home .form-error {
  margin-top: 16px;
}

.reference-home .form-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.74fr);
  gap: 18px;
}

.reference-home .primary-btn,
.reference-home .secondary-btn {
  min-height: 54px;
  border-radius: 12px;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-home .primary-btn {
  background: linear-gradient(135deg, #2f91ff, #165dff);
  box-shadow: 0 14px 28px rgba(22, 93, 255, 0.28);
}

.reference-home .secondary-btn {
  background: rgba(255, 255, 255, 0.96);
  border-color: #dbe5f6;
  color: #17243c;
  box-shadow: 0 10px 22px rgba(32, 68, 120, 0.06);
}

.privacy-note {
  margin: 22px 0 0;
  text-align: center;
  color: #6d7da0;
  font-size: 14px;
}

.side-panel {
  padding: 24px 22px;
  align-self: stretch;
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.quick-steps h2,
.why-us h2 {
  margin: 0 0 20px;
  text-align: center;
  color: #0b1830;
  font-size: 22px;
}

.step-visual {
  width: min(100%, 330px);
  height: 118px;
  margin: -6px auto 12px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  mix-blend-mode: multiply;
}

.step-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce6f8;
}

.step-icons div {
  min-width: 0;
  text-align: center;
  position: relative;
}

.step-icons b {
  width: 27px;
  height: 27px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #165dff;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(22, 93, 255, 0.25);
  position: relative;
  z-index: 1;
}

.step-icons i {
  display: none;
}

.step-icons div:nth-child(1) i::before,
.step-icons div:nth-child(2) i::before,
.step-icons div:nth-child(3) i::before {
  content: "";
  position: absolute;
  inset: 15px;
  background: transparent;
}

.step-icons div:nth-child(1) i::before {
  border: 2px solid #287cff;
  border-radius: 5px;
  box-shadow: inset 0 9px 0 rgba(40, 124, 255, 0.14);
}

.step-icons div:nth-child(1) i::after {
  content: "";
  width: 15px;
  height: 2px;
  background: #287cff;
  position: absolute;
  left: 22px;
  top: 25px;
  box-shadow: 0 7px 0 rgba(40, 124, 255, 0.75);
}

.step-icons div:nth-child(2) i::before {
  width: 9px;
  height: 9px;
  inset: auto;
  left: 16px;
  top: 15px;
  border: 2px solid #287cff;
  border-radius: 50%;
  box-shadow:
    17px 0 0 -2px #ffffff,
    17px 0 0 0 #287cff,
    8px 18px 0 -2px #ffffff,
    8px 18px 0 0 #287cff;
}

.step-icons div:nth-child(2) i::after {
  content: "";
  width: 26px;
  height: 19px;
  background: #287cff;
  clip-path: polygon(0 0, 38% 0, 38% 12%, 64% 12%, 64% 0, 100% 0, 100% 12%, 74% 12%, 74% 42%, 56% 42%, 56% 100%, 44% 100%, 44% 42%, 26% 42%, 26% 12%, 0 12%);
  position: absolute;
  left: 17px;
  top: 23px;
}

.step-icons div:nth-child(3) i::before {
  width: 25px;
  height: 29px;
  inset: auto;
  left: 17px;
  top: 14px;
  border: 2px solid #287cff;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 7px 0 rgba(40, 124, 255, 0.12);
}

.step-icons div:nth-child(3) i::after {
  content: "";
  width: 14px;
  height: 2px;
  border: 0;
  background: #287cff;
  box-shadow:
    0 6px 0 rgba(40, 124, 255, 0.72),
    0 12px 0 rgba(40, 124, 255, 0.45);
  position: absolute;
  left: 23px;
  top: 24px;
  transform: none;
}

.step-icons strong,
.step-icons span,
.why-grid strong,
.why-grid span {
  display: block;
}

.step-icons strong {
  margin-bottom: 6px;
  color: #13233b;
  font-size: 14px;
}

.step-icons span {
  color: #7181a0;
  font-size: 12px;
  line-height: 1.4;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

.why-grid div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-width: 0;
}

.why-grid i {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #165dff;
  background: #edf5ff;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.12);
  font-style: normal;
  font-size: 20px;
  position: relative;
}

.why-grid i::before {
  content: "";
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #4b95ff, #165dff);
  border-radius: 50%;
}

.why-grid strong {
  color: #13233b;
  font-size: 14px;
  min-width: 0;
}

.why-grid span {
  color: #7181a0;
  font-size: 12px;
  min-width: 0;
}

@media (max-width: 1180px) {
  .hero-banner,
  .home-content,
  .topbar {
    width: min(100% - 32px, 920px);
  }

  .hero-banner {
    grid-template-columns: 1fr;
    min-height: 520px;
    background-position: center top;
  }

  .reference-home .hero-copy {
    padding: 34px 0 0;
  }

  .reference-home .hero-image {
    display: none;
  }

  .home-content {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .reference-home {
    border-radius: 0;
  }

  .topbar {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
    gap: 12px;
  }

  .reference-home .brand {
    font-size: 17px;
    line-height: 1.25;
  }

  .security-pill {
    display: none;
  }

  .hero-banner {
    min-height: auto;
    display: block;
    padding-bottom: 12px;
    padding-top: 70px;
    margin-top: -70px;
    background-size: cover;
    background-position: center top;
  }

  .reference-home .hero-copy {
    padding: 18px 0 6px;
  }

  .reference-home .hero-copy h1 {
    max-width: none;
    font-size: clamp(25px, 7.3vw, 34px);
    line-height: 1.16;
    margin-bottom: 12px;
    white-space: nowrap;
  }

  .reference-home .hero-copy p {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.55;
  }

  .reference-home .hero-image {
    display: none;
  }

  .home-content {
    width: min(100% - 20px, 520px);
    margin-top: 14px;
    gap: 14px;
  }

  .reference-home .form-card,
  .side-panel {
    min-height: 0;
  }

  .reference-home .form-card,
  .side-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .reference-home .form-grid,
  .reference-home .more-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .reference-home .step-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reference-home .form-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .reference-home .primary-btn,
  .reference-home .secondary-btn {
    min-height: 50px;
    font-size: 16px;
  }

  .reference-home .form-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 18px;
  }

  .reference-home .form-heading span {
    width: 100%;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.45;
  }

  .reference-home input,
  .reference-home select,
  .reference-home .input-affix {
    min-height: 46px;
  }

  .reference-home .segmented {
    min-height: 46px;
  }

  .reference-home .choice {
    min-height: 36px;
    height: 36px;
  }

  .reference-home .more-fields summary {
    padding: 0 14px;
    font-size: 14px;
  }

  .reference-home .more-fields summary span {
    display: none;
  }

  .side-panel {
    gap: 16px;
  }

  .quick-steps h2,
  .why-us h2 {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .step-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 16px;
  }

  .step-icons i {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .step-icons b {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-icons strong {
    font-size: 13px;
  }

  .step-icons span {
    display: none;
  }

  .why-grid {
    gap: 10px;
  }

  .why-grid div {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 48px;
    padding: 8px 0;
  }

  .why-grid i {
    width: 34px;
    height: 34px;
  }

  .privacy-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .topbar,
  .hero-banner {
    width: calc(100% - 20px);
  }

  .reference-home .brand {
    font-size: 15px;
  }

  .reference-home .brand-mark {
    width: 32px;
    height: 32px;
  }

  .reference-home .hero-copy h1 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .reference-home .hero-image {
    display: none;
  }

  .reference-home .form-card,
  .side-panel {
    padding: 16px;
  }

  .reference-home .field-label {
    font-size: 13px;
  }

  .step-icons i {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 340px) {
  .reference-home .hero-copy h1 {
    white-space: normal;
  }
}
