/* ============================================================
   Screen styles — landing, dashboard, module reader, test,
   scenarios, commitment, comparison, completion.
   ============================================================ */

/* App scaffold */
.app { position: relative; }
.app-main { position: relative; }
.app-main.nav-sidebar { padding-left: 240px; }

/* ============================================================
   LANDING — Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 88vh;
}
.hero-text {
  padding: 96px 64px 96px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--line);
}
.hero-text::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.hero-art {
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.hero-art .img-slot { flex: 1; min-height: 480px; }
.hero-art-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-mindsets { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.mindset-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-dim);
}
.mindset-row .sep { color: var(--accent); }

.hero-type { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.hero-full { position: relative; min-height: 88vh; overflow: hidden; }
.hero-full-img { position: absolute !important; inset: 0; height: 100%; width: 100%; aspect-ratio: auto !important; }
.hero-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 50%, transparent) 0%, color-mix(in srgb, var(--bg-0) 90%, transparent) 100%);
  display: flex;
  align-items: center;
  padding: 96px 0;
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  white-space: nowrap;
  display: inline-block;
  animation: ticker 56s linear infinite;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.ticker-track span { padding-right: 32px; }
.ticker-diamond { color: var(--accent); }

/* problem list */
.problem-list { list-style: none; margin-top: 24px; }
.problem-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.45;
}
.problem-list li:last-child { border-bottom: 0; }
.problem-list .check-mark {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-top: 4px;
  min-width: 16px;
}

/* structure */
.structure-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.strip-cell {
  padding: 24px 16px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  position: relative;
  transition: background 0.3s ease;
}
.strip-cell:last-child { border-right: 0; }
.strip-cell:hover { background: var(--bg-2); }
.strip-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.strip-line { height: 1px; background: var(--line); }
.strip-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  flex: 1;
}
.strip-time {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
}

/* CTA */
.cta-section { padding: 96px 0 64px; }
.cta-block {
  padding: 64px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  position: relative;
}

.landing-foot { padding: 32px 0; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 64px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-art .img-slot { min-height: 320px; }
  .module-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-cell { min-height: 160px; }
  .cta-block { padding: 32px 24px; }
}

/* ============================================================
   PRE/POST TEST
   ============================================================ */
.test-screen { min-height: 80vh; }
.test-head { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 56px; }
.test-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto 40px;
}
.test-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 56px 48px;
  border-radius: var(--r-md);
  position: relative;
}
.test-num {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.test-prompt { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; margin-bottom: 40px; text-wrap: balance; }
.test-controls {
  max-width: 760px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
}

.test-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  padding: 20px;
  border-radius: var(--r-sm);
  resize: vertical;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.test-textarea:focus { outline: none; border-color: var(--accent); }

/* Scale input */
.scale-input { margin-top: 8px; }
.scale-input-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.scale-btn {
  height: 80px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--fg-dim);
  cursor: pointer;
}
.scale-btn:hover { border-color: var(--accent); color: var(--fg); }
.scale-btn.picked {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}
.scale-btn.picked .scale-btn-num { color: var(--bg-0); }
.scale-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}

