/* Ananta Tarot student app. Brand: deep #0D3640, teal #1B7084, gold #C98E2E, cream #FDF7EC. No gradients.
   Phone: top bar + bottom tabs (installable app). Desktop (≥900px): left sidebar + wide content. */
:root {
  --deep: #0D3640; --teal: #1B7084; --gold: #C98E2E; --gold-text: #8A5A12; --cream: #FDF7EC; --halo: #EEF9FC;
  --line: #DBDFE4; --muted: #5B6570; --white: #fff; --r: 18px;
  --display: "Cormorant Garamond", Georgia, serif; --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: 60px; --tabs: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--deep); background: var(--cream); min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal); }
button { font: inherit; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
[lang="hi"], .hi { font-family: "Noto Sans Devanagari", var(--body); }
.hi { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--deep); }
h1 { font-size: clamp(30px, 7vw, 44px); }
h2 { font-size: 26px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.hello { margin: 4px 0 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--deep); }
.btn.ghost { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn.ghost:hover { background: var(--halo); }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.card h2 { margin-bottom: 10px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--halo); color: var(--teal); }
.msg { margin-top: 10px; font-size: 15px; min-height: 1.4em; }
.msg.err { color: #A1361B; }
.msg.ok { color: var(--teal); }
.powered { font-size: 13px; color: var(--muted); margin-top: 18px; }
.powered a { color: inherit; font-weight: 700; }

/* Forms */
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #B9C2CB; border-radius: 12px; font: inherit; font-size: 18px; background: #fff; color: var(--deep); }
.form input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(27, 112, 132, .2); }
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--halo); border: 0; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--teal); cursor: pointer; }

/* Login */
.is-out .main { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login { width: 100%; max-width: 440px; }
.login-logo { margin: 0 auto 22px; width: 220px; height: auto; }
.login-card h1 { font-size: 36px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--halo); border-radius: 999px; padding: 4px; margin-top: 16px; }
.seg button { border: 0; background: none; border-radius: 999px; min-height: 42px; font-weight: 700; font-size: 15px; color: var(--teal); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--deep); box-shadow: 0 1px 4px rgba(13, 54, 64, .15); }
.login .small { margin-top: 10px; }

/* Shell: phone first */
.rail { display: none; }
.topbar { position: fixed; inset: 0 0 auto; height: calc(var(--top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-t { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-install { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--halo); color: var(--teal); font-weight: 700; font-size: 14px; border-radius: 99px; padding: 8px 12px; }
.is-in .main { padding: calc(var(--top) + env(safe-area-inset-top) + 18px) 0 calc(var(--tabs) + env(safe-area-inset-bottom) + 24px); }
.wrap { padding: 0 16px; max-width: 760px; margin: 0 auto; }
.tabs { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabs) + env(safe-area-inset-bottom)); }
.tabs a { display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.tabs a[aria-current="page"] { color: var(--teal); }
.tabs a[aria-current="page"] svg { background: var(--halo); border-radius: 99px; padding: 2px 10px; width: 46px; }

/* Home */
.cont { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; background: var(--deep); border-color: var(--deep); }
.cont-play { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }
.cont-play svg { margin-left: 4px; }
.cont-t { display: grid; gap: 2px; }
.cont-t small { color: #E8B65C; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.cont-t b { color: #fff; font-size: 19px; line-height: 1.3; }
.cont-t .hi { color: #CFE3E8; }
.cont:hover { background: #0A2B33; }
.course-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.course-head h2 { margin-bottom: 2px; }
.ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--halo) 0); }   /* a progress ring, not a decorative gradient */
.ring span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.install-card b { display: block; font-size: 18px; }
.install-card .btn { margin-top: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 6px 0 10px; }
.kv dt { color: var(--muted); }
.kv code { font-size: 17px; font-weight: 700; }
.devs { display: grid; gap: 10px; margin-top: 10px; }
.phone-only { display: block; }

/* Lesson list */
.list { display: grid; gap: 2px; margin-top: 10px; }
.list a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: var(--deep); }
.list a:hover { background: var(--halo); }
.list a[aria-current="page"] { background: var(--halo); box-shadow: inset 3px 0 0 var(--teal); }
.list small { display: block; color: var(--muted); font-size: 13px; }
.tick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.list a.is-done .tick { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Player */
.wrap.wide { max-width: 1280px; padding: 0; }
.video { position: relative; background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; background: #000; }
.wait { height: 100%; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; background: var(--deep); }
.wm { position: absolute; right: 10px; top: 8px; font-size: 11px; color: rgba(255, 255, 255, .35); pointer-events: none; user-select: none; }
.now { padding: 16px; }
.now h1 { font-size: clamp(26px, 6vw, 38px); margin-top: 6px; }
.pn { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.p-side { margin: 0 16px; }
.p-side-top { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--halo); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.page-lessons.is-in .main { padding-top: calc(var(--top) + env(safe-area-inset-top)); }

/* Desktop */
@media (min-width: 900px) {
  body.is-in { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .topbar, .tabs, .phone-only { display: none; }
  .rail { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: #fff; border-right: 1px solid var(--line); }
  .rail-logo img { width: 190px; height: auto; }
  .rail-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin: 10px 0 22px 4px; }
  .rail-nav { display: grid; gap: 4px; }
  .rail-nav a, .rail-install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--deep); font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; }
  .rail-nav a:hover, .rail-install:hover { background: var(--halo); }
  .rail-nav a[aria-current="page"] { background: var(--halo); color: var(--teal); font-weight: 700; }
  .rail-foot { margin-top: auto; display: grid; gap: 2px; font-size: 14px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
  .rail-foot span { color: var(--muted); word-break: break-all; }
  .is-in .main { padding: 36px 0 48px; }
  .wrap { padding: 0 36px; max-width: 900px; margin: 0; }
  .wrap.wide { padding: 0 36px; max-width: 1320px; }
  .page-lessons.is-in .main { padding-top: 28px; }
  .player { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .video { border-radius: var(--r); overflow: hidden; }
  .now { padding: 18px 0 0; }
  .p-side { margin: 0; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
  .cont { padding: 24px; }
  .cont-t b { font-size: 22px; }
}

/* App home for everyone (3 Dec 2026): same app shell as students (app bar + bottom tabs / side menu), meditation card from inc/med-screen.php */
.is-guest .login { margin: 0 auto; padding: 0 16px; }
.is-guest .login-logo { display: none; }
.is-guest .login-card h1 { font-size: 32px; }
.tiles { display: grid; gap: 12px; margin-bottom: 16px; }
.tile { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; text-decoration: none; color: var(--deep); }
.tile:hover { border-color: var(--teal); }
.tile-i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--halo); color: var(--teal); }
.tile-t { flex: 1; display: grid; gap: 1px; }
.tile-t b { font-size: 17px; }
.tile-t small { font-size: 14px; color: var(--muted); }
.tile > svg { color: var(--muted); flex: none; }
.tabs [lang="hi"] { font-family: "Noto Sans Devanagari", var(--body); font-size: 13px; }
@media (min-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } }
