:root{
  --paper:#f4f1ea;--ink:#12201d;--muted:#66716d;--moss:#748b80;--line:#d4d0c6;--soft:#e9e5dc;--white:#fffdf9;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#eeece5;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.4}
[hidden]{display:none!important}
.shell{min-height:100svh;display:grid;place-items:center;padding:0}
.phone{position:relative;width:min(100%,780px);min-height:100svh;background:var(--paper);overflow:hidden;display:flex;flex-direction:column}
.topbar{height:70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:env(safe-area-inset-top) 24px 0;border-bottom:0;flex:none}
.brand,.quiet-button{border:0;background:transparent;font-weight:850;letter-spacing:.17em;font-size:14px;padding:12px 0}
.brand{text-align:left}.quiet-button{text-align:right;font-size:18px;letter-spacing:.2em;color:#65706c}
.depth{display:flex;gap:7px;align-items:center;justify-content:center}.depth i{display:block;width:7px;height:7px;border-radius:50%;background:#d4d0c6}.depth i.on{background:var(--ink)}
.screen{flex:1;display:flex;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.start-view,.journey-view,.threshold-view,.map-view,.error-view,.thinking-view{flex:1;display:flex;flex-direction:column;width:100%;max-width:680px;margin:0 auto;padding:24px 24px calc(28px + env(safe-area-inset-bottom))}
.start-view .spacer{flex:1;min-height:80px}.spacer.small{min-height:40px}
.kicker{margin:0 0 16px;text-transform:uppercase;letter-spacing:.22em;font-weight:800;font-size:12px;color:var(--moss)}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em}
h1{font-size:clamp(48px,12vw,76px);line-height:.96;margin:0 0 22px;max-width:620px}
h2{font-size:clamp(38px,9vw,58px);line-height:1.01;margin:0 0 20px}
.intro{font-size:18px;line-height:1.45;color:#4c5854;margin:0 0 34px}
.tag-box{border-bottom:1px solid #8f928b;padding-bottom:8px}.tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.tag{display:inline-flex;align-items:center;gap:7px;background:var(--soft);padding:7px 9px 7px 11px;border-radius:999px;font-size:13px}.tag button{border:0;background:transparent;color:#6c7471;font-size:17px;line-height:1;padding:0}
.tag-entry-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.tag-entry-row input{border:0;background:transparent;outline:none;padding:10px 2px;font-size:19px;min-width:0}.tag-entry-row input::placeholder{color:#a1a39e}.add-tag{width:46px;height:46px;border-radius:50%;border:0;background:var(--ink);color:#fff;font-size:26px;line-height:1}
.micro{font-size:12px;color:#747c79;margin:10px 0}.micro.centre{text-align:center;margin:12px 0 0}
.intent-wrap{margin-top:28px}.soft-label{font-size:13px;color:#65706c;margin:0 0 11px}.pills,.quick-options,.steer-row{display:flex;gap:8px;flex-wrap:wrap}.pills button,.quick-options button,.steer-row button{border:0;border-radius:999px;background:#e9e5dc;padding:9px 12px;font-size:12px;color:#4f5956}.pills button.selected{background:#cfd8d1;color:#183028;font-weight:700}.hidden{display:none!important}
.bottom-action{margin-top:auto;padding-top:28px;display:grid;gap:9px}.primary,.secondary{border:0;border-radius:999px;padding:17px 22px;font-weight:800;font-size:15px}.primary{background:var(--ink);color:white}.secondary{background:#e5e2da;color:var(--ink)}.wide{width:100%}.text-link{border:0;background:transparent;padding:12px 0;color:#64706c;font-size:13px}.text-link.left{text-align:left}.text-link:hover{color:var(--ink)}
.thinking-view{justify-content:center}.center-stack{text-align:center;margin-top:-8vh}.pulse-mark{display:flex;justify-content:center;gap:7px;margin-bottom:18px}.pulse-mark span{width:9px;height:9px;background:var(--moss);border-radius:50%;animation:pulse 1.2s infinite ease-in-out}.pulse-mark span:nth-child(2){animation-delay:.12s}.pulse-mark span:nth-child(3){animation-delay:.24s}@keyframes pulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.center-stack p{font-size:14px;color:#64706c;max-width:300px;margin:0 auto;line-height:1.45}
.journey-view,.threshold-view{padding-top:clamp(48px,8vh,92px)}
.threads-view h2{max-width:600px}.thread-list{display:grid;gap:12px;margin-bottom:10px}.thread{border:1px solid var(--line);background:rgba(255,255,255,.50);border-radius:18px;padding:18px;text-align:left;transition:.15s ease}.thread:active{transform:scale(.992)}.thread strong{display:block;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:25px;line-height:1.06;margin-bottom:8px}.thread span{display:block;font-size:14px;line-height:1.48;color:#53605c}.thread em{display:block;font-style:normal;font-weight:800;font-size:11px;margin-top:13px;color:var(--moss);text-transform:uppercase;letter-spacing:.12em}
.threshold-view h2{font-size:clamp(42px,10vw,64px);max-width:620px}.threshold-spark{font-size:19px;line-height:1.48;color:#34423e;margin:0 0 20px;max-width:590px}.threshold-reveal{border-left:2px solid #a6b4ac;padding:3px 0 3px 16px;font-family:Georgia,"Times New Roman",serif;font-size:23px;line-height:1.27;color:#21302c;max-width:600px}.threshold-bridge{font-size:14px;line-height:1.52;color:#67716e;margin:26px 0 0;max-width:570px}.threshold-actions{margin-top:auto}
.question-view,.reveal-view{padding-top:clamp(38px,7vh,78px)}.signal{font-size:16px;line-height:1.55;color:#56625e;margin:0 0 18px;max-width:600px}.question{font-size:clamp(34px,8vw,50px);line-height:1.02;margin:0 0 20px;max-width:630px}.question.long{font-size:clamp(30px,7vw,43px)}.question.xlong{font-size:clamp(27px,6.2vw,38px)}
.quick-options{margin:0 0 14px}.quick-options button{background:#e5e1d8}.steer-row{margin:5px 0 14px}.steer-row button{background:transparent;border:1px solid #d4d0c6;padding:8px 10px;color:#64706c}.steer-row button:active{background:#e8e4db;color:var(--ink)}
.answer-box{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:clamp(18px,4vh,34px)}.answer-box textarea{resize:none;border:1px solid #b8bbb4;background:#fffdf9;border-radius:18px;padding:14px 15px;outline:none;line-height:1.45;font-size:16px;min-height:88px;max-height:180px}.answer-box textarea:focus{border-color:#7e8883}.send{width:50px;height:50px;border-radius:50%;border:0;background:var(--ink);color:white;font-size:24px;display:grid;place-items:center}
.reveal-view h2{font-size:clamp(37px,8.2vw,52px);margin-bottom:18px}.reveal-body{font-size:18px;line-height:1.56;color:#374642;margin:0 0 17px;max-width:610px}.reveal-edge{font-size:14px;line-height:1.5;color:#65706c;background:#e9e5dc;border-radius:15px;padding:13px 14px;margin-bottom:20px;max-width:600px}.reveal-question{font-size:clamp(27px,6.4vw,37px);line-height:1.07;margin:0 0 15px;max-width:620px}
.map-view{padding-top:clamp(40px,7vh,74px)}.map-proposition{font-family:Georgia,"Times New Roman",serif;font-size:24px;line-height:1.3;margin:0 0 24px;color:#253530}.map-sections{display:grid;gap:0}.map-section{border-top:1px solid var(--line);padding:15px 0}.map-section b{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:10px;color:var(--moss);margin-bottom:6px}.map-section p{margin:0;font-size:15px;line-height:1.52;color:#43504c}.map-section.critical p{color:#675e55}.map-actions{display:grid;gap:9px;padding-top:24px}
.demo-view{padding-top:clamp(38px,7vh,74px)}.demo-beat{font-size:16px;line-height:1.55;color:#4d5854;margin:0 0 16px}.demo-spark{font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1.12;margin:0 0 18px}.demo-answer{background:#eae6dc;border-radius:15px;padding:14px 15px;font-size:14px;line-height:1.45;color:#4f5956}.demo-map{display:grid;gap:10px}.demo-map div{border-top:1px solid var(--line);padding-top:10px}.demo-map b{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--moss)}.demo-map p{margin:5px 0 0;line-height:1.45;font-size:14px}
.error-view{justify-content:center}.error-view h2{max-width:560px}.error-view p:not(.kicker){font-size:16px;color:#66716d;line-height:1.5;margin:0 0 24px}
.menu-sheet{position:fixed;inset:0;background:rgba(24,31,29,.26);display:grid;place-items:end center;z-index:30}.menu-card{width:min(100%,680px);background:#fffdf9;border-radius:24px 24px 0 0;padding:17px 22px calc(18px + env(safe-area-inset-bottom));display:grid}.menu-card button{border:0;background:transparent;text-align:left;padding:15px 4px;font-size:16px}
.owner-bar{position:fixed;z-index:20;right:12px;bottom:12px;background:#15221f;color:#fff;border-radius:999px;padding:7px 8px 7px 11px;display:flex;align-items:center;gap:5px;box-shadow:0 8px 28px rgba(0,0,0,.14)}.owner-bar span{font-size:9px;letter-spacing:.12em;font-weight:800;opacity:.7}.owner-bar button{border:0;border-radius:999px;padding:6px 8px;font-size:9px;background:#34423e;color:#fff}.owner-bar button.active{background:#f1eee6;color:#17231f}
.view-enter{animation:enter .22s ease-out}@keyframes enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:760px){
  .shell{padding:12px}.phone{min-height:calc(100svh - 24px);height:calc(100svh - 24px);border:1px solid #d3cfc5;border-radius:48px;box-shadow:0 18px 55px rgba(43,48,45,.10)}
  .topbar{padding-left:32px;padding-right:32px}.start-view,.journey-view,.threshold-view,.map-view,.error-view,.thinking-view{padding-left:38px;padding-right:38px}
}
@media(max-height:720px){
  .journey-view,.threshold-view{padding-top:30px}.question-view,.reveal-view{padding-top:24px}.start-view .spacer{min-height:32px}.threshold-view h2{font-size:42px}.question{font-size:34px}.question.long{font-size:30px}.question.xlong{font-size:27px}
}