/* MCQ grid */
.mcq-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcq-opt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.mcq-opt:hover { border-color: var(--line-2); background: var(--bg-3); }
.mcq-opt.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.mcq-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--bg-2)); }
.mcq-opt.wrong { border-color: var(--err); background: color-mix(in srgb, var(--err) 8%, var(--bg-2)); }
.mcq-letter {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  display: grid; place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.mcq-opt.picked .mcq-letter { border-color: var(--accent); color: var(--accent); }
.mcq-opt.right .mcq-letter { border-color: var(--ok); color: var(--ok); }
.mcq-mark {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ok);
}
.mcq-mark.wrong { color: var(--err); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-screen { min-height: 80vh; }

.dash-greet {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.dash-metrics {
  display: flex;
  gap: 48px;
  align-items: flex-end;
}
.circle-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dash-next { margin-top: 48px; }
.next-banner {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.next-banner-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.module-card:not(:disabled):hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.module-card.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); }
.module-card.done { background: var(--bg-2); }
.module-card.locked { opacity: 0.45; cursor: not-allowed; }
.module-card-top {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.module-card-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.module-card-status {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
}
.module-card-status.done { color: var(--accent); }
.module-card-status.next { color: var(--accent); }
.module-card-cover {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.module-card-hero-word {
  position: absolute;
  bottom: 10px; right: 14px;
  max-width: calc(100% - 28px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 4.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.module-card-body { padding: 24px; flex: 1; }
.module-card-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@media (max-width: 1100px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .module-grid { grid-template-columns: 1fr; } }

/* Tests row */
.tests-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card-mini {
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  position: relative;
  transition: all 0.2s ease;
}
.test-card-mini:not(:disabled):hover { border-color: var(--line-2); transform: translateY(-2px); }
.test-card-mini.locked { opacity: 0.4; cursor: not-allowed; }
.test-card-mini.done { background: var(--bg-2); }
.test-card-cta {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

@media (max-width: 800px) { .tests-row { grid-template-columns: 1fr; } }

/* ============================================================
   MODULE READER
   ============================================================ */
.module-reader { position: relative; }
.reader-rail {
  position: sticky;
  top: 64px;
  z-index: 30;
  height: 2px;
  background: var(--bg-0);
  margin-top: -2px;
}
.reader-rail-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Module hero */
.module-hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.module-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0,
    transparent 80px,
    rgba(201, 169, 106, 0.02) 80px,
    rgba(201, 169, 106, 0.02) 81px
  );
  pointer-events: none;
}
.hero-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.35;
  text-align: right;
  user-select: none;
}

/* Section primitives */
.section-h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 64px 0 24px;
  line-height: 1.15;
  text-wrap: balance;
}
.section-p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--fg);
}
.section-p-bold {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
  margin: 32px 0;
  letter-spacing: -0.01em;
}
.section-list {
  list-style: none;
  margin: 24px 0;
}
.section-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
}
.section-list .dash { color: var(--accent); flex-shrink: 0; }
.section-numbered {
  list-style: none;
  margin: 24px 0;
}
.section-numbered li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.55;
}
.section-numbered .num {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 32px;
}

.section-pullquote {
  margin: 56px 0;
  padding: 40px 48px;
  border-left: 2px solid var(--accent);
  background: var(--bg-1);
  position: relative;
}
.section-pullquote .quote-mark {
  position: absolute;
  top: 8px; left: 18px;
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}
.section-pullquote p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  padding-left: 32px;
}

.section-takeaway {
  margin: 56px 0;
  padding: 32px;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-takeaway p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Two-col serving vs caring */
.section-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--line);
}
.section-twocol .col {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
}
.section-twocol .col:last-child { border-right: 0; }
.section-twocol .col-accent { background: color-mix(in srgb, var(--accent) 5%, var(--bg-1)); }

