:root {
  --green: #85c438;
  --green-dark: #4e7f20;
  --ink: #293128;
  --muted: #687164;
  --paper: #f5f7ef;
  --white: #ffffff;
  --line: #dce5d2;
  --soft: #edf5e3;
  --gold: #d9a82e;
  --danger: #a44231;
  --shadow: 0 24px 70px rgba(58, 80, 42, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(133,196,56,.16), transparent 28rem),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.logo-button { display: inline-flex; border: 0; padding: 0; background: transparent; }
.logo-button img { width: min(245px, 52vw); height: 58px; object-fit: contain; object-position: left center; }
.header-chip {
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(58,80,42,.08);
  padding: 10px 14px;
  color: #596653;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#app, .admin-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 160px); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; padding: 64px 0; }
.eyebrow { margin: 0 0 14px; color: var(--green-dark); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 21px; }
.lead { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.privacy-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.privacy-pills span { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.76); padding: 9px 13px; color: #4e5a49; font-size: 13px; font-weight: 700; }

.card { border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); padding: 30px; }
.card p { color: var(--muted); line-height: 1.65; }
.stage-grid, .choice-grid { display: grid; gap: 12px; margin-top: 24px; }
.stage-button, .menu-card, .study-card, .answer-button {
  width: 100%; border: 2px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); text-align: left; transition: .18s ease;
}
.stage-button { min-height: 86px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stage-button:hover, .stage-button:focus-visible, .menu-card:hover, .study-card:hover, .answer-button:hover { border-color: var(--green); background: #f8fcef; transform: translateY(-1px); }
.stage-button strong, .menu-card strong { display: block; font-size: 18px; }
.stage-button small, .menu-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.arrow { color: var(--green-dark); font-size: 25px; font-weight: 800; }
.privacy-note { margin: 20px 0 0; text-align: center; color: #7b8477; font-size: 12px; line-height: 1.6; }

.screen { max-width: 920px; margin: 0 auto; padding: 46px 0 70px; }
.screen-header { margin-bottom: 26px; }
.screen-header p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.stepper { display: flex; gap: 7px; margin-bottom: 22px; }
.stepper span { flex: 1; height: 6px; border-radius: 99px; background: #dce4d4; }
.stepper span.active { background: var(--green); }
.section-label { margin: 0 0 9px; color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.back-button { border: 0; background: transparent; color: var(--green-dark); padding: 8px 0; margin-bottom: 18px; font-weight: 800; }
.primary-button, .secondary-button {
  min-height: 50px; border-radius: 14px; padding: 12px 20px; font-weight: 800; transition: .18s ease;
}
.primary-button { border: 0; background: var(--green); color: #17210f; box-shadow: 0 12px 25px rgba(92,145,35,.22); }
.primary-button:hover { background: #93d544; transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.secondary-button { border: 2px solid var(--line); background: white; color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-card { min-height: 210px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-card .menu-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--green-dark); font-size: 24px; font-weight: 900; }
.menu-card strong { margin-top: 24px; font-size: 23px; }
.study-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.study-card { padding: 22px; }
.study-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--green-dark); font-weight: 900; }
.study-card h3 { margin-top: 16px; }
.study-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.study-card:last-child { grid-column: 1 / -1; }

.passage-box { margin: 22px 0; border-left: 5px solid var(--green); border-radius: 0 16px 16px 0; background: var(--soft); padding: 18px 20px; }
.passage-box strong { display: block; margin-bottom: 5px; color: var(--green-dark); }
.question-card { border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 15px 45px rgba(58,80,42,.09); padding: clamp(22px, 5vw, 38px); }
.question-count { color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.question-card h2 { margin-top: 12px; font-size: clamp(23px, 4vw, 34px); }
.answer-button { min-height: 58px; padding: 15px 17px; display: flex; gap: 12px; align-items: flex-start; }
.answer-letter { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #edf0e9; font-weight: 900; }
.answer-button.selected { border-color: var(--green); background: var(--soft); }
.answer-button.correct { border-color: #5a9c27; background: #eff9e6; }
.answer-button.incorrect { border-color: #cf8b7e; background: #fff2ef; }
.feedback { margin-top: 18px; border-radius: 16px; background: #f3f6ef; padding: 16px 18px; line-height: 1.6; }
.feedback strong { color: var(--green-dark); }

.discussion-list { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; counter-reset: discuss; }
.discussion-list li { counter-increment: discuss; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf8; padding: 14px; line-height: 1.5; }
.discussion-list li::before { content: counter(discuss); flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--green-dark); font-weight: 900; }
.discovery { border-radius: 22px; background: #303a2e; color: white; padding: 24px; }
.discovery p { margin: 8px 0 0; color: #dfe8da; font-size: 17px; line-height: 1.7; }
label { display: block; margin: 18px 0 8px; font-weight: 800; }
input, textarea { width: 100%; border: 2px solid var(--line); border-radius: 13px; background: white; color: var(--ink); padding: 13px 14px; outline: none; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(133,196,56,.13); }
textarea { min-height: 110px; resize: vertical; }
.form-message { min-height: 22px; font-size: 13px; }
.success { color: #437d21 !important; }
.error { color: var(--danger) !important; }

.scale-grid { display: grid; gap: 10px; margin-top: 24px; }
.scale-button { width: 100%; min-height: 54px; border: 2px solid var(--line); border-radius: 15px; background: white; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-weight: 700; }
.scale-button:hover { border-color: var(--green); background: var(--soft); }
.scale-number { color: var(--green-dark); font-size: 12px; }

.result-hero { border-radius: 28px; background: #303a2e; color: white; padding: clamp(26px, 6vw, 48px); box-shadow: var(--shadow); }
.result-hero .eyebrow { color: #a9dc68; }
.result-hero h1 { font-size: clamp(35px, 7vw, 64px); }
.result-hero p { color: #dce7d7; font-size: 17px; line-height: 1.7; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.result-card { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 23px; }
.result-card p { color: var(--muted); line-height: 1.6; }
.score-list { display: grid; gap: 13px; margin-top: 20px; }
.score-row { display: grid; grid-template-columns: 115px 1fr 43px; gap: 10px; align-items: center; font-size: 13px; }
.score-track { height: 10px; border-radius: 999px; background: #e7ede1; overflow: hidden; }
.score-fill { height: 100%; border-radius: inherit; background: var(--green); }
.save-status { border-radius: 14px; background: var(--soft); padding: 13px 16px; color: #4d6341; font-weight: 700; }
.whatsapp { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; background: #25d366; color: #11381f; }

.admin-shell { max-width: 930px; padding: 50px 0 80px; }
.admin-login { max-width: 520px; margin: 0 auto; }
.admin-login h1 { font-size: clamp(34px, 6vw, 52px); }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 22px; }
.stat-card strong { display: block; font-size: 36px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.bar-list { display: grid; gap: 14px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 45px; align-items: center; gap: 12px; }

footer { width: min(1120px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #798274; font-size: 12px; }
.admin-link { opacity: .6; }

@media (max-width: 760px) {
  .site-header { min-height: 70px; }
  .logo-button img { height: 46px; }
  .header-chip { max-width: 130px; text-align: center; font-size: 9px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 42px 0 58px; }
  .menu-grid, .study-list, .result-grid { grid-template-columns: 1fr; }
  .study-card:last-child { grid-column: auto; }
  .card { padding: 22px; }
  .screen { padding-top: 30px; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .score-row, .bar-row { grid-template-columns: 95px 1fr 38px; }
  footer { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
