/* Oasis — warm desert / sage / water palette */
:root{
  --sand:#f6eee0; --sand-2:#efe2cb; --dune:#d8b98d; --dune-deep:#b48c5c;
  --sage:#8fa284; --sage-soft:#e3e9dc; --sage-deep:#566a4f;
  --water:#6ea6b8; --water-soft:#dcecf0; --water-deep:#336b7d;
  --ink:#3a332c; --muted:#76695b; --card:#fffaf2; --line:#e7d9c2;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --radius:20px; --shadow:0 1px 2px rgba(80,60,30,.06),0 6px 22px rgba(80,60,30,.08);
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--sand);color:var(--ink);font-family:var(--sans);font-size:18px;line-height:1.6;
  background-image:radial-gradient(120% 60% at 50% -10%,#fbf6ec 0%,rgba(251,246,236,0) 60%),linear-gradient(180deg,var(--sand) 0%,var(--sand-2) 100%);
  background-attachment:fixed;min-height:100vh;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.2;color:var(--ink);margin:0 0 .4em}
h1{font-size:2rem;letter-spacing:.2px} h2{font-size:1.45rem} h3{font-size:1.15rem}
p{margin:0 0 1em}
a{color:var(--water-deep)}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:99}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--water);outline-offset:2px;border-radius:8px}

/* top bar */
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;
  padding:calc(8px + var(--safe-t)) 14px 8px;background:rgba(246,238,224,.86);backdrop-filter:saturate(1.4) blur(12px);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid rgba(216,185,141,.35);min-height:56px}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:1.25rem;font-weight:600}
.topbar-right{margin-left:auto;font-size:.85rem;color:var(--muted)}
.icon-btn{width:44px;height:44px;border:0;background:transparent;border-radius:12px;display:grid;place-items:center;cursor:pointer;margin-left:-8px}
.icon-btn svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:active{background:var(--sand-2)}

main{max-width:640px;margin:0 auto;padding:16px 16px calc(110px + var(--safe-b));outline:none}
.view{animation:fade .35s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.view{animation:none}}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);margin:0 0 16px}
.card.soft{background:rgba(255,250,242,.65)}
.eyebrow{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sage-deep);font-weight:600;margin-bottom:6px}
.muted{color:var(--muted)}