/* Compare table */
.compare-table {
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 0;
}
.compare-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
}
.compare-row { border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-c0, .compare-c1, .compare-c2 {
  padding: 24px 20px;
  font-size: 15px;
  line-height: 1.5;
  border-right: 1px solid var(--line);
}
.compare-head .compare-c0,
.compare-head .compare-c1,
.compare-head .compare-c2 { padding: 14px 20px; }
.compare-c0 { color: var(--fg-dim); }
.compare-c1 { color: var(--fg-dim); background: var(--bg-1); }
.compare-c2 { color: var(--fg); background: color-mix(in srgb, var(--accent) 4%, var(--bg-1)); border-right: 0; }

@media (max-width: 720px) {
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-c0, .compare-c1, .compare-c2 { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Read grid (module 3) */
.read-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.read-group {
  padding: 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.read-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.read-group-head .num {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.18em;
}
.read-group ul { list-style: none; }
.read-group ul li {
  font-size: 15px;
  line-height: 1.55;
  padding: 10px 0;
  color: var(--fg-dim);
  border-bottom: 1px dashed var(--line);
}
.read-group ul li:last-child { border-bottom: 0; }

@media (max-width: 720px) { .read-grid { grid-template-columns: 1fr; } }

/* Languages */
.lang-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 32px 0;
}
.lang-card {
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}
.lang-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lang-card.pressed { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-1)); }
.lang-card .say-hint {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
}
.lang-card.pressed .say-hint { color: var(--accent); }

@media (max-width: 800px) { .lang-strip { grid-template-columns: repeat(2, 1fr); } }

/* Layers (module 4) */
.layers { margin: 32px 0; }
.layer {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer-num { position: relative; }
.layer-num .mono {
  font-size: 32px;
  color: var(--accent);
  font-weight: 600;
  display: block;
}
.layer-line {
  height: 1px;
  background: var(--accent);
  margin-top: 12px;
  width: 60%;
}
.layer-body { display: flex; flex-direction: column; gap: 10px; }
.layer-body p {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* Swap rows */
.swap-rows { margin: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.swap-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.swap-from, .swap-to { display: flex; flex-direction: column; gap: 8px; }
.swap-from p, .swap-to p { font-size: 16px; line-height: 1.45; }
.swap-arrow { color: var(--accent); font-size: 24px; text-align: center; }

@media (max-width: 720px) {
  .swap-row { grid-template-columns: 1fr; }
  .swap-arrow { transform: rotate(90deg); }
}

/* Triple big (module 5 — scan/think/act) */
.triple-big {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--line);
  background: var(--bg-1);
  align-items: stretch;
}
.triple-cell {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}
.triple-cell:last-child { border-right: 0; }
.triple-num {
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.triple-word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  word-break: keep-all;
  white-space: nowrap;
}
.triple-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-dim);
  text-wrap: pretty;
}

@media (max-width: 800px) {
  .triple-big { grid-template-columns: 1fr; }
  .triple-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .triple-cell:last-child { border-bottom: 0; }
  .triple-word { font-size: 48px; }
}

/* Autopilot pairs */
.autopilot-pairs { margin: 32px 0; display: flex; flex-direction: column; gap: 24px; }
.autopilot-pair {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 28px;
}
.autopilot-q { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.autopilot-bodies {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.autopilot-body { display: flex; flex-direction: column; gap: 8px; }
.autopilot-bad p { color: var(--fg-dim); font-size: 16px; line-height: 1.5; }
.autopilot-good p { color: var(--fg); font-size: 17px; line-height: 1.55; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.005em; }

@media (max-width: 800px) { .autopilot-bodies { grid-template-columns: 1fr; } }

/* ============================================================
   CHECK BLOCK
   ============================================================ */
.check-block {
  margin: 32px 0;
  padding: 40px;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  position: relative;
}
.check-textarea {
  width: 100%;
  margin: 24px 0 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  padding: 16px;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}
.check-textarea:focus { outline: none; border-color: var(--accent); }
.check-feedback {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
}
.check-feedback p { margin-top: 8px; }

/* Noticing check */
.notice-stage { position: relative; margin: 24px 0; }
.notice-overlay { position: absolute; inset: 0; pointer-events: none; }
.notice-cue {
  position: absolute;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  padding: 0;
}
.notice-cue:hover { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.notice-cue.on { background: var(--accent); border-color: var(--accent); }
.notice-dot { width: 8px; height: 8px; border-radius: 8px; background: var(--accent); transition: background 0.2s ease; }
.notice-cue.on .notice-dot { background: var(--bg-0); }
.notice-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  padding: 2px 6px;
  border-radius: 2px;
}
.notice-cue.on .notice-label { color: var(--accent); }
.notice-cue-up .notice-label {
  top: auto;
  bottom: calc(100% + 8px);
}
.notice-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Swap game */
.swap-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0;
}
.swap-col { display: flex; flex-direction: column; gap: 8px; }
.swap-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--fg);
}
.swap-chip:hover { border-color: var(--accent); }
.swap-chip.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.swap-chip.linked.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--bg-2)); }
.swap-chip.linked.wrong { border-color: var(--err); background: color-mix(in srgb, var(--err) 8%, var(--bg-2)); }
.swap-chip-to { justify-content: space-between; }
.swap-chip-to.used { opacity: 0.55; }
.swap-chip .num { color: var(--accent); font-size: 11px; letter-spacing: 0.18em; }

