/* Riya's Cake Academy. Same look as the Riya's Cake Studio site (tokens from css/styles.css). Mobile first. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Devanagari"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/noto-sans-devanagari.woff2) format("woff2"); unicode-range: U+0900-097F; }
@font-face { font-family: "Noto Sans Kannada"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/noto-sans-kannada.woff2) format("woff2"); unicode-range: U+0C80-0CFF; }

:root {
  --cream: #FFF8F1; --cream-deep: #FCEEE2; --peach: #FBE3D2; --pink: #FDECEF;
  --rose: #B83A5E; --rose-dark: #96284A; --choco: #3E2319; --choco-2: #5A3526; --caramel: #9A5328;
  --text-soft: #6B4435; --muted: #8A6A5C; --line: #F0DFD3; --gold: #E3A332; --wa: #16804A; --mint: #2E7D5B;
  --radius: 20px; --r-sm: 12px; --shadow: 0 6px 22px rgba(62, 35, 25, .10);
  --head: "Fraunces", "Noto Sans Kannada", "Noto Sans Devanagari", Georgia, serif; --body: "Nunito", "Noto Sans Kannada", "Noto Sans Devanagari", system-ui, sans-serif;
  --top: 58px; --tabs: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--choco); background: var(--cream); min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .4em; color: var(--choco); }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
.boot { padding: 40px 20px; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* top bar + bottom tabs */
.top { position: fixed; top: 0; left: 0; right: 0; height: calc(var(--top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0;
  display: flex; align-items: center; gap: 6px; background: rgba(255, 248, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--choco); font-family: var(--head); font-size: 1.08rem; flex: 1; min-width: 0; }
.brand b { color: var(--rose); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back, .icon-btn { border: 0; background: var(--cream-deep); width: 40px; height: 40px; border-radius: 50%; font-size: 1.15rem; display: grid; place-items: center; flex: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: auto; max-width: 640px; display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 20; box-shadow: 0 -4px 18px rgba(62, 35, 25, .06); }
.tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: .74rem; font-weight: 700; padding: 7px 0 8px; }
.tabs a span { display: block; font-size: 1.3rem; line-height: 1.3; filter: grayscale(.6); }
.tabs a.on { color: var(--rose); } .tabs a.on span { filter: none; }
#view { max-width: 640px; margin: 0 auto; padding: calc(var(--top) + env(safe-area-inset-top) + 14px) 16px calc(var(--tabs) + env(safe-area-inset-bottom) + 24px); outline: 0; }
body.gate #view { padding-top: 0; padding-bottom: 30px; }

/* buttons, chips, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 800;
  text-decoration: none; background: var(--rose); color: #fff; min-height: 46px; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: #fff; color: var(--rose); border: 2px solid var(--rose); }
.btn.soft { background: var(--pink); color: var(--rose-dark); }
.btn.wa { background: var(--wa); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn[disabled] { opacity: .6; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--peach); color: var(--caramel); }
.chip.Beginner { background: #E4F3EA; color: var(--mint); } .chip.Intermediate { background: #FFF1D6; color: #8A5A00; }
.chip.Advanced { background: var(--pink); color: var(--rose-dark); } .chip.Business { background: #E8E6F8; color: #4B3F99; }
.card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.sec-h h2 { margin: 0; } .sec-h a { font-weight: 800; font-size: .9rem; text-decoration: none; }
.bar { height: 8px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 99px; transition: width .4s; }

/* welcome + registration gate */
.welcome { margin: 0 -16px; padding: calc(28px + env(safe-area-inset-top)) 22px 26px; text-align: center; color: #fff;
  background: radial-gradient(circle at 20% 10%, #D9587E 0, transparent 55%), linear-gradient(160deg, var(--rose) 0%, var(--choco-2) 100%); border-radius: 0 0 32px 32px; }
.welcome .logo { width: 76px; height: 76px; margin: 0 auto 10px; background: #fff; border-radius: 50%; padding: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.welcome h1 { color: #fff; font-size: 1.9rem; margin-bottom: 4px; }
.welcome .by { font-size: .82rem; opacity: .9; letter-spacing: .03em; margin-bottom: 14px; }
.welcome .lead { font-size: 1.05rem; max-width: 420px; margin: 0 auto 6px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.perk { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); font-size: .86rem; color: var(--text-soft); }
.perk b { display: block; font-size: 1.35rem; color: var(--rose); font-family: var(--head); }
.form { margin-top: 14px; }
.form h2 { text-align: center; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 4px; }
.field input, .field select { width: 100%; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; min-height: 48px; }
.field input:focus, .field select:focus { border-color: var(--rose); outline: 0; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.field.bad input { border-color: #C62828; }
.err { color: #C62828; font-weight: 700; font-size: .88rem; min-height: 1.2em; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roles button { border: 2px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 10px 6px; font-weight: 700; font-size: .88rem; }
.roles button.on { border-color: var(--rose); background: var(--pink); color: var(--rose-dark); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-soft); margin: 10px 0 14px; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--rose); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* home */
.hello { display: flex; gap: 14px; align-items: center; }
.ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--rose) calc(var(--p) * 1%), var(--cream-deep) 0); }
.ring b { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .95rem; color: var(--rose); }
.hello h1 { font-size: 1.35rem; margin: 0; }
.stats { display: flex; gap: 8px; margin-top: 12px; }
.stat { flex: 1; text-align: center; background: var(--cream); border-radius: 14px; padding: 8px 4px; font-size: .74rem; color: var(--muted); font-weight: 700; }
.stat b { display: block; font-size: 1.2rem; color: var(--choco); font-family: var(--head); }
.cont { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; background: linear-gradient(135deg, var(--pink), var(--peach)); }
.cont img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex: none; }
.cont .k { font-size: .74rem; font-weight: 800; color: var(--rose); text-transform: uppercase; letter-spacing: .05em; }
.cont h3 { margin: 2px 0 0; font-size: 1rem; }
.tip { background: #FFF6E3; border-left: 5px solid var(--gold); }
.tip .k { font-weight: 800; color: #8A5A00; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 3px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.mod { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); position: relative; }
.mod .ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: var(--cream-deep); margin-left: 4px; z-index: 1; }
.mod.done .ic { background: #E4F3EA; }
.mod .tx { flex: 1; min-width: 0; }
.mod h3 { margin: 4px 0 2px; }
.mod p { margin: 0 0 6px; font-size: .84rem; color: var(--text-soft); }
.mod .n { font-size: .76rem; color: var(--muted); font-weight: 700; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 64%; max-width: 260px; scroll-snap-align: start; text-decoration: none; color: inherit; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.rcard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rcard div { padding: 10px 12px 12px; }
.rcard h3 { font-size: .98rem; margin: 0 0 2px; }
.promo { background: linear-gradient(135deg, var(--choco-2), var(--choco)); color: #fff; }
.promo h2, .promo h3 { color: #fff; }
.promo p { color: #F6DCCB; }

/* module + lesson */
.mhead { text-align: center; padding: 6px 0 4px; }
.mhead .big { font-size: 2.6rem; }
.les { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 12px; border-radius: 16px; background: #fff; margin-bottom: 10px; box-shadow: var(--shadow); }
.les .num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--cream-deep); color: var(--caramel); }
.les.done .num { background: var(--mint); color: #fff; }
.les .tx { flex: 1; min-width: 0; } .les h3 { margin: 0; font-size: .98rem; } .les .n { font-size: .78rem; color: var(--muted); }
.vid { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.media { position: relative; aspect-ratio: 16 / 9; background: #1d1310; }
.media img, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media button { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; }
.media .play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: rgba(184, 58, 94, .92);
  display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); pointer-events: none; }
.media .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; pointer-events: none; }
.vid .meta { padding: 10px 14px 12px; }
.vid .meta h3 { font-size: .96rem; font-family: var(--body); font-weight: 800; margin: 0 0 2px; }
.vid .meta .by { font-size: .8rem; color: var(--muted); }
.vid .meta .by a { color: var(--muted); }
.vid.seen .meta h3::after { content: " \2713"; color: var(--mint); }
.donebar { position: sticky; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 8px); z-index: 5; }
.credit { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* recipes */
.rhero { margin: -14px -16px 14px; position: relative; }
.rhero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { display: flex; gap: 8px; margin: 8px 0 14px; flex-wrap: wrap; }
.ing { list-style: none; padding: 0; margin: 0; }
.ing li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ing li label { flex: 1; display: flex; gap: 10px; align-items: flex-start; }
.ing input { width: 20px; height: 20px; accent-color: var(--rose); flex: none; margin-top: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps .t { font-weight: 800; }
.steps .tp { background: #FFF6E3; border-radius: 10px; padding: 6px 10px; font-size: .86rem; margin-top: 4px; }
.fix dt { font-weight: 800; margin-top: 8px; } .fix dd { margin: 2px 0 0; color: var(--text-soft); }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rgrid .rcard { max-width: none; }

/* tools */
.seg { display: flex; background: var(--cream-deep); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 4px; font-weight: 800; font-size: .86rem; color: var(--muted); }
.seg button.on { background: #fff; color: var(--rose); box-shadow: 0 2px 8px rgba(62, 35, 25, .1); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.out { background: var(--pink); border-radius: 16px; padding: 14px; text-align: center; margin-top: 6px; }
.out b { display: block; font-family: var(--head); font-size: 1.7rem; color: var(--rose-dark); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl td, .tbl th { padding: 7px 4px; border-bottom: 1px dashed var(--line); text-align: left; }
.tbl td:last-child, .tbl th:last-child { text-align: right; font-weight: 800; }

/* order */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.show figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.show img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.show figcaption { font-size: .8rem; font-weight: 700; padding: 6px 10px 8px; }
.stack { display: grid; gap: 10px; }

/* me, certificate */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { text-align: center; background: #fff; border-radius: 16px; padding: 10px 6px; box-shadow: var(--shadow); font-size: .74rem; font-weight: 700; color: var(--muted); }
.badge span { display: block; font-size: 1.8rem; filter: grayscale(1); opacity: .45; }
.badge.on { color: var(--choco); } .badge.on span { filter: none; opacity: 1; }
.cert img { border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }

/* search */
.search input { width: 100%; border: 2px solid var(--line); border-radius: 999px; padding: 12px 18px; background: #fff; min-height: 48px; }
.search input:focus { border-color: var(--rose); outline: 0; }

.toast { position: fixed; left: 0; right: 0; margin: auto; bottom: calc(var(--tabs) + env(safe-area-inset-bottom) + 14px); width: max-content; max-width: 90vw;
  background: var(--choco); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.toast.on { opacity: 1; }

@media (min-width: 700px) {
  .rgrid, .show { grid-template-columns: repeat(3, 1fr); }
  .rcard { flex-basis: 40%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Languages (2026-12-04): picker on the welcome screen, the top bar (#/lang) and Me; Indian scripts need a little more line height */
.langs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 12px; }
.langs button { border: 2px solid var(--line, #F0DFD3); background: #fff; color: var(--choco); border-radius: 999px; padding: 7px 16px; font: 700 .98rem var(--body); }
.langs button.on { border-color: var(--rose); background: var(--rose); color: #fff; }
.langs.big { flex-direction: column; align-items: stretch; }
.langs.big button { padding: 14px; font-size: 1.15rem; border-radius: 14px; }
.lang-btn { font: 800 .85rem var(--body); color: var(--choco); }
html[lang="kn"] body, html[lang="hi"] body { line-height: 1.62; }
html[lang="kn"] h1, html[lang="kn"] h2, html[lang="kn"] h3, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.4; }
/* WhatsApp code step */
.otp-in { font: 800 1.6rem/1 var(--body); letter-spacing: .5em; text-align: center; padding: 12px 8px; }
.otp-to { font-weight: 800; }
.linkbtn { border: 0; background: none; color: var(--rose-dark, #8f2547); font: 700 .95rem var(--body); text-decoration: underline; padding: 6px; }
.linkbtn:disabled { color: var(--muted, #8A6A5C); text-decoration: none; }
.field .hint.wa-note { color: var(--wa); font-weight: 600; background: #E8F6EE; border-left: 3px solid var(--wa); padding: 6px 8px; border-radius: 6px; margin-top: 6px; }
