:root {
  --ink: #222222;
  --muted: #666666;
  --line: #d8c096;
  --line-soft: #eadcc4;
  --wash: #f6f6f4;
  --gold: #c6a66f;
  --danger: #a43a2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.desktop-page main {
  overflow: hidden;
}

.desktop-hero {
  min-height: 780px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f4f4f3;
}

.desktop-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 42vw);
  margin-left: 14vw;
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-kicker {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.desktop-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 4vw, 76px);
  font-weight: 400;
}

.desktop-copy h2 {
  margin: 0 0 34px;
  font-size: clamp(32px, 3vw, 56px);
  font-weight: 400;
}

.desktop-copy > p:not(.brand-kicker) {
  margin: 0 0 48px;
  font-size: 26px;
}

.hero-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.qr-shell {
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.qr-shell.large {
  width: 340px;
  height: 340px;
  margin: 28px auto 0;
}

.intro-section {
  padding: 86px 24px 112px;
  text-align: center;
}

.intro-section h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.2vw, 58px);
  font-weight: 400;
}

.intro-section p {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 38px);
}

.story-section {
  width: min(1480px, calc(100% - 120px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 96px;
  align-items: center;
}

.story-copy {
  text-align: center;
  font-size: clamp(22px, 1.65vw, 34px);
  line-height: 1.65;
}

.story-copy p {
  margin: 0 0 18px;
}

.story-section img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.steps-section {
  width: min(1120px, calc(100% - 80px));
  margin: 118px auto 0;
  padding-bottom: 72px;
}

.steps-section h2 {
  margin: 0 0 56px;
  font-size: clamp(32px, 3vw, 54px);
  font-weight: 400;
  text-align: center;
}

.timeline {
  width: min(760px, 100%);
  margin: 0 auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 56px;
  align-items: center;
  min-height: 112px;
}

.step::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step:first-child::before {
  top: 50%;
}

.step:last-child::before {
  bottom: 50%;
}

.step span {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #ecdcc1, #caaa78);
  font-size: 44px;
  font-weight: 300;
}

.step p {
  margin: 0;
  font-size: 24px;
  line-height: 1.55;
}

.scan-section {
  padding: 76px 24px 120px;
  text-align: center;
}

.scan-section h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 72px);
  font-weight: 400;
}

.scan-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.mobile-page {
  background: #ffffff;
}

.mobile-shell {
  min-height: 100vh;
}

.mobile-nav {
  height: 56px;
  display: grid;
  grid-template-columns: 40px 40px 1fr 40px 40px;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-logo {
  justify-self: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.mobile-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center right;
}

.mobile-hero {
  padding: 48px 24px 40px;
  text-align: center;
}

.mobile-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
}

.mobile-hero h2 {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  line-height: 1.35;
  font-weight: 400;
}

.mobile-hero p {
  margin: 0 0 36px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.45;
}

.outline-cta {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 2px solid var(--gold);
  background: #ffffff;
  color: var(--ink);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  line-height: 1.45;
  cursor: pointer;
}

.mobile-story {
  border-top: 2px solid var(--line);
  padding: 56px 24px 0;
  text-align: center;
}

.mobile-story p {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.65;
}

.mobile-story img {
  width: calc(100% + 48px);
  max-width: none;
  margin: 40px -24px 0;
  height: 280px;
  object-fit: cover;
}

.mobile-steps {
  padding: 56px 24px 60px;
}

.mobile-steps h2 {
  margin: 0 0 36px;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
  font-weight: 500;
}

.mobile-steps .step {
  grid-template-columns: 54px 1fr;
  column-gap: 20px;
  min-height: 80px;
}

.mobile-steps .step::before {
  left: 27px;
}

.mobile-steps .step span {
  width: 54px;
  height: 54px;
  font-size: 28px;
}

.mobile-steps .step p {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  line-height: 1.5;
}

.bottom-cta {
  padding: 0 24px 48px;
}

.capture-app {
  display: none;
  min-height: 100vh;
  background: #fbfbfa;
}

.capture-app.active {
  display: block;
}

.capture-header {
  padding: 24px 18px 18px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid #ece8df;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 6;
}

.capture-header h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.capture-main {
  padding: 22px 18px 40px;
}

.angle-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.angle-tab {
  min-height: 42px;
  border: 1px solid #ddd2be;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

.angle-tab.active {
  border-color: var(--gold);
  color: var(--ink);
  background: #f7f0e4;
}

.camera-panel {
  overflow: hidden;
  background: #111111;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  position: relative;
}

/* 视频填满面板，前置摄像头镜像翻转 */
.camera-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);           /* 前置摄像头镜像 */
  -webkit-transform: scaleX(-1);
  background: #111111;
}

/* 预览图片同样填满，不镜像（拍照时已从视频流取原始帧） */
.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;                    /* 默认隐藏，JS 控制显示 */
}
.preview-image.visible {
  display: block;
}

.camera-placeholder {
  padding: 24px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  z-index: 1;
}

