@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root {
  --paper: #f6f2ee;
  --paper-deep: #eee8e5;
  --ink: #37343b;
  --muted: #8d8790;
  --line: #ded7d6;
  --lavender: #e9e2ed;
  --lavender-deep: #b7a9c4;
  --white: #fffdfb;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  height: 86px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  border: 0; padding: 0; background: transparent; cursor: pointer;
  font-size: 11px; letter-spacing: .22em; font-weight: 600;
}
.exit-link, .quiet-exit {
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 12px; letter-spacing: .04em;
}
.home-screen { flex: 1; display: flex; flex-direction: column; }
.home-content {
  width: min(680px, calc(100% - 40px));
  margin: auto; padding: 56px 0 100px;
}
.eyebrow {
  text-align: center; color: var(--muted); font-size: 10px;
  letter-spacing: .28em; margin: 0 0 22px;
}
h1 {
  font-family: var(--serif); font-weight: 400; text-align: center;
  font-size: clamp(28px, 5vw, 42px); letter-spacing: .08em;
  margin: 0 0 70px;
}
.module-list { display: grid; gap: 16px; }
.module-card {
  width: 100%; display: flex; align-items: center; gap: 24px;
  text-align: left; padding: 25px 28px; min-height: 112px;
  border: 1px solid var(--line); border-radius: 5px;
  background: rgba(255,253,251,.56); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.module-card:hover { border-color: var(--lavender-deep); background: var(--white); transform: translateY(-2px); }
.module-number { color: #aaa1aa; font-size: 11px; letter-spacing: .12em; }
.module-copy { display: grid; gap: 9px; flex: 1; }
.module-copy strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.module-copy small { color: var(--muted); font-size: 12px; }
.module-arrow { color: #a99daf; font-size: 20px; }
.home-footer { text-align: center; padding: 22px; color: #aaa2a5; font-size: 9px; letter-spacing: .24em; }
.hidden { display: none !important; }

.practice-screen { flex: 1; display: flex; justify-content: center; padding: 44px 20px 64px; }
.practice-wrap { width: min(680px, 100%); display: flex; flex-direction: column; min-height: 570px; }
.progress-row {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 10px; letter-spacing: .13em;
  margin-bottom: 13px;
}
.progress-track { height: 2px; background: #e5dfe0; width: 100%; }
.progress-fill { height: 100%; width: 0; background: var(--lavender-deep); transition: width .25s; }
.step-content { padding: 66px 0 30px; flex: 1; }
.step-kicker { color: #a69ba8; font-size: 10px; letter-spacing: .2em; margin: 0 0 18px; }
.step-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 4vw, 30px);
  line-height: 1.55; margin: 0 0 14px;
}
.step-description { color: #827c84; font-size: 13px; line-height: 1.9; margin: 0 0 30px; }
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.option-card {
  min-height: 112px; padding: 16px 14px; border: 1px solid var(--line);
  background: rgba(255,253,251,.55); border-radius: 4px; cursor: pointer;
  text-align: left; display: flex; flex-direction: column; gap: 7px;
  transition: .18s;
}
.option-card:hover { border-color: var(--lavender-deep); }
.option-card.selected { border-color: #a999b6; background: var(--lavender); }
.option-en { color: #9c91a2; font-size: 10px; letter-spacing: .07em; }
.option-name { font-family: var(--serif); font-size: 15px; }
.option-desc { color: #89828a; font-size: 11px; line-height: 1.6; }
.choice-list { display: grid; gap: 11px; max-width: 520px; }
.choice-button {
  border: 1px solid var(--line); background: rgba(255,253,251,.55);
  border-radius: 4px; padding: 17px 20px; text-align: left; cursor: pointer;
  font-size: 14px; line-height: 1.7; transition: .18s;
}
.choice-button:hover { border-color: var(--lavender-deep); }
.choice-button.selected { border-color: #a999b6; background: var(--lavender); }
.textarea {
  width: 100%; min-height: 145px; resize: vertical; padding: 18px;
  border: 1px solid var(--line); border-radius: 4px; outline: none;
  background: rgba(255,253,251,.7); color: var(--ink); font-size: 14px; line-height: 1.8;
}
.textarea:focus { border-color: var(--lavender-deep); }
.textarea::placeholder { color: #b0a9ae; }
.centered-step { text-align: center; padding-top: 110px; }
.centered-step .step-description { max-width: 480px; margin-left: auto; margin-right: auto; }
.now-button {
  margin: 20px auto 0; min-width: 150px; padding: 15px 30px;
  border: 1px solid #b9adbf; border-radius: 3px; background: var(--lavender);
  cursor: pointer; font-family: var(--serif); font-size: 17px;
}
.reflection { max-width: 540px; margin: 28px auto 0; color: #7f7881; font-family: var(--serif); font-size: 16px; line-height: 2.1; text-align: center; }
.navigation { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }
.back-button, .continue-button {
  border: 0; cursor: pointer; padding: 13px 18px; border-radius: 3px; font-size: 12px;
}
.back-button { background: transparent; color: #89828a; }
.continue-button { background: #766b7d; color: white; min-width: 118px; }
.continue-button:disabled { opacity: .35; cursor: not-allowed; }
.quiet-exit { align-self: center; margin-top: 22px; }
@media (max-width: 620px) {
  .topbar { width: calc(100% - 36px); height: 70px; }
  .home-content { padding: 48px 0 70px; }
  h1 { margin-bottom: 48px; letter-spacing: .04em; }
  .module-card { padding: 20px 17px; gap: 15px; min-height: 100px; }
  .module-copy strong { font-size: 17px; }
  .practice-screen { padding: 30px 20px 44px; }
  .practice-wrap { min-height: calc(100vh - 150px); }
  .step-content { padding: 48px 0 26px; }
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .option-card { min-height: 105px; padding: 13px 11px; }
  .centered-step { padding-top: 75px; }
}
