/* ============================================================================
   AMORIA PRO · styles.css
   Rebanada vertical. Papel cálido, tinta ciruela, rosa profundo. Sin fuentes
   externas: serif del sistema para display, sans para texto.
   ========================================================================== */

:root {
  --bg: #F7F2EA;
  --surface: #FFFDF9;
  --surface-2: #FBF6EE;
  --ink: #241A22;
  --ink-2: #564750;
  --muted: #7A6A71;
  --line: rgba(36, 26, 34, 0.10);
  --line-strong: rgba(36, 26, 34, 0.20);
  --rose: #B23A4E;
  --rose-deep: #8F2A3C;
  --rose-soft: #F4DCDC;
  --coral: #D96A55;
  --sage: #5F7A68;
  --sage-soft: #E3EAE2;
  --amber: #9A6428;
  --amber-soft: #FBF0E3;
  --shadow-sm: 0 8px 24px -18px rgba(36, 26, 34, 0.45);
  --shadow-md: 0 26px 60px -38px rgba(36, 26, 34, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 6% -4%, #F6DDD6 0%, rgba(246, 221, 214, 0) 62%),
    radial-gradient(46% 38% at 102% 4%, #E6EDE2 0%, rgba(230, 237, 226, 0) 58%);
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rose-deep); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.view { animation: rise 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 36px);
  background: rgba(247, 242, 234, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  padding: 4px;
  color: var(--ink);
}
.brand svg { width: 30px; height: 30px; }
.brand-word { font-weight: 700; font-size: 14px; letter-spacing: 0.18em; }
.brand-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose);
  border: 1px solid rgba(178, 58, 78, 0.35);
  border-radius: 999px;
  padding: 2px 6px;
}
.top-actions { display: flex; align-items: center; gap: 5px; }
.topnav { display: flex; align-items: center; gap: 2px; }
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
}
.lang-trigger:hover, .lang-trigger[aria-expanded="true"] { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-soft); }
.lang-caret { font-size: 11px; line-height: 1; transform: translateY(-1px); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 205px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button[aria-checked="true"] { background: var(--rose-soft); color: var(--rose-deep); }
.lang-menu button small { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.lang-menu button[aria-checked="true"] small { color: var(--rose); }
.nav-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 999px;
}
.nav-btn:hover, .nav-btn.active { background: rgba(36, 26, 34, 0.06); color: var(--ink); }
.nav-unlock {
  border: 1px solid rgba(178, 58, 78, 0.3);
  background: transparent;
  color: var(--rose-deep);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
}
.nav-unlock:hover { background: var(--rose-soft); }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}
.pill.free { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.full { background: var(--sage-soft); color: #3F5A49; }

#app { flex: 1 0 auto; width: min(1040px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 36px) 36px; outline: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.lede { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.help { color: var(--muted); font-size: 12px; line-height: 1.45; }
.help.center { text-align: center; }
.mini { color: var(--muted); font-size: 11.5px; }
.error { color: var(--rose-deep); font-size: 12.5px; margin-top: 8px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); color: #FFF8F0; box-shadow: var(--shadow-sm); }
.btn.primary:hover:not([disabled]) { background: #362630; transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 253, 249, 0.55); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover:not([disabled]) { background: var(--surface); }
.btn.quiet { background: transparent; color: var(--ink-2); padding: 9px 10px; min-height: 40px; }
.btn.quiet:hover { background: rgba(36, 26, 34, 0.05); }
.btn.small { min-height: 38px; font-size: 12.5px; padding: 8px 13px; }
.link { border: 0; background: none; padding: 0; color: var(--rose-deep); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.back { border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 4px 0; }
.back:hover { color: var(--ink); }

/* -------------------------------------------------------------------- home */
.home { max-width: 920px; margin: 0 auto; }
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); max-width: none; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(22px, 4vw, 44px); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5.4vw, 64px); line-height: .96; letter-spacing: -.03em; }
.hero h1 em { color: var(--rose); font-style: italic; }
.hero .lede { margin-top: 20px; max-width: 52ch; font-size: clamp(16px, 1.8vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .mini { margin-top: 18px; }
.hero-photo { margin: 0; min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 24px; filter: saturate(.82) contrast(.97); box-shadow: var(--shadow-md); }
.hero-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 10px; letter-spacing: .03em; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
.mode-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.7);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-card.available { background: var(--surface); box-shadow: var(--shadow-sm); }
.mode-card.soon { opacity: 0.72; }
.mode-art { height: 180px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #F7F2EA; }
.mode-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mode-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-num { font-family: var(--serif); font-size: 14px; color: var(--rose); }
.mode-tag { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }
.mode-card h2 { font-size: 34px; }
.mode-card .mode-sub { color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: -7px; flex: none; }
.mode-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; flex: 1; }
.mode-card .btn { align-self: flex-start; }

.how { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--ink-2); max-width: 38ch; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li > span { font-family: var(--serif); color: var(--rose); font-size: 15px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.home-note { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 70ch; }

/* -------------------------------------------------------------------- flow */
.flow { max-width: 760px; margin: 0 auto; }
.flow-head { margin: 18px 0 24px; }
.flow-head h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 10px; }
.flow-head p { margin-top: 12px; color: var(--ink-2); max-width: 56ch; font-size: 15px; }
.area-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.area-choice {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.area-choice:hover { border-color: var(--rose); transform: translateY(-1px); }
.area-choice.selected { border-color: var(--rose); background: var(--surface); box-shadow: 0 0 0 3px rgba(178, 58, 78, 0.08); }
.area-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.area-count { font-size: 9.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.area-choice strong { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; }
.area-choice-desc { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.area-list { display: grid; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.area-list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-list-item div { display: flex; flex-direction: column; gap: 3px; }
.area-list-item strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.area-list-item span { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3.5vw, 32px);
  box-shadow: var(--shadow-sm);
}
.field-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
}
.input:focus { outline: none; border-color: var(--rose); background: #fff; box-shadow: 0 0 0 3px rgba(178, 58, 78, 0.1); }
.panel .help { margin-top: 9px; }
.flow-actions { display: flex; gap: 10px; margin-top: 22px; }
.flow-actions.between { justify-content: space-between; }
.note-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}
.flow-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.flow-person { font-size: 12px; color: var(--muted); }
.progress-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.progress { height: 3px; background: rgba(36, 26, 34, 0.08); border-radius: 99px; margin: 8px 0 22px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--coral)); border-radius: inherit; transition: width 0.35s ease; }
.question-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.question-kicker { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.question-text { font-size: clamp(27px, 4.2vw, 40px); line-height: 1.08; letter-spacing: -0.025em; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 26px 0 14px; }
.likert-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 14px;
  min-height: 72px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-2);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.likert-btn b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.likert-btn span { font-size: 9.5px; letter-spacing: 0.02em; }
.likert-btn:hover { border-color: var(--rose); transform: translateY(-1px); }
.likert-btn.selected { background: var(--rose); border-color: var(--rose); color: #fff; }
.likert-btn.selected span { color: rgba(255, 255, 255, 0.85); }
.dont-know {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.dont-know:hover { border-color: var(--rose); color: var(--ink); }
.dont-know.selected { border-style: solid; border-color: var(--rose); background: var(--rose-soft); color: var(--rose-deep); }
.lectura-area .confidence { margin-top: 10px; }
.handoff-card {
  background: var(--ink);
  color: #F3E9DF;
  border-radius: 28px;
  padding: clamp(26px, 5vw, 44px);
  margin-top: 26px;
  box-shadow: var(--shadow-md);
}
.handoff-card .eyebrow { color: #E8B9AE; }
.handoff-card h1 { color: #FFF8F0; font-size: clamp(34px, 5vw, 50px); margin-top: 12px; }
.handoff-lede { color: #D8C9C1; margin-top: 12px; font-size: 15px; max-width: 48ch; }
.handoff-icon {
  width: 58px; height: 58px;
  border: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #F0B9A9;
  margin: 22px 0;
}
.handoff-card .field-label { color: #C9B9B2; }
.handoff-card .input { background: rgba(255, 253, 249, 0.08); border-color: rgba(255, 253, 249, 0.2); color: #FFF8F0; }
.handoff-card .input:focus { background: rgba(255, 253, 249, 0.12); box-shadow: none; }
.handoff-card .help { color: #BCA9A2; }
.handoff-card .btn.primary { background: #F3E9DF; color: var(--ink); }
.handoff-card .btn.primary:hover { background: #fff; }

/* ------------------------------------------------------------------ report */
.report { max-width: 900px; margin: 0 auto; }
.report-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.report-head h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 10px; }
.report-head .amp { color: var(--rose); font-style: italic; }
.report-head .lede { margin-top: 12px; max-width: 64ch; }
.report-score {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.score-ring { position: relative; width: 132px; height: 132px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { stroke: rgba(36, 26, 34, 0.09); }
.ring-bar { stroke: var(--rose); stroke-linecap: round; transition: stroke-dashoffset 0.7s ease; }
.score-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 38px; letter-spacing: -0.03em; }
.score-ring.band-muy .ring-bar { stroke: var(--rose); }
.score-ring.band-alineado .ring-bar { stroke: var(--coral); }
.score-ring.band-mixto .ring-bar { stroke: var(--sage); }
.score-ring.band-tension .ring-bar { stroke: #B58A4B; }
.score-ring.band-dispar .ring-bar { stroke: #8A7378; }
.report-score h2 { font-size: 28px; margin-top: 8px; }
.report-score p { color: var(--ink-2); font-size: 13.5px; margin-top: 8px; max-width: 48ch; }
.band { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--sage-soft); color: #3F5A49; }
.band::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.band.band-muy { background: var(--rose-soft); color: var(--rose-deep); }
.band.band-alineado { background: #F6E5D8; color: #92512F; }
.band.band-mixto { background: var(--sage-soft); color: #3F5A49; }
.band.band-tension { background: var(--amber-soft); color: var(--amber); }
.band.band-dispar { background: #EDE4E6; color: #7B5C64; }
.confidence { display: block; margin-top: 12px; color: var(--muted); font-size: 11.5px; }
.report-dims { margin-top: 34px; }
.report-areas { margin-top: 34px; }
.area-block { padding: 26px 0 6px; border-top: 1px solid var(--line); }
.area-block:first-child { border-top: 0; padding-top: 0; }
.area-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.area-head h2 { font-size: clamp(25px, 3.4vw, 34px); margin-top: 7px; }
.area-score { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.area-score > strong { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1; color: var(--rose-deep); }
.area-meta { color: var(--muted); font-size: 11px; margin-top: 8px; }
.area-block .dims-grid { margin-top: 16px; }
.radar-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.radar-copy h2 { font-size: 28px; margin-top: 7px; }
.radar-copy p { color: var(--ink-2); font-size: 13px; margin-top: 8px; max-width: 40ch; }
.radar { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.radar-label { font-family: var(--sans); font-size: 9px; fill: var(--muted); letter-spacing: 0.02em; }
.locked-areas { margin-top: 30px; }
.locked-areas h2 { font-size: 27px; margin-top: 6px; }
.locked-areas .dims-grid { margin-top: 14px; }
.dims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dim-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.dim-card h3 { font-size: 21px; }
.dim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dim-head strong { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--rose-deep); }
.dim-card p { margin-top: 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.bar { height: 5px; background: rgba(36, 26, 34, 0.08); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--coral)); border-radius: inherit; }
.dim-card.locked { background: var(--surface-2); border-style: dashed; }
.dim-card.locked p { color: var(--muted); }
.lock { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 999px; }
.locked-note { margin-top: 14px; font-size: 11px; color: var(--gold, #B58A4B); }
.report-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.list-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 18px; }
.list-card.warm { background: var(--amber-soft); border-color: #F0DFC9; }
.list-card h3 { font-size: 20px; }
.list-card ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.list-card li + li { margin-top: 10px; }
.list-card li strong { color: var(--ink); }
.prompts { margin-top: 28px; }
.prompts h2 { font-size: 28px; }
.prompt { margin-top: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink-2); }
.prompt::before { content: "→ "; color: var(--rose); }
.unlock-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 22px; background: var(--ink); color: #F3E9DF; border-radius: var(--r); }
.unlock-box .eyebrow { color: #E8B9AE; }
.unlock-box h2 { color: #FFF8F0; font-size: 26px; margin-top: 8px; }
.unlock-box p { color: #C9B9B2; font-size: 13px; margin-top: 8px; max-width: 48ch; }
.unlock-box .btn.primary { background: #F3E9DF; color: var(--ink); }
.report-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.disclaimer { margin-top: 24px; color: var(--muted); font-size: 11.5px; line-height: 1.6; max-width: 74ch; }

/* ------------------------------------------------------------------- guide */
.guide { max-width: 800px; margin: 0 auto; }
.guide-head { margin-bottom: 26px; }
.guide-head h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 10px; }
.guide-head p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.guide-section { padding: 22px 0; border-top: 1px solid var(--line); }
.guide-section h2 { font-size: 26px; }
.guide-section p { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.guide-section ol { margin: 12px 0 0 20px; padding: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.guide-section details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.guide-section summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.guide-section details p { margin-top: 6px; font-size: 13px; }
.guide-section .link { margin-top: 12px; }
.guide-foot { margin-top: 28px; color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------------- modal */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(520px, calc(100vw - 28px));
  max-height: 90vh;
  margin: auto;
}
.modal::backdrop { background: rgba(36, 26, 34, 0.4); backdrop-filter: blur(5px); }
.modal-card {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 30px);
  box-shadow: var(--shadow-md);
  max-height: 88vh;
  overflow: auto;
}
.modal-head h2 { font-size: 28px; margin-top: 8px; }
.modal-lede { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
.code-input { margin-top: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ footer */
.legal {
  flex: none;
  margin-top: auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.offline {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 45;
  background: var(--ink);
  color: #FFF8F0;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  background: var(--ink);
  color: #FFF8F0;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  .topbar { height: 58px; padding: 0 14px; gap: 8px; }
  .top-actions { gap: 3px; }
  .lang-trigger { padding: 5px 7px; }
  .brand-word { font-size: 12.5px; letter-spacing: 0.14em; }
  .brand-tag { font-size: 8px; }
  .nav-btn { font-size: 12px; padding: 8px 7px; }
  .nav-unlock { font-size: 11.5px; padding: 6px 9px; }
  #app { padding: 22px 16px 30px; }
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-photo { order: 2; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-actions .btn { width: 100%; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-art { height: 200px; }
  .area-choice-grid { grid-template-columns: 1fr; }
  .dims-grid, .report-two { grid-template-columns: 1fr; }
  .radar-panel { grid-template-columns: 1fr; }
  .radar { max-width: 260px; }
  .area-head { gap: 10px; }
  .area-score > strong { font-size: 32px; }
  .report-score { flex-direction: column; align-items: flex-start; }
  .score-ring { width: 108px; height: 108px; }
  .score-ring span { font-size: 30px; }
  .likert { gap: 5px; }
  .likert-btn { min-height: 66px; border-radius: 11px; }
  .likert-btn b { font-size: 17px; }
  .likert-btn span { font-size: 8.5px; }
  .flow-actions.between .btn { flex: 1; }
  .handoff-card { border-radius: 22px; }
  .unlock-box { flex-direction: column; align-items: flex-start; }
  .report-head h1 { font-size: 40px; }
  .report-score h2 { font-size: 24px; }
  .legal { font-size: 9.5px; padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 430px) {
  .brand-tag { display: none; }
  .nav-btn { font-size: 11.5px; padding: 7px 6px; }
  .nav-unlock { font-size: 11px; padding: 5px 8px; }
}

@media (max-width: 380px) {
  .brand-word { display: none; }
  .likert-btn span { display: none; }
  .likert-btn b { font-size: 20px; }
}

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

@media print {
  body { background: #fff; padding: 0; }
  body::before, .topbar, .legal, .toast, .offline, .report-top, .report-actions, .unlock-box, .back { display: none !important; }
  #app { width: 100%; padding: 0; }
  .report { max-width: none; }
  .report-score, .dim-card, .list-card, .prompt { box-shadow: none; break-inside: avoid; }
  .dim-card.locked { display: none; }
}