.face-guide {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% / 42%;
  pointer-events: none;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.primary-btn,
.secondary-btn {
  min-height: 52px;
  border: 1px solid var(--gold);
  cursor: pointer;
}

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

.secondary-btn {
  background: #ffffff;
  color: var(--ink);
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.thumb {
  min-height: 96px;
  border: 1px solid #ded6c8;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

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

.thumb span {
  color: var(--muted);
  font-size: 13px;
}

.submit-row {
  margin-top: 22px;
}

.submit-row .primary-btn {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
}

.submit-row .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-box {
  display: none;
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5ddcd;
  line-height: 1.6;
  color: var(--muted);
}

.status-box.active {
  display: block;
}

.report-view {
  display: none;
  min-height: 100vh;
  background: #ffffff;
}

.report-view.active {
  display: block;
}

.report-hero {
  padding: 46px 24px 32px;
  text-align: center;
  border-bottom: 1px solid #eee7dc;
}

.score-number {
  margin: 22px auto 12px;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-size: 46px;
}

.report-grid {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.metric-card {
  padding: 18px;
  border: 1px solid #eadfcb;
}

.metric-card strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bar {
  height: 7px;
  background: #eeeae3;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--gold);
}

.report-text {
  padding: 8px 24px 48px;
  line-height: 1.8;
  font-size: 16px;
}

.report-text h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.report-text p {
  margin: 0 0 14px;
}

.error-text {
  color: var(--danger);
}

@media (max-width: 900px) {
  .desktop-hero {
    min-height: 660px;
  }

  .desktop-copy {
    width: min(520px, calc(100% - 56px));
    margin: 0 auto;
    padding: 72px 28px;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
  }

  .hero-face {
    height: 100%;
    object-position: center right;
  }

  .story-section {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .steps-section {
    width: calc(100% - 48px);
  }

  .step {
    column-gap: 28px;
  }
}

@media (max-width: 520px) {
  .mobile-nav {
    height: 52px;
    grid-template-columns: 36px 36px 1fr 36px 36px;
    padding: 0 8px;
  }

  .mobile-logo {
    font-size: 19px;
  }

  .mobile-hero-img {
    height: 200px;
  }
}

/* =============================================
   登录/注册弹窗
   ============================================= */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-overlay.active {
  display: flex;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: authFadeIn 0.25s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #8e8e93;
  cursor: pointer;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #f2f2f7;
}

.auth-tab {
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #8e8e93;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.auth-tab.active {
  color: #222222;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold, #c6a66f);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 13px;
  color: #48484a;
  font-weight: 500;
}

.auth-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dcdce0;
  border-radius: 10px;
  font-size: 15px;
  color: #1c1c1e;
  background: #fbfbfa;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: var(--gold, #c6a66f);
}

.auth-field-code {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.auth-send-code {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gold, #c6a66f);
  background: #ffffff;
  color: var(--gold, #c6a66f);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.auth-send-code:active {
  background: var(--gold, #c6a66f);
  color: #ffffff;
}

.auth-send-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-submit {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #1c1c1e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.auth-submit:active {
  opacity: 0.75;
}

.auth-error {
  font-size: 12px;
  color: #a43a2f;
  min-height: 18px;
  margin: 0;
}

.auth-skip {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #8e8e93;
  cursor: pointer;
  user-select: none;
}

.auth-skip:active {
  color: #48484a;
}

/* =============================================
   Camera Tip Bar: 底部状态提示
   ============================================= */
.camera-tip {
  position: absolute;
  bottom: 60px;
  left: 16px;
  right: 16px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.3s, transform 0.3s;
}

/* =============================================
   Quality Indicators Bar: 左侧竖排
   ============================================= */
.indicators-bar {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 13px;
  color: #999;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}

.indicator-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: background 0.35s, box-shadow 0.35s;
}

/* Status colors */
.indicator-item.status-gray   { color: #888; }
.indicator-item.status-red    { color: #ff4d4f; box-shadow: 0 0 8px rgba(255,77,79,0.3); }
.indicator-item.status-yellow { color: #f5a623; box-shadow: 0 0 8px rgba(245,166,35,0.3); }
.indicator-item.status-green  { color: #52c41a; box-shadow: 0 0 8px rgba(82,196,26,0.4); }

/* =============================================
   Countdown Overlay: 居中大字
   ============================================= */
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.countdown-overlay.active {
  display: flex;
}

.countdown-text {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-align: center;
  line-height: 1;
}

.countdown-text.urgent {
  animation: countPulse 0.45s ease-in-out;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.8; }
}

/* =============================================
   Face guide: 匹配面部时的状态
   ============================================= */
.face-guide {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50% / 42%;
  pointer-events: none;
  transition: border-color 0.5s, border-width 0.5s, box-shadow 0.5s;
}

.face-guide.good {
  border-color: rgba(255, 255, 255, 0.82);
  border-width: 2.5px;
}

.face-guide.ready {
  border-color: rgba(82, 196, 26, 0.7);
  border-width: 3px;
  box-shadow: 0 0 24px rgba(82, 196, 26, 0.25);
}

/* =============================================
   Status box: 拍摄完成提示
   ============================================= */
.status-box {
  display: none;
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5ddcd;
  border-radius: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.status-box.active {
  display: block;
}

/* =============================================
   移除不再使用的旧样式覆盖
   ============================================= */
.angle-tabs,
.capture-actions,
.thumbs,
.submit-row {
  display: none;
}

/* =============================================
   Reference-style auto capture page
   ============================================= */
.capture-app {
  background: #222222;
  color: #ffffff;
  min-height: 100vh;
}

.capture-app .capture-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 96px;
  padding: 26px 18px 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  color: #ffffff;
}

.capture-app .capture-header .nav-icon {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.capture-app .capture-header h1 {
  color: #ffffff;
  font-size: 25px;
  font-weight: 400;
}

.capture-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.capture-app .capture-main {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.capture-notice {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 128px 20px 44px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    url("/lanjiao-static/picture/b9af8d33-77f7-46d7-a887-b90cc354f8a4.png") center / cover no-repeat;
}

.capture-notice[hidden],
.capture-scene[hidden] {
  display: none;
}

.notice-card {
  width: min(100%, 382px);
  background: #ffffff;
  color: #111111;
  padding: 32px 28px 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.notice-card p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 500;
  color: #161616;
}

.notice-items {
  display: grid;
  gap: 22px;
}

.notice-items div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
}

.notice-items span {
  color: #222222;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.notice-items strong {
  font-size: 18px;
  line-height: 1.42;
  font-weight: 600;
  color: #101010;
}

.notice-start {
  width: 100%;
  min-height: 60px;
  margin-top: 36px;
  border: 0;
  border-radius: 999px;
  background: #09b596;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
}

.notice-loading {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: #8e8e93;
  animation: loadPulse 1.2s ease-in-out infinite;
}

@keyframes loadPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.capture-scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111111;
}

.quality-row {
  position: fixed;
  left: 14px;
  right: 14px;
  top: 112px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quality-pill {
  min-height: 58px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-weight: 600;
}

.quality-pill span {
  font-size: 17px;
  line-height: 1;
}

.quality-pill strong {
  font-size: 18px;
  line-height: 1;
}

.quality-pill.bad {
  background: #d7424a;
}

.quality-pill.ok {
  background: #09b596;
}

.auto-panel {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  aspect-ratio: auto;
  border: 0;
  background: #111111;
}

.auto-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.auto-panel .face-guide {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  width: min(75vw, 330px);
  height: min(96vw, 430px);
  max-height: 58vh;
  transform: translate(-50%, -50%);
  border: 7px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: none;
}

.progress-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(#09b596 var(--capture-progress), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.center-tip {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  top: 52%;
  transform: translateY(-50%);
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  line-height: 1.34;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.capture-footer-note {
  position: fixed;
  z-index: 18;
  left: 18px;
  right: 18px;
  bottom: 28px;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.capture-app .status-box {
  position: fixed;
  z-index: 30;
  left: 18px;
  right: 18px;
  bottom: 82px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #333333;
}

/* =========================================================
   Ritan AI platform redesign, 2026-07-29
   Theme: deep clinical green with one mint accent
   ========================================================= */
:root {
  --platform-bg: #061713;
  --platform-surface: #0b211b;
  --platform-surface-strong: #102c24;
  --platform-line: rgba(197, 241, 225, 0.16);
  --platform-text: #effbf6;
  --platform-muted: #9bb9ae;
  --platform-accent: #42d7a5;
  --platform-accent-dark: #092a21;
  --platform-danger: #ff8f80;
  --platform-radius: 18px;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.platform-page,
.platform-page * {
  box-sizing: border-box;
}

.platform-page {
  margin: 0;
  color: var(--platform-text);
  background: var(--platform-bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.platform-page a {
  color: inherit;
}

.platform-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--platform-line);
  background: rgba(6, 23, 19, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.platform-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.platform-brand strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.platform-brand span,
.platform-position {
  color: var(--platform-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.platform-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  white-space: nowrap;
}

.platform-nav a {
  color: #c6d9d1;
  font-size: 14px;
  text-decoration: none;
}

.platform-nav a:hover,
.platform-nav a:focus-visible {
  color: var(--platform-accent);
}

.platform-nav .platform-nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(66, 215, 165, 0.55);
  border-radius: 999px;
  color: var(--platform-text);
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  min-height: 720px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 5vw 82px;
}

.platform-kicker {
  margin: 0 0 18px;
  color: var(--platform-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.platform-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--platform-text);
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.platform-hero-subtitle {
  margin: 30px 0 0;
  color: #d9eee6;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
}

.platform-hero-body {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--platform-muted);
  font-size: 16px;
  line-height: 1.85;
}

.platform-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.platform-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.platform-button.primary {
  color: #052019;
  background: var(--platform-accent);
}

.platform-button.secondary {
  border-color: var(--platform-line);
  color: var(--platform-text);
  background: transparent;
}

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

.platform-button:active {
  transform: translateY(1px);
}

.platform-button:focus-visible,
.mobile-page button:focus-visible,
.lead-dialog input:focus-visible,
.lead-dialog textarea:focus-visible,
.consent-card input:focus-visible,
.consent-card textarea:focus-visible {
  outline: 3px solid rgba(66, 215, 165, 0.45);
  outline-offset: 2px;
}

.platform-hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  background: #102a23;
}

.platform-hero-visual > img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.82) contrast(1.03);
}

.platform-hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(6, 23, 19, 0.86));
}

.platform-qr-card {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--platform-radius);
  color: var(--platform-text);
  background: rgba(7, 26, 21, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.platform-qr-card .qr-shell {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
}

.platform-qr-card .qr-shell img {
  width: 116px;
  height: 116px;
}

.qr-skeleton {
  position: absolute;
  inset: 8px;
  background: linear-gradient(90deg, #e8f0ed 25%, #d9e7e2 50%, #e8f0ed 75%);
  background-size: 200% 100%;
  animation: qrShimmer 1.4s infinite;
}

.platform-qr-card strong,
.platform-qr-card span {
  display: block;
}

.platform-qr-card strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.platform-qr-card span {
  color: var(--platform-muted);
  font-size: 13px;
  line-height: 1.6;
}

.platform-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--platform-line);
  border-bottom: 1px solid var(--platform-line);
}

.platform-trust article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 34px 36px;
}

.platform-trust article + article {
  border-left: 1px solid var(--platform-line);
}

.platform-trust article > strong {
  color: var(--platform-accent);
  font-size: 25px;
  line-height: 1;
}

.platform-trust h2,
.platform-trust p {
  margin: 0;
}

.platform-trust h2 {
  font-size: 16px;
}

.platform-trust p {
  margin-top: 8px;
  color: var(--platform-muted);
  font-size: 13px;
  line-height: 1.6;
}

.platform-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px 5vw;
}

.platform-section-heading {
  max-width: 800px;
}

.platform-section-heading > p {
  margin: 0 0 16px;
  color: var(--platform-accent);
  font-size: 13px;
  font-weight: 700;
}

.platform-section-heading h2,
.report-preview-copy h2,
.privacy-panel h2,
.final-steps h2 {
  margin: 0;
  color: var(--platform-text);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.platform-section-heading > span {
  display: block;
  max-width: 680px;
  margin-top: 20px;
  color: var(--platform-muted);
  font-size: 15px;
  line-height: 1.75;
}

.mechanism-track {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 1.08fr;
  gap: 18px;
  margin-top: 60px;
}

.mechanism-track article {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  background: var(--platform-surface);
}

.mechanism-track article:nth-child(2) {
  transform: translateY(26px);
  background: var(--platform-surface-strong);
}

.mechanism-track article > span {
  color: var(--platform-accent);
  font-size: 12px;
  font-weight: 700;
}

.mechanism-track h3 {
  margin: 52px 0 14px;
  font-size: 28px;
}

.mechanism-track p {
  margin: 0;
  color: var(--platform-muted);
  font-size: 15px;
  line-height: 1.8;
}

.report-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(60px, 9vw, 140px);
}

.report-preview-copy > p:not(.platform-kicker) {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--platform-muted);
  line-height: 1.8;
}

.report-preview-copy ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.report-preview-copy li {
  position: relative;
  padding-left: 24px;
  color: #d7e9e2;
}

.report-preview-copy li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--platform-accent);
  border-radius: 50%;
  content: "";
}

.report-preview {
  padding: 28px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  color: #163029;
  background: #f0f8f5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.report-preview-header,
.report-preview-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-preview-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #cadbd5;
  font-size: 13px;
}

.report-preview-header strong {
  color: #3a7563;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.report-preview-score {
  justify-content: flex-start;
  gap: 22px;
  padding: 34px 0;
}

.report-preview-score > strong {
  font-size: 80px;
  font-weight: 520;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.report-preview-score span,
.report-preview-score small {
  display: block;
}

.report-preview-score small {
  margin-top: 8px;
  color: #6c827a;
}

.report-preview-metrics {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border-top: 1px solid #cadbd5;
}

.report-preview-metrics span,
.report-preview-metrics strong {
  padding: 14px 0;
  border-bottom: 1px solid #cadbd5;
  font-size: 14px;
}

.report-preview-metrics strong {
  color: #236f56;
}

.report-preview-note {
  margin-top: 24px;
  color: #667d75;
  font-size: 12px;
  line-height: 1.65;
}

.business-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 60px;
}

.business-option {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  color: var(--platform-text);
  text-align: left;
  background: var(--platform-surface);
  cursor: pointer;
}

.business-option:first-child {
  grid-row: span 2;
  min-height: 538px;
  background:
    linear-gradient(180deg, rgba(66, 215, 165, 0.03), rgba(66, 215, 165, 0.12)),
    var(--platform-surface);
}

.business-option > span {
  color: var(--platform-accent);
  font-size: 12px;
  font-weight: 700;
}

.business-option h3 {
  max-width: 480px;
  margin: 54px 0 16px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.18;
}

.business-option:first-child h3 {
  margin-top: 180px;
}

.business-option p {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--platform-muted);
  line-height: 1.75;
}

.business-option strong {
  color: #dff7ee;
  font-size: 14px;
}

.business-option:hover,
.business-option:focus-visible {
  border-color: rgba(66, 215, 165, 0.62);
  outline: none;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--platform-line);
  border-bottom: 1px solid var(--platform-line);
}

.evidence-grid article {
  padding: 34px 26px;
}

.evidence-grid article + article {
  border-left: 1px solid var(--platform-line);
}

.evidence-grid strong,
.evidence-grid span {
  display: block;
}

.evidence-grid strong {
  color: var(--platform-accent);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.evidence-grid span {
  margin-top: 12px;
  color: var(--platform-muted);
  font-size: 13px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  margin-top: 90px;
  padding: 50px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  background: var(--platform-surface);
}

.privacy-panel h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.privacy-panel p:not(.platform-kicker) {
  margin: 0 0 18px;
  color: var(--platform-muted);
  line-height: 1.75;
}

.final-steps {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.final-steps ol {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.final-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--platform-line);
}

.final-steps li span {
  color: var(--platform-accent);
  font-size: 12px;
  font-weight: 700;
}

.final-steps li p {
  margin: 0;
  color: #d5e8e1;
}

.final-qr {
  width: 340px;
  padding: 28px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  text-align: center;
  background: var(--platform-surface);
}

.final-qr .qr-shell {
  width: 284px;
  height: 284px;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff;
}

.final-qr img {
  display: block;
  width: 276px;
  height: 276px;
}

.final-qr strong {
  font-size: 16px;
}

.final-qr p {
  overflow-wrap: anywhere;
  color: var(--platform-muted);
  font-size: 11px;
}

.platform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 5vw;
  border-top: 1px solid var(--platform-line);
  background: #04100d;
}

.platform-footer strong {
  font-size: 24px;
}

.platform-footer p {
  margin: 10px 0 0;
  color: var(--platform-muted);
  font-size: 13px;
}

.platform-footer nav {
  display: flex;
  gap: 24px;
}

.platform-footer a {
  color: #cee5dc;
  font-size: 13px;
  text-decoration: none;
}

.lead-modal,
.consent-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 12, 9, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lead-dialog,
.consent-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 38px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  color: var(--platform-text);
  background: #0a211a;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.lead-dialog h2,
.consent-card h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.lead-dialog > p:not(.platform-kicker),
.consent-intro {
  margin: 14px 0 26px;
  color: var(--platform-muted);
  line-height: 1.65;
}

.lead-close,
.consent-close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 10px;
  border: 1px solid var(--platform-line);
  border-radius: 999px;
  color: #cce3da;
  background: transparent;
  cursor: pointer;
}

.lead-dialog form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lead-dialog label,
.consent-contact {
  display: grid;
  gap: 8px;
}

.lead-dialog label > span,
.consent-contact > span {
  color: #c8ded5;
  font-size: 12px;
}

.lead-dialog input,
.lead-dialog textarea,
.consent-contact input,
.consent-contact textarea {
  width: 100%;
  border: 1px solid rgba(197, 241, 225, 0.24);
  border-radius: 10px;
  outline: none;
  color: var(--platform-text);
  background: #061713;
}

.lead-dialog input,
.consent-contact input {
  min-height: 46px;
  padding: 0 13px;
}

.lead-dialog textarea,
.consent-contact textarea {
  padding: 12px 13px;
  resize: vertical;
}

.lead-dialog input:focus,
.lead-dialog textarea:focus,
.consent-contact input:focus,
.consent-contact textarea:focus {
  border-color: var(--platform-accent);
  box-shadow: 0 0 0 3px rgba(66, 215, 165, 0.14);
}

.lead-wide,
.lead-status,
.lead-submit {
  grid-column: 1 / -1;
}

.lead-status,
.consent-error {
  min-height: 20px;
  margin: 0;
  color: var(--platform-accent);
  font-size: 13px;
}

/* Mobile landing and capture */
.mobile-page {
  overflow-x: hidden;
  background: var(--platform-bg);
}

.mobile-page .mobile-shell {
  color: var(--platform-text);
  background: var(--platform-bg);
}

.mobile-page .mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid var(--platform-line);
  color: var(--platform-text);
  background: rgba(6, 23, 19, 0.96);
}

.mobile-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--platform-text);
  text-decoration: none;
}