@media (max-width: 720px) { .swap-game { grid-template-columns: 1fr; } }

/* Three-sec game */
.three-sec-game { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.three-sec-step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.three-sec-head { display: flex; flex-direction: column; gap: 4px; }
.three-sec-head .num { color: var(--fg-mute); font-size: 12px; letter-spacing: 0.2em; }
.three-sec-opts { display: flex; flex-direction: column; gap: 6px; }
.three-sec-opt {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
  color: var(--fg-dim);
  transition: all 0.15s ease;
}
.three-sec-opt:hover { border-color: var(--accent); color: var(--fg); }
.three-sec-opt.right { border-color: var(--ok); color: var(--fg); background: color-mix(in srgb, var(--ok) 10%, var(--bg-1)); }
.three-sec-opt.wrong { border-color: var(--err); color: var(--fg); background: color-mix(in srgb, var(--err) 8%, var(--bg-1)); }

@media (max-width: 720px) { .three-sec-step { grid-template-columns: 1fr; } }

/* Module foot nav */
.module-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 0 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   SCENARIO PLAYER
   ============================================================ */
.scenario-player { margin: 32px 0; }
.scenario-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  align-items: center;
  margin-bottom: 0;
  border-bottom: 0;
}
.scenario-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  cursor: pointer;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.scenario-tab:hover { color: var(--fg); }
.scenario-tab.active { color: var(--fg); border-color: var(--line-2); background: var(--bg-1); }
.scenario-tab.done { color: var(--accent); }
.scenario-tab .dot {
  width: 6px; height: 6px; border-radius: 6px;
  background: var(--line-strong);
}
.scenario-tab.done .dot { background: var(--accent); }
.scenario-tab.active .dot { background: var(--fg); }

.scenario-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 40px;
}
.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.scenario-setup {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 32px;
  color: var(--fg);
  letter-spacing: -0.005em;
  max-width: 720px;
}
.scenario-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.scenario-options .eyebrow { margin-bottom: 8px; }
.scenario-opt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
}
.scenario-opt:hover { border-color: var(--line-2); background: var(--bg-3); }
.scenario-opt.picked { border-color: var(--accent); }
.scenario-opt.best { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.scenario-opt.missed { border-color: var(--warn); opacity: 0.85; }
.scenario-opt.poor { opacity: 0.55; }
.scenario-opt.ok { opacity: 0.7; }
.scenario-opt .mcq-mark { color: var(--accent); }

.scenario-reveal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  margin-bottom: 32px;
}
.reveal-block {
  padding: 24px;
  background: var(--bg-2);
  border-left: 2px solid var(--fg-mute);
}
.reveal-block-accent { border-left-color: var(--accent); }
.reveal-block p { margin-top: 12px; font-size: 15px; line-height: 1.55; }

@media (max-width: 800px) {
  .scenario-reveal { grid-template-columns: 1fr; }
  .scenario-head { flex-direction: column; }
  .scenario-head .img-slot { width: 100% !important; }
}

.scenario-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   COMMITMENT PICKER — Module 7
   ============================================================ */
.commit-picker { margin: 32px 0 64px; }
.commit-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}
.commit-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.commit-row:hover:not(:disabled) { border-color: var(--line-2); background: var(--bg-2); }
.commit-row.picked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-1));
}
.commit-num { color: var(--accent); font-size: 13px; letter-spacing: 0.18em; }
.commit-text { font-size: 16px; line-height: 1.45; }
.commit-check {
  text-align: right;
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 20px;
}

