:root{
  --navy:#0c1a2e; --navy2:#12263f; --cream:#f7efdb; --cream2:#fdf8ec;
  --gold:#c39a3b; --gold2:#a37f27; --ink:#1d2733; --mut:#5c6672;
  --card:#ffffff; --line:#e5dcc4;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; padding:0}
body{
  font-family:"Avenir Next","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
  background:var(--navy); color:var(--ink);
}
.wrap{max-width:560px; margin:0 auto; background:var(--cream2); min-height:100vh;
      box-shadow:0 0 40px rgba(0,0,0,.45); display:flex; flex-direction:column}
header{
  background:var(--navy); color:var(--cream); padding:14px 20px 12px;
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  position:sticky; top:0; z-index:6;
}
header .brand{font-weight:800; letter-spacing:.14em; font-size:13px}
header .brand span{color:var(--gold)}
header .fmt{font-size:12px; letter-spacing:.22em; color:#cdb872; font-weight:700}
main{flex:1}
.view{display:none; animation:fade .25s ease}
.view.on{display:block}
@keyframes fade{from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none}}
.pad{padding:6px 20px 28px}
.kicker{letter-spacing:.28em; font-weight:800; color:var(--gold2); font-size:12px; margin:18px 0 4px}
.kicker.light{color:#cdb872}
h1{font-size:34px; line-height:1.08; margin:2px 0 8px; color:var(--navy); font-weight:850}
h2{font-size:22px; margin:14px 0 6px; color:var(--navy); font-weight:800}
h2.serif{font-family:Georgia,"Times New Roman",serif; line-height:1.35}
.view-title{margin-top:4px}
.sub{font-size:16px; color:var(--mut); margin:0 0 14px}
.rule{width:54px; height:3px; background:var(--gold); border-radius:2px; margin:18px 0}
p{font-size:16.5px; line-height:1.62; margin:0 0 12px}
.credit{font-size:12.5px; color:var(--mut); margin-top:6px}
.credit.center{text-align:center}
button{font:inherit}
.btn{
  display:block; width:100%; border:0; cursor:pointer; border-radius:12px;
  padding:16px 18px; font-weight:800; letter-spacing:.06em; font-size:16px;
  background:var(--navy); color:var(--cream); margin:18px 0 10px; text-align:center;
}
.btn:active{transform:scale(.99)}
.btn.gold{background:var(--gold); color:#221a05}
.btn.ghost{background:transparent; color:var(--navy); border:1.5px solid #c9bd97; font-weight:700}
.btn.ghost.light{color:var(--cream); border-color:#cdb872}
.btnrow{display:flex; gap:10px}
.btnrow .btn{margin-top:18px}

/* Home */
.hero-band{background:linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  color:var(--cream); padding:26px 20px 24px; text-align:center}
.hero-band .kicker{margin-top:0}
.app-title{font-family:Georgia,"Times New Roman",serif; color:var(--cream);
  font-size:64px; letter-spacing:.06em; margin:2px 0 4px}
.app-sub{color:#e8dfc6; font-size:16px; margin-bottom:16px}
.streak{display:inline-block; background:rgba(195,154,59,.16); border:1.5px solid var(--gold);
  color:var(--cream); border-radius:999px; padding:8px 18px; font-weight:800; letter-spacing:.04em}
.mission{background:var(--navy); color:var(--cream); border-radius:14px; padding:20px; margin:22px 0 6px}
.mission-t{font-family:Georgia,serif; font-size:20px; line-height:1.45; font-weight:700; margin-bottom:8px}
.mission p{color:#e8dfc6; font-size:15.5px}

/* Day cards */
.daycard{background:var(--card); border:1px solid var(--line); border-radius:14px;
  overflow:hidden; margin:14px 0; cursor:pointer; box-shadow:0 4px 14px rgba(12,26,46,.08); text-align:left; width:100%; padding:0}
.daycard img{width:100%; display:block; aspect-ratio:16/9; object-fit:cover}
.daycard .dc-body{padding:14px 16px 16px}
.daycard .dc-k{letter-spacing:.22em; font-weight:800; color:var(--gold2); font-size:11.5px}
.daycard .dc-t{font-size:21px; font-weight:850; color:var(--navy); line-height:1.2; margin:3px 0 5px}
.daycard .dc-th{font-size:15px; color:var(--mut); line-height:1.5; margin:0 0 10px}
.daycard .dc-meta{display:flex; gap:8px; align-items:center}
.badge{font-size:11px; font-weight:800; letter-spacing:.1em; border-radius:999px; padding:4px 10px}
.badge.free{background:#eef3e4; color:#40531f; border:1px solid #cfdcb4}
.badge.lock{background:#f3ead2; color:#6d5a16; border:1px solid #ddc98a}
.badge.done{background:var(--navy); color:var(--cream)}
.badge.dur{background:#f1ecdc; color:var(--mut); border:1px solid var(--line)}
.daycard.locked{cursor:pointer}
.daycard.locked img{filter:grayscale(.55) brightness(.82)}
.daycard .lockrow{display:flex; align-items:center; gap:10px}
.daycard .lockic{font-size:26px}

/* Day view — mirrors the site day pages */
.daytop{display:flex; align-items:center; justify-content:space-between; padding:10px 20px 0}
.backbtn{background:transparent; border:0; color:var(--gold2); font-weight:800; letter-spacing:.06em; cursor:pointer; font-size:14px; padding:6px 0}
.dots{display:flex; gap:6px}
.dots i{width:8px; height:8px; border-radius:50%; background:#d8cdb0; display:block}
.dots i.on{background:var(--gold)}
.screen{display:none; padding:6px 20px 28px; animation:fade .25s ease}
.screen.on{display:block}
.hero{margin:8px -20px 0; position:relative}
.hero img{width:100%; display:block; aspect-ratio:16/9; object-fit:cover}
.imgcard{margin:14px 0 4px; border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(12,26,46,.18)}
.imgcard img{width:100%; display:block; aspect-ratio:16/9; object-fit:cover}
.scripture{
  font-family:Georgia,"Times New Roman",serif; font-size:17.5px; line-height:1.7;
  background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold);
  border-radius:10px; padding:16px 18px; margin:12px 0;
}
.scripture b{color:var(--gold2); font-size:12px; vertical-align:super; margin-right:2px}
blockquote{
  font-family:Georgia,serif; font-style:italic; font-size:18.5px; line-height:1.6;
  margin:16px 0; padding:14px 18px; background:#f3ead2; border-radius:10px; color:#3d3520;
}
.q{font-weight:700; color:var(--navy); margin:18px 0 6px; font-size:16.5px}
textarea{
  width:100%; min-height:96px; border:1.5px solid var(--line); border-radius:10px;
  padding:12px; font:inherit; font-size:16px; background:#fff; resize:vertical;
}
textarea:focus{outline:2px solid var(--gold); border-color:transparent}
.saved{font-size:12.5px; color:var(--gold2); height:16px; margin-top:4px}
.playrow{
  display:flex; align-items:center; gap:12px; background:var(--navy); color:var(--cream);
  border-radius:12px; padding:12px 14px; margin:14px 0;
}
.playbtn{
  width:48px; height:48px; flex:0 0 48px; border-radius:50%; border:0; cursor:pointer;
  background:var(--gold); color:#221a05; font-size:19px; font-weight:900; line-height:1;
}
.playrow .pl-t{font-weight:700; font-size:15px}
.playrow .pl-s{font-size:12.5px; color:#cdb872}
.playrow audio{display:none}
.fullplayer{background:var(--navy); border-radius:12px; padding:14px; margin:14px 0}
.fullplayer .pl-t{color:var(--cream); font-weight:700; font-size:15px; margin-bottom:8px}
.fullplayer .pl-s{color:#cdb872; font-size:12.5px; margin-bottom:8px}
.fullplayer audio{width:100%}
.takeaway{
  font-family:Georgia,serif; text-align:center; font-size:19px; line-height:1.55;
  letter-spacing:.04em; color:var(--navy); padding:18px 10px 4px; font-weight:700;
}
.donemark{
  display:none; text-align:center; background:#eef3e4; border:1px solid #cfdcb4; color:#40531f;
  border-radius:10px; padding:12px; font-weight:700; margin:12px 0;
}
.donemark.show{display:block}
.finishbox{display:none; text-align:center; padding:10px 0 0}
.finishbox.show{display:block}
.finishbox .big{font-size:24px; font-weight:850; color:var(--navy); margin:8px 0 4px}
.prayer-text{font-family:Georgia,serif; font-size:17.5px; line-height:1.7}

/* Paywall */
.plan{background:#fff; border:1.5px solid var(--line); border-radius:14px; padding:18px; margin:16px 0; position:relative}
.plan.best{border-color:var(--gold); box-shadow:0 6px 18px rgba(195,154,59,.18)}
.plan-badge{position:absolute; top:-11px; right:16px; background:var(--gold); color:#221a05;
  font-size:11px; font-weight:800; letter-spacing:.1em; border-radius:999px; padding:4px 10px}
.plan-name{letter-spacing:.2em; font-weight:800; color:var(--gold2); font-size:12px}
.plan-price{font-family:Georgia,serif; font-size:38px; color:var(--navy); font-weight:700; margin:4px 0}
.plan-price span{font-size:16px; color:var(--mut)}
.plan-note{font-size:15px; color:var(--mut); margin-bottom:4px}
.launch-note{background:#f3ead2; border:1px solid #ddc98a; color:#6d5a16; border-radius:10px;
  padding:12px; font-weight:700; text-align:center; margin:14px 0}

/* Account */
.flabel{display:block; font-weight:700; color:var(--navy); margin:14px 0 6px}
input[type=email]{
  width:100%; border:1.5px solid var(--line); border-radius:10px; padding:14px 12px;
  font:inherit; font-size:16px; background:#fff;
}
input[type=email]:focus{outline:2px solid var(--gold); border-color:transparent}
.authmsg{font-size:14.5px; margin-top:8px; min-height:20px; line-height:1.5}
.authmsg.ok{color:#40531f}
.authmsg.err{color:#8c2f1b}
.signedin{background:#eef3e4; border:1px solid #cfdcb4; border-radius:10px; padding:14px 16px; margin:14px 0}

footer{padding:16px 20px 96px; text-align:center; color:var(--mut); font-size:12.5px; line-height:1.6}
footer .fbrand{letter-spacing:.2em; font-weight:800; color:var(--navy)}
footer .fbrand span{color:var(--gold2)}

/* Tab bar */
.tabbar{
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:560px; background:var(--navy); display:flex; z-index:10;
  padding-bottom:env(safe-area-inset-bottom);
}
.tabbar button{
  flex:1; background:transparent; border:0; color:#cdb872; cursor:pointer;
  padding:10px 4px 12px; font-size:12px; font-weight:700; letter-spacing:.05em;
  display:flex; flex-direction:column; align-items:center; gap:2px;
}
.tabbar button .ti{font-size:19px}
.tabbar button.on{color:var(--cream)}