.mobile-brand strong {
  font-size: 17px;
}

.mobile-brand span,
.mobile-position {
  color: var(--platform-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.mobile-page .mobile-hero-img {
  height: 300px;
  border-bottom: 1px solid var(--platform-line);
  object-position: center 22%;
  filter: saturate(0.8);
}

.mobile-page .mobile-hero {
  padding: 38px 20px 44px;
  color: var(--platform-text);
  background: var(--platform-bg);
}

.mobile-page .mobile-hero h1 {
  margin: 0;
  font-size: clamp(39px, 12vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.mobile-page .mobile-hero h2 {
  margin: 20px 0 0;
  color: #d6ebe3;
  font-size: 20px;
  line-height: 1.45;
}

.mobile-page .mobile-hero > p:not(.platform-kicker) {
  margin: 14px 0 0;
  color: var(--platform-muted);
  line-height: 1.75;
}

.mobile-page .outline-cta,
.mobile-page .notice-start,
.consent-submit,
.retest-button {
  min-height: 50px;
  border: 1px solid var(--platform-accent);
  border-radius: 999px;
  color: #062017;
  font-weight: 700;
  background: var(--platform-accent);
}

.mobile-page .mobile-hero .outline-cta {
  width: 100%;
  margin-top: 28px;
}

.mobile-page .mobile-story,
.mobile-page .mobile-steps {
  padding: 46px 20px;
  color: var(--platform-text);
  background: var(--platform-surface);
}

.mobile-page .mobile-story h2,
.mobile-page .mobile-steps h2 {
  margin: 0 0 24px;
  color: var(--platform-text);
  font-size: 30px;
  letter-spacing: -0.035em;
}

.mobile-page .mobile-story p,
.mobile-page .mobile-steps p {
  color: var(--platform-muted);
  line-height: 1.75;
}

.mobile-page .mobile-story img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-top: 28px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
}

.mobile-page .mobile-steps {
  background: var(--platform-bg);
}

.mobile-page .mobile-steps .timeline {
  border-color: var(--platform-line);
}

.mobile-page .mobile-steps .step {
  border-color: var(--platform-line);
}

.mobile-page .mobile-steps .step span {
  color: var(--platform-accent);
  background: var(--platform-surface);
}

.mobile-platform-footer {
  padding: 42px 20px 130px;
  border-top: 1px solid var(--platform-line);
  color: var(--platform-text);
  background: #04100d;
}

.mobile-platform-footer strong {
  font-size: 22px;
}

.mobile-platform-footer p {
  color: var(--platform-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mobile-platform-footer a {
  color: var(--platform-accent);
  font-size: 13px;
  text-decoration: none;
}

.mobile-page .bottom-cta {
  border-top: 1px solid var(--platform-line);
  background: rgba(6, 23, 19, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-page .bottom-cta .outline-cta {
  width: 100%;
}

.consent-card {
  width: min(560px, 100%);
  padding: 30px 22px;
}

.consent-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--platform-line);
  border-radius: 14px;
  color: var(--platform-text);
  background: #071914;
  cursor: pointer;
}

.consent-option.required {
  border-color: rgba(66, 215, 165, 0.44);
  background: rgba(66, 215, 165, 0.08);
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--platform-accent);
}

.consent-option strong,
.consent-option small {
  display: block;
}

.consent-option strong {
  font-size: 14px;
}

.consent-option small {
  margin-top: 6px;
  color: var(--platform-muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent-contact {
  margin: 16px 0;
}

.consent-details {
  margin: 16px 0 18px;
  color: var(--platform-muted);
  font-size: 12px;
}

.consent-details summary {
  color: #d9eee6;
  cursor: pointer;
}

.consent-details p {
  line-height: 1.65;
}

.consent-submit {
  width: 100%;
  margin-top: 8px;
}

.mobile-page .capture-header {
  border-bottom-color: var(--platform-line);
  color: var(--platform-text);
  background: #061713;
}

.mobile-page .capture-notice {
  background: #061713;
}

.mobile-page .notice-card {
  background: #0d2620;
  color: #effbf6;
  border: 1px solid rgba(197, 241, 225, 0.18);
  border-radius: 18px;
}

.mobile-page .notice-card > p,
.mobile-page .notice-loading {
  color: #effbf6;
  font-weight: 600;
}

.mobile-page .notice-items > div {
  background: rgba(66, 215, 165, 0.06);
  border: 1px solid rgba(197, 241, 225, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.mobile-page .notice-items span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #42d7a5;
  color: #062017;
  font-size: 14px;
  font-weight: 700;
  border: 0;
}

.mobile-page .notice-items strong {
  color: #effbf6;
  font-weight: 600;
}

.mobile-page .report-view {
  min-height: 100dvh;
  color: var(--platform-text);
  background: var(--platform-bg);
}

.mobile-page #reportContent {
  padding-bottom: 50px;
}

.mobile-page .report-hero {
  padding: 38px 20px 28px;
  color: var(--platform-text);
  text-align: left;
  background: var(--platform-bg);
}

.mobile-page .report-hero h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.score-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.mobile-page .score-number {
  display: grid;
  width: 108px;
  height: 108px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--platform-accent);
  border-radius: 50%;
  color: var(--platform-text);
  font-size: 48px;
  background: rgba(66, 215, 165, 0.08);
}

.score-summary strong,
.score-summary span {
  display: block;
}

.score-summary strong {
  font-size: 16px;
}

.score-summary span {
  margin-top: 8px;
  color: var(--platform-muted);
  font-size: 13px;
}

.mobile-page .report-hero > p:last-child {
  color: var(--platform-muted);
  line-height: 1.65;
}

.mobile-page .report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 30px;
  background: var(--platform-bg);
}

.mobile-page .metric-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--platform-line);
  border-radius: 14px;
  color: var(--platform-text);
  background: var(--platform-surface);
}

.mobile-page .metric-card > span {
  color: var(--platform-muted);
  font-size: 12px;
}

.mobile-page .metric-card > strong {
  display: block;
  margin-top: 16px;
  color: var(--platform-text);
  font-size: 34px;
  line-height: 1;
}

.mobile-page .metric-card small {
  margin-left: 3px;
  color: var(--platform-muted);
  font-size: 12px;
}

.mobile-page .metric-card p {
  margin: 12px 0 0;
  color: var(--platform-accent);
  font-size: 11px;
}

.mobile-page .report-text,
.report-next,
.report-disclaimer {
  margin: 0 20px 18px;
  padding: 22px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  color: #d9ebe4;
  background: var(--platform-surface);
}

.mobile-page .report-text h2,
.report-next h2 {
  color: var(--platform-text);
  font-size: 24px;
}

.mobile-page .report-text p {
  color: var(--platform-muted);
  line-height: 1.78;
}

.report-next h2 {
  margin: 0 0 18px;
}

.report-action-grid {
  display: grid;
  gap: 10px;
}

.report-action-grid button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--platform-line);
  border-radius: 14px;
  color: var(--platform-text);
  text-align: left;
  background: #071914;
}

