
:root{
  --teal:#036C70; --teal-dark:#024E51; --teal-soft:#E3F1F0;
  --amber:#F2A93B; --amber-text:#5C3D00; --cream:#FFF4E0;
  --ink:#1E2A2A; --muted:#3E4A4A; --line:#E6DFD0; --bg:#FBF8F2; --white:#fff;
}
html{font-size:17px}
html.easy{font-size:21px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:600;line-height:1.4;-webkit-text-size-adjust:100%}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit}
a{color:var(--teal)}
.app{max-width:520px;margin:0 auto;min-height:100vh;min-height:100dvh;padding:16px 18px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.screen{display:none;flex-direction:column;gap:16px;flex:1}
.screen.active{display:flex}
h1{margin:0;font-size:1.65rem;line-height:1.2;font-weight:900}
h2{margin:0;font-size:1.2rem;font-weight:900}
p{margin:0}
.muted{color:var(--muted)}
.small{font-size:.85rem}
.center{text-align:center}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px}

/* top bars */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand{display:flex;align-items:center;gap:10px;font-size:1.3rem;font-weight:900;color:var(--teal)}
.brand img{width:2.6rem;height:2.6rem;border-radius:12px}
.pill{min-height:44px;padding:0 14px;border-radius:999px;border:2px solid var(--line);background:#fff;font-weight:800;font-size:.9rem;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.pill.on{background:var(--teal);border-color:var(--teal);color:#fff}
.back{min-height:44px;padding:0 10px 0 2px;border:none;background:none;color:var(--teal);font-weight:800;font-size:1.05rem;display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.iconbtn{width:3rem;height:3rem;flex:none;border-radius:50%;border:none;background:var(--teal-soft);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.iconbtn svg{width:1.6rem;height:1.6rem}
.iconbtn.speaking{background:var(--amber)}
.step-label{font-size:.88rem;font-weight:800;color:var(--muted)}

/* cards & buttons */
.card{background:#fff;border:2px solid var(--line);border-radius:22px;padding:16px}
.card.teal{background:var(--teal);border-color:var(--teal);color:#fff}
.card.cream{background:var(--cream);border:3px solid var(--amber)}
.card.soft{background:var(--teal-soft);border-color:var(--teal-soft)}
.btn{min-height:60px;width:100%;border-radius:20px;border:none;padding:10px 16px;font-weight:900;font-size:1.15rem;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;text-decoration:none;text-align:center}
.btn.primary{background:var(--amber);color:var(--ink)}
.btn.teal{background:var(--teal);color:#fff}
.btn.outline{background:#fff;border:3px solid var(--teal);color:var(--teal)}
.btn.plain{background:#fff;border:2px solid var(--line);color:var(--ink)}
.btn.big{min-height:72px;font-size:1.35rem}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.left{justify-content:flex-start;text-align:left}
.btn .sub{display:block;font-size:.8rem;font-weight:700}
.btn svg{width:1.7rem;height:1.7rem;flex:none}
.stack{display:flex;flex-direction:column;gap:12px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{background:#fff;border:2px solid var(--line);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:8px;text-align:left;cursor:pointer;color:var(--ink)}
.tile .ico{width:3rem;height:3rem;border-radius:16px;background:var(--teal-soft);display:flex;align-items:center;justify-content:center}
.tile .ico svg{width:1.7rem;height:1.7rem}
.tile b{font-size:1.15rem;font-weight:900}
.tile span{font-size:.88rem;color:var(--muted)}
.hero-btn{background:var(--amber);border:none;border-radius:24px;padding:18px;display:flex;align-items:center;gap:16px;text-align:left;cursor:pointer;box-shadow:0 6px 16px rgba(178,112,10,.25);color:var(--ink)}
.hero-btn .ico{width:4rem;height:4rem;flex:none;border-radius:20px;background:var(--cream);display:flex;align-items:center;justify-content:center}
.hero-btn .ico svg{width:2.3rem;height:2.3rem}
.hero-btn b{display:block;font-size:1.4rem;font-weight:900}
.hero-btn span{font-size:.95rem;font-weight:700}
.row-link{display:flex;flex-direction:row;align-items:center;gap:14px}
[hidden]{display:none!important}
.brand{white-space:nowrap}
html.easy .brand{font-size:1.05rem}
html.easy .brand img{width:2.2rem;height:2.2rem}
html.easy #easyToggle{font-size:.75rem;padding:0 10px}
.promise{display:flex;align-items:center;gap:8px;background:var(--teal-soft);border-radius:16px;padding:10px 14px;color:var(--teal-dark);font-size:.85rem;font-weight:700}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;font-size:.88rem;font-weight:800}
.footer-links button,.linkbtn{background:none;border:none;color:var(--teal);font-weight:800;text-decoration:underline;cursor:pointer;padding:8px 4px;font-size:inherit}
.banner{background:var(--cream);border:2px solid var(--amber);border-radius:18px;padding:12px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between}

/* easy-view home */
.easy-only{display:none}
html.easy .easy-only{display:flex}
html.easy .normal-only{display:none!important}

/* choices */
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.choice{min-height:56px;border-radius:18px;border:2px solid #D9D2C3;background:#fff;font-weight:800;cursor:pointer;padding:8px}
.choice.sel{border:3px solid var(--teal);background:var(--teal-soft);color:var(--teal-dark)}
textarea{width:100%;min-height:110px;border-radius:18px;border:2px solid #D9D2C3;background:#fff;padding:12px 14px;font-size:1rem;line-height:1.4;resize:vertical}
input[type=text],input[type=tel]{width:100%;min-height:52px;border-radius:16px;border:2px solid #D9D2C3;background:#fff;padding:10px 14px;font-size:1rem}
label{font-weight:800}

/* pause timer */
.pausebox{display:flex;align-items:center;gap:16px}
.timer{width:4.6rem;height:4.6rem;flex:none;border-radius:50%;border:6px solid var(--amber);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:900}

/* progress */
.progress{height:12px;border-radius:6px;background:var(--line);overflow:hidden}
.progress i{display:block;height:100%;background:var(--teal);border-radius:6px;transition:width .3s}

.hint{background:var(--cream);border-radius:16px;padding:12px 14px;color:var(--amber-text);font-weight:700;font-size:.92rem}
.signs{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.signs li{display:flex;gap:8px;align-items:flex-start;font-weight:700}
.signs li:before{content:"!";flex:none;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--amber);color:var(--ink);font-weight:900;display:flex;align-items:center;justify-content:center;font-size:.85rem;margin-top:1px}
.count{width:3.4rem;height:3.4rem;flex:none;border-radius:50%;background:var(--amber);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:900}
.count.ok{background:var(--teal);color:#fff}
.reveal{display:none}
.reveal.open{display:block}

/* worry dots */
.dots{display:inline-flex;gap:5px;flex:none}
.dots i{width:14px;height:14px;border-radius:50%;border:2px solid #8A9595}
.dots i.f{background:var(--teal);border-color:var(--teal)}
ol.steps{margin:0;padding-left:1.4rem;display:flex;flex-direction:column;gap:6px;font-weight:700}

/* calm */
#calm{background:var(--teal);color:#fff;margin:-16px -18px calc(-24px - env(safe-area-inset-bottom));padding:16px 18px calc(24px + env(safe-area-inset-bottom));align-items:center}
#calm .back{color:#fff}
.breath-wrap{width:min(78vw,300px);height:min(78vw,300px);border-radius:50%;background:rgba(255,244,224,.12);display:flex;align-items:center;justify-content:center;margin-top:12px}
.breath{width:45%;height:45%;border-radius:50%;background:var(--cream);color:var(--teal-dark);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;transition:width 4s ease-in-out,height 4s ease-in-out}
.breath.big{width:92%;height:92%}
.breath b{font-size:1.4rem}
.breath span{font-size:2.2rem;line-height:1}

/* family */
.code{flex:1;min-height:52px;border-radius:16px;background:var(--cream);color:var(--teal-dark);display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:900;letter-spacing:.1em}
.contact{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #EEE8DC}
.contact a{font-weight:900;text-decoration:none}
.x{background:none;border:none;color:#7A4A00;font-weight:900;cursor:pointer;min-width:44px;min-height:44px}

/* faq */
details{background:#fff;border:2px solid var(--line);border-radius:18px;padding:0 16px}
summary{cursor:pointer;font-weight:900;padding:14px 0;font-size:1.02rem;list-style:none;display:flex;justify-content:space-between;gap:10px}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";font-size:1.4rem;line-height:1;color:var(--teal)}
details[open] summary:after{content:"–"}
details p,details ul{padding-bottom:14px}
details ul{margin:0;padding-left:1.2rem}
.howto{display:flex;gap:12px;align-items:flex-start}
.num{width:2.2rem;height:2.2rem;flex:none;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}

.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-weight:800;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;text-align:center;z-index:9}
.toast.show{opacity:1}

@media print{
  body{background:#fff}
  .app>*{display:none!important}
  #printcard{display:block!important}
}
#printcard{display:none;font-family:'Nunito',sans-serif;padding:24px;border:4px solid #036C70;border-radius:20px;max-width:560px}
@media (prefers-reduced-motion:reduce){.breath{transition:none}}

/* v1.1 additions */
body{font-family:'Nunito','Noto Sans Devanagari','Noto Sans Telugu','Noto Sans Tamil','Noto Sans Malayalam',system-ui,-apple-system,'Segoe UI',sans-serif}
html[lang=hi] h1,html[lang=te] h1,html[lang=ta] h1,html[lang=ml] h1{line-height:1.35}
html[lang=ta] body,html[lang=ml] body{font-size:.96rem}
.langgrid{display:grid;grid-template-columns:1fr;gap:12px}
.langbtn{min-height:68px;border-radius:20px;border:2px solid var(--line);background:#fff;font-weight:900;font-size:1.35rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:0 20px;color:var(--ink)}
.langbtn small{font-size:.85rem;color:var(--muted);font-weight:700}
.langbtn.sel{border:3px solid var(--teal);background:var(--teal-soft)}
.iconbtn.readon{background:var(--amber)}
.readpill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:999px;border:2px solid var(--line);background:#fff;font-weight:800;font-size:.85rem;cursor:pointer;color:var(--ink)}
.readpill.on{background:var(--amber);border-color:var(--amber)}
.readpill svg{width:1.2rem;height:1.2rem}

/* bundled Indian-script fonts (SIL Open Font License) – load only when those letters appear */
@font-face{font-family:'Noto Sans Devanagari';font-weight:500 600;font-display:swap;src:url(fonts/devanagari-500.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:'Noto Sans Devanagari';font-weight:700 900;font-display:swap;src:url(fonts/devanagari-700.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:'Noto Sans Telugu';font-weight:500 600;font-display:swap;src:url(fonts/telugu-500.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+25CC}
@font-face{font-family:'Noto Sans Telugu';font-weight:700 900;font-display:swap;src:url(fonts/telugu-700.woff2) format('woff2');unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+25CC}
@font-face{font-family:'Noto Sans Tamil';font-weight:500 600;font-display:swap;src:url(fonts/tamil-500.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Noto Sans Tamil';font-weight:700 900;font-display:swap;src:url(fonts/tamil-700.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Noto Sans Malayalam';font-weight:500 600;font-display:swap;src:url(fonts/malayalam-500.woff2) format('woff2');unicode-range:U+0307,U+0323,U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+1CF2,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Noto Sans Malayalam';font-weight:700 900;font-display:swap;src:url(fonts/malayalam-700.woff2) format('woff2');unicode-range:U+0307,U+0323,U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+1CF2,U+200C-200D,U+20B9,U+25CC}
.topbar{flex-wrap:wrap;row-gap:8px}
#easyToggle{max-width:100%}
