:root {
  --v-red: #e91d2b;
  --v-red-soft: #fff0f1;
  --v-teal: #00897f;
  --v-blue: #1769e0;
  --v-yellow: #f2bd32;
  --v-ink: #102746;
}

body { background: #ffffff; }

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #e7edf3;
}

.nav { max-width: 1320px; height: 72px; }

.brand-symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand { color: var(--v-ink); font-size: 21px; }
.nav-links { gap: 26px; color: #334c68; }

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-color: var(--v-red);
  color: #ffffff;
  background: var(--v-red);
}

.hero-lab {
  min-height: auto;
  display: block;
  background: #ffffff;
  border-bottom-color: #e6edf4;
}

.hero-lab-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 900px;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.015);
  transition: transform .2s ease-out;
}

.hero-lab-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 0;
  margin: 0 auto;
  padding: 126px 24px 52px;
  display: block;
}

.hero-lab-copy {
  width: min(650px, 100%);
  margin-left: clamp(0px, 9vw, 140px);
}

.hero-lab .eyebrow {
  margin-bottom: 20px;
  border-color: #b9dfda;
  background: #f2fbfa;
  color: var(--v-teal);
}

.hero-lab h1 {
  max-width: 650px;
  color: var(--v-ink);
  font-size: 76px;
  line-height: 1.03;
  font-weight: 950;
}

.hero-lab .lead {
  max-width: 610px;
  margin-top: 24px;
  color: #50647c;
  font-size: 18px;
  line-height: 1.8;
}

.hero-lab .hero-actions { margin-top: 28px; }

.hero-lab .button {
  min-height: 50px;
  padding: 0 22px;
  border-color: #ccd8e4;
  box-shadow: 0 12px 30px rgba(16, 39, 70, .08);
}

.hero-lab .button.primary {
  background: var(--v-red);
  box-shadow: 0 14px 30px rgba(233, 29, 43, .2);
}

.hero-trust {
  margin-top: 16px;
  color: #718399;
  font-size: 13px;
}

.hero-quickstart {
  width: min(1000px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 58px rgba(35, 59, 87, .12);
}

.quickstart-input,
.quickstart-preview { padding: 20px; }

.quickstart-input { border-right: 1px solid #e1e8ef; }

.quickstart-head {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--v-ink);
  font-size: 14px;
}

.quickstart-head button,
.quickstart-head a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #60758c;
  cursor: pointer;
  font-size: 12px;
}

#heroAnswerInput {
  width: 100%;
  height: 104px;
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #d8e1ea;
  border-radius: 7px;
  outline: none;
  background: #fbfcfe;
  color: var(--v-ink);
  font: inherit;
  line-height: 1.7;
}

#heroAnswerInput:focus {
  border-color: var(--v-red);
  box-shadow: 0 0 0 3px rgba(233, 29, 43, .08);
}

.quickstart-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quickstart-actions span { color: #7a8ba0; font-size: 12px; }

.quickstart-actions button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--v-red);
  border-radius: 7px;
  background: var(--v-red);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.quickstart-preview { position: relative; }

.preview-score {
  width: 78px;
  height: 78px;
  margin: 18px 0 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 8px solid #65c8bc;
  border-right-color: #e6edf4;
  border-radius: 50%;
}

.preview-score strong { color: var(--v-ink); font-size: 26px; line-height: 1; }
.preview-score span { color: #72849a; font-size: 10px; }

.quickstart-preview ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  list-style: none;
}