.report-action-grid button:active {
  transform: translateY(1px);
}

.report-action-grid span {
  color: var(--platform-muted);
  font-size: 12px;
}

.retest-button {
  width: 100%;
  margin-top: 16px;
}

.retest-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--platform-accent);
  font-size: 12px;
  line-height: 1.6;
}

.report-disclaimer {
  color: var(--platform-muted);
  font-size: 12px;
  line-height: 1.7;
}

.mobile-page .auth-card {
  border: 1px solid var(--platform-line);
  color: var(--platform-text);
  background: var(--platform-surface);
}

.mobile-page .auth-tabs,
.mobile-page .auth-field span,
.mobile-page .auth-skip {
  color: var(--platform-muted);
}

.mobile-page .auth-tab.active {
  color: var(--platform-accent);
  border-color: var(--platform-accent);
}

.mobile-page .auth-field input {
  border-color: var(--platform-line);
  color: var(--platform-text);
  background: var(--platform-bg);
}

.mobile-page .auth-submit,
.mobile-page .auth-send-code {
  border-color: var(--platform-accent);
  color: #062017;
  background: var(--platform-accent);
}

@media (max-width: 980px) {
  .platform-header {
    grid-template-columns: auto 1fr;
  }

  .platform-position {
    display: none;
  }

  .platform-nav {
    justify-content: flex-end;
  }

  .platform-nav a:not(.platform-nav-cta) {
    display: none;
  }

  .platform-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .platform-hero-visual {
    min-height: 520px;
  }

  .platform-trust,
  .evidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-trust article:last-child,
  .evidence-grid article:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--platform-line);
  }

  .report-preview-section,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .final-steps {
    grid-template-columns: 1fr;
  }

  .final-qr {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .platform-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .platform-brand span {
    display: none;
  }

  .platform-hero {
    gap: 34px;
    padding: 48px 20px 42px;
  }

  .platform-hero h1 {
    font-size: clamp(50px, 16vw, 74px);
  }

  .platform-hero-actions {
    display: grid;
  }

  .platform-button {
    width: 100%;
  }

  .platform-hero-visual {
    min-height: 430px;
  }

  .platform-hero-visual > img {
    height: 480px;
  }

  .platform-qr-card {
    grid-template-columns: 92px 1fr;
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 14px;
    padding: 12px;
  }

  .platform-qr-card .qr-shell {
    width: 92px;
    height: 92px;
  }

  .platform-qr-card .qr-shell img {
    width: 76px;
    height: 76px;
  }

  .platform-trust,
  .evidence-grid {
    grid-template-columns: 1fr;
    margin: 0 20px;
  }

  .platform-trust article + article,
  .evidence-grid article + article {
    border-top: 1px solid var(--platform-line);
    border-left: 0;
  }

  .platform-trust article:last-child,
  .evidence-grid article:last-child {
    grid-column: auto;
  }

  .platform-section {
    padding: 82px 20px;
  }

  .mechanism-track,
  .business-layout {
    grid-template-columns: 1fr;
  }

  .mechanism-track article:nth-child(2) {
    transform: none;
  }

  .business-option:first-child {
    grid-row: auto;
    min-height: 300px;
  }

  .business-option:first-child h3 {
    margin-top: 60px;
  }

  .report-preview-section {
    grid-template-columns: 1fr;
  }

  .report-preview {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
  }

  .privacy-panel {
    gap: 34px;
    margin-top: 60px;
    padding: 28px 22px;
  }

  .final-qr {
    padding: 18px;
  }

  .final-qr .qr-shell {
    width: 264px;
    height: 264px;
  }

  .final-qr img {
    width: 256px;
    height: 256px;
  }

  .platform-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-footer nav {
    flex-wrap: wrap;
  }

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

  .lead-wide,
  .lead-status,
  .lead-submit {
    grid-column: auto;
  }
}

