/* Owluno site styles. Colours: Midnight #14132B, Dusk #1F1D42, Twilight #2B2663,
   Starlight #F4F1FF, Moonlight #FFE7A8, Lantern #FFB45C. */

/* Fonts are hosted with the site (variable fonts, Latin subset, SIL Open Font License). */
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fonts/fredoka.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:200 1000;src:url(/assets/fonts/nunito.woff2) format('woff2')}
/* Vietnamese letters for Nunito; browsers only download it for pages that use them */
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:200 1000;src:url(/assets/fonts/nunito-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}

body{margin:0;background:#14132B}
a{color:#FFE7A8}a:hover{color:#FFF3CF}

.pg{--feather:#B7A6F6;--deep:#8E7AE0;--light:#DCD2FF;font-family:'Nunito',ui-rounded,'SF Pro Rounded',system-ui,sans-serif;color:#F4F1FF;background:#14132B;-webkit-font-smoothing:antialiased;overflow:hidden}
.pg *{box-sizing:border-box}
.pg button,.pg input{font-family:inherit}
.pg a:focus-visible,.pg button:focus-visible,.pg input:focus-visible{outline:3px solid #FFE7A8;outline-offset:3px}
.c-sky{--feather:#8FC2F5;--deep:#5E9BDD;--light:#CFE6FF}
.c-rose{--feather:#F5A6C0;--deep:#DD7C9E;--light:#FFD6E3}
.c-mint{--feather:#93DDBF;--deep:#62BE9A;--light:#D2F5E6}
.c-honey{--feather:#F6CE7E;--deep:#DFA94E;--light:#FFEDC2}
.disp{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.navlinks{display:flex;gap:28px;font-size:16px;font-weight:700}
.navlinks a{color:#F4F1FF;text-decoration:none}
.navlinks a:hover{color:#FFE7A8}
.swatch{transition:transform .3s cubic-bezier(.3,1.5,.5,1),box-shadow .3s ease}
.c-lav .sw-lav,.c-sky .sw-sky,.c-rose .sw-rose,.c-mint .sw-mint,.c-honey .sw-honey{transform:scale(1.08);box-shadow:0 0 0 3px #1F1D42,0 0 0 6px #FFE7A8}

/* wordmark */
.wm{display:inline-flex;align-items:baseline;gap:.06em;margin:0;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-weight:600;line-height:1;letter-spacing:-.01em;color:#F4F1FF;text-decoration:none}
.wm:hover{color:#F4F1FF}

/* sky */
.st{position:absolute;border-radius:50%;background:#F4F1FF;opacity:.45;animation:tw 4s ease-in-out infinite}
.st:nth-child(3n){animation-delay:-1.3s}
.st:nth-child(3n+1){animation-delay:-2.6s}
.st:nth-child(4n){animation-duration:5.5s}
@keyframes tw{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:.9;transform:scale(1.15)}}
.moon{position:absolute;left:214px;top:-58px;width:64px;height:64px;border-radius:50%;background:#FFE7A8;box-shadow:0 0 0 10px rgba(255,231,168,.07),0 0 46px 6px rgba(255,231,168,.28)}
.crater{position:absolute;border-radius:50%;background:#F2D48A}

/* nest scene, drawn at 280 x 300 and scaled by its wrapper */
.scene{position:absolute;left:0;top:0;width:280px;height:300px;transform-origin:0 0}
.hs{position:relative;flex:none;width:420px;height:450px}
.hs .scene{transform:scale(1.5)}
.ms{position:relative;flex:none;width:224px;height:240px}
.ms .scene{transform:scale(.8)}
.es{position:relative;flex:none;width:308px;height:330px}
.es .scene{transform:scale(1.1)}
.fs{position:relative;flex:none;width:280px;height:240px}
.fs .scene{top:-60px}
.lamp{position:absolute;left:-50px;top:-20px;width:380px;height:380px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,190,120,.22),rgba(255,190,120,0))}
.shadow{position:absolute;left:50px;bottom:0;width:180px;height:16px;border-radius:50%;background:rgba(6,5,20,.5);filter:blur(7px)}
.nestb{position:absolute;left:28px;bottom:16px;width:224px;height:70px;border-radius:50%;background:#6E4D33}
.nestf{position:absolute;left:28px;bottom:6px;width:224px;height:46px;border-radius:0 0 112px 112px / 0 0 46px 46px;background:#A97C50;overflow:hidden}
.twig{position:absolute;height:5px;border-radius:3px;background:#C79A66}
.owlpos{position:absolute;left:45px;bottom:40px;width:190px;height:200px}
/* the egg at the bottom: three taps to hatch */
.ring{position:absolute;left:60px;bottom:46px;width:160px;height:160px;border-radius:50%;border:2px solid rgba(255,231,168,.6);opacity:0;animation:ring 1.9s ease-out infinite}
.hatched .ring{animation:none;opacity:0}
@keyframes ring{0%{opacity:.7;transform:scale(.8)}100%{opacity:0;transform:scale(1.35)}}
.eggpop{position:absolute;left:72px;bottom:40px;width:136px;height:172px;transition:opacity .25s ease,transform .45s cubic-bezier(.3,1.5,.5,1),visibility 0s linear .45s}
.hatched .eggpop{opacity:0;transform:scale(1.35);visibility:hidden}
.eggrock{position:relative;width:136px;height:172px;transform-origin:50% 92%;animation:rock 3.4s ease-in-out infinite}
@keyframes rock{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}
.egg{-webkit-appearance:none;appearance:none;display:block;position:relative;width:136px;height:172px;padding:0;border:0;background:none;cursor:pointer;transform-origin:50% 92%;-webkit-tap-highlight-color:transparent}
.pg .egg:focus-visible{outline-offset:8px;border-radius:50%}
.k1 .egg{animation:wob1 .55s ease}
.k2 .egg{animation:wob2 .6s ease}
.k3 .egg{animation:wob3 .3s ease}
@keyframes wob1{0%,100%{transform:rotate(0)}20%{transform:rotate(-9deg)}45%{transform:rotate(8deg)}70%{transform:rotate(-5deg)}85%{transform:rotate(3deg)}}
@keyframes wob2{0%,100%{transform:rotate(0)}18%{transform:rotate(11deg)}40%{transform:rotate(-10deg)}62%{transform:rotate(7deg)}82%{transform:rotate(-4deg)}}
@keyframes wob3{0%{transform:scale(1)}100%{transform:scale(1.08)}}
.crack{position:absolute;left:0;top:0;width:136px;height:172px;opacity:0;transition:opacity .15s ease}
.k1 .cr1,.k2 .cr1,.k3 .cr1{opacity:1}
.k2 .cr2,.k3 .cr2{opacity:1}
.owlpop{position:absolute;left:45px;bottom:40px;width:190px;height:200px;opacity:0;transform:translateY(34px) scale(.35);transform-origin:50% 100%;transition:opacity .2s ease,transform .75s cubic-bezier(.3,1.55,.5,1)}
.hatched .owlpop{opacity:1;transform:none}
.pop .owlin{animation:hop .5s cubic-bezier(.3,1.4,.5,1) .55s 2}
@keyframes hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-18px)}}
.pop .wl{animation:flapl .28s ease-in-out .55s 4 alternate}
.pop .wr{animation:flapr .28s ease-in-out .55s 4 alternate}
@keyframes flapl{from{transform:rotate(10deg)}to{transform:rotate(46deg)}}
@keyframes flapr{from{transform:rotate(-10deg)}to{transform:rotate(-46deg)}}
.sp{position:absolute;left:135px;top:160px;width:10px;height:10px;border-radius:2px;background:#FFE7A8;opacity:0}
.pop .sp{animation:burst .95s cubic-bezier(.15,.8,.3,1) both}
.sp1{--dx:-104px;--dy:-78px}
.sp2{--dx:-52px;--dy:-124px}
.sp3{--dx:14px;--dy:-138px}
.sp4{--dx:78px;--dy:-104px}
.sp5{--dx:116px;--dy:-34px}
.sp6{--dx:-122px;--dy:-10px}
.sp7{--dx:92px;--dy:46px}
.sp8{--dx:-88px;--dy:52px}
@keyframes burst{0%{opacity:0;transform:translate(0,0) rotate(45deg) scale(.2)}18%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(225deg) scale(1)}}
.shell{position:absolute;left:0;top:0;width:136px;height:172px;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;background:var(--feather);box-shadow:inset -12px -16px 0 var(--deep),inset 9px 10px 0 rgba(255,255,255,.2);transition:background-color .45s ease,box-shadow .45s ease}
.spot{position:absolute;border-radius:50%;background:var(--light);opacity:.75;transition:background-color .45s ease}

/* owl, drawn at 190 x 200 */
.slot{position:relative;flex:none}
.owl{position:absolute;left:0;top:0;width:190px;height:200px;transform-origin:0 0}
.owlin{position:absolute;left:0;top:0;width:190px;height:200px;transform-origin:50% 100%;animation:breathe 3.8s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.018,.982)}}
.tuft{position:absolute;top:4px;width:44px;height:50px;background:var(--deep);transition:background-color .45s ease}
.tl{left:22px;border-radius:8px 70% 30% 70%;transform:rotate(-10deg)}
.tr{right:22px;border-radius:70% 8px 70% 30%;transform:rotate(10deg)}
.wing{position:absolute;top:92px;width:42px;height:88px;border-radius:50%;background:var(--deep);transition:background-color .45s ease,transform .4s ease}
.wl{left:-2px;transform-origin:60% 8%;transform:rotate(10deg)}
.wr{right:-2px;transform-origin:40% 8%;transform:rotate(-10deg)}
.body{position:absolute;left:10px;top:20px;width:170px;height:180px;border-radius:50% 50% 47% 47% / 52% 52% 48% 48%;background:var(--feather);box-shadow:inset -12px -16px 0 var(--deep);transition:background-color .45s ease,box-shadow .45s ease}
.belly{position:absolute;left:36px;top:108px;width:98px;height:74px;border-radius:50%;background:#FFF6E3;opacity:.94}
.fm{position:absolute;width:14px;height:8px;border-bottom:3px solid var(--feather);border-radius:0 0 50% 50% / 0 0 100% 100%;transition:border-color .45s ease}
.disc{position:absolute;top:20px;width:86px;height:86px;border-radius:50%;background:#FFF6E3}
.dl{left:4px}
.dr{left:80px}
.eye{position:absolute;top:38px;width:50px;height:50px}
.el{left:22px}
.er{left:98px}
.iris{position:absolute;left:0;top:0;width:50px;height:50px;border-radius:50%;background:#221E45;clip-path:inset(0 0 0 0)}
.hl{position:absolute;left:10px;top:9px;width:15px;height:15px;border-radius:50%;background:#FFFFFF}
.hl2{position:absolute;left:31px;top:30px;width:7px;height:7px;border-radius:50%;background:#FFFFFF;opacity:.85}
.lash{position:absolute;left:9px;top:19px;width:32px;height:14px;border-bottom:4px solid #221E45;border-radius:0 0 50% 50% / 0 0 100% 100%;opacity:0}
.beak{position:absolute;left:76px;top:84px;width:18px;height:18px;border-radius:4px 4px 9px 4px;background:#FFB45C;transform:rotate(45deg)}
.yawn{display:none;position:absolute;left:76px;top:99px;width:18px;height:15px;border-radius:50%;background:#7A3F3A}
.blush{position:absolute;top:92px;width:20px;height:12px;border-radius:50%;background:#FF9DB5;opacity:.55}
.bl{left:14px}
.br{left:136px}
.zz{position:absolute;left:140px;top:6px;width:10px;height:10px}
.zz span{position:absolute;left:0;top:0;font-family:'Fredoka','Nunito',sans-serif;font-weight:600;font-size:20px;color:#DCD2FF;opacity:0}

/* owl moods */
.m-awake .iris{animation:blink 4.6s linear infinite}
@keyframes blink{0%,91%{clip-path:inset(0 0 0 0)}94.5%{clip-path:inset(100% 0 0 0)}98%,100%{clip-path:inset(0 0 0 0)}}
.m-asleep .iris,.m-happy .iris{clip-path:inset(100% 0 0 0)}
.m-asleep .lash,.m-happy .lash{opacity:1}
.m-happy .lash{transform:scaleY(-1)}
.m-happy .wl{transform:rotate(42deg)}
.m-happy .wr{transform:rotate(-42deg)}
.m-asleep .owlin{animation:snooze 5.4s ease-in-out infinite}
@keyframes snooze{0%,100%{transform:rotate(-2deg) scale(1,1)}50%{transform:rotate(-2deg) scale(1.03,.97)}}
.m-asleep .zz span{animation:zz 3.3s ease-in infinite}
.m-asleep .zz span:nth-child(2){animation-delay:1.1s}
.m-asleep .zz span:nth-child(3){animation-delay:2.2s}
@keyframes zz{0%{opacity:0;transform:translate(0,0) scale(.5)}20%{opacity:.95}100%{opacity:0;transform:translate(30px,-52px) scale(1.25)}}
.m-yawny .iris{clip-path:inset(40% 0 0 0)}
.m-yawny .tl{transform:rotate(-30deg)}
.m-yawny .tr{transform:rotate(30deg)}
.m-yawny .yawn{display:block}
.m-yawny .blush{opacity:.2}

/* things the owl can own */
.acc{position:absolute}
.on-scarf{left:10px;top:104px}
.on-beanie{left:40px;top:-34px}
.on-pillow{left:6px;bottom:56px}
.on-blanket{left:28px;bottom:6px}
.on-plant{left:-8px;bottom:6px}
.on-lantern{left:246px;bottom:6px}
.a-scarf{position:relative;display:block;width:150px;height:62px}
.sc-tail{position:absolute;left:92px;top:14px;width:26px;height:46px;border-radius:6px 6px 10px 10px;background:#EE7560;transform:rotate(-8deg)}
.sc-band{position:absolute;left:0;top:0;width:150px;height:24px;border-radius:12px;background:#FF8F78}
.sc-knot{position:absolute;left:86px;top:-2px;width:30px;height:28px;border-radius:12px;background:#FFA08C}
.a-beanie{position:relative;display:block;width:110px;height:72px}
.bn-pom{position:absolute;left:43px;top:0;width:24px;height:24px;border-radius:50%;background:#FFF6E3}
.bn-dome{position:absolute;left:5px;top:16px;width:100px;height:44px;border-radius:50px 50px 6px 6px / 44px 44px 6px 6px;background:#7FA7F5}
.bn-brim{position:absolute;left:0;top:52px;width:110px;height:18px;border-radius:9px;background:#FFF6E3}
.a-pillow{position:relative;display:block;width:76px;height:44px}
.pw{position:absolute;left:0;top:0;width:76px;height:44px;border-radius:16px;background:#FFF6E3;box-shadow:inset -6px -6px 0 #EADBBE;transform:rotate(-14deg)}
.a-blanket{position:relative;display:block;width:224px;height:52px}
.bk-main{position:absolute;left:0;top:6px;width:224px;height:46px;border-radius:0 0 112px 112px / 0 0 46px 46px;background:#F5A6C0;overflow:hidden}
.bk-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#FFD6E3}
.bk-fold{position:absolute;left:6px;top:0;width:212px;height:16px;border-radius:8px;background:#FFD6E3}
.a-lantern{position:relative;display:block;width:36px;height:62px}
.ln-handle{position:absolute;left:8px;top:0;width:20px;height:18px;border:3px solid #7A6EB8;border-bottom:0;border-radius:10px 10px 0 0}
.ln-top{position:absolute;left:4px;top:14px;width:28px;height:8px;border-radius:4px;background:#7A6EB8}
.ln-glass{position:absolute;left:6px;top:22px;width:24px;height:30px;border-radius:6px;background:#FFC978;box-shadow:0 0 26px 8px rgba(255,180,92,.5)}
.ln-base{position:absolute;left:3px;top:52px;width:30px;height:9px;border-radius:4px;background:#7A6EB8}
.a-plant{position:relative;display:block;width:44px;height:66px}
.pt-leaf{position:absolute;width:16px;height:30px;border-radius:16px 0 16px 0;background:#7ED1A8}
.pt-pot{position:absolute;left:8px;top:42px;width:28px;height:24px;border-radius:4px 4px 10px 10px;background:#D98A5F}

/* app fragments */
.mdot{display:inline-block;flex:none;width:14px;height:14px;border-radius:50%;background:#FFE7A8;box-shadow:0 0 10px rgba(255,231,168,.5)}
.thumb{position:relative;display:block;width:76px;height:56px}
.cols{position:relative;display:flex;gap:4px}
.band{position:absolute;left:0;right:0;border-radius:10px;background:rgba(255,231,168,.09);border-top:1px dashed rgba(255,231,168,.4);border-bottom:1px dashed rgba(255,231,168,.4)}
.day{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 0 8px;border-radius:14px;color:#B4B0DE;font-size:13px;font-weight:800}
.day.sel{background:rgba(255,255,255,.08);color:#F4F1FF}
.trk{position:relative;display:block;width:100%;height:150px}
.bar{position:absolute;left:50%;width:20px;margin-left:-10px;border-radius:10px;background:#FFE7A8}
.day.off .bar{background:#B7A6F6}
.day.unk .bar{background:none;border:2px dashed rgba(244,241,255,.5)}

@media (max-width:980px){
.navlinks .inpage{display:none}
}
@media (max-width:520px){
.hs{width:280px;height:300px}
.hs .scene{transform:none}
.es{width:252px;height:270px}
.es .scene{transform:scale(.9)}
}
@media (prefers-reduced-motion: reduce){
.pg *{animation:none !important;transition-duration:.01s !important}
.m-asleep .zz span{opacity:.8}
.m-asleep .zz span:nth-child(2){transform:translate(12px,-20px)}
.m-asleep .zz span:nth-child(3){transform:translate(26px,-42px)}
}

/* ---------- shared pieces ---------- */
html{scroll-behavior:smooth}
[hidden]{display:none !important}
.contents{display:contents}
.fill{position:absolute;left:0;top:0;right:0;bottom:0}
.sky{position:relative;overflow:hidden;background:linear-gradient(180deg,#0E0D22 0%,#191741 52%,#2B2663 100%)}
.hill{position:absolute;height:320px;border-radius:50%}
.hill-front{right:-14%;bottom:-210px;width:80%;background:#14132B}
.hill-join-back{left:-14%;bottom:-210px;width:74%;background:#1B1946}
.hill-join-front{right:-16%;bottom:-220px;width:82%;background:#14132B}
.nav{position:relative;z-index:2;max-width:1168px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.brand{font-size:38px}
.section{padding:0 24px 104px}
.container{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.row{display:flex;align-items:center;justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:8px}
.footer{padding:40px 24px 48px;background:#14132B}

/* type */
.eyebrow{font-size:14px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;color:#B4B0DE}
.h2{margin:0;font-size:clamp(34px,4vw,50px);font-weight:600;line-height:1.08;letter-spacing:-.3px}
.balance{text-wrap:balance}
.body-text{margin:0;font-size:17px;font-weight:600;line-height:1.5;color:#B4B0DE;text-wrap:pretty}
.muted{font-size:15px;font-weight:700;color:#B4B0DE}
.label{font-size:13px;font-weight:800;color:#B4B0DE}
.icon{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

/* buttons and the waitlist form */
.btn{flex:0 0 auto;height:56px;padding:0 26px;border:0;border-radius:28px;background:#FFE7A8;color:#14132B;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 10px 30px rgba(255,231,168,.16);transition:transform .15s ease,opacity .25s ease}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.5;cursor:default}
.btn-ghost{display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:22px;background:rgba(255,255,255,.1);color:#F4F1FF;font-size:15px;font-weight:800;text-decoration:none;transition:background-color .2s ease}
.btn-ghost:hover{background:rgba(255,255,255,.16);color:#F4F1FF}
.waitlist{display:flex;flex-wrap:wrap;gap:10px;width:100%;max-width:500px;margin:0}
.waitlist.center{justify-content:center}
.field{flex:1 1 220px;min-width:0;height:56px;padding:0 22px;border-radius:28px;border:1.5px solid rgba(244,241,255,.2);background:rgba(255,255,255,.06);color:#F4F1FF;font-size:17px;font-weight:700;outline:none;transition:border-color .25s ease,background-color .25s ease}
.waitlist-status{margin:0;font-size:17px;font-weight:800;color:#FFE7A8}
.rnd{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:22px;background-color:rgba(255,255,255,.1);color:#F4F1FF;cursor:pointer;transition:transform .12s ease,background-color .2s ease}
.rnd:hover{background-color:rgba(255,255,255,.16)}
.rnd:active{transform:scale(.9);background-color:rgba(255,231,168,.3)}

/* cards */
.card{display:flex;flex-direction:column;border-radius:32px;background:#1F1D42;border:1px solid rgba(255,255,255,.06);overflow:hidden}
.card-body{display:flex;flex-direction:column;gap:10px;padding:28px}
.card-title{margin:2px 0 0;font-size:26px;font-weight:600;line-height:1.15}
.step-num{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(255,231,168,.14);color:#FFE7A8;font-size:17px;font-weight:600}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100px;border-radius:22px;border:1.5px solid rgba(255,255,255,.08);background:rgba(255,255,255,.06)}
.tile-meta{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800}
.tile-price{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#FFE7A8}
.promise-title{margin:0;font-size:19px;font-weight:800;line-height:1.3}
.milestone{display:flex;align-items:center;gap:16px;min-height:56px;padding:10px 20px 10px 10px;border-radius:20px;background:#1F1D42}
.milestone-night{flex:none;display:flex;align-items:center;justify-content:center;width:92px;height:36px;border-radius:14px;background:rgba(255,231,168,.14);color:#FFE7A8;font-size:16px;font-weight:600}
.milestone-text{font-size:17px;font-weight:700;line-height:1.35}
.faq-item{display:flex;flex-direction:column;gap:8px;padding:24px 28px;border-radius:24px;background:#1F1D42}
.faq-q{margin:0;font-size:22px;font-weight:600;line-height:1.25}
.faq-a{margin:0;font-size:17px;font-weight:600;line-height:1.55;color:#B4B0DE;text-wrap:pretty}

/* ---------- blog ---------- */
.post{transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .25s ease}
.post:hover{transform:translateY(-4px);border-color:rgba(255,231,168,.35)}
.post h2 a,.post h3 a{color:#F4F1FF;text-decoration:none}
.post h2 a:hover,.post h3 a:hover{color:#FFE7A8}
.fsn{position:relative;flex:none;width:280px;height:300px}
.moonc{position:relative;width:96px;height:96px;border-radius:50%;background:#FFE7A8;box-shadow:0 0 0 14px rgba(255,231,168,.07),0 0 60px 8px rgba(255,231,168,.28);animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.sub .ln-glass{animation:glow 3.6s ease-in-out infinite}
@keyframes glow{0%,100%{box-shadow:0 0 26px 8px rgba(255,180,92,.5)}50%{box-shadow:0 0 34px 12px rgba(255,180,92,.7)}}
.mini-cols{position:relative;display:flex;gap:6px;width:200px}
.mini-trk{position:relative;z-index:1;flex:1;display:block;height:120px}
.mini-bar{position:absolute;left:50%;width:18px;margin-left:-9px;border-radius:9px;background:#FFE7A8}
.mini-bar.unk{background:none;border:2px dashed rgba(244,241,255,.6)}

/* ---------- tools ---------- */
.m-sleepy .iris{clip-path:inset(44% 0 0 0);animation:droop 3.4s ease-in-out infinite}
@keyframes droop{0%,100%{clip-path:inset(44% 0 0 0)}50%{clip-path:inset(64% 0 0 0)}}

@media (prefers-reduced-motion: reduce){
html{scroll-behavior:auto}
}

.field::placeholder{color:#A9A5D6}
.field:focus{border-color:#FFE7A8;background:rgba(255,255,255,.1)}

/* ---------- sleep calculator (/tools/sleep-calculator/) ---------- */
.tool-top{background:#0E0D22}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;font-size:14px;font-weight:800;color:#B4B0DE}
.crumbs a{color:#B4B0DE;text-decoration:none}
.crumbs a:hover{color:#FFE7A8}
.calc{display:flex;flex-wrap:wrap;gap:16px 32px;padding:clamp(12px,2vw,24px);border-radius:40px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.calc fieldset{min-width:0;margin:0;padding:0;border:0}
.calc legend{padding:0;margin-bottom:8px}
.calc-inputs{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;gap:14px;padding:clamp(8px,2vw,24px)}
.calc-panel{position:relative;flex:1 1 400px;min-width:0;min-height:460px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:20px;padding:36px 24px 24px;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,#0E0D22 0%,#191741 52%,#2B2663 100%)}
.calc-moon{position:absolute;right:22px;top:22px;width:40px;height:40px;border-radius:50%;background:#FFE7A8;box-shadow:0 0 0 7px rgba(255,231,168,.07),0 0 30px 4px rgba(255,231,168,.28)}

/* "I want to" switch and sleep goal chips */
.seg{display:flex;gap:4px;padding:4px;border-radius:26px;background:rgba(255,255,255,.07)}
.seg label{position:relative;flex:1;display:block}
.seg input{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.seg span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;border-radius:22px;color:#B4B0DE;font-size:15px;font-weight:800;line-height:1.15;text-align:center;transition:background-color .25s ease,color .25s ease}
.seg input:checked+span{background:#FFE7A8;color:#14132B}
.seg input:focus-visible+span{outline:3px solid #FFE7A8;outline-offset:3px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-width:58px;height:44px;padding:0 12px;border-radius:22px;border:1.5px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#F4F1FF;font-size:15px;font-weight:800;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease}
.chip[aria-pressed="true"]{border-color:#FFE7A8;background:rgba(255,231,168,.12);color:#FFE7A8}

/* input rows */
.ctl{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:10px 14px 10px 20px;border-radius:24px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.ctl-value{font-size:26px;font-weight:600;line-height:1}
.ctl-buttons{display:flex;gap:8px}
.time-input{height:52px;padding:0 14px;border-radius:16px;border:1.5px solid rgba(244,241,255,.2);background:rgba(20,19,43,.5);color:#F4F1FF;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:24px;font-weight:600;color-scheme:dark;transition:border-color .25s ease}
.time-input:focus{border-color:#FFE7A8}
.calc-note{margin:0;font-size:15px;font-weight:700;line-height:1.4;color:#B4B0DE}
.calc-error{margin:0;font-size:15px;font-weight:800;color:#FFB45C}

/* sleep settings stay folded away until asked for */
.more{border-radius:24px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.more>summary,.faq-item>summary{list-style:none;cursor:pointer}
.more>summary::-webkit-details-marker,.faq-item>summary::-webkit-details-marker{display:none}
.more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 16px 8px 20px;border-radius:24px;font-size:15px;font-weight:800}
.more-change{display:inline-flex;align-items:center;gap:4px;color:#FFE7A8}
.chev{transition:transform .25s ease}
details[open]>summary .chev{transform:rotate(180deg)}
.more-body{display:flex;flex-direction:column;gap:12px;padding:4px 12px 12px}
.more-body .ctl{background:rgba(20,19,43,.5)}
.calc .btn{width:100%}

/* results */
.res{position:relative;z-index:1;width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;transition:opacity .3s ease}
.res.stale{opacity:.45}
.res-hello{margin:36px 0 0;max-width:260px;font-size:20px;font-weight:700;line-height:1.35;color:#D9D5F5}
.res-label{margin:0;font-size:15px;font-weight:800;color:#FFE7A8}
.res-time{margin:0;font-size:clamp(52px,6vw,72px);font-weight:600;line-height:1;letter-spacing:-.5px;animation:rise .5s cubic-bezier(.22,1,.36,1)}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.res-meta{margin:0;font-size:16px;font-weight:700;color:#D9D5F5}
.res-note{margin:8px 0 0;padding:12px 16px;border-radius:16px;background:rgba(20,19,43,.6);font-size:15px;font-weight:700;line-height:1.45;color:#F4F1FF;text-align:left}
.alts{width:100%;margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.alt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-radius:16px;background:rgba(20,19,43,.5);border:1px solid rgba(255,255,255,.08);font-size:15px;font-weight:700;color:#D9D5F5;text-align:left}
.alt b{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:20px;font-weight:600;color:#F4F1FF}
.steps{width:100%;margin-top:4px;font-size:15px;font-weight:700;color:#D9D5F5}
.steps>summary{display:inline-flex;align-items:center;gap:4px;min-height:44px;cursor:pointer;color:#FFE7A8;font-weight:800;list-style:none}
.steps>summary::-webkit-details-marker{display:none}
.steps p{margin:0 0 8px;line-height:1.5}
.link-btn{min-height:44px;padding:0 8px;border:0;background:none;color:#B4B0DE;font-size:15px;font-weight:800;text-decoration:underline;cursor:pointer}
.link-btn:hover{color:#F4F1FF}

/* reading sections under the calculator */
.prose{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:64px}
.prose section{display:flex;flex-direction:column;gap:16px}
.prose h2{margin:0;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:clamp(28px,3.2vw,38px);font-weight:600;line-height:1.12;letter-spacing:-.2px;text-wrap:balance}
.prose p,.prose li{margin:0;font-size:18px;font-weight:600;line-height:1.6;color:#C9C5EA;text-wrap:pretty}
.prose ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.prose strong{font-weight:800;color:#F4F1FF}
.table-wrap{overflow-x:auto;border-radius:24px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.times{width:100%;border-collapse:collapse;font-size:17px;font-weight:700;white-space:nowrap}
.times caption{padding:16px 20px 4px;font-size:14px;font-weight:700;color:#B4B0DE;text-align:left;white-space:normal}
.times th,.times td{padding:12px 20px;text-align:left;border-bottom:1px solid rgba(255,255,255,.07)}
.times thead th{font-size:13px;font-weight:800;color:#B4B0DE}
.times tbody th{font-weight:700;color:#D9D5F5}
.times td:last-child{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:19px;font-weight:600;color:#FFE7A8}
.times tr:last-child th,.times tr:last-child td{border-bottom:0}
.faq-item>summary{display:flex;align-items:center;justify-content:space-between;gap:16px}
.faq-item>summary .chev{flex:none;color:#B4B0DE}

@media (max-width:520px){
.nav .hide-sm{display:none}
.ctl{flex-wrap:wrap}
.times{font-size:15px}
.times td:last-child{font-size:17px}
.times th,.times td{padding:12px 10px}
.times thead th{white-space:normal}
.times caption{padding:16px 10px 4px}
}
details.faq-item{display:block}
details.faq-item .faq-a{margin-top:10px}
a.btn,a.btn:hover{color:#14132B}

/* ---------- legal pages (privacy, terms) ---------- */
.legal{max-width:760px;margin:0 auto;font-size:17px;font-weight:600;line-height:1.65;color:#D9D5F5}
.legal h2{margin:48px 0 12px;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:28px;font-weight:600;line-height:1.2;color:#F4F1FF;scroll-margin-top:24px}
.legal h2:first-child{margin-top:0}
.legal h3{margin:32px 0 8px;font-size:20px;font-weight:800;line-height:1.3;color:#F4F1FF;scroll-margin-top:24px}
.legal p{margin:0 0 16px}
.legal ul{margin:0 0 16px;padding-left:22px}
.legal li{margin-bottom:8px}
.legal strong{font-weight:800;color:#F4F1FF}
.legal .caps{font-size:15px}
.legal .tbl{margin:0 0 16px;border-radius:20px;background:#1F1D42;overflow-x:auto}
.legal table{width:100%;min-width:560px;border-collapse:collapse;font-size:15px;line-height:1.5}
.legal th,.legal td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(255,255,255,.08)}
.legal th{font-weight:800;color:#FFE7A8}
.legal tr:last-child td{border-bottom:0}

/* ---------- other languages ---------- */
/* Fredoka has no Vietnamese letters, so Vietnamese headings use Nunito. */
.pg:lang(vi) :is(.disp,.prose h2){font-family:'Nunito',ui-rounded,system-ui,sans-serif}
/* Japanese, Chinese and Thai: Latin letters and numbers stay in Nunito and Fredoka, the rest uses a font made for the language. */
.pg:lang(ja){--script-font:'Hiragino Maru Gothic ProN','Hiragino Sans','Yu Gothic','Meiryo','Noto Sans JP';word-break:auto-phrase}
.pg:lang(zh-Hans){--script-font:'PingFang SC','Microsoft YaHei','Noto Sans SC'}
.pg:lang(zh-Hant){--script-font:'PingFang TC','Microsoft JhengHei','Noto Sans TC'}
.pg:lang(th){--script-font:'Thonburi','Leelawadee UI','Noto Sans Thai'}
.pg:is(:lang(ja),:lang(zh),:lang(th)){font-family:'Nunito',var(--script-font),system-ui,sans-serif}
.pg:is(:lang(ja),:lang(zh),:lang(th)) :is(.disp,.prose h2){font-family:'Fredoka','Nunito',var(--script-font),system-ui,sans-serif}

/* Language menu: a small button fixed to the bottom-right corner that opens a list upward.
   It is a <details>, so it works without JavaScript; site.js closes it on outside taps and Escape. */
.langs{position:fixed;z-index:50;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
.langs summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px 0 14px;border-radius:22px;border:1px solid rgba(255,255,255,.14);background:rgba(31,29,66,.92);box-shadow:0 8px 30px rgba(6,5,20,.45);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#F4F1FF;font-size:14px;font-weight:800;cursor:pointer;list-style:none}
.langs summary::-webkit-details-marker{display:none}
.langs summary .icon{stroke-width:1.8}
.langs summary>.icon:first-child{color:#FFE7A8}
.langs summary .chev{color:#B4B0DE}
.langs summary:focus-visible{outline:3px solid #FFE7A8;outline-offset:3px}
.langs-menu{position:absolute;right:0;bottom:54px;display:flex;flex-direction:column;min-width:210px;max-height:min(70vh,520px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border-radius:20px;border:1px solid rgba(255,255,255,.14);background:rgba(31,29,66,.98);box-shadow:0 16px 60px rgba(6,5,20,.6)}
.langs-menu a{display:flex;align-items:center;min-height:42px;padding:8px 12px;border-radius:14px;color:#F4F1FF;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap}
.langs-menu a:hover,.langs-menu a[aria-current]{background:rgba(255,231,168,.1);color:#FFE7A8}
.langs-menu a[aria-current]::after{content:'✓';margin-left:auto;padding-left:16px}
@media (max-width:520px){.langs{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.langs summary{min-height:40px}.langs-menu{bottom:50px}}
@media print{.langs{display:none}}

/* ---------- sleep debt calculator (/tools/sleep-debt-calculator/) ---------- */
.pg select{font-family:inherit}
.pg select:focus-visible{outline:3px solid #FFE7A8;outline-offset:3px}
.perks{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.perks li{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px 0 10px;border-radius:17px;background:rgba(20,19,43,.5);border:1px solid rgba(255,255,255,.1);font-size:14px;font-weight:800;color:#F4F1FF}
.perks .icon{color:#FFE7A8}

/* the owl panel sits beside the form on wide screens and above it on phones */
.debt-calc{flex-direction:row-reverse}
.debt-panel{justify-content:flex-start;gap:28px}
.debt-say{position:relative;z-index:1;width:100%;display:flex;justify-content:center}
.debt-msg{margin:6px 0 0;max-width:300px;font-size:17px;font-weight:700;line-height:1.4;color:#F4F1FF}
.res.stale{opacity:.45}
.cloud{position:absolute;height:16px;border-radius:8px;background:rgba(244,241,255,.07);animation:drift 16s ease-in-out infinite alternate}
.cloud::before{content:'';position:absolute;left:22%;top:-10px;width:42%;height:22px;border-radius:50%;background:inherit}
@keyframes drift{from{transform:translateX(0)}to{transform:translateX(18px)}}

/* the owl resting in a crescent moon, drawn at 240 x 230 */
.perch{position:relative;flex:none;width:240px;height:230px}
.perch .owlpos{left:61px;top:66px;bottom:auto;width:118px;height:124px}
.perch .owl{transform:scale(.62)}
.crescent{position:absolute;left:20px;top:20px;width:200px;height:200px;border-radius:50%;box-shadow:inset 0 -40px 0 0 #FFE7A8;filter:drop-shadow(0 0 18px rgba(255,231,168,.4))}

/* form steps */
.step-title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;color:#F4F1FF}
.step{display:flex;flex-direction:column;gap:12px}
.quick{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:20px;background:rgba(255,231,168,.05);border:1px dashed rgba(255,231,168,.25)}
.nights{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.night{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 12px 8px 16px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);transition:border-color .2s ease}
.night.missing{border-color:rgba(255,180,92,.7)}
.nd{flex:none;width:14px;height:14px;border-radius:50%;border:2px dashed rgba(244,241,255,.45);transition:background-color .25s ease,box-shadow .25s ease}
.night[data-state="met"] .nd{border:0;background:#FFE7A8;box-shadow:0 0 10px rgba(255,231,168,.5)}
.night[data-state="short"] .nd{border:0;background:#B7A6F6}
.night-when{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.night-day{font-size:16px;font-weight:800;color:#F4F1FF}
.night-date{font-size:14px;font-weight:700;color:#B4B0DE}
.night-tag{padding:2px 8px;white-space:nowrap;border-radius:10px;background:rgba(255,231,168,.14);font-size:12px;font-weight:800;color:#FFE7A8}
.night-inputs{display:flex;align-items:center;gap:4px}
.sel{height:44px;padding:0 4px 0 10px;border-radius:14px;border:1.5px solid rgba(244,241,255,.2);background:rgba(20,19,43,.5);color:#F4F1FF;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:20px;font-weight:600;color-scheme:dark;cursor:pointer;transition:border-color .2s ease}
.sel:focus{border-color:#FFE7A8}
.unit{margin-right:6px;font-size:14px;font-weight:800;color:#B4B0DE}
.check{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;font-size:15px;font-weight:700;color:#B4B0DE;cursor:pointer}
.check input{flex:none;width:20px;height:20px;margin:0;accent-color:#FFE7A8;cursor:pointer}

/* results, shown once calculated */
.debt-results{padding:0 24px 24px}
.debt-results:not([hidden]){animation:rise .5s cubic-bezier(.22,1,.36,1)}
.debt-results :is(.stats,.wk-card,.tips){transition:opacity .3s ease}
.debt-results.stale :is(.stats,.wk-card,.tips){opacity:.45}
.sub-h{margin:0;font-size:clamp(24px,2.6vw,30px);font-weight:600;line-height:1.15}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:24px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.stat-value{font-size:32px;font-weight:600;line-height:1.05;color:#F4F1FF}
.stat-sub{font-size:14px;font-weight:700;line-height:1.4;color:#B4B0DE}
.wk-card{display:flex;flex-direction:column;gap:16px;padding:22px 24px 10px;border-radius:32px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.wk-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.wk-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;font-weight:800;color:#B4B0DE}
.wk-legend>span{display:inline-flex;align-items:center;gap:6px}
.lg{display:inline-block;width:12px;height:12px;border-radius:4px}
.lg-met{background:#FFE7A8}
.lg-short{background:#B7A6F6}
.lg-goal{width:16px;height:0;border-top:2px dashed #FFE7A8;border-radius:0}
.wk{display:flex;flex-direction:column;gap:8px}
.wk-plot{position:relative;display:flex;gap:8px;height:180px}
.wk-goal{position:absolute;left:-6px;right:-6px;z-index:1;height:0;border-top:2px dashed rgba(255,231,168,.75)}
.wk-trk{position:relative;flex:1;height:100%}
.wk-bar{position:absolute;left:50%;bottom:0;width:min(30px,70%);margin-left:max(-15px,-35%);border-radius:10px 10px 6px 6px;background:#B7A6F6;transform-origin:50% 100%;animation:grow .6s cubic-bezier(.22,1,.36,1) both}
.wk-trk.met .wk-bar{background:#FFE7A8;box-shadow:0 0 14px rgba(255,231,168,.25)}
.wk-trk:nth-child(3) .wk-bar{animation-delay:.04s}
.wk-trk:nth-child(4) .wk-bar{animation-delay:.08s}
.wk-trk:nth-child(5) .wk-bar{animation-delay:.12s}
.wk-trk:nth-child(6) .wk-bar{animation-delay:.16s}
.wk-trk:nth-child(7) .wk-bar{animation-delay:.2s}
.wk-trk:nth-child(8) .wk-bar{animation-delay:.24s}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.wk-val{position:absolute;left:-4px;right:-4px;margin-bottom:6px;text-align:center;font-size:12px;font-weight:800;line-height:1.2;color:#D9D5F5}
.wk-days{display:flex;gap:8px}
.wk-days span{flex:1;min-width:0;text-align:center;font-size:13px;font-weight:800;color:#B4B0DE}
.tips{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;counter-reset:tip}
.tips li{counter-increment:tip;display:flex;flex-direction:column;gap:8px;padding:22px 24px;border-radius:24px;background:#1F1D42;border:1px solid rgba(255,255,255,.06);font-size:16px;font-weight:600;line-height:1.5;color:#C9C5EA}
.tips li::before{content:counter(tip);display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(255,231,168,.14);color:#FFE7A8;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:17px;font-weight:600}
.tips strong{font-size:18px;font-weight:800;line-height:1.3;color:#F4F1FF}

/* Owluno card and share card */
.owl-card{display:flex;flex-direction:column;gap:20px;padding:clamp(24px,4vw,40px);border-radius:32px;background:linear-gradient(135deg,#2B2663 0%,#1F1D42 65%);border:1px solid rgba(255,231,168,.18)}
.owl-card-main{display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px}
.owl-card-text{margin:0;font-size:18px;font-weight:600;line-height:1.5;color:#C9C5EA;text-wrap:pretty}
.owl-card-tag{font-size:14px;font-weight:700;font-style:italic;color:#B4B0DE;text-align:center}
.owl-join{display:flex;flex-direction:column;gap:14px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08);animation:rise .4s cubic-bezier(.22,1,.36,1)}
.owl-join .owl-card-text{display:flex;align-items:center;gap:10px}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px;padding:clamp(20px,3vw,32px);border-radius:32px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.share-box{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.share-img{display:block;width:216px;height:270px;border-radius:18px;background:#191741;box-shadow:0 12px 40px rgba(6,5,20,.5)}
.share-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}

@media (max-width:520px){
.debt-panel{min-height:0}
.night{flex-wrap:wrap;padding:10px 12px 10px 14px}
.wk-val{display:none}
.wk-plot,.wk-days{gap:4px}
}
@media (prefers-reduced-motion: reduce){
.debt-results:not([hidden]),.owl-join{animation:none}
}
.debt-panel .res-time{font-size:clamp(44px,5vw,64px)}

/* ---------- caffeine half-life calculator (/tools/caffeine-half-life-calculator/) ---------- */
/* Drink colours: each preset gets its own little cup. */
[data-drink="coffee"]{--cup:#C79A66}
[data-drink="espresso"]{--cup:#B07A4F}
[data-drink="latte"]{--cup:#E8C9A0}
[data-drink="black-tea"]{--cup:#D98A5F}
[data-drink="energy"]{--cup:#8FC2F5}
[data-drink="soda"]{--cup:#F5A6C0}
[data-drink="cold-brew"]{--cup:#A97C50}
[data-drink="green-tea"]{--cup:#93DDBF}
[data-drink="matcha"]{--cup:#7ED1A8}
[data-drink="pre-workout"]{--cup:#FFB45C}
[data-drink="decaf"]{--cup:#DCD2FF}
[data-drink="custom"]{--cup:#B7A6F6}
.cup{position:relative;flex:none;display:inline-block;width:18px;height:16px;margin-right:6px;border-radius:3px 3px 7px 7px;background:var(--cup,#C79A66)}
.cup::after{content:'';position:absolute;right:-6px;top:3px;width:5px;height:7px;border:2.5px solid var(--cup,#C79A66);border-left:0;border-radius:0 6px 6px 0}

/* the owl panel sits beside the form on wide screens and above it on phones */
.caf-calc{flex-direction:row-reverse}
.caf-panel{justify-content:flex-start;gap:24px}
.caf-say{position:relative;z-index:1;width:100%;display:flex;justify-content:center}
.res-unit{font-size:.42em;letter-spacing:0;color:#D9D5F5}
.caf-panel .res-time{font-size:clamp(52px,6vw,72px)}
.caf-panel .res-note{text-align:center}
.caf-try{color:#FFE7A8}
.caf-try:hover{color:#FFF3CF}
.caf-disclaimer{position:relative;z-index:1;margin:0;max-width:360px;font-size:13px;font-weight:700;line-height:1.45;color:#B4B0DE;text-align:center}

/* the owl holds a mug of something warm, drawn in the owl's 190 x 200 space */
.on-mug{left:56px;top:88px}
.a-mug{position:relative;display:block;width:76px;height:70px}
.mg-cup{position:absolute;left:8px;top:20px;width:52px;height:48px;overflow:hidden;border-radius:8px 8px 18px 18px;background:#FFB45C;box-shadow:inset -7px -7px 0 #EE9A45}
.mg-band{position:absolute;left:0;top:18px;width:100%;height:9px;background:#FFF6E3;opacity:.85}
.mg-handle{position:absolute;left:48px;top:28px;width:24px;height:26px;border:7px solid #EE9A45;border-radius:50%}
.mg-paw{position:absolute;top:36px;width:20px;height:26px;border-radius:50%;background:var(--deep);transition:background-color .45s ease}
.mg-pl{left:-2px;transform:rotate(18deg)}
.mg-pr{left:50px;transform:rotate(-18deg)}
.mg-steam{position:absolute;left:14px;top:-26px;width:40px;height:40px}
.mg-steam span{position:absolute;bottom:0;width:7px;height:20px;border-radius:4px;background:rgba(244,241,255,.55);opacity:0;animation:steam 3s ease-in-out infinite}
.mg-steam span:nth-child(1){left:2px;animation-delay:.2s}
.mg-steam span:nth-child(2){left:16px;height:26px;animation-delay:1.2s}
.mg-steam span:nth-child(3){left:30px;animation-delay:2.1s}
@keyframes steam{0%{opacity:0;transform:translateY(8px) scaleY(.6)}35%{opacity:.8}100%{opacity:0;transform:translateY(-16px) scaleY(1.1) skewX(-10deg)}}

/* step 1: drink picker */
.presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.drink-chip{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 4px;min-height:60px;padding:10px 12px;border-radius:18px;border:1.5px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#F4F1FF;text-align:left;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .12s ease}
.drink-chip:hover{border-color:rgba(255,231,168,.5);background:rgba(255,231,168,.08)}
.drink-chip:active{transform:scale(.96)}
.drink-chip .cup{grid-row:span 2}
.dc-name{font-size:15px;font-weight:800;line-height:1.2}
.dc-mg{font-size:13px;font-weight:700;color:#B4B0DE}
.drink-chip.added{animation:added .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes added{40%{transform:scale(1.06);border-color:#FFE7A8}}
.more-drinks{display:flex;flex-direction:column;gap:10px}
.more-drinks>summary{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;min-height:44px;color:#FFE7A8;font-size:15px;font-weight:800;cursor:pointer;list-style:none}
.more-drinks>summary::-webkit-details-marker{display:none}
.more-drinks[open]{gap:12px}

/* drinks the visitor added */
.drinks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.drink{display:flex;flex-direction:column;gap:10px;padding:12px 10px 14px 16px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);animation:rise .35s cubic-bezier(.22,1,.36,1);transition:border-color .2s ease,opacity .2s ease}
.drink.after{border-style:dashed;border-color:rgba(183,166,246,.5)}
.drink.invalid{border-color:rgba(255,180,92,.8)}
.drink-top{display:flex;align-items:center;gap:6px}
.drink-what{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.drink-name{font-size:16px;font-weight:800;color:#F4F1FF}
.drink-serving{font-size:14px;font-weight:700;color:#B4B0DE}
.drink-tag{padding:2px 8px;white-space:nowrap;border-radius:10px;background:rgba(183,166,246,.18);font-size:12px;font-weight:800;color:#DCD2FF}
.icon-btn{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:20px;background:none;color:#B4B0DE;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.icon-btn:hover{background:rgba(255,255,255,.1);color:#F4F1FF}
.icon-btn .icon{stroke-width:2}
.drink-fields{display:flex;flex-wrap:wrap;gap:8px 10px}
.fld{display:flex;flex-direction:column;gap:4px}
.fld .label{padding-left:4px}
.fld-time{height:44px;padding:0 10px;font-size:20px;border-radius:14px}
.fld-sel{font-family:'Nunito',ui-rounded,system-ui,sans-serif;font-size:15px;font-weight:800;padding:0 8px 0 12px}
.mg-field{display:flex;align-items:center;gap:6px}
.num{width:84px;height:44px;padding:0 10px;border-radius:14px;border:1.5px solid rgba(244,241,255,.2);background:rgba(20,19,43,.5);color:#F4F1FF;font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:20px;font-weight:600;color-scheme:dark;transition:border-color .2s ease}
.num:focus,.fld-time:focus{border-color:#FFE7A8;outline:none}
.pg .num:focus-visible{outline:3px solid #FFE7A8;outline-offset:3px}
.drink.invalid .num{border-color:#FFB45C}

/* results */
.caf-results .stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.stat-text{font-size:26px;line-height:1.15}
.caf-results :is(.caf-card,.whatif){transition:opacity .3s ease}
.caf-results.stale :is(.stats,.caf-card,.whatif){opacity:.45}
.lg-curve{background:#FFE7A8}
.lg-whatif{width:16px;height:0;border-top:3px dashed #B7A6F6;border-radius:0}
.lg-drink{width:12px;height:12px;border-radius:50%;background:#FFB45C}
.lg-bed{width:0;height:14px;border-left:2px dashed #DCD2FF;border-radius:0}
.caf-chart{position:relative;height:280px;margin:0 -8px;touch-action:pan-y}
.caf-chart svg{display:block;width:100%;height:100%;overflow:visible}
.caf-chart text{font-family:'Nunito',ui-rounded,system-ui,sans-serif;font-size:12px;font-weight:800;fill:#B4B0DE}
.caf-chart .t-strong{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:15px;font-weight:600;fill:#F4F1FF}
.caf-tip{position:absolute;top:0;z-index:2;padding:8px 12px;border-radius:14px;background:rgba(14,13,34,.94);border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 24px rgba(6,5,20,.5);font-size:13px;font-weight:800;line-height:1.45;color:#D9D5F5;white-space:nowrap;pointer-events:none}
.caf-tip b{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:17px;font-weight:600;color:#FFE7A8}
.caf-tip .tip-wi b{color:#DCD2FF}
.caf-table{margin:4px 0 12px}
.caf-table .times td:last-child{font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit}
.caf-table .times td:nth-child(4){font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:19px;font-weight:600;color:#FFE7A8}
.caf-table .times{font-size:15px}
.caf-table .times tr.after td,.caf-table .times tr.after th{opacity:.6}
.row-note{display:block;font-size:13px;font-weight:700;color:#B4B0DE}

/* what-if */
.whatif{display:flex;flex-direction:column;gap:20px;padding:clamp(20px,3vw,32px);border-radius:32px;background:#1F1D42;border:1px solid rgba(255,255,255,.06)}
.whatif-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px}
.wi-body{display:flex;flex-direction:column;gap:12px;animation:rise .4s cubic-bezier(.22,1,.36,1)}
.wi-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.wi-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;min-height:64px;padding:10px 12px 10px 16px;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);transition:border-color .2s ease}
.wi-row.changed{border-color:rgba(183,166,246,.6);background:rgba(183,166,246,.08)}
.wi-what{flex:1 1 160px;min-width:0;display:flex;flex-direction:column;gap:2px}
.wi-name{font-size:16px;font-weight:800;color:#F4F1FF}
.wi-was{font-size:13px;font-weight:700;color:#B4B0DE}
.wi-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.wi-move{display:flex;align-items:center;gap:6px}
.wi-rnd{width:40px;height:40px}
.wi-time{min-width:92px;text-align:center;font-size:19px;font-weight:600;color:#F4F1FF}
.wi-row.skipped .wi-time{opacity:.4;text-decoration:line-through}
.sel.txt{font-family:'Nunito',ui-rounded,system-ui,sans-serif;font-size:15px;font-weight:800;padding:0 8px 0 12px}
.moon-dot{flex:none;width:16px;height:16px;border-radius:50%;box-shadow:inset -5px -3px 0 0 #FFE7A8;transform:rotate(-20deg)}
.wi-result{margin:4px 0 0;padding:16px 20px;border-radius:20px;background:rgba(20,19,43,.6);font-size:18px;font-weight:700;line-height:1.45;color:#D9D5F5}
.wi-result b{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:22px;font-weight:600;color:#DCD2FF}
.wi-result:empty{display:none}

/* wide screens: the owl's answer stays in view while drinks are added.
   phones: drinks first, the answer right after them. */
@media (min-width:880px){
.caf-panel{position:sticky;top:20px;align-self:flex-start}
}
/* sticky needs ancestors that clip rather than hide their overflow (it looks the same) */
@supports (overflow:clip){.caf-page,.caf-page .caf-sky{overflow:clip}}
@media (max-width:879px){
.caf-panel{order:1;min-height:0}
.caf-panel .perch{transform:scale(.8);margin:-24px 0 -30px}
}
@media (max-width:520px){
.caf-chart{height:230px}
.presets{grid-template-columns:repeat(2,minmax(0,1fr))}
.wi-controls{width:100%;justify-content:space-between}
}
@media (prefers-reduced-motion: reduce){
.mg-steam span{opacity:.5}
.drink,.wi-body{animation:none}
}

/* ---------- nap calculator (/tools/nap-calculator/) ---------- */
/* Shares the caffeine calculator's panel (sticky beside the form on wide screens).
   On phones the owl's answer and the Start button come first, above the settings. */
.nap-calc{flex-direction:row-reverse}
@media (max-width:879px){.nap-panel{order:0}}
.nap-panel{gap:16px}
.nap-panel .res-time{font-variant-numeric:tabular-nums}
.nap-count{font-size:clamp(56px,7vw,80px) !important}
.timer-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:10px}
.nap-act{position:relative;z-index:1;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.nap-act .btn{width:auto;min-width:220px}
.nap-extra{position:relative;z-index:1;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.nap-note{position:relative;z-index:1;width:100%;max-width:400px;margin:0;text-align:center}
.nap-copied:empty{display:none}
.nap-copied{margin:0;font-size:14px;font-weight:800;color:#FFE7A8}
.nap-sound{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 12px}
.nap-sound .check{color:#D9D5F5}

/* the owl napping on a cloud with a pillow, drawn at 240 x 190 */
.nap-bed{position:relative;flex:none;width:240px;height:190px;animation:float 6s ease-in-out infinite}
.nap-bed .owlpos{left:64px;top:14px;bottom:auto;width:118px;height:124px}
.nap-bed .owl{transform:scale(.62)}
.nap-pillow{left:142px;top:96px;transform:rotate(14deg) scale(.82)}
.nap-pillow .pw{background:#FFD6E3;box-shadow:inset -6px -6px 0 #F5A6C0}
.nap-bed .owlpos{z-index:1}
.puff{z-index:2}
.puff{position:absolute;left:8px;bottom:4px;width:224px;height:84px}
.puff span{position:absolute;bottom:0;border-radius:50%;background:#F4F1FF;box-shadow:inset -8px -8px 0 #DCD2FF}
.puff span:nth-child(1){left:0;width:96px;height:58px}
.puff span:nth-child(2){left:56px;bottom:10px;width:108px;height:70px}
.puff span:nth-child(3){left:128px;width:96px;height:56px}
.puff span:nth-child(4){left:12px;width:200px;height:34px;border-radius:17px}
.nap-bed::before{content:'';position:absolute;left:30px;bottom:-6px;width:180px;height:14px;border-radius:50%;background:rgba(6,5,20,.35);filter:blur(6px)}

/* form */
.nap-when{flex-wrap:wrap}
.nap-when-in{display:flex;align-items:center;gap:8px}
.nap-sub{min-height:64px}
.opt{font-size:13px;font-weight:700;color:#B4B0DE}
.nap-other{margin-top:10px;flex-wrap:wrap}
.nap-clear{min-height:28px;padding:0;align-self:flex-start;font-size:13px}
#row-avail{display:flex;flex-direction:column;gap:2px}

/* timeline: the nap to scale, then (not to scale) the time left until bedtime */
.nap-results{padding:0 24px 24px}
.lg-settle{background:repeating-linear-gradient(135deg,#B7A6F6 0 3px,rgba(183,166,246,.35) 3px 6px)}
.lg-nap{background:#FFE7A8}
.napline{display:flex;align-items:flex-end;gap:10px;padding:0 26px}
.tl-zone{position:relative;flex:1;min-width:0;padding-top:64px}
.tl-bar{display:flex;gap:3px;height:30px}
.tl-bar span{min-width:6px;border-radius:10px;transition:flex-grow .5s cubic-bezier(.22,1,.36,1)}
.tl-settle{background:repeating-linear-gradient(135deg,#B7A6F6 0 6px,rgba(183,166,246,.35) 6px 12px)}
.tl-nap{background:#FFE7A8;box-shadow:0 0 18px rgba(255,231,168,.25)}
.tl-owl{position:absolute;top:0;width:50px;height:52px;margin-left:-25px;transition:left .5s cubic-bezier(.22,1,.36,1)}
.tl-owl .owl{transform:scale(.26)}
.tl-owl .zz{left:150px;top:-20px}
.tl-tail{flex:0 0 min(34%,260px);min-width:0;display:flex;align-items:center;gap:8px;height:30px}
.tl-break{flex:none;font-family:'Fredoka','Nunito',sans-serif;font-size:22px;font-weight:600;color:#B4B0DE;line-height:1}
.tl-awake{flex:1;min-width:0;height:30px;display:flex;align-items:center;justify-content:center;padding:0 10px;border-radius:10px;border:1.5px dashed rgba(220,210,255,.45);font-size:13px;font-weight:800;color:#D9D5F5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-awake.over{border-color:rgba(255,180,92,.8);color:#FFB45C}
.tl-tail .moon-dot{width:20px;height:20px}
.tl-stops{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px}
.tl-stops li{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:18px;background:rgba(20,19,43,.45);border:1px solid rgba(255,255,255,.06)}
.tl-stops .label{display:flex;align-items:center;gap:6px}
.tl-stops .lg{flex:none}
.tl-stops b{font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:20px;font-weight:600;color:#F4F1FF}
.tl-stops span:last-child{font-size:13px;font-weight:700;color:#B4B0DE}

/* nap lengths */
.nap-options{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.nap-opt{width:100%;height:100%;display:grid;grid-template-columns:1fr auto;align-items:start;gap:8px 14px;padding:16px 18px;border-radius:22px;border:1.5px solid rgba(255,255,255,.08);background:#1F1D42;color:#F4F1FF;text-align:left;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
.nap-opt:hover{border-color:rgba(255,231,168,.45)}
.nap-opt[aria-pressed="true"]{border-color:#FFE7A8;background:rgba(255,231,168,.08)}
.nap-opt:disabled{opacity:.55;cursor:default}
.nap-opt:disabled:hover{border-color:rgba(255,255,255,.08)}
.no-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.no-name{font-size:17px;font-weight:800;line-height:1.25}
.no-desc{font-size:14px;font-weight:600;line-height:1.4;color:#B4B0DE}
.no-time{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.no-alarm{font-size:22px;font-weight:600;line-height:1.1}
.no-meta{font-size:13px;font-weight:700;color:#B4B0DE;white-space:nowrap}
.no-tags{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.no-tags:empty{display:none}
.tag{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:10px;font-size:12px;font-weight:800;background:rgba(255,255,255,.08);color:#D9D5F5}
.tag::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.tag-pick,.tag-chosen{background:rgba(255,231,168,.16);color:#FFE7A8}
.tag-late{background:rgba(255,180,92,.14);color:#FFC98A}
.tag-conflict{background:rgba(255,180,92,.2);color:#FFB45C}
.nap-table td:last-child{font-family:inherit !important;font-size:inherit !important;font-weight:inherit !important;color:#C9C5EA !important;white-space:normal}
.nap-table td:nth-child(2){font-family:'Fredoka','Nunito',ui-rounded,system-ui,sans-serif;font-size:19px;font-weight:600;color:#FFE7A8}

/* resting view: a dim, quiet screen while the timer runs */
.rest{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(180deg,#07061A 0%,#0E0D22 60%,#14132B 100%);animation:rise .4s ease}
.rest .st{opacity:.25}
.rest-in{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.rest-msg{margin:0;font-size:20px;font-weight:700;color:#B4B0DE}
.rest-left{margin:0;font-size:clamp(64px,14vw,120px);font-weight:600;line-height:1;color:#CFC6F2;font-variant-numeric:tabular-nums}
.rest-alarm{margin:0 0 12px;font-size:16px;font-weight:700;color:#8F8BB8}
.rest .btn-ghost{background:rgba(255,255,255,.07);color:#B4B0DE}

@media (max-width:520px){
.napline{padding:0 20px;gap:6px}
.tl-tail{flex-basis:30%}
.tl-awake{font-size:12px;padding:0 4px}
.nap-options{grid-template-columns:1fr}
.nap-when-in{width:100%;flex-wrap:wrap}
.nap-when-in .sel{flex:none}
.nap-when-in .time-input{flex:1 1 170px;min-width:0;padding:0 10px;font-size:20px}
.tl-awake{font-size:0;padding:0}
}
@media (prefers-reduced-motion: reduce){
.nap-bed,.rest{animation:none}
}
