:root {
  --navy: #091a2f;
  --navy-2: #102842;
  --ink: #102136;
  --muted: #68778a;
  --paper: #f7f4ee;
  --white: #fffefa;
  --gold: #d9a441;
  --gold-soft: #f0d797;
  --line: #dfe4e8;
  --success: #2b7a66;
  --danger: #a44d49;
  --shadow: 0 26px 70px rgba(13, 31, 51, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "DM Sans", sans-serif; background: radial-gradient(circle at 10% 10%, #fff 0, transparent 28%), var(--paper); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: .42; }
.ambient-one { width: 28rem; height: 28rem; right: -14rem; top: -10rem; border: 1px solid rgba(217,164,65,.28); }
.ambient-two { width: 18rem; height: 18rem; left: -10rem; bottom: -8rem; background: rgba(16,40,66,.05); }

.topbar { width: min(1180px, calc(100% - 40px)); margin: 0 auto; height: 94px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.church-logo { display:block; width:190px; height:auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand-mark i { width: 3px; border-radius: 10px; background: var(--gold); display: block; }
.brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 19px; }.brand-mark i:nth-child(3) { height: 14px; }
.brand strong, .brand small { display: block; }.brand strong { font-size: .94rem; }.brand small { color: var(--muted); font-size: .75rem; margin-top: 1px; }
.quiet-button { border: 0; background: transparent; color: var(--muted); padding: 9px 0; font-weight: 600; border-bottom: 1px solid transparent; }
.quiet-button:hover { color: var(--navy); border-color: var(--gold); }

.app-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 164px); margin: 0 auto; display: grid; place-items: center; position: relative; z-index: 1; }
.welcome { padding: 68px 7vw 70px 0; align-self: center; }
.app-shell:has(.welcome) { grid-template-columns: 1.08fr .92fr; }
.eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .12em; text-transform: uppercase; color: #78602e; font-weight: 700; font-size: .75rem; }
.eyebrow span { width: 32px; height: 2px; background: var(--gold); }
h1 { font-family: "Newsreader", serif; font-weight: 600; font-size: clamp(3.4rem, 6vw, 6rem); line-height: .94; letter-spacing: -.045em; color: var(--navy); margin: 24px 0; max-width: 700px; }
h1 .title-line { display:block; white-space:nowrap; font-size:.64em; line-height:1.02; letter-spacing:-.035em; }
h1 em { color: var(--gold); font-weight: 500; display:block; }
.lead { max-width: 590px; font-size: 1.12rem; line-height: 1.72; color: #526174; }
.info-row { display: flex; gap: 38px; margin: 34px 0; }
.info-row div { display: flex; flex-direction: column; border-left: 1px solid #d6d4ce; padding-left: 14px; }
.info-row b { font-family: "Newsreader", serif; font-size: 1.45rem; line-height: 1; color: var(--navy); }.info-row span { color: var(--muted); font-size: .78rem; margin-top: 5px; }
.primary-button { border: 0; border-radius: 6px; background: var(--navy); color: white; padding: 16px 20px; min-width: 224px; display: inline-flex; justify-content: space-between; align-items: center; font-weight: 700; box-shadow: 0 10px 30px rgba(9,26,47,.18); transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #123454; }.primary-button span { color: var(--gold-soft); font-size: 1.25rem; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.reassurance { color: #7b8793; font-size: .78rem; margin-top: 17px; }

.visual-panel { min-height: 610px; width: 100%; height: calc(100vh - 164px); max-height: 720px; border-radius: 26px; background: linear-gradient(145deg, #102d4b, #071523); position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.visual-panel:before { content: "♪"; position: absolute; color: rgba(255,255,255,.025); font-family: serif; font-size: 34rem; right: -4rem; bottom: -11rem; transform: rotate(-7deg); }
.orbit { position: absolute; border: 1px solid rgba(217,164,65,.2); border-radius: 50%; }.orbit-one { width: 490px; height: 490px; }.orbit-two { width: 350px; height: 350px; border-style: dashed; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sound-card { width: min(380px, 78%); padding: 42px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); border-radius: 18px; position: relative; z-index: 1; color: white; }
.sound-label { color: var(--gold-soft); letter-spacing: .16em; font-size: .65rem; font-weight: 700; }
.wave { height: 92px; display: flex; gap: 7px; align-items: center; margin: 28px 0; }.wave i { flex: 1; max-width: 7px; margin: auto; background: var(--gold); border-radius: 8px; animation: pulse 1.6s ease-in-out infinite; }.wave i:nth-child(1),.wave i:nth-child(9){height:20%}.wave i:nth-child(2),.wave i:nth-child(8){height:42%;animation-delay:.1s}.wave i:nth-child(3),.wave i:nth-child(7){height:67%;animation-delay:.2s}.wave i:nth-child(4),.wave i:nth-child(6){height:95%;animation-delay:.3s}.wave i:nth-child(5){height:55%;animation-delay:.4s}
@keyframes pulse { 50% { transform: scaleY(.58); opacity: .62; } }
blockquote { font-family: "Newsreader", serif; font-size: 1.55rem; line-height: 1.3; margin: 0 0 14px; } .sound-card small { color: #b9c4cf; }

.test-frame, .evaluator-frame { width: min(820px, 100%); padding: 30px 0 64px; }
.progress-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.progress-head span { font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-weight: 700; }.progress-head b { font-family: "Newsreader",serif; color: var(--navy); font-size: 1.15rem; }
.progress-track { height: 5px; background: #dedfdc; border-radius: 10px; overflow: hidden; margin-bottom: 28px; }.progress-track i { display: block; height: 100%; background: var(--gold); border-radius: inherit; transition: width .35s ease; }
.question-card { border: 1px solid rgba(16,33,54,.08); border-radius: 18px; background: rgba(255,254,250,.92); box-shadow: 0 20px 60px rgba(19,35,54,.08); padding: clamp(26px, 5vw, 54px); min-height: 430px; }
.step-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: #98752f; font-weight: 700; margin-bottom: 12px; }
.question-card h2, .evaluator-frame h2 { font-family: "Newsreader", serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; color: var(--navy); margin: 0 0 12px; letter-spacing: -.025em; }.question-card > p { color: var(--muted); line-height: 1.6; margin: 0 0 30px; }
.field { margin: 22px 0; }.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; }.field input,.field select,.field textarea.long-answer { width: 100%; border: 1px solid #cfd6dc; background: white; border-radius: 7px; padding: 14px 15px; color: var(--ink); outline: none; }.field input:focus,.field select:focus,.field textarea.long-answer:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.12); }.field textarea.long-answer { min-height:170px; resize:vertical; line-height:1.55; }.field small { display:block; color:var(--muted); margin-top:7px; }
.option-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-top: 26px; }.option { position: relative; }.option input { position: absolute; opacity: 0; }.option label { display: flex; align-items: center; min-height: 62px; padding: 14px 16px; border: 1px solid #d8dde1; background: white; border-radius: 8px; font-weight: 600; transition: .15s; }.option label:before { content: ""; width: 18px; height: 18px; border: 1px solid #b8c1c9; border-radius: 50%; margin-right: 12px; flex: 0 0 auto; }.option input:checked + label { border-color: var(--gold); background: #fffbef; box-shadow: 0 0 0 1px var(--gold); }.option input:checked + label:before { border: 5px solid var(--navy); background: var(--gold); }.scale-grid { grid-template-columns:repeat(10,1fr); }.scale-grid .option label { justify-content:center; padding:12px 4px; min-height:52px; }.scale-grid .option label:before { display:none; }
.audio-box { border: 1px solid #d8dde1; border-radius: 10px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f8fafb; margin: 24px 0; }.play-button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--navy); color: white; font-size: 1.05rem; flex: 0 0 auto; }.audio-box div { flex: 1; }.audio-box b,.audio-box span { display:block; }.audio-box span { color: var(--muted); font-size: .82rem; margin-top:4px; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }.back-button { border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: 12px 0; }.next-button { border: 0; border-radius: 6px; background: var(--navy); color: white; font-weight: 700; padding: 13px 20px; min-width: 130px; }.next-button:disabled { opacity: .35; cursor:not-allowed; }
.error { color: var(--danger); font-size: .82rem; font-weight: 600; margin-top: 10px; }
.success-card { text-align: center; min-height: 460px; display: grid; place-items: center; }.success-icon { width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%; background: #e5f2ee; color: var(--success); display:grid; place-items:center; font-size: 2rem; }.success-card h2 { max-width: 560px; margin-inline:auto; }.success-card p { max-width: 540px; margin-inline:auto; }.success-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:24px; }
.success-icon.saving { animation: pulse 1.1s ease-in-out infinite; }
.success-icon.error-icon { background: #f7e7e5; color: var(--danger); }
.secondary-button { border:1px solid #cbd2d8; background:white; color:var(--navy); border-radius:6px; padding:13px 18px; font-weight:700; }

.evaluator-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }.result-list { display:grid; gap:12px; }.result-card { background:var(--white); border:1px solid #dfe3e5; border-radius:10px; padding:18px 20px; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; }.result-card h3 { margin:0 0 4px; color:var(--navy); }.result-card p { margin:0; color:var(--muted); font-size:.84rem; }.score { font-family:"Newsreader",serif; font-size:2rem; color:var(--navy); }.empty { border:1px dashed #c9cfd4; padding:44px; text-align:center; border-radius:12px; color:var(--muted); }

footer { width:min(1180px,calc(100% - 40px)); height:70px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; color:#87919c; font-size:.72rem; position:relative; z-index:1; }

@media (max-width: 850px) { .app-shell:has(.welcome) { grid-template-columns:1fr; }.visual-panel { display:none; }.welcome { padding:42px 0 64px; }.welcome h1 { font-size:clamp(3.3rem,14vw,5.2rem); }.question-card { min-height:0; }.option-grid { grid-template-columns:1fr; }.scale-grid { grid-template-columns:repeat(5,1fr); } }
@media (max-width: 520px) { .topbar,.app-shell,footer { width:calc(100% - 28px); }.topbar { height:78px; }.quiet-button { font-size:.78rem; }.brand strong { font-size:.82rem; }.church-logo { width:160px; }.info-row { gap:16px; justify-content:space-between; }.info-row div { padding-left:9px; }.welcome { padding-top:25px; }.welcome h1 .title-line { font-size:.62em; }.question-card { padding:25px 20px; border-radius:13px; }.audio-box { align-items:flex-start; }.result-card { grid-template-columns:1fr; }.score { font-size:1.45rem; } footer span:first-child { display:none; } footer { justify-content:center; } }
@media (prefers-reduced-motion: reduce) { *,*:before,*:after { animation:none!important; transition:none!important; } }