/* Platform content expansion, 2026-07-29 */
.platform-trust details {
  min-width: 0;
  padding: 0;
}

.platform-trust details + details {
  border-left: 1px solid var(--platform-line);
}

.platform-trust summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-height: 126px;
  align-items: start;
  padding: 34px 36px;
  cursor: pointer;
  list-style: none;
}

.platform-trust summary::-webkit-details-marker {
  display: none;
}

.platform-trust summary > strong {
  color: var(--platform-accent);
  font-size: 25px;
  line-height: 1;
}

.platform-trust summary span,
.platform-trust summary b,
.platform-trust summary small {
  display: block;
}

.platform-trust summary b {
  font-size: 16px;
}

.platform-trust summary small {
  margin-top: 8px;
  color: var(--platform-muted);
  font-size: 12px;
  font-weight: 400;
}

.platform-trust details > p {
  margin: 0;
  padding: 0 36px 30px;
  color: #cce2da;
  font-size: 13px;
  line-height: 1.8;
}

.platform-trust details[open] {
  background: rgba(66, 215, 165, 0.06);
}

.mechanism-difference {
  margin: 72px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--platform-line);
  color: var(--platform-text);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.45;
}

.report-preview-overview {
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
}

.report-preview-overview .report-preview-score {
  padding: 0;
}