/* hero */
.hero{position:relative;overflow:hidden;border-radius:26px;padding:26px 22px 22px;margin-bottom:16px;color:#fff;
  background:linear-gradient(165deg,#9fbcc4 0%,#6ea6b8 38%,#8fa284 72%,#c9a774 100%);box-shadow:var(--shadow)}
.hero h1{color:#fff;font-size:2.4rem;margin-bottom:2px;text-shadow:0 1px 10px rgba(30,50,50,.25)}
.hero .sub{opacity:.95;font-size:1rem;margin-bottom:16px}
.hero svg.dunes{position:absolute;left:0;right:0;bottom:0;width:100%;height:70px;opacity:.35;pointer-events:none}
.hero-verse{position:relative;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);border-radius:16px;padding:14px 16px;
  font-family:var(--serif);font-size:1.05rem;line-height:1.5}
.hero-verse cite{display:block;font-style:normal;font-family:var(--sans);font-size:.8rem;letter-spacing:.06em;margin-top:8px;opacity:.95}

/* progress */
.progress-card{display:flex;align-items:center;gap:18px}
.ring{--p:0;width:92px;height:92px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:conic-gradient(var(--water-deep) calc(var(--p)*1%),var(--sage-soft) 0)}
.ring>div{width:74px;height:74px;border-radius:50%;background:var(--card);display:grid;place-items:center;text-align:center;line-height:1.05}
.ring b{font-family:var(--serif);font-size:1.6rem;color:var(--water-deep)} .ring small{font-size:.7rem;color:var(--muted)}
.progress-card h2{font-size:1.2rem;margin-bottom:4px}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 20px;border-radius:16px;border:0;cursor:pointer;
  font-weight:600;font-size:1.02rem;text-decoration:none;text-align:center;transition:transform .08s ease,background .2s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--water-deep);color:#fff}
.btn-sage{background:var(--sage-deep);color:#fff}
.btn-ghost{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
.btn-block{width:100%;margin-bottom:10px}

/* phases & grid */
.phase{margin:26px 0 10px}
.phase-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.phase-head h2{margin:0;font-size:1.3rem}
.phase-head span{font-size:.8rem;color:var(--muted);white-space:nowrap}
.phase p{font-size:.95rem;color:var(--muted);margin:.3em 0 12px}
.day-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.day-item a{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 14px;background:var(--card);border:1px solid var(--line);
  border-radius:16px;text-decoration:none;color:var(--ink);box-shadow:0 1px 2px rgba(80,60,30,.05)}
.day-item a:active{background:var(--sand-2)}
.day-num{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-family:var(--serif);font-weight:600;font-size:1.15rem;
  background:var(--sand-2);color:var(--dune-deep)}
.day-item.rest .day-num{background:var(--sage-soft);color:var(--sage-deep)}
.day-item.done .day-num{background:var(--water-deep);color:#fff}
.day-item.current a{border-color:var(--water);box-shadow:0 0 0 2px var(--water-soft)}
.day-meta{min-width:0;flex:1}
.day-meta b{display:block;font-weight:600;font-size:1rem;line-height:1.3}
.day-meta small{display:block;color:var(--muted);font-size:.83rem;margin-top:2px}
.day-item .chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--dune);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tag{display:inline-block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;padding:2px 8px;border-radius:999px;background:var(--sage-soft);color:var(--sage-deep);font-weight:700;vertical-align:middle;margin-left:4px}

/* day page */
.day-head{margin:6px 2px 16px}
.day-head h1{font-size:1.85rem;margin-bottom:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{font-size:.82rem;padding:5px 11px;border-radius:999px;background:var(--card);border:1px solid var(--line);color:var(--muted)}
.chip.water{background:var(--water-soft);border-color:#c5dde4;color:var(--water-deep)}
.scripture{background:linear-gradient(170deg,#fffaf2 0%,#f3ebdb 100%);border-left:5px solid var(--water);position:relative}
.scripture blockquote{margin:0;font-family:var(--serif);font-size:1.32rem;line-height:1.55;color:#2f2a24}
.scripture blockquote .line{display:block}
.scripture cite{display:block;margin-top:12px;font-style:normal;font-weight:600;color:var(--water-deep);font-size:.95rem}
.scripture cite span{font-weight:400;color:var(--muted)}
.layer{display:flex;gap:12px;align-items:flex-start;background:var(--sage-soft);border:1px solid #d3dcc9;border-radius:16px;padding:14px 16px;margin:0 0 16px;font-size:.96rem}
.layer svg{flex:none;width:26px;height:26px;margin-top:2px;fill:none;stroke:var(--sage-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.layer b{color:var(--sage-deep)}
.section-title{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.section-title .dot{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--sand-2)}
.section-title .dot svg{width:20px;height:20px;fill:none;stroke:var(--dune-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.section-title h2{margin:0;font-size:1.3rem}
.ex h3{font-size:1.02rem;font-family:var(--sans);font-weight:700;letter-spacing:.02em;color:var(--sage-deep);margin:16px 0 6px;text-transform:uppercase;font-size:.82rem;letter-spacing:.12em}
.ex h3:first-of-type{margin-top:4px}
ol.steps{counter-reset:s;list-style:none;padding:0;margin:0}
ol.steps li{counter-increment:s;position:relative;padding:0 0 12px 44px;min-height:32px}
ol.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--water-soft);color:var(--water-deep);
  font-weight:700;font-size:.9rem;display:grid;place-items:center}
ul.look{padding-left:1.1em;margin:0} ul.look li{margin-bottom:6px}
.note{border-radius:14px;padding:12px 14px;margin-top:14px;font-size:.96rem}
.note.safety{background:#fbeee0;border:1px solid #f0d6b8}
.note.help{background:var(--water-soft);border:1px solid #c5dde4}
.note b{display:block;margin-bottom:2px}
.devo p{font-family:var(--serif);font-size:1.13rem;line-height:1.7}

/* media */
.media-grid{display:grid;gap:12px;margin-bottom:16px}
.media{display:flex;align-items:center;gap:14px;background:var(--card);border:1px dashed var(--dune);border-radius:16px;padding:14px;min-height:76px}
.media.has{border-style:solid;border-color:var(--line);flex-direction:column;align-items:stretch}
.media .mi{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--sand-2)}
.media .mi svg{width:22px;height:22px;fill:none;stroke:var(--dune-deep);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.media b{display:block;font-size:.98rem} .media small{color:var(--muted);font-size:.83rem}
.media audio{width:100%} .media video,.media iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#000}
.media .mt{display:flex;align-items:center;gap:12px}

/* reflection */
.reflect{background:linear-gradient(175deg,#fffaf2,#f1f5ee)}
.prompts{list-style:none;padding:0;margin:0 0 14px}
.prompts li{position:relative;padding:10px 0 10px 30px;border-bottom:1px solid var(--line);font-family:var(--serif);font-size:1.08rem}
.prompts li:last-child{border-bottom:0}
.prompts li::before{content:"";position:absolute;left:4px;top:19px;width:10px;height:10px;border-radius:50%;background:var(--sage)}
label.jl{display:block;font-weight:600;margin-bottom:6px}
textarea{width:100%;min-height:200px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;
  font-family:var(--serif);font-size:1.08rem;line-height:1.6;color:var(--ink)}
textarea:focus{outline:none;border-color:var(--water);box-shadow:0 0 0 3px var(--water-soft)}
.saved{font-size:.85rem;color:var(--muted);min-height:1.4em;margin:6px 2px 14px;display:flex;align-items:center;gap:6px}
.saved.ok::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sage)}
.complete{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:12px 16px;border-radius:16px;border:2px solid var(--sage);
  background:#fff;cursor:pointer;text-align:left;font-weight:600;font-size:1.05rem}
.complete .box{flex:none;width:32px;height:32px;border-radius:10px;border:2px solid var(--sage);display:grid;place-items:center;background:#fff}
.complete .box svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.complete[aria-pressed="true"]{background:var(--sage-deep);border-color:var(--sage-deep);color:#fff}
.complete[aria-pressed="true"] .box{background:var(--sage);border-color:#fff}
.complete[aria-pressed="true"] .box svg{opacity:1}

/* bottom day nav */
.daynav{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 12px calc(10px + var(--safe-b));
  background:rgba(246,238,224,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(216,185,141,.4)}
.daynav-inner{max-width:640px;margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}
.daynav .btn{min-height:50px;padding:10px 12px;font-size:.95rem}
.daynav .btn[aria-disabled="true"]{opacity:.4;pointer-events:none}
.daynav .home{width:50px;height:50px;padding:0;border-radius:16px}
.daynav .home svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* prose pages */
.prose h2{margin-top:6px} .prose ul{padding-left:1.15em} .prose li{margin-bottom:8px}
.check-list{list-style:none;padding:0!important}
.check-list li{position:relative;padding-left:34px!important;margin-bottom:12px}
.check-list li::before{content:"";position:absolute;left:0;top:3px;width:22px;height:22px;border-radius:7px;background:var(--sage-soft);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");background-size:16px;background-repeat:no-repeat;background-position:center}
.footer-links{display:grid;gap:10px;margin-top:24px}
.small{font-size:.85rem}
.center{text-align:center}
.toast{position:fixed;left:50%;bottom:calc(92px + var(--safe-b));transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;
  font-size:.92rem;z-index:40;opacity:0;transition:opacity .25s;pointer-events:none}
.toast.show{opacity:.95}
@media (min-width:700px){ main{padding-top:28px} .hero h1{font-size:2.8rem} }
.icon-btn[hidden]{display:none}

/* Steps to Freedom */
.freedom-link{display:flex;align-items:center;gap:14px;min-height:68px;padding:12px 16px;margin:0 0 6px;border-radius:18px;text-decoration:none;color:var(--ink);
  background:linear-gradient(120deg,#fffaf2 0%,#eef4f4 100%);border:1px solid #cfe0e3;box-shadow:var(--shadow)}
.freedom-link b{display:block;font-family:var(--serif);font-size:1.1rem}
.freedom-link small{display:block;color:var(--muted);font-size:.84rem}
.freedom-link>span:nth-child(2){flex:1}
.fl-icon{flex:none;width:44px;height:44px;border-radius:14px;background:var(--water-deep);display:grid;place-items:center}
.fl-icon svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.step-head{display:flex;gap:14px;align-items:center;margin-bottom:8px}
.step-head h2{margin:0;font-size:1.3rem}
.step-n{flex:none;width:42px;height:42px;border-radius:50%;background:var(--water-deep);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-size:1.3rem;font-weight:600}
blockquote.fv{margin:12px 0 0;padding:12px 14px;border-left:4px solid var(--water);background:#f6efe2;border-radius:0 12px 12px 0;font-family:var(--serif);font-size:1.06rem;line-height:1.55}
blockquote.fv .line{display:block}
blockquote.fv cite{display:block;font-style:normal;font-family:var(--sans);font-size:.85rem;font-weight:600;color:var(--water-deep);margin-top:6px}
.prayer{background:linear-gradient(170deg,#fffaf2,#f3ebdb);border-color:#e6d3b3}
.prayer p{font-family:var(--serif);font-size:1.1rem;line-height:1.7;font-style:italic;margin:0}
ul.areas{list-style:none;padding:0!important;margin:10px 0 0}
.area{border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:8px!important;padding:0 12px}
.area.on{border-color:var(--sage);background:#f4f7f1}
.area-row{display:flex;align-items:center;gap:12px;min-height:54px;cursor:pointer;font-weight:600}
.area-row input{position:absolute;opacity:0;width:1px;height:1px}
.cbx{flex:none;width:28px;height:28px;border-radius:9px;border:2px solid var(--sage);display:grid;place-items:center;background:#fff}
.cbx svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.area-row input:checked+.cbx{background:var(--sage-deep);border-color:var(--sage-deep)}
.area-row input:checked+.cbx svg{opacity:1}
.area-row input:focus-visible+.cbx{outline:3px solid var(--water);outline-offset:2px}
.area details{margin:-6px 0 8px 40px}
.area summary{cursor:pointer;color:var(--water-deep);font-size:.85rem;min-height:32px;display:flex;align-items:center}
.area textarea{min-height:90px;font-size:1rem;margin-top:4px}
.area .saved{margin:4px 0 0}
.freedom-link .chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--dune);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hero-verse .vnote{display:block;font-family:var(--sans);font-size:.78rem;opacity:.9;margin-top:4px;line-height:1.4}
/* Leave room for Netlify's floating badge (bottom-right, ~60px) under the fixed day nav */
.daynav{padding-bottom:calc(10px + max(var(--safe-b), 0px) + 64px)}
body.has-daynav main{padding-bottom:calc(190px + var(--safe-b))}
.toast{bottom:calc(160px + var(--safe-b))}