.quickstart-preview li { display: flex; gap: 5px; color: #718399; font-size: 12px; }
.quickstart-preview li b { color: var(--v-ink); }
.quickstart-preview p { margin: 12px 0 0; color: #60758c; font-size: 12px; line-height: 1.6; }

.hero-loop {
  width: min(1080px, 100%);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e5ebf1;
}

.hero-loop-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}

.hero-loop-title strong { color: var(--v-ink); font-size: 24px; }
.hero-loop-title span { color: #718399; font-size: 13px; }

.hero-loop-items {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hero-loop-items a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v-ink);
}

.loop-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.loop-icon img { width: 24px; height: 24px; }
.loop-icon.red { background: #ffe5e7; }
.loop-icon.teal { background: #dff5f2; }
.loop-icon.blue { background: #e3edff; }
.loop-icon.yellow { background: #fff3cf; }

.hero-loop-items span { min-width: 0; }
.hero-loop-items strong { display: block; font-size: 14px; }
.hero-loop-items small { display: block; margin-top: 3px; color: #718399; font-size: 11px; }

.workbench-section { background: #f5f8fb; }
.app-overline,
.question-category,
.kicker { color: var(--v-teal); }

.app-nav-item:hover,
.app-nav-item.active {
  border-color: #ffc9ce;
  background: var(--v-red-soft);
  color: #b71622;
}

.app-nav-item.active > span,
.submit-command {
  border-color: var(--v-red);
  background: var(--v-red);
}

.content-item button,
.brand-status {
  border-color: #addbd5;
  background: #edf9f7;
  color: var(--v-teal);
}

.practice-route {
  background: #f4f8fc;
}

.practice-route-head {
  max-width: 920px;
}

.practice-route-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-top: 36px;
}

.practice-step {
  min-height: 250px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--v-ink);
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(29, 62, 97, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.practice-step:hover {
  transform: translateY(-5px);
  border-color: var(--v-teal);
  box-shadow: 0 20px 38px rgba(22, 119, 111, .14);
}

.practice-step-number {
  color: #9aabbd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.practice-step-icon {
  width: 48px;
  height: 48px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 850;
}

.practice-step.coral .practice-step-icon { background: #ffe4e5; color: #c51f2b; }
.practice-step.teal .practice-step-icon { background: #ddf4f0; color: #007f76; }
.practice-step.blue .practice-step-icon { background: #e4edff; color: #245ec6; }
.practice-step.yellow .practice-step-icon { background: #fff2ca; color: #9b6a00; }

.practice-step-copy { margin-top: 20px; }
.practice-step-copy strong { display: block; font-size: 20px; }
.practice-step-copy small { display: block; margin-top: 8px; color: #61758c; font-size: 14px; line-height: 1.75; }
.practice-step-meta { margin-top: auto; color: var(--v-teal); font-size: 13px; font-weight: 750; }

.practice-connector {
  align-self: center;
  color: #78bdb6;
  font-size: 24px;
  font-weight: 700;
}

.ai-visual-note {
  color: #8492a3;
  font-size: 12px;
}

/* Single product journey: the workbench is the page's center, not a detached demo. */
.workbench-section {
  padding: 78px 24px 88px;
  background: #f7f9fc;
  border-top: 1px solid #e4ebf1;
  border-bottom: 1px solid #e4ebf1;
}

.workbench-intro {
  width: min(1280px, 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.workbench-copy { max-width: 720px; }
.workbench-copy h2 { margin: 8px 0 0; color: var(--v-ink); font-size: clamp(36px, 4vw, 54px); }
.workbench-copy p { margin: 14px 0 0; color: #64748b; font-size: 16px; }

.workbench-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.workbench-links a {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6e0ea;
  border-radius: 7px;
  background: #fff;
  color: #38516e;
  font-size: 14px;
  font-weight: 750;
}

.workbench-links a:hover { border-color: #79bdb6; color: var(--v-teal); }

.study-app { width: min(1280px, 100%); }

.journey-section {
  padding: 82px 24px 78px;
  background: #fff;
  border-bottom: 1px solid #e7edf3;
}

.journey-inner { width: min(1280px, 100%); margin: 0 auto; }
.journey-copy { max-width: 700px; }
.journey-copy h2 { margin: 8px 0 0; color: var(--v-ink); font-size: clamp(34px, 4vw, 52px); }
.journey-copy p { margin: 14px 0 0; color: #64748b; font-size: 16px; }

.journey-actions {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.journey-actions a {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
  color: var(--v-ink);
  box-shadow: 0 12px 28px rgba(30, 55, 82, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.journey-actions a:hover {
  transform: translateY(-4px);
  border-color: #78beb7;
  box-shadow: 0 20px 38px rgba(24, 117, 108, .12);
}

.journey-actions span { color: #9bacbe; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.journey-actions strong { margin-top: 34px; font-size: 21px; }
.journey-actions small { margin-top: 10px; color: #677b92; font-size: 14px; line-height: 1.7; }
.journey-actions b { margin-top: auto; color: var(--v-teal); font-size: 13px; }

.footer { padding: 24px; }
.footer-brandline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.footer-brandline strong { color: var(--v-ink); }

/* Account and checkout are product surfaces, not detached promotional panels. */
.account-entry {
  appearance: none;
  border: 1px solid #d4e1e8;
  background: #fff;
  color: #163254;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.account-entry:hover { border-color: #15867e; color: #087d75; box-shadow: 0 8px 20px rgba(26, 103, 115, .12); }
.account-entry.is-signed-in { border-color: #b9dfd9; background: #edf9f7; color: #087d75; }

.account-section,
.orders-section {
  border: 1px solid #dce8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 67, 93, .06);
}

.account-section { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 24px; }
.account-section h4,
.orders-section h4 { margin: 0; color: #102b4a; font-size: 19px; }
.account-section p,
.orders-section p { margin: 7px 0 0; color: #667b92; font-size: 14px; line-height: 1.7; }
.account-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.account-actions button:disabled { cursor: default; opacity: .58; box-shadow: none; }

.plan-item { display: flex; flex-direction: column; min-height: 314px; }
.plan-item ul { min-height: 76px; margin: 18px 0; padding-left: 18px; color: #607790; font-size: 13px; line-height: 1.8; }
.plan-item .submit-command { width: 100%; margin-top: auto; }
.orders-section { margin-top: 16px; padding: 22px 24px; }
.orders-list { margin-top: 12px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px 92px; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid #e8eff4; }
.order-row > div { display: grid; gap: 4px; min-width: 0; }
.order-row strong { color: #173353; font-size: 14px; }
.order-row span { color: #8798aa; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-status { justify-self: end; color: #a87817; background: #fff5d8; border-radius: 999px; padding: 5px 9px; font-size: 12px; white-space: nowrap; }
.order-status.paid { color: #087d75; background: #e7f7f3; }
.order-status.payment_failed,
.order-status.wechat_pay_failed { color: #b44b45; background: #fff0ef; }

.account-dialog,
.checkout-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; color: #173353; border: 1px solid #dce8ef; border-radius: 16px; box-shadow: 0 28px 80px rgba(21, 44, 69, .26); }
.account-dialog::backdrop,
.checkout-dialog::backdrop { background: rgba(17, 38, 57, .38); backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 16px; border-bottom: 1px solid #e7eef3; }
.dialog-head h4 { margin: 0; font-size: 20px; }
.icon-command { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #607790; font-size: 26px; line-height: 1; cursor: pointer; }
.icon-command:hover { background: #edf4f7; color: #183656; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 22px 0; }
.auth-tabs button { min-height: 38px; border: 1px solid #dbe7ee; border-radius: 9px; background: #fff; color: #607790; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.auth-tabs button.is-active { border-color: #0d857d; background: #eaf8f6; color: #087d75; }
.auth-form { display: grid; gap: 14px; padding: 18px 22px 22px; }
.auth-form label { display: grid; gap: 7px; color: #486178; font-size: 13px; font-weight: 800; }
.auth-form label[hidden] { display: none; }
.auth-form input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d9e5ec; border-radius: 9px; outline: none; color: #173353; font: inherit; font-size: 15px; }
.auth-form input:focus { border-color: #15958b; box-shadow: 0 0 0 3px rgba(21, 149, 139, .12); }
.auth-form p { margin: 0; color: #718499; font-size: 13px; line-height: 1.65; }
.checkout-body { display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.checkout-price { color: #153452; font-size: 36px; line-height: 1; }
.checkout-qr { width: 220px; height: 220px; padding: 10px; border: 1px solid #dbe7ed; border-radius: 12px; background: #fff; image-rendering: auto; }
.checkout-body p { max-width: 280px; margin: 0; color: #617890; font-size: 14px; line-height: 1.65; }
.checkout-body small { color: #91a0ae; font-size: 12px; }
.checkout-error { color: #b44b45 !important; padding: 18px 0; }
.loading-line { width: 140px; height: 4px; overflow: hidden; border-radius: 999px; background: #e4eef1; }
.loading-line::after { display: block; width: 48%; height: 100%; border-radius: inherit; background: #118d84; content: ''; animation: checkoutLoading 1.1s ease-in-out infinite; }
@keyframes checkoutLoading { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }

@media (max-width: 980px) {
  .workbench-intro { align-items: flex-start; flex-direction: column; }
  .workbench-links { justify-content: flex-start; }
  .journey-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-lab-visual { height: 820px; opacity: .42; object-position: center top; }
  .hero-lab-content { min-height: 0; padding-top: 98px; }
  .hero-lab-copy { margin-left: 0; }
  .hero-lab h1 { font-size: 62px; }
  .hero-quickstart { grid-template-columns: 1fr; }
  .quickstart-input { border-right: 0; border-bottom: 1px solid #e1e8ef; }
  .hero-loop-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-route-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-connector { display: none; }
}

@media (max-width: 560px) {
  .nav { height: 64px; }
  .brand-symbol { width: 34px; height: 34px; }
  .hero-lab-visual { height: 620px; opacity: .2; object-position: 58% top; }
  .hero-lab-content { padding: 92px 18px 40px; }
  .hero-lab h1 { font-size: 48px; line-height: 1.08; }
  .hero-lab .lead { font-size: 16px; line-height: 1.72; }
  .hero-lab .hero-actions { display: grid; }
  .hero-lab .button { width: 100%; }
  .hero-trust { line-height: 1.6; }
  .hero-quickstart { margin-top: 28px; }
  .quickstart-preview { display: none; }
  .quickstart-input { border-bottom: 0; }
  .quickstart-actions { align-items: stretch; flex-direction: column; }
  .quickstart-actions button { width: 100%; }
  .hero-loop { margin-top: 32px; }
  .hero-loop-title { display: block; text-align: center; }
  .hero-loop-title span { display: block; margin-top: 5px; }
  .hero-loop-items { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .loop-icon { width: 40px; height: 40px; }
  .loop-icon img { width: 21px; height: 21px; }
  .hero-loop-items small { display: none; }
  .practice-route-board { grid-template-columns: 1fr; gap: 12px; }
  .practice-step { min-height: 0; padding: 18px; }
  .practice-step-icon { margin-top: 10px; }
  .practice-step-copy { margin-top: 14px; }
  .practice-step-meta { margin-top: 18px; }
  .workbench-section { padding: 58px 14px 64px; }
  .workbench-intro { gap: 18px; }
  .workbench-copy h2 { font-size: 34px; }
  .workbench-copy p { font-size: 15px; line-height: 1.7; }
  .workbench-links { width: 100%; display: grid; grid-template-columns: 1fr; }
  .workbench-links a { justify-content: center; }
  .journey-section { padding: 58px 18px; }
  .journey-copy h2 { font-size: 34px; }
  .journey-actions { grid-template-columns: 1fr; gap: 10px; }
  .journey-actions a { min-height: 0; padding: 18px; }
  .journey-actions strong { margin-top: 16px; }
  .journey-actions b { margin-top: 18px; }
  .footer-brandline { display: grid; gap: 6px; }
  .account-entry { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .account-section { display: grid; padding: 18px; }
  .account-actions { width: 100%; }
  .account-actions button { flex: 1; }
  .orders-section { padding: 18px; }
  .order-row { grid-template-columns: 1fr auto; gap: 10px; }
  .order-row > div:nth-child(2) { grid-column: 1; }
  .order-status { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lab-visual { transform: none; transition: none; }
}