.radar-chart {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 8px auto;
}

.radar-chart > i,
.radar-chart > span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 98% 35%, 80% 94%, 20% 94%, 2% 35%);
}

.radar-chart > i {
  border: 1px solid #aac7bd;
  background: rgba(35, 111, 86, 0.04);
}

.radar-chart > i:nth-child(2) {
  width: 100px;
  height: 100px;
}

.radar-chart > i:nth-child(3) {
  width: 58px;
  height: 58px;
}

.radar-chart > span {
  width: 112px;
  height: 112px;
  background: rgba(35, 111, 86, 0.34);
  clip-path: polygon(50% 5%, 91% 39%, 71% 87%, 26% 78%, 12% 36%);
}

.radar-label {
  position: absolute;
  color: #55766b;
  font-size: 9px;
  font-weight: 600;
}

.label-one { top: -2px; left: 50%; transform: translateX(-50%); }
.label-two { top: 42px; right: -8px; }
.label-three { right: 4px; bottom: 4px; }
.label-four { bottom: 4px; left: 1px; }
.label-five { top: 42px; left: -8px; }

.solution-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #cadbd5;
}

.solution-preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.solution-preview-heading span {
  color: #6c827a;
  font-size: 11px;
}

.solution-table {
  border: 1px solid #cadbd5;
  border-radius: 10px;
  overflow: hidden;
}