.commit-sign {
  padding: 40px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-1));
}
.commit-sign-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.commit-name { display: flex; flex-direction: column; gap: 8px; }
.commit-name input {
  background: transparent;
  border: none;
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--fg);
  padding: 4px 0;
  letter-spacing: -0.01em;
  outline: none;
}
.commit-name input::placeholder { color: var(--fg-mute); font-style: italic; }
.commit-sign-line { height: 1px; background: var(--fg); }
.commit-date { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 700px) {
  .commit-row { grid-template-columns: 50px 1fr; }
  .commit-check { grid-column: 1 / -1; text-align: left; padding-left: 66px; }
  .commit-sign { padding: 24px; }
  .commit-sign-row { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPARISON SCREEN
   ============================================================ */
.comparison-screen .hero-section {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.compare-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.compare-score-cell { display: flex; flex-direction: column; gap: 12px; }
.compare-score-cell-after { text-align: right; align-items: flex-end; }
.compare-big-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.compare-divider {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.compare-divider .mono { color: var(--fg-mute); font-size: 11px; letter-spacing: 0.22em; }
.compare-divider-line { width: 1px; height: 48px; background: var(--line-strong); }

.compare-scale { margin-bottom: 48px; }
.compare-scale-head { padding-bottom: 24px; }
.scale-rail {
  position: relative;
  height: 80px;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.scale-marks {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  position: absolute;
  inset: 0;
}
.scale-mark { border-right: 1px solid var(--line); }
.scale-mark:last-child { border-right: 0; }
.scale-arc {
  position: absolute;
  top: 50%;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: all 0.8s cubic-bezier(.2,.7,.2,1);
}
.scale-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: left 0.8s cubic-bezier(.2,.7,.2,1);
}
.scale-pin .pin-dot {
  width: 14px; height: 14px;
  border-radius: 14px;
  background: var(--accent);
  border: 2px solid var(--bg-0);
}
.scale-pin-pre .pin-dot { background: var(--fg-mute); }
.scale-pin-post .pin-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.scale-pin .pin-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  white-space: nowrap;
}
.scale-pin-post .pin-label { color: var(--accent); }

.compare-questions { margin-top: 64px; }
.compare-q {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.compare-q-num {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.compare-q-prompt { font-size: 18px; line-height: 1.45; margin-bottom: 20px; max-width: 720px; }
.compare-q-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.compare-q-col {
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-q-col-after { background: color-mix(in srgb, var(--accent) 4%, var(--bg-1)); }
.compare-q-col.right { border-color: var(--ok); }
.compare-q-rationale {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
}
.compare-q-rationale p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--fg-dim); }

@media (max-width: 800px) {
  .compare-scoreboard { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .compare-score-cell-after { text-align: left; align-items: flex-start; }
  .compare-divider { flex-direction: row; }
  .compare-divider-line { width: 48px; height: 1px; }
  .compare-q { grid-template-columns: 1fr; }
  .compare-q-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPLETION
   ============================================================ */
.completion-screen { min-height: 80vh; }
.certificate {
  margin: 64px auto 0;
  max-width: 880px;
  padding: 64px 56px;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  position: relative;
}
.cert-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
}
.cert-corner-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.cert-corner-tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.cert-corner-bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.cert-corner-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.cert-inner { display: flex; flex-direction: column; gap: 32px; }
.cert-row { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cert-statement {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cert-commitment {
  padding: 24px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-1));
  border-left: 2px solid var(--accent);
}
.cert-commitment p {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
}
.cert-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cert-foot p { margin-top: 6px; font-size: 14px; }

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html,
  body {
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  .certificate,
  .certificate * {
    visibility: visible !important;
  }

  .topbar,
  .module-foot,
  .btn,
  .landing-foot,
  .ticker,
  .sidenav,
  .completion-foot,
  .completion-screen .eyebrow.fade-up,
  .completion-screen > .container > .display {
    display: none !important;
  }

  .completion-screen,
  .completion-screen .container {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .certificate {
    position: fixed !important;
    inset: 8mm !important;
    width: calc(297mm - 16mm) !important;
    height: calc(210mm - 16mm) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 13mm 16mm !important;
    box-sizing: border-box !important;
    border: 1.5px solid #000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    overflow: hidden !important;
  }

  .cert-corner {
    border-color: #000 !important;
  }

  .cert-inner {
    height: 100% !important;
    justify-content: space-between !important;
    gap: 7mm !important;
  }

  .cert-row {
    padding-bottom: 6mm !important;
  }

  .certificate .display-md {
    font-size: 34pt !important;
    line-height: 1.05 !important;
  }

  .cert-statement {
    font-size: 14pt !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  .cert-commitment {
    padding: 8mm !important;
    background: #f7f7f7 !important;
    border-left: 2px solid #000 !important;
  }

  .cert-commitment p {
    font-size: 12.5pt !important;
    line-height: 1.3 !important;
    margin-top: 4mm !important;
  }

  .cert-foot {
    gap: 8mm !important;
    padding-top: 6mm !important;
  }

  .cert-foot p {
    font-size: 10pt !important;
  }
}

@media (max-width: 700px) {
  .certificate { padding: 32px 24px; }
  .cert-foot { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDE NAV (optional)
   ============================================================ */
.sidenav {
  position: fixed;
  left: 0;
  top: 64px;
  bottom: 0;
  width: 240px;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  z-index: 20;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidenav-item:hover { background: var(--bg-2); color: var(--fg); }
.sidenav-item.active { background: var(--bg-2); color: var(--fg); border-left: 2px solid var(--accent); padding-left: 10px; }
.sidenav-item.done { color: var(--accent); }
.sidenav-item .mono {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  min-width: 24px;
}
.sidenav-item.done .mono { color: var(--accent); }
.sidenav-sep { height: 1px; background: var(--line); margin: 12px 0; }

@media (max-width: 1000px) {
  .sidenav { display: none; }
  .app-main.nav-sidebar { padding-left: 0; }
}

/* minimal nav variant: hide crumb */
.nav-minimal .crumb-trail { display: none; }

/* ============================================================
   Locked entry button + hint
   ============================================================ */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.btn-locked {
  background: var(--bg-2) !important;
  color: var(--fg-mute) !important;
  border: 1px dashed var(--line-2) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}
.btn-locked:hover { transform: none !important; }
.btn-locked .lock-glyph {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid var(--fg-mute);
  border-radius: 50%;
  position: relative;
}
.btn-locked .lock-glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fg-mute);
  opacity: 0.4;
}
.arr-down { display: inline-block; animation: bounceDown 1.6s ease-in-out infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.entry-hint {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.entry-hint-ready { color: var(--accent); }
.entry-hint-pulse {
  display: inline-block;
  color: var(--accent);
  animation: bounceDown 1.6s ease-in-out infinite;
}

/* ============================================================
   LOGIN GATE
   ============================================================ */
.login-gate {
  position: relative;
  min-height: 100vh;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.login-aurora {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle at 60% 40%,
    color-mix(in srgb, var(--accent) 28%, transparent) 0%,
    color-mix(in srgb, var(--accent) 10%, transparent) 25%,
    transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.login-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-0) 70%, transparent);
  backdrop-filter: blur(8px);
}
.login-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.login-topbar .brand-mark {
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
  transform: rotate(45deg);
}
.login-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 64px 80px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}
.login-left { max-width: 560px; }
.login-mindsets .mindset-row { font-size: 12px; }

.login-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  width: 100%;
  justify-self: end;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.login-card::before, .login-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
}
.login-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.login-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.login-card-head .num {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.login-field input,
.login-select-wrap select {
  width: 100%;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0 10px;
  outline: none;
  transition: border-color 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.login-field input::placeholder { color: var(--fg-mute); opacity: 0.55; font-weight: 400; }
.login-field input:focus,
.login-select-wrap select:focus {
  border-bottom-color: var(--accent);
}
.login-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg-1) inset;
  caret-color: var(--fg);
}
.login-select-wrap {
  position: relative;
}
.login-select-wrap select {
  padding-right: 28px;
  cursor: pointer;
}
.login-select-wrap select option {
  background: var(--bg-1);
  color: var(--fg);
}
.login-select-caret {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--fg-mute);
  pointer-events: none;
}
.login-foot {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  text-align: center;
  margin-top: 4px;
  line-height: 1.6;
}
.login-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .login-main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 28px;
  }
  .login-card { justify-self: stretch; }
  .login-row { grid-template-columns: 1fr; }
  .login-topbar, .login-bottom { padding: 18px 24px; }
}
