:root{
  --navy:#101722; --storm:#202B35; --bronze:#B68B58; --stone:#D4D0C5;
  --teal:#45616A; --obsidian:#080B10; --card:#141E2A; --line:#2A3644;
  --muted:#9AA7B2; --danger:#C0563B;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{color-scheme:dark;}
body{
  background:var(--obsidian);
  color:var(--stone);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.shell{
  max-width:430px; margin:0 auto; min-height:100dvh;
  background:linear-gradient(180deg,#0C1420 0%, var(--navy) 30%, #0A0F16 100%);
  position:relative; box-shadow:0 0 60px rgba(0,0,0,.6);
}
[hidden]{display:none !important;}
.view{padding:22px 20px 110px; animation:fade .25s ease;}
.view.overlay{position:absolute; inset:0; overflow-y:auto; background:linear-gradient(180deg,#0C1420, var(--navy) 40%); z-index:5;}
@keyframes fade{from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;}}

/* ---------- Cover ---------- */
.cover-view{min-height:100dvh; display:flex; align-items:center; justify-content:center; padding:40px 28px;
  background:radial-gradient(ellipse at 50% 18%, rgba(69,97,106,.35), transparent 60%), linear-gradient(180deg,#0A0F16, var(--navy));}
.cover-inner{text-align:center; width:100%;}
.emblem svg{width:96px; height:96px;}
.brand-name{font-family:'Cormorant Garamond',serif; font-size:42px; letter-spacing:.22em; color:var(--bronze); margin-top:14px; font-weight:600;}
.brand-sub{letter-spacing:.55em; font-size:14px; color:var(--stone); margin-top:2px; text-indent:.55em;}
.brand-tag{letter-spacing:.3em; font-size:11px; color:var(--teal); margin-top:12px; font-weight:600;}
.cover-line{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:23px; line-height:1.35; margin-top:34px; color:#EDE8DC;}
.welcome-logo{width:110px; height:110px; border-radius:50%; object-fit:cover; border:2px solid var(--bronze); display:block; margin:0 auto 16px;}
.welcome-body{color:var(--stone); font-size:16px; line-height:1.65; max-width:520px; margin:10px auto;}
.welcome-quote{font-family:'Cormorant Garamond',serif; font-style:italic; color:var(--bronze); font-size:20px; margin:18px 0 4px;}
.welcome-sign{font-size:11px; letter-spacing:2px; color:var(--stone); opacity:.85; margin-bottom:22px;}
.cover-line2{color:var(--muted); margin-top:8px; font-size:14px;}
.cover-name{margin:30px 0 16px; text-align:left;}
.cover-code{margin:0 0 16px; text-align:left;}
.cover-code label{font-size:12px; color:var(--muted); display:block; margin-bottom:6px;}
.code-note{font-size:12px; color:var(--muted); opacity:.8; margin-top:8px;}
.code-error{font-size:13px; color:#E08A8A; margin-top:8px;}
.cover-name label{font-size:12px; color:var(--muted); display:block; margin-bottom:6px;}
.cover-name label span{opacity:.75;}
input[type="text"], textarea{
  width:100%; background:var(--storm); border:1px solid var(--line); border-radius:10px;
  color:var(--stone); padding:12px 14px; font-size:15px; font-family:inherit;
}
input[type="text"]:focus, textarea:focus{outline:none; border-color:var(--bronze);}
textarea{resize:vertical; line-height:1.5;}
.btn-bronze{
  background:linear-gradient(180deg,#C79A67, var(--bronze)); color:#14100A; border:none;
  padding:15px 22px; border-radius:12px; font-weight:700; letter-spacing:.08em; font-size:14px;
  cursor:pointer; width:100%;
}
.btn-bronze:active{transform:scale(.99);}
.btn-bronze.full{margin-top:14px;}
.btn-ghost{background:none; border:none; color:var(--muted); padding:12px; cursor:pointer; font-size:13px; letter-spacing:.04em; width:100%;}
.btn-ghost:hover{color:var(--stone);}
.btn-danger{background:none; border:1px solid var(--danger); color:#E08A72; padding:13px; border-radius:12px; width:100%; font-weight:600; letter-spacing:.05em; cursor:pointer; font-size:13px;}

/* ---------- Heads & cards ---------- */
.screen-head{margin:8px 0 18px;}
.eyebrow{letter-spacing:.28em; font-size:11px; color:var(--bronze); font-weight:700;}
.screen-head h2{font-family:'Cormorant Garamond',serif; font-size:32px; font-weight:600; line-height:1.15; margin-top:6px; color:#F0EBDF;}
.head-sub{color:var(--muted); margin-top:6px; font-size:14px; line-height:1.5;}
.card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; margin-bottom:16px;}
.card h3{font-family:'Cormorant Garamond',serif; font-size:23px; font-weight:600; color:#F0EBDF; margin:4px 0 8px;}
.card p{line-height:1.6; font-size:14.5px; margin-bottom:8px;}
.card-eyebrow{letter-spacing:.24em; font-size:10.5px; color:var(--bronze); font-weight:700;}
.muted{color:var(--muted);} .small{font-size:12.5px;} .center{text-align:center;}
.section-title{font-family:'Cormorant Garamond',serif; font-size:22px; color:#F0EBDF; margin:22px 0 12px; letter-spacing:.02em;}

/* ---------- Check-in ---------- */
.step-label{font-weight:600; font-size:14px; margin:18px 0 8px; color:#F0EBDF;}
.step-label span{color:var(--bronze); font-family:'Cormorant Garamond',serif; font-size:17px; margin-right:6px;}
.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{background:var(--storm); border:1px solid var(--line); color:var(--stone); padding:9px 14px; border-radius:999px; cursor:pointer; font-size:13.5px;}
.chip.on{background:var(--bronze); color:#14100A; border-color:var(--bronze); font-weight:600;}
.big-question{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:21px; line-height:1.4; color:#EDE8DC; margin-bottom:10px;}
.field-label{display:block; font-size:12.5px; color:var(--muted); margin:12px 0 6px;}
.form-note{color:#E0A58F; font-size:13px; margin-top:10px;}
.done-mark{font-size:28px; color:var(--bronze);}
.phase-track{height:6px; background:var(--storm); border-radius:99px; margin:12px 0 8px; overflow:hidden;}
.phase-fill{height:100%; background:linear-gradient(90deg, var(--teal), var(--bronze)); border-radius:99px; transition:width .4s;}
.phase-list{list-style:none; margin-top:10px;}
.phase-list li{font-size:13px; color:var(--muted); padding:5px 0; border-top:1px solid var(--line);}
.phase-list li strong{color:var(--stone); letter-spacing:.06em;}

/* ---------- Pillars ---------- */
.pillar-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.pillar-card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px 14px; cursor:pointer; text-align:left; color:var(--stone); width:100%;}
.pillar-card:active{border-color:var(--bronze);}
.pillar-card h4{font-family:'Cormorant Garamond',serif; font-size:21px; letter-spacing:.1em; color:#F0EBDF;}
.pillar-card p{color:var(--teal); font-size:12px; letter-spacing:.05em; margin-top:3px; font-weight:600;}
.pillar-card .p-sub{color:var(--muted); font-weight:400; letter-spacing:0; margin-top:8px; line-height:1.45; font-size:12.5px;}
.practice-row{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:10px;}
.practice-row h4{font-size:15px; color:#F0EBDF; margin-bottom:3px;}
.practice-row p{color:var(--muted); font-size:13.5px; line-height:1.55;}
.back-btn{background:none; border:none; color:var(--bronze); font-size:14px; cursor:pointer; padding:6px 0 14px; font-weight:600;}

/* ---------- Mirror ---------- */
.privacy-card{border-color:var(--bronze);}
.privacy-line{font-size:15px; line-height:1.6;}
.principles{margin:8px 0 0 18px;}
.principles li{font-size:14px; line-height:1.55; padding:5px 0; border-top:1px solid var(--line);}
.principles li:first-child{border-top:none;}
.safety-card{background:#1A1410; border-color:#3A2C1E;}
.journey-card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px 18px; margin-bottom:12px; cursor:pointer; width:100%; text-align:left; color:var(--stone);}
.journey-card h4{font-family:'Cormorant Garamond',serif; font-size:20px; letter-spacing:.06em; color:#F0EBDF;}
.journey-card .j-theme{color:var(--muted); font-size:13px; margin-top:2px; line-height:1.45;}
.journey-card .j-meta{display:flex; justify-content:space-between; align-items:center; margin-top:10px;}
.j-count{font-size:12px; color:var(--teal); font-weight:600; letter-spacing:.05em;}
.j-bar{flex:1; height:5px; background:var(--storm); border-radius:99px; margin-left:12px; overflow:hidden;}
.j-fill{height:100%; background:var(--bronze);}
.deeper{font-family:'Cormorant Garamond',serif; font-style:italic; color:var(--bronze); font-size:16.5px; margin-top:14px;}
.bio-title{color:var(--bronze); letter-spacing:2.5px; font-size:13px; font-weight:700; margin:14px 0 4px;}
.mod-icon{display:block; margin-bottom:8px;}
.mod-icon svg{width:27px; height:27px; stroke:var(--bronze); fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;}
.next-step{margin-top:16px; padding-top:14px; border-top:1px solid var(--line, #2A3644);}
.next-step p{margin:0 0 12px;}
.story p{margin:0 0 10px;}
.story p:last-child{margin-bottom:0;}
.btn-row{display:flex; gap:10px; margin-top:14px;}
.btn-row .btn-bronze{flex:1.4;} .btn-row .btn-ghost{flex:1; border:1px solid var(--line); border-radius:12px;}
.small-btn{width:auto !important; padding:8px 6px; font-size:12.5px;}
.sample-box{border-top:1px solid var(--line); margin-top:12px; padding-top:12px;}
.sample-box h5{color:var(--bronze); letter-spacing:.14em; font-size:11px; margin-bottom:6px;}

/* ---------- Brotherhood / Profile ---------- */
.founder-photo{width:100%; border-radius:16px; border:1px solid var(--line); margin-bottom:16px; display:block;}
.section-logo{display:block; width:150px; height:150px; object-fit:cover; border-radius:50%; border:1px solid var(--bronze); margin:4px auto 16px;}
.rules{list-style:none;}
.rules li{padding:8px 0; border-top:1px solid var(--line); font-size:14.5px; line-height:1.55;}
.rules li:first-child{border-top:none;}
.quote-card{text-align:center;}
.quote{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; color:#EDE8DC; line-height:1.4;}
.bio-card p{margin-bottom:10px;}
.crisis{border-left:3px solid var(--bronze); padding-left:12px;}

/* ---------- Progress ---------- */
.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:4px;}
.stat{text-align:center; margin-bottom:12px;}
.stat-num{font-family:'Cormorant Garamond',serif; font-size:38px; color:var(--bronze); line-height:1;}
.stat-label{font-size:12px; color:var(--muted); margin-top:6px; letter-spacing:.04em;}
.check-row{display:flex; align-items:center; gap:10px; margin:14px 0 4px; font-size:14px; cursor:pointer;}
.check-row input{width:19px; height:19px; accent-color:var(--bronze);}
.history{list-style:none;}
.history li{padding:9px 0; border-top:1px solid var(--line); font-size:13.5px; color:var(--muted); line-height:1.5;}
.history li:first-child{border-top:none;}
.history strong{color:var(--stone);}

/* ---------- Tab bar ---------- */
.tabbar{
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; display:flex; z-index:10;
  background:rgba(8,11,16,.96); border-top:1px solid var(--line);
  padding:8px 4px calc(8px + env(safe-area-inset-bottom));
}
.tab{flex:1; background:none; border:none; color:var(--muted); font-size:9.5px; letter-spacing:.08em; font-weight:600; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 0;}
.tab-ico{font-size:17px; line-height:1;}
.tab.active{color:var(--bronze);}

/* --- photo round 2 (2 Dec): gate hero, phase banner --- */
.cover-view{position:relative; overflow:hidden;}
.gate-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; opacity:.34;}
.cover-inner{position:relative; z-index:1;}
.phase-img{width:100%; display:block; border-radius:12px; margin-bottom:14px;}