.solution-table [role="row"] {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.75fr;
}

.solution-table [role="row"] + [role="row"] {
  border-top: 1px solid #cadbd5;
}

.solution-table b,
.solution-table span {
  min-width: 0;
  padding: 10px 8px;
  font-size: 11px;
}

.solution-table b {
  color: #355f51;
  background: #e2f0eb;
}

.solution-table span {
  color: #49685e;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.preview-actions button,
.privacy-request {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(35, 111, 86, 0.32);
  border-radius: 999px;
  color: #154f3c;
  background: #dff4ec;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.preview-actions button:hover,
.preview-actions button:focus-visible {
  border-color: #236f56;
  outline: none;
  background: #cdeadd;
}

.partner-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.partner-placeholders span {
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px dashed rgba(197, 241, 225, 0.28);
  border-radius: var(--platform-radius);
  color: #78978c;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.partner-placeholders small {
  grid-column: 1 / -1;
  color: var(--platform-muted);
  font-size: 11px;
}

.methodology-note {
  display: grid;
  grid-template-columns: 0.36fr 1.64fr;
  gap: 42px;
  padding: 42px 0;
  border-bottom: 1px solid var(--platform-line);
}

.methodology-note strong {
  color: var(--platform-text);
  font-size: 20px;
}

.methodology-note p {
  max-width: 820px;
  margin: 0;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.9;
}

.privacy-request {
  margin-top: 6px;
  border-color: rgba(66, 215, 165, 0.5);
  color: #062017;
  background: var(--platform-accent);
}

.retest-comparison {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--platform-line);
  border-radius: 14px;
  background: #071914;
}

.solution-reference {
  margin: 14px 0;
  padding: 22px 16px;
  border: 1px solid var(--platform-line);
  border-radius: 16px;
  color: var(--platform-text);
  background: var(--platform-surface);
}

.solution-reference h2 {
  margin: 0;
  font-size: 23px;
}

.solution-reference > p:not(.platform-kicker) {
  margin: 10px 0 16px;
  color: var(--platform-muted);
  font-size: 13px;
  line-height: 1.7;
}

.solution-reference-table {
  overflow-x: auto;
  border: 1px solid var(--platform-line);
  border-radius: 12px;
}

.solution-reference-table > div {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr 0.9fr;
  min-width: 520px;
}

.solution-reference-table > div + div {
  border-top: 1px solid var(--platform-line);
}

.solution-reference-table b,
.solution-reference-table span {
  padding: 11px 9px;
  font-size: 11px;
}

.solution-reference-table b {
  color: var(--platform-accent);
  background: rgba(66, 215, 165, 0.08);
}

.solution-reference-table span {
  color: #d4e7df;
}

.solution-reference > small {
  display: block;
  margin-top: 12px;
  color: var(--platform-muted);
  font-size: 11px;
  line-height: 1.6;
}

.retest-comparison h3 {
  margin: 0 0 12px;
  color: var(--platform-text);
  font-size: 17px;
}

.retest-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto;
}

.retest-comparison-grid span,
.retest-comparison-grid strong {
  padding: 9px 0;
  border-bottom: 1px solid var(--platform-line);
  font-size: 12px;
}

.retest-comparison-grid span {
  color: var(--platform-muted);
}

.retest-comparison-grid strong {
  color: var(--platform-accent);
}

.report-sticky-actions {
  position: fixed;
  z-index: 90;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(197, 241, 225, 0.2);
  border-radius: 18px;
  background: rgba(6, 23, 19, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.report-sticky-actions button {
  min-width: 0;
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(66, 215, 165, 0.34);
  border-radius: 12px;
  color: var(--platform-text);
  background: #0b2b22;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-page .report-view.active {
  padding-bottom: 104px;
}

@media (max-width: 980px) {
  .platform-trust details:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--platform-line);
    border-left: 0;
  }

  .report-preview-overview {
    grid-template-columns: 1fr 180px;
  }
}

@media (max-width: 700px) {
  .platform-trust details + details {
    border-top: 1px solid var(--platform-line);
    border-left: 0;
  }

  .platform-trust details:last-child {
    grid-column: auto;
  }

  .platform-trust summary {
    min-height: auto;
    padding: 26px 22px;
  }

  .platform-trust details > p {
    padding: 0 22px 24px;
  }

  .report-preview-overview {
    grid-template-columns: 1fr;
  }

  .report-preview-score {
    justify-content: center;
  }

  .preview-actions,
  .partner-placeholders {
    grid-template-columns: 1fr;
  }

  .partner-placeholders small {
    grid-column: auto;
  }

  .methodology-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solution-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .solution-table [role="row"] {
    min-width: 430px;
  }
}

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