/* Public website: the menu and footer on every public page (site-*), and the
   layout of the public pages' own content (inside <main class="pub">).
   The app's pages do not load this file. */
:root { --p-indigo:#667eea; --p-violet:#764ba2; --p-ink:#1e1b4b; --p-text:#334155; --p-muted:#64748b; --p-line:#e2e8f0; --p-soft:#f5f3ff; --p-soft2:#eef2ff; }
html { scroll-behavior:smooth; }
body.public-page { background:#fbfaff !important; padding:0 !important; margin:0; font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:var(--p-text); min-height:100vh; display:block; }

/* ── Menu ─────────────────────────────────────────────────────────── */
.site-nav { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.97); border-bottom:1px solid var(--p-line); backdrop-filter:saturate(1.2) blur(6px); }
.site-nav-in { max-width:1140px; margin:0 auto; padding:0 24px; height:70px; display:flex; align-items:center; gap:26px; }
.site-logo img { height:40px; width:auto; display:block; }
.site-links { display:flex; gap:22px; margin-left:8px; }
.site-links a { color:var(--p-ink); text-decoration:none; font-weight:500; font-size:14.5px; padding:6px 0; }
.site-links a:hover { color:var(--p-indigo); }
.site-links a.on { color:var(--p-indigo); box-shadow:inset 0 -3px 0 var(--p-indigo); }
.site-right { margin-left:auto; display:flex; align-items:center; gap:14px; }
.site-login { color:var(--p-ink); font-weight:600; font-size:14.5px; text-decoration:none; }
.site-btn { display:inline-block; padding:10px 18px; border-radius:999px; font-weight:600; font-size:14.5px; text-decoration:none; border:0; cursor:pointer; font-family:inherit; }
.site-btn-primary { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff !important; box-shadow:0 6px 18px rgba(102,126,234,.35); }
.site-btn-dash { background:var(--p-soft2); color:var(--p-indigo) !important; }
.site-burger { display:none; background:none; border:0; padding:8px; cursor:pointer; }
.site-burger i { display:block; width:24px; height:3px; border-radius:2px; background:var(--p-ink); margin:4px 0; }
.site-panel { display:none; border-top:1px solid var(--p-line); background:#fff; padding:8px 16px 16px; }
.site-panel a { display:block; padding:12px 6px; color:var(--p-ink); font-weight:500; text-decoration:none; border-bottom:1px solid var(--p-line); }
.site-panel a.on { color:var(--p-indigo); }
.site-panel .site-btn { margin-top:12px; text-align:center; display:block; border:0; }
.site-nav.open .site-panel { display:block; }
/* logged in: "My Dashboard" instead of Log in / Create free account */
.site-in { display:none !important; }
.signed-in .site-in { display:inline-block !important; }
.signed-in .site-panel .site-in { display:block !important; }
.signed-in .site-out { display:none !important; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background:var(--p-ink); color:#c7d2fe; padding:44px 0 28px; font-size:14px; margin-top:0; }
.site-footer-in { max-width:1140px; margin:0 auto; padding:0 24px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:24px; }
.site-footer img { height:38px; width:auto; background:#fff; border-radius:10px; padding:4px 8px; }
.site-footer p { margin:12px 0 0; line-height:1.6; }
.site-footer h5 { color:#fff; font-size:14px; margin:0 0 10px; }
.site-footer a { display:block; color:#c7d2fe; text-decoration:none; margin:5px 0; }
.site-footer a:hover { color:#fff; }
.site-footer-base { max-width:1140px; margin:28px auto 0; padding:16px 24px 0; border-top:1px solid rgba(199,210,254,.2); font-size:12.5px; color:#a5b4fc; }

@media (max-width:860px) {
  .site-links { display:none !important; }
  .site-right .site-btn-dash { padding:9px 14px; font-size:14px; }
  .site-burger { display:block; }
  .site-nav-in { height:62px; padding:0 16px; }
  .site-logo img { height:34px; }
  .site-footer-in { grid-template-columns:1fr 1fr; }
  .site-footer-in > div:first-child { grid-column:1 / -1; }
}

/* ── Public page content ──────────────────────────────────────────── */
.pub { display:block; font-size:15.5px; line-height:1.6; }
.pub * { box-sizing:border-box; }
.pub a { color:inherit; text-decoration:none; }
.pub .wrap { max-width:1140px; margin:0 auto; padding:0 24px; }
.pub h1 { font-size:clamp(28px, min(3.4vw, 5.8vh), 40px); line-height:1.12; color:var(--p-ink); font-weight:800; letter-spacing:-.5px; margin:0; }
.pub h1 .hl { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pub h2 { font-size:clamp(22px, 2.2vw, 28px); color:var(--p-ink); font-weight:700; text-align:center; letter-spacing:-.3px; margin:0; }
.pub h3 { color:var(--p-ink); }
.pub .sub { text-align:center; color:var(--p-muted); margin:6px auto 28px; max-width:640px; font-size:15px; }
.pub section { padding:56px 0; }
.pub .alt { background:var(--p-soft); }
.pub .btn { display:inline-block; padding:11px 20px; border-radius:999px; font-weight:600; font-size:14.5px; }
.pub .btn-primary { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; box-shadow:0 6px 18px rgba(102,126,234,.35); }
.pub .btn-ghost { border:2px solid var(--p-indigo); color:var(--p-indigo); background:#fff; }
.pub .btn-white { background:#fff; color:var(--p-violet); }
.pub .center { text-align:center; margin-top:28px; }
.pub .card { background:#fff; border:1px solid var(--p-line); border-radius:20px; padding:24px; }
.pub .card p { font-size:14px; color:var(--p-muted); margin:6px 0 0; }
.pub img.cartoon { mix-blend-mode:multiply; }

/* hero */
/* the top of Home fills one screen (Roopa, 17 Nov: everything should fit at 100%) */
.pub .hero { background:linear-gradient(180deg,var(--p-soft2),#fbfaff); padding:clamp(20px,4vh,56px) 0; min-height:calc(100vh - 72px); display:flex; align-items:center; }
.pub .hero > .wrap { width:100%; }
.pub .hero .wrap { display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
.pub .eyebrow { display:inline-block; background:#fff; color:var(--p-violet); border:1px solid #ddd6fe; border-radius:999px; padding:6px 14px; font-size:13px; font-weight:600; margin-bottom:18px; }
.pub .lead { font-size:clamp(15px, 2.1vh, 17px); margin:clamp(10px,2vh,18px) 0 clamp(16px,3vh,28px); max-width:580px; line-height:1.6; }
.pub .cta { display:flex; gap:12px; flex-wrap:wrap; }
.pub .trust { display:flex; gap:8px 18px; margin-top:clamp(12px,2.4vh,22px); font-size:13.5px; color:var(--p-muted); flex-wrap:wrap; }
.pub .trust b { color:var(--p-ink); }
.pub .phone { width:clamp(170px, calc((100vh - 250px) * 0.5), 270px); margin:0 auto; border-radius:40px; background:var(--p-ink); padding:12px; box-shadow:0 30px 60px rgba(49,46,129,.3); position:relative; }
.pub .phone .screen { border-radius:30px; overflow:hidden; background:#fff; aspect-ratio:9/16; display:flex; align-items:center; justify-content:center; }
.pub .phone .screen img { width:100%; }
.pub .phone .soon { position:absolute; left:50%; bottom:28px; transform:translateX(-50%); background:rgba(30,27,75,.85); color:#fff; font-size:12.5px; font-weight:600; padding:6px 12px; border-radius:999px; white-space:nowrap; }
.pub .vlabel { text-align:center; font-size:13px; color:var(--p-muted); margin-top:12px; }

/* blocks */
.pub .chips { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.pub .chip { background:#fff; border:1px solid var(--p-line); border-radius:999px; padding:8px 16px; font-size:14px; font-weight:500; color:var(--p-ink); }
.pub .three { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.pub .three img { width:100%; height:190px; object-fit:contain; margin-bottom:10px; }
.pub .three h3 { font-size:18px; margin:0; }
.pub .feat { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.pub .feat .card { padding:18px; text-align:center; }
.pub .feat .shot { height:300px; overflow:hidden; border-radius:16px; background:var(--p-soft2); margin-bottom:14px; }
.pub .feat .shot img { width:100%; display:block; }
.pub .feat h3 { font-size:17px; margin:0; }
.pub .intro { max-width:760px; margin:0 auto; text-align:center; }
.pub .intro p { font-size:17px; margin:14px 0 22px; line-height:1.7; }
.pub .res { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.pub .res .card { padding:14px; display:block; }
.pub .res .card:hover { border-color:var(--p-indigo); }
.pub .thumb { height:160px; border-radius:10px; overflow:hidden; border:1px solid var(--p-line); margin-bottom:10px; background:#fff; }
.pub .thumb img { width:100%; display:block; }
.pub .res h4 { font-size:14px; color:var(--p-ink); margin:0; }
.pub .res small { color:var(--p-indigo); font-weight:600; font-size:12.5px; }
.pub .posts { display:grid; grid-template-columns:1fr; gap:22px; max-width:820px; margin:0 auto; }
.pub .post { display:grid; grid-template-columns:150px 1fr; gap:18px; align-items:center; }
.pub .post .t { height:110px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:30px; background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); }
.pub .post small { color:var(--p-indigo); font-weight:600; font-size:12px; letter-spacing:.4px; }
.pub .post h3 { font-size:17px; margin:4px 0 0; }
.pub .post p { font-size:14px; color:var(--p-muted); margin:6px 0 0; }
.pub .band { color:#fff; text-align:center; padding:56px 0; background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); }
.pub .band h2 { color:#fff; } .pub .band { padding:48px 0; }
.pub .band p { opacity:.92; margin:8px 0 22px; }

/* pricing */
.pub .plans { width:100%; max-width:820px; margin:0 auto; border-collapse:separate; border-spacing:0; background:#fff; border:1px solid var(--p-line); border-radius:20px; overflow:hidden; font-size:15px; }
.pub .plans th, .pub .plans td { padding:14px 18px; border-bottom:1px solid var(--p-line); text-align:left; vertical-align:middle; }
.pub .plans th { background:var(--p-soft); color:var(--p-ink); }
.pub .plans th.paid { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; }
.pub .plans td:nth-child(n+2), .pub .plans th:nth-child(n+2) { text-align:center; width:30%; }
.pub .plans tr:last-child td { border-bottom:none; }
.pub .price { display:block; font-size:30px; font-weight:800; } .pub .price small { font-size:14px; font-weight:500; opacity:.85; }
.pub .plans small.n { display:block; color:var(--p-muted); font-size:12px; }
.pub .fine { text-align:center; color:var(--p-muted); font-size:13.5px; margin-top:14px; }

/* page header, how it works, prose */
.pub .pagehead { background:linear-gradient(180deg,var(--p-soft2),#fbfaff); padding:48px 0 30px; }
.pub .pagehead h1 { font-size:clamp(26px, 2.6vw, 34px); }
.pub .pagehead .lead { margin:10px 0 0; }
.pub .tabs { display:flex; gap:8px; margin-top:22px; overflow-x:auto; padding-bottom:4px; }
.pub .tab { padding:9px 18px; border-radius:999px; border:1px solid var(--p-line); background:#fff; font-weight:600; font-size:14px; white-space:nowrap; color:var(--p-ink); }
.pub .tab:hover { border-color:var(--p-indigo); }
.pub .how { display:grid; grid-template-columns:1fr auto; gap:48px; align-items:center; padding:28px 0; border-bottom:1px solid var(--p-line); }
.pub .how.flip { grid-template-columns:auto 1fr; } .pub .how.flip .txt { order:2; }
.pub .how .shots { display:flex; gap:16px; justify-content:center; }
.pub .how .num { color:var(--p-violet); font-weight:700; font-size:13.5px; letter-spacing:.6px; }
.pub .how h3 { font-size:22px; margin:4px 0 8px; }
.pub .how p { margin:0; line-height:1.65; }
.pub .how ul { margin:12px 0 0; padding-left:20px; } .pub .how li { margin:6px 0; }
.pub .how .shot { width:clamp(170px, calc((100vh - 230px) * 0.47), 280px); border-radius:28px; background:var(--p-ink); padding:10px; } .pub .how .shot img { width:100%; border-radius:20px; display:block; }
.pub .how .shot.flat { width:min(560px, 46vw); background:#fff; border:1px solid var(--p-line); padding:6px; border-radius:16px; } .pub .how .shot.flat img { border-radius:10px; }
.pub .subject { margin:34px 0 0; }
.pub .subject h3 { margin:0 0 12px; font-size:20px; }
.pub .res3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pub .res3 .card { padding:14px; display:block; }
.pub .res3 .card:hover { border-color:var(--p-indigo); }
.pub .res3 h4 { font-size:15px; color:var(--p-ink); margin:0; }
.pub .res3 p { font-size:12.5px; }
.pub .res3 small { color:var(--p-indigo); font-weight:600; font-size:12.5px; }
.pub .prose { max-width:760px; margin:0 auto; padding:36px 24px 60px; font-size:16px; line-height:1.75; }
.pub .prose h2 { text-align:left; margin:30px 0 8px; font-size:22px; }
.pub .prose h3 { margin:26px 0 6px; font-size:20px; }
.pub .prose p { margin:12px 0; }
.pub .prose ol, .pub .prose ul { padding-left:22px; } .pub .prose li { margin:6px 0; }
.pub .prose a { color:var(--p-indigo); font-weight:600; }
.pub .prose .note { font-size:14px; color:var(--p-muted); border-top:1px solid var(--p-line); padding-top:16px; margin-top:34px; }
.pub .video-slot { margin:22px 0; border-radius:16px; background:var(--p-soft2); color:var(--p-violet); text-align:center; padding:34px 16px; font-weight:600; }

@media (max-width:860px) {
  .pub .wrap { padding:0 16px; }
  .pub .hero { padding:36px 0; min-height:0; } .pub .hero .wrap { grid-template-columns:1fr; gap:30px; }
  .pub h1 { font-size:32px; } .pub .lead { font-size:16px; } .pub h2 { font-size:25px; }
  .pub .phone { width:230px; }
  .pub section { padding:44px 0; }
  .pub .three, .pub .feat, .pub .posts, .pub .res3 { grid-template-columns:1fr; }
  .pub .res { grid-template-columns:1fr 1fr; }
  .pub .post { grid-template-columns:96px 1fr; } .pub .post .t { height:90px; }
  .pub .how, .pub .how.flip { grid-template-columns:1fr; gap:20px; } .pub .how.flip .txt { order:0; } .pub .how .shot { width:46vw; max-width:220px; } .pub .how .shot.flat { width:100%; max-width:100%; }
  .pub .plans th, .pub .plans td { padding:10px; font-size:13px; } .pub .price { font-size:24px; }
  .pub .pagehead h1 { font-size:28px; }
  .pub .prose { padding:28px 16px 48px; font-size:16px; }
}

/* About, Terms and Privacy: their text sits in <header> and <main>, which the app's pop-ups also read */
.pub .page-doc header h2 { font-size:30px; text-align:left; margin:8px 0 12px; }
.pub .page-doc header p { color:var(--p-muted); font-size:17px; }
.pub .page-doc main h3 { font-size:21px; margin:30px 0 6px; }
.pub .page-doc main { display:block; }

/* Explore: grade and subject tabs instead of breadcrumbs (Roopa, 17 Nov) */
.site-explore { background:#fff; border-bottom:1px solid var(--p-line); }
.site-explore-in { max-width:1140px; margin:0 auto; padding:10px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; font-size:14px; }
.site-explore .lbl { color:var(--p-muted); font-weight:600; margin-right:2px; }
.site-explore a { text-decoration:none; color:var(--p-ink); font-weight:500; padding:6px 13px; border-radius:999px; border:1px solid var(--p-line); background:#fff; white-space:nowrap; }
.site-explore a:hover { border-color:var(--p-indigo); }
.site-explore a.on { background:var(--p-ink); border-color:var(--p-ink); color:#fff; }
.site-explore a small { color:var(--p-muted); font-weight:500; } .site-explore a.on small { color:#c7d2fe; }
.site-explore .sep { width:1px; height:22px; background:var(--p-line); margin:0 4px; }
.site-explore .back { border:0; padding:6px 0; color:var(--p-indigo); font-weight:600; background:none; }
.site-explore .row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
@media (max-width:860px) { .site-explore-in { padding:10px 16px; flex-wrap:nowrap; overflow-x:auto; } .site-explore .row { flex-wrap:nowrap; } }
.pub .posts.left { margin:0; }

/* Home: what you get (tiles), pricing summary */
.pub .tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.pub .tile { background:#fff; border:1px solid var(--p-line); border-radius:18px; padding:20px 20px 18px; display:block; }
.pub a.tile:hover { border-color:var(--p-indigo); box-shadow:0 8px 24px rgba(102,126,234,.12); }
.pub .tile .ic { width:44px; height:44px; border-radius:12px; background:var(--p-soft2); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:10px; }
.pub .tile h3 { font-size:16px; margin:0; }
.pub .tile p { font-size:14px; color:var(--p-muted); margin:4px 0 0; line-height:1.5; }
.pub .plan2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:760px; margin:0 auto; }
.pub .plan2 .card { padding:22px 24px; }
.pub .plan2 .card.paid { border:2px solid var(--p-indigo); }
.pub .plan2 h3 { margin:0; font-size:17px; }
.pub .plan2 .amt { font-size:28px; font-weight:800; color:var(--p-ink); margin:4px 0 8px; } .pub .plan2 .amt small { font-size:14px; font-weight:500; color:var(--p-muted); }
.pub .plan2 ul { margin:0; padding-left:18px; font-size:14px; } .pub .plan2 li { margin:4px 0; }
/* How it works: whole screenshots in a browser-style frame, scaled to fit the screen (never cropped) */
.pub .how { grid-template-columns:.9fr 1.1fr; } .pub .how.flip { grid-template-columns:1.1fr .9fr; }
.pub .frame { background:#fff; border:1px solid var(--p-line); border-radius:14px; box-shadow:0 14px 34px rgba(49,46,129,.10); overflow:hidden; }
.pub .frame .bar { height:26px; background:#f1f5f9; border-bottom:1px solid var(--p-line); display:flex; align-items:center; gap:6px; padding:0 10px; }
.pub .frame .bar i { width:9px; height:9px; border-radius:50%; background:#cbd5e1; display:block; }
.pub .frame .body { padding:10px; display:flex; flex-direction:column; gap:10px; align-items:center; }
.pub .frame img { display:block; max-width:100%; width:auto; height:auto; max-height:calc(100vh - 270px); border-radius:6px; }
.pub .frame.two img { max-height:calc((100vh - 290px) / 2); }
/* Free resources: one card per subject, three samples each */
.pub .fr { display:grid; gap:18px; max-width:900px; margin:0 auto; }
.pub .fr .card { padding:8px 22px; }
.pub .fr h3 { font-size:18px; margin:14px 0 4px; }
.pub .fr-item { display:grid; grid-template-columns:40px 1fr auto; gap:14px; align-items:center; padding:12px 0; border-top:1px solid var(--p-line); }
.pub .fr h3 + .fr-item { border-top:0; }
.pub .fr-item .ic { font-size:22px; text-align:center; }
.pub .fr-item b { color:var(--p-ink); font-weight:600; display:block; font-size:15px; } .pub .fr-item span { color:var(--p-muted); font-size:13.5px; }
.pub .fr-item .acts { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pub .chipbtn { font-size:13px; font-weight:600; padding:7px 12px; border-radius:999px; border:1px solid var(--p-line); color:var(--p-ink); background:#fff; white-space:nowrap; }
.pub .chipbtn:hover { border-color:var(--p-indigo); color:var(--p-indigo); }
.pub .chipbtn.main { background:var(--p-soft2); border-color:var(--p-soft2); color:var(--p-indigo); }
@media (max-width:860px) {
  .pub .tiles { grid-template-columns:1fr 1fr; } .pub .plan2 { grid-template-columns:1fr; }
  .pub .how, .pub .how.flip { grid-template-columns:1fr; } .pub .frame img, .pub .frame.two img { max-height:none; }
  .pub .fr-item { grid-template-columns:32px 1fr; } .pub .fr-item .acts { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:480px) { .pub .tiles { grid-template-columns:1fr; } }

/* Home sections sized to fit one screen */
.pub section.fit { padding:clamp(22px,3.8vh,44px) 0; }
.pub section.fit .sub { margin-bottom:clamp(14px,3vh,26px); }
.pub section.fit .tile { padding:14px 16px; } .pub section.fit .tile .ic { width:38px; height:38px; font-size:19px; margin-bottom:6px; }
.pub section.fit .center { margin-top:clamp(14px,3vh,24px); }

/* ── Look of the current site: purple background, white cards (Roopa, 17 Nov) ── */
body.public-page { background:linear-gradient(135deg,#667eea 0%,#764ba2 100%) !important; background-attachment:scroll !important; }
.pub .hero, .pub .pagehead, .pub section, .pub .alt { background:transparent !important; }
.pub .hero { min-height:0; padding:24px 0 8px; }
.pub .hero > .wrap, .pub section > .wrap, .pub .pagehead > .wrap { background:#fff; border-radius:22px; box-shadow:0 10px 30px rgba(30,27,75,.18); padding:clamp(22px,4vh,40px) clamp(20px,3vw,44px); }
.pub .hero > .wrap { padding:clamp(24px,5vh,48px) clamp(20px,3.5vw,52px); }
.pub section { padding:10px 0; }
.pub section.fit { padding:10px 0; }
.pub .pagehead { padding:24px 0 8px; }
.pub .wrap.cardless { background:none !important; box-shadow:none !important; padding:0 !important; }
.pub main.pub > *:last-child { margin-bottom:28px; }
.pub .tile { background:#f8f7ff; border-color:#ede9fe; }
.pub .band { background:transparent; padding:10px 0 28px; }
.pub .band > .wrap { background:#fff; border-radius:22px; padding:30px; color:var(--p-ink); }
.pub .band h2 { color:var(--p-ink); } .pub .band p { color:var(--p-muted); opacity:1; }
.pub .band .btn-white { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; }
.pub .how { background:#fff; border-radius:22px; box-shadow:0 10px 30px rgba(30,27,75,.18); padding:28px clamp(20px,3vw,40px); margin:14px 0; border-bottom:0; }
.pub .frame { box-shadow:none; }
.pub .frame.pair .body { flex-direction:row; align-items:flex-start; justify-content:center; }
.pub .frame.pair .body img { max-height:calc(100vh - 270px); min-width:0; }
.pub .frame.pair .body img.small { max-width:42%; }
.pub .frame.pair .body img.big { max-width:56%; }
.pub .prose { background:#fff; border-radius:22px; box-shadow:0 10px 30px rgba(30,27,75,.18); margin:24px auto 28px; }
/* Old-site sections brought back: steps, Free vs Paid table, subscription policy */
.pub .steps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pub .step { text-align:center; padding:6px 8px; }
.pub .step .n { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; }
.pub .step b { color:var(--p-ink); display:block; } .pub .step span { color:var(--p-muted); font-size:14px; }
.pub .compare { width:100%; max-width:760px; margin:0 auto; border-collapse:separate; border-spacing:0; border:1px solid var(--p-line); border-radius:16px; overflow:hidden; font-size:14.5px; }
.pub .compare th, .pub .compare td { padding:12px 16px; border-bottom:1px solid var(--p-line); text-align:left; }
.pub .compare th { background:var(--p-soft); color:var(--p-ink); font-size:14px; }
.pub .compare th.paid { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; }
.pub .compare td:nth-child(n+2), .pub .compare th:nth-child(n+2) { text-align:center; width:28%; }
.pub .compare tr:last-child td { border-bottom:0; } .pub .compare small { color:#94a3b8; display:block; font-size:12px; }
.pub .policy { max-width:760px; margin:22px auto 0; }
.pub .policy .pitch { text-align:center; color:var(--p-muted); margin:0 0 14px; }
.pub .policy h3 { font-size:16px; margin:0 0 8px; }
.pub .policy ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.pub .policy li { display:grid; grid-template-columns:28px 1fr; gap:6px; font-size:14.5px; }
.pub .policy .contact { font-size:14px; color:var(--p-muted); margin-top:12px; } .pub .policy .contact a { color:var(--p-indigo); font-weight:600; }
/* Blog: portrait video thumbnails */
.pub .post { grid-template-columns:90px 1fr; }
.pub .post .t { width:90px; height:160px; border-radius:12px; background-size:cover; background-position:center; position:relative; }
.pub .post .t:after { content:'▶'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; background:rgba(30,27,75,.25); border-radius:12px; }
/* Explore and Free resources bars: one style, tabs only */
.site-explore .lbl { color:var(--p-ink); font-weight:700; }
.site-explore .row + .row { margin-top:0; }
.site-explore .sub a { font-size:13px; padding:5px 11px; }
@media (max-width:860px) {
  .pub .steps { grid-template-columns:1fr; } .pub .frame.pair .body { flex-direction:column; align-items:center; } .pub .frame.pair .body img.small, .pub .frame.pair .body img.big { max-width:100%; }
  .pub .hero > .wrap, .pub section > .wrap, .pub .pagehead > .wrap { border-radius:16px; margin:0 12px; width:auto; }
  .pub .how { margin:12px; border-radius:16px; }
}
/* Home: at a glance (from the current login page), and the video card */
.pub .hero .wrap { grid-template-columns:1fr 1fr; align-items:start; }
.pub .glance { background:linear-gradient(135deg,var(--p-indigo),var(--p-violet)); color:#fff; border-radius:18px; padding:22px 24px; }
.pub .glance h3 { color:#fff; font-size:17px; margin:0 0 10px; }
.pub .glance ul { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.pub .glance li { padding-left:30px; position:relative; }
.pub .glance li:before { content:'✓'; position:absolute; left:0; top:0; width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,.25); font-size:12px; display:flex; align-items:center; justify-content:center; }
.pub .glance b { display:block; font-size:15px; } .pub .glance span { font-size:13.5px; opacity:.92; line-height:1.5; }
.pub .video-card { display:grid !important; grid-template-columns:150px 1fr; gap:28px; align-items:center; }
.pub .video-card h2 { text-align:left; } .pub .video-card p { margin:8px 0 0; } .pub .video-card .muted { color:var(--p-muted); font-size:14.5px; }
.pub .video-card .muted a { color:var(--p-indigo); font-weight:600; }
.pub .vthumb { width:150px; aspect-ratio:9/16; border-radius:16px; border:6px solid var(--p-ink); background:#fff; position:relative; overflow:hidden; display:flex; align-items:center; }
.pub .vthumb img { width:100%; mix-blend-mode:multiply; }
.pub .vthumb span { position:absolute; left:6px; right:6px; bottom:8px; text-align:center; background:rgba(30,27,75,.85); color:#fff; font-size:11px; font-weight:600; border-radius:999px; padding:4px 6px; }
@media (max-width:860px) { .pub .hero .wrap { grid-template-columns:1fr; } .pub .video-card { grid-template-columns:110px 1fr; gap:16px; } .pub .vthumb { width:110px; } }

/* Footer: link columns on top; logo + tagline (left) and copyright (right) on the last line */
.site-footer-in { grid-template-columns:repeat(3, 1fr); gap:24px 60px; }
.site-footer-base { display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; font-size:13px; }
.site-footer-brand { display:flex; align-items:center; gap:14px; color:#c7d2fe; }
.site-footer-brand a { margin:0; display:block; } .site-footer-brand img { height:34px; }
.site-footer-copy { color:#a5b4fc; text-align:right; }
@media (max-width:860px) { .site-footer-in { grid-template-columns:1fr 1fr; justify-content:start; } .site-footer-in > div:first-child { grid-column:auto; } .site-footer-base { flex-direction:column; align-items:flex-start; } .site-footer-copy { text-align:left; } }
.site-footer-brand .tick { width:22px; height:22px; flex:0 0 22px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.site-footer-brand { gap:10px; }

/* How it works (Roopa, 17 Nov): all white cards the same width; one heading size and one text size, as on Home */
.pub .wrap.howlist { padding:0; background:none; box-shadow:none; }
.pub .how { grid-template-columns:.75fr 1.25fr; } .pub .how.flip { grid-template-columns:1.25fr .75fr; }
.pub .wrap.howlist .how { margin:20px 0; }
.pub .pagehead h1 { font-size:26px; }
.pub .pagehead .lead, .pub .how p, .pub .how li { font-size:14px; line-height:1.6; text-align:justify; -webkit-hyphens:auto; hyphens:auto; }
.pub .how h3 { font-size:22px; }
.pub .how .num { font-size:12.5px; }
.pub .frame.pair .body img.small { max-width:44%; } .pub .frame.pair .body img.big { max-width:54%; }
.pub .frame.grid4 .body { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:center; justify-items:center; }
.pub .frame.grid4 .body img { max-height:calc((100vh - 300px) / 2); }
@media (max-width:860px) { .pub .how, .pub .how.flip { grid-template-columns:1fr; } .pub .frame.grid4 .body { grid-template-columns:1fr; } .pub .frame.grid4 .body img { max-height:none; } }

/* How it works: text at the top of each card (not centred); the intro line uses the full card width */
.pub .how { align-items:start; }
.pub .how .txt { padding-top:6px; }
.pub .pagehead .lead { max-width:none; }
/* Click a screenshot to enlarge it */
.pub .frame img { cursor:zoom-in; }
.zoom-overlay { position:fixed; inset:0; z-index:200; background:rgba(15,23,42,.82); display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out; }
.zoom-overlay img { max-width:96vw; max-height:92vh; border-radius:10px; background:#fff; box-shadow:0 20px 60px rgba(0,0,0,.4); }
.zoom-overlay .x { position:absolute; top:14px; right:20px; color:#fff; font-size:30px; line-height:1; }

/* Screenshots without the browser-window frame: each one its own rounded image with a soft shadow (Roopa, 17 Nov) */
.pub .frame { background:none; border:0; box-shadow:none; overflow:visible; border-radius:0; }
.pub .frame .body { padding:0; gap:18px; }
.pub .frame img { border-radius:12px; border:1px solid var(--p-line); box-shadow:0 10px 26px rgba(30,27,75,.14); background:#fff; }
.pub .frame.grid4 .body { gap:18px; }
.pub .ready .sub { margin-bottom:6px; } .pub .ready .center { margin-top:14px; }

/* ── Explore (/revise): one card, table of contents on the left (tools/site/explore.py) ── */
.pub.explore { padding:22px 0 8px; }
.pub .ex-card { background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:26px 30px; margin:0 auto 18px; }
.pub .ex-two { display:grid; grid-template-columns:230px minmax(0,1fr); gap:30px; align-items:start; }
.pub .ex-ctx { font-size:12.5px; color:#94a3b8; font-weight:600; margin:0 0 4px; } .pub .ex-ctx a { color:#667eea; }
.pub.explore h1 { font-size:22px; color:#1e293b; margin:0 0 8px; line-height:1.3; }
.pub.explore h2 { font-size:18px; color:#1e293b; margin:22px 0 10px; text-align:left; }
.pub.explore p { font-size:14px; line-height:1.6; margin:0 0 10px; text-align:justify; }
.pub .ex-toc { border-right:1px solid #e2e8f0; padding-right:14px; position:sticky; top:90px; font-size:13.5px; }
.pub .ex-toc-m { display:none; }
.pub .ex-s { display:flex; gap:8px; align-items:center; padding:7px 10px; border-radius:8px; color:#1e293b; font-weight:600; }
.pub .ex-s:hover { background:#f8f7ff; } .pub .ex-s.on { background:#eef2ff; color:#4338ca; }
.pub .ex-chs { margin:4px 0 8px 12px; border-left:2px solid #e0e7ff; }
.pub .ex-ch { display:block; padding:5px 10px; color:#475569; font-size:13px; line-height:1.35; }
.pub .ex-ch:hover { color:#4338ca; } .pub .ex-ch.on { color:#4338ca; font-weight:600; background:#f5f3ff; border-left:2px solid #667eea; margin-left:-2px; }
.pub .ex-subjects { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:16px; }
.pub .ex-subj { border:1px solid #e2e8f0; border-radius:14px; padding:18px 10px; text-align:center; background:#f8f7ff; }
.pub .ex-subj:hover { border-color:#667eea; box-shadow:0 8px 20px rgba(102,126,234,.15); }
.pub .ex-subj .i { font-size:28px; display:block; } .pub .ex-subj b { display:block; color:#1e293b; margin:6px 0 2px; font-size:15px; } .pub .ex-subj span { font-size:12.5px; color:#64748b; }
.pub .ex-soon { display:flex; gap:10px; align-items:center; font-size:13.5px; color:#475569; background:#f5f3ff; border-radius:12px; padding:10px 14px; margin-top:16px; } .pub .ex-soon a { color:#667eea; font-weight:600; }
.pub .ex-list { margin-top:8px; }
.pub .ex-row { display:grid; grid-template-columns:34px 1fr; gap:12px; padding:11px 6px; border-bottom:1px solid #f1f5f9; border-radius:8px; }
.pub .ex-row:hover { background:#f8f7ff; }
.pub .ex-row .n { width:28px; height:28px; border-radius:8px; background:#eef2ff; color:#4338ca; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; }
.pub .ex-row b { color:#1e293b; font-size:14.5px; display:block; } .pub .ex-row span span { display:block; font-size:13px; color:#64748b; }
.pub .ex-free { display:inline-block; margin-top:14px; font-size:13.5px; font-weight:600; color:#667eea; }
.pub .ex-pn { display:flex; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; border-top:1px solid #e2e8f0; padding-top:14px; margin-top:22px; } .pub .ex-pn a { color:#667eea; }
.pub .ex-strip { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:14px; flex-wrap:wrap; }
.pub .ex-card:has(.ex-strip) { padding:16px 30px; }
/* the chapter outline and sample question keep their own styles from each page; size them to match */
.pub.explore .outline-list { margin:0; } .pub.explore .quiz-card { margin-top:4px; }
@media (max-width:860px) {
  .pub .ex-card { margin:0 12px 14px; padding:20px 16px; }
  .pub .ex-two { grid-template-columns:1fr; gap:14px; }
  .pub .ex-toc { position:static; border-right:0; padding:0; }
  .pub .ex-toc > a, .pub .ex-toc > .ex-chs { display:none; }
  .pub .ex-toc-m { display:block; border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; font-weight:600; color:#4338ca; }
  .pub .ex-toc.open > a, .pub .ex-toc.open > .ex-chs { display:block; } .pub .ex-toc.open > a { display:flex; }
  .pub .ex-subjects { grid-template-columns:1fr 1fr; }
}
.pub .ex-strip > span:last-child { display:flex; gap:10px; flex-wrap:wrap; } .pub .ex-strip .btn { white-space:nowrap; }
.pub .ex-strip .btn { width:auto; display:inline-block; margin:0; }

/* ── One type scale for every public page (Roopa, 17 Nov) ──
   Card titles 22px bold · subheadings 18px bold · small headings 15px bold · text 14px */
.pub h1, .pub .pagehead h1, .pub.explore h1 { font-size:22px !important; font-weight:700 !important; letter-spacing:normal !important; line-height:1.3; }
.pub h2, .pub section h2 { font-size:22px; font-weight:700; letter-spacing:normal; }
.pub .how h3, .pub.explore h2, .pub .prose h2 { font-size:18px; font-weight:700; letter-spacing:normal; }
.pub .tile h3, .pub .fr h3, .pub .post h3 { font-size:15px; }
.pub .sub, .pub .lead, .pub .pagehead .lead { font-size:14px; }
.pub .frame.grid4 .body img:first-child:nth-last-child(3) { grid-column:1 / -1; }

/* Explore landing: subject tiles in the site's purple gradient */
.pub .ex-subj { background:linear-gradient(135deg,#667eea,#764ba2); border:0; color:#fff; box-shadow:0 8px 20px rgba(102,126,234,.25); }
.pub .ex-subj b { color:#fff; } .pub .ex-subj span { color:rgba(255,255,255,.85); }
.pub .ex-subj:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(102,126,234,.35); }
/* the app's own card gradient (styles.css .card), lighter than the button gradient */
.pub .ex-subj { background:linear-gradient(135deg,#7c8ff5 0%,#9d77e8 100%); box-shadow:0 4px 12px rgba(102,126,234,.3); border:2px solid transparent; }
.pub .ex-subj:hover { border-color:#fff; box-shadow:0 10px 24px rgba(102,126,234,.4); }

/* Explore drill-down (Roopa, 17 Nov): subject row on subject pages, chapter cards, back link on chapter pages; no sidebar */
.pub .ex-subrow { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:22px; }
.pub .ex-subj.sm { padding:10px 8px; display:flex; align-items:center; justify-content:center; gap:8px; opacity:.55; }
.pub .ex-subj.sm .i { font-size:18px; display:inline; } .pub .ex-subj.sm b { margin:0; font-size:13.5px; }
.pub .ex-subj.sm:hover { opacity:.85; } .pub .ex-subj.sm.on { opacity:1; border-color:#fff; box-shadow:0 0 0 3px #c7d2fe, 0 6px 16px rgba(102,126,234,.35); }
.pub .ex-chgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.pub .ex-chcard { display:grid; grid-template-columns:30px 1fr; gap:4px 12px; align-content:start; padding:14px 16px; border:1px solid #e0e7ff; border-radius:14px; background:#f8f7ff; }
.pub .ex-chcard:hover { border-color:#667eea; box-shadow:0 8px 20px rgba(102,126,234,.15); transform:translateY(-2px); }
.pub .ex-chcard .n { grid-row:span 2; width:30px; height:30px; border-radius:9px; background:linear-gradient(135deg,#7c8ff5,#9d77e8); color:#fff; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; }
.pub .ex-chcard b { color:#1e293b; font-size:14.5px; line-height:1.35; } .pub .ex-chcard .d { color:#64748b; font-size:13px; line-height:1.45; }
.pub .ex-back { display:inline-block; font-size:13.5px; font-weight:600; color:#667eea; margin-bottom:10px; }
@media (max-width:860px) { .pub .ex-subrow { grid-template-columns:repeat(5, minmax(120px,1fr)); overflow-x:auto; padding-bottom:4px; } .pub .ex-chgrid { grid-template-columns:1fr; } }

/* Chapter cards like the app's chapter cards (purple gradient, emoji), no numbers (Roopa, 17 Nov) */
.pub .ex-chcard { grid-template-columns:34px 1fr; background:linear-gradient(135deg,#7c8ff5 0%,#9d77e8 100%); border:2px solid transparent; box-shadow:0 4px 12px rgba(102,126,234,.3); }
.pub .ex-chcard:hover { border-color:#fff; box-shadow:0 10px 24px rgba(102,126,234,.4); }
.pub .ex-chcard .i { grid-row:span 2; font-size:26px; line-height:1; }
.pub .ex-chcard b { color:#fff; } .pub .ex-chcard .d { color:rgba(255,255,255,.88); }
.pub .ex-soon-line { font-size:13px !important; color:#64748b; margin:-10px 0 16px !important; text-align:left !important; } .pub .ex-soon-line a { color:#667eea; font-weight:600; }

/* Jump links land below the sticky menu on every public page (Roopa, 17 Nov) */
html { scroll-padding-top:96px; }
/* Drawn arrows: a bold chevron that looks the same in every font and browser (Roopa, 17 Nov) */
.chev { display:inline-block; width:.5em; height:.72em; vertical-align:-.04em; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.8 1.5 6.3 6l-4.5 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.8 1.5 6.3 6l-4.5 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.chev.r { margin-left:.4em; } .chev.l { margin-right:.4em; transform:scaleX(-1); }
.gridic { display:inline-block; width:.8em; height:.8em; margin-right:.45em; vertical-align:-.06em; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect width='5' height='5' rx='1.3'/%3E%3Crect x='7' width='5' height='5' rx='1.3'/%3E%3Crect y='7' width='5' height='5' rx='1.3'/%3E%3Crect x='7' y='7' width='5' height='5' rx='1.3'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect width='5' height='5' rx='1.3'/%3E%3Crect x='7' width='5' height='5' rx='1.3'/%3E%3Crect y='7' width='5' height='5' rx='1.3'/%3E%3Crect x='7' y='7' width='5' height='5' rx='1.3'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Chapter pages: back to the chapters (left), previous/next buttons (right) */
.pub .ex-top { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.pub .ex-top .ex-back { margin:0; }
.pub .ex-pn-top { display:flex; gap:8px; }
.pub .ex-pn-top a { display:inline-flex; align-items:center; padding:5px 13px; border-radius:999px; background:#eef2ff; color:#4f46e5; font-size:13px; font-weight:600; }
.pub .ex-pn-top a:hover { background:#e0e7ff; }

/* Free resources (Roopa, 17 Nov): pick a subject, then its three samples as cards with a picture of page 1 */
.pub .fr-lead { color:#475569; margin:4px 0 18px !important; }
.pub .fr-tabs { margin-bottom:20px; }
.fr-js .pub .fr-ph { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }   /* the subject name is in the tiles */
.pub .fr-ph { font-size:18px; margin:18px 0 10px; }
.pub .fr-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.pub .fr-card { border:1px solid #e2e8f0; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; background:#fff; }
.pub .fr-thumb { display:block; height:270px; overflow:hidden; background:#f1f5f9; border-bottom:1px solid #e2e8f0; }
.pub .fr-thumb img { width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .2s; }
.pub .fr-thumb.wide img { object-fit:contain; object-position:center; background:#fff; }
.pub .fr-thumb:hover img { transform:scale(1.03); }
.pub .fr-body { padding:14px 16px 16px; display:flex; flex-direction:column; gap:4px; flex:1; }
.pub .fr-kind { font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#667eea; }
.pub .fr-body b { font-size:15px; color:#1e293b; } .pub .fr-body .d { font-size:13px; color:#64748b; }
.pub .fr-btns { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.pub .fr-btns .btn { padding:8px 14px; font-size:13px; }
.pub .fr-more { margin-top:auto; padding-top:10px; font-size:13px; font-weight:600; color:#667eea; }
@media (max-width: 860px) { .pub .fr-cards { grid-template-columns:1fr; } .pub .fr-thumb { height:220px; } }
/* A sample page */
.pub .fr-kinds a.on { background:#4f46e5; color:#fff; }
.pub .fr-dl { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.pub .fr-note { font-size:12.5px !important; color:#64748b; margin-top:8px !important; text-align:left !important; }
.pub .fr-hint { font-size:13px !important; color:#64748b; margin:-4px 0 14px !important; text-align:left !important; }
.pub .fr-pages { display:grid; grid-template-columns:repeat(2, 1fr); gap:18px; }
.pub .fr-pages.wide { grid-template-columns:1fr; }
.pub .fr-pages figure { margin:0; }
.pub .fr-pages img { width:100%; border:1px solid #e2e8f0; border-radius:8px; box-shadow:0 4px 14px rgba(15,23,42,.08); cursor:zoom-in; background:#fff; }
.pub .fr-pages figcaption { font-size:12px; color:#94a3b8; text-align:center; margin-top:6px; }
@media (max-width: 700px) { .pub .fr-pages { grid-template-columns:1fr; } }

/* The menu and footer measure the same on every page, whatever the page's own styles (Roopa, 17 Nov:
   on Free resources, How it works, Blog and About the menu sat 24px further left) */
.site-nav, .site-nav *, .site-footer, .site-footer * { box-sizing:border-box; }
/* Download buttons keep their own width (the old sample-page styles made them full width) */
.pub .fr-dl .btn, .pub .fr-btns .btn { width:auto !important; flex:0 0 auto; display:inline-flex; align-items:center; }
/* Free resources, one page (Roopa, 17 Nov): subject tiles, then Term paper · Worksheet · Mind map, then that sample */
.pub .fr-types { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 22px; }
.pub .fr-types a { padding:9px 18px; border-radius:999px; background:#eef2ff; color:#4f46e5; font-weight:600; font-size:14px; border:1px solid #e0e7ff; }
.pub .fr-types a:hover { background:#e0e7ff; }
.pub .fr-types a.on { background:#4f46e5; border-color:#4f46e5; color:#fff; }
.pub .fr-panel { border-top:1px solid #e2e8f0; padding-top:20px; }
.pub .fr-panel h2 { font-size:22px; margin:0 0 4px; }
.pub .fr-cover { color:#475569; margin:0 !important; text-align:left !important; }
.pub .fr-cover b { color:#1e293b; }
.pub .fr-try { font-size:18px; margin:26px 0 12px; }
.pub .fr-own { margin:18px 0 0 !important; font-size:13.5px !important; text-align:left !important; }
.pub .fr-own a { color:#667eea; font-weight:600; }
.pub .fr-panel .fr-hint { margin-top:22px !important; }
@media (max-width: 600px) { .pub .fr-types { flex-wrap:nowrap; gap:6px; } .pub .fr-types a { flex:1; text-align:center; padding:8px 6px; font-size:13px; white-space:nowrap; } }
.pub .fr-rest { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:20px; padding:16px; background:#f8f7ff; border-radius:12px; color:#475569; font-size:14px; }
.pub .fr-rest .btn { width:auto !important; }
.pub .fr-rest .btn-ghost { background:#fff; }
.pub .fr-note.fr-note-c { text-align:center !important; margin-top:10px !important; }

/* Blog (Roopa, 17 Nov): one card per article, full-width cards, the video in its real portrait shape */
.pub .bl-lead { color:#475569; margin:6px 0 0 !important; text-align:left !important; }
.pub .bl-meta { font-size:12.5px !important; font-weight:600; color:#667eea; text-transform:uppercase; letter-spacing:.04em; margin:10px 0 0 !important; text-align:left !important; }
.pub .bl-card { display:flex; gap:24px; align-items:center; color:inherit; text-decoration:none; transition:transform .15s, box-shadow .15s; }
.pub .bl-card:hover { transform:translateY(-2px); box-shadow:0 14px 32px rgba(0,0,0,.16); }
.pub .bl-thumb { position:relative; flex:0 0 120px; aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:#ede9fe; }
.pub .bl-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pub .bl-thumb i { position:absolute; inset:auto 8px 8px auto; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.92); color:#5b21b6; font-style:normal; font-size:12px; display:flex; align-items:center; justify-content:center; }
.pub .bl-text { display:flex; flex-direction:column; gap:6px; }
.pub .bl-text small { font-size:12px; font-weight:700; color:#667eea; text-transform:uppercase; letter-spacing:.04em; }
.pub .bl-text b { font-size:22px; color:#1e293b; line-height:1.3; }
.pub .bl-text span { font-size:15px; color:#475569; line-height:1.6; }
.pub .bl-text em { font-style:normal; font-weight:600; color:#667eea; font-size:14px; margin-top:4px; }
.pub .bl-article { font-size:16.5px; line-height:1.8; color:#1e293b; overflow:hidden; }
.pub .bl-article p, .pub .bl-article li { text-align:left; }
.pub .bl-article p { margin:0 0 14px; }
.pub .bl-article h2 { font-size:22px; margin:28px 0 10px; text-align:left; }
.pub .bl-article h3 { font-size:18px; margin:24px 0 8px; }
.pub .bl-article ol, .pub .bl-article ul { padding-left:24px; margin:0 0 14px; } .pub .bl-article li { margin:6px 0; }
.pub .bl-article a { color:#667eea; font-weight:600; }
.pub .bl-note { clear:both; font-size:14px !important; color:#64748b; border-top:1px solid #e2e8f0; padding-top:16px; margin-top:28px !important; }
.pub .bl-video { float:right; width:280px; aspect-ratio:9/16; margin:4px 0 16px 32px; border-radius:16px; overflow:hidden; background:#ede9fe; position:relative; box-shadow:0 8px 24px rgba(91,33,182,.18); }
.pub .bl-video iframe { width:100%; height:100%; border:0; display:block; }
.pub .bl-video img { width:100%; height:100%; object-fit:cover; display:block; }
.pub .bl-video.soon span { position:absolute; left:12px; right:12px; bottom:14px; text-align:center; background:rgba(255,255,255,.94); color:#5b21b6; font-weight:700; font-size:14px; padding:9px 10px; border-radius:999px; }
@media (max-width: 760px) {
  .pub .bl-card { gap:16px; align-items:flex-start; } .pub .bl-thumb { flex-basis:84px; }
  .pub .bl-text b { font-size:18px; } .pub .bl-text span { font-size:14px; }
  .pub .bl-video { float:none; width:min(200px, 55%); margin:4px auto 20px; }
  .pub .bl-video.soon span { font-size:12px; padding:7px 8px; bottom:10px; }
}

/* All running text is justified, on every public page (Roopa, 17 Nov). Only the centred call-to-action
   lines and button rows stay centred. Placed last, so it wins over the earlier left-aligned exceptions. */
.public-page main p:not(.center):not(.sub), .public-page header p:not(.center), .public-page main li, .public-page main blockquote, .public-page main dd,
.public-page main .ex-chcard .d, .public-page main .bl-text span, .public-page main .fr-body .d,
.site-footer-brand > span:last-child { text-align:justify !important; }
/* Hyphenation, so justified lines don't leave wide gaps on phones (Roopa, 17 Nov). Only words of 7+ letters are split,
   with at least 3 letters on each side. */
.public-page main p:not(.center):not(.sub), .public-page header p:not(.center), .public-page main li, .public-page main blockquote, .public-page main dd,
.public-page main .ex-chcard .d, .public-page main .bl-text span, .public-page main .fr-body .d,
.site-footer-brand > span:last-child { -webkit-hyphens:auto; hyphens:auto; hyphenate-limit-chars:7 3 3; }

/* About, Terms and Privacy as white cards like the other pages (Roopa, 17 Nov). The <header> and <main> stay, because the app's
   About pop-up reads them; only their look changes. */
.pub .about-doc { max-width:1140px; margin:22px auto 28px; padding:0; box-sizing:border-box; }
.pub .about-doc header, .pub .about-doc .about-section, .pub .about-doc .about-cta { background:#fff; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:26px 30px; margin:0 0 18px; }
.pub .about-doc header h2 { font-size:22px !important; margin:0 0 8px; text-align:left; }
.pub .about-doc header p { font-size:15px; margin:0; color:#475569; }
.pub .about-doc main h3 { font-size:18px; margin:0 0 6px; }
.pub .about-doc .about-section p { font-size:14.5px; line-height:1.75; margin:8px 0 0; }
.pub .about-page .about-section:last-child { text-align:center; }   /* About's closing line only */
.pub .about-page .about-section:last-child p { text-align:center !important; margin:0; font-size:15px; }
@media (max-width: 760px) {
  .pub .about-doc { padding:0 12px; margin-top:14px; }
  .pub .about-doc header, .pub .about-doc .about-section, .pub .about-doc .about-cta { padding:20px 16px; margin-bottom:14px; }
}

/* Terms and Privacy: their lists inside the cards */
.pub .about-doc .about-section ul { margin:8px 0 0; padding-left:22px; } .pub .about-doc .about-section li { font-size:14.5px; line-height:1.75; margin:6px 0; }
.pub .about-doc .about-section a { color:#667eea; font-weight:600; }

/* The menu logo: the book icon with the name and tagline as text, so the tagline can be read (Roopa, 17 Nov; "small" size) */
.site-logo { display:flex; align-items:center; gap:8px; text-decoration:none; flex-shrink:0; }
.site-logo img { height:40px; width:auto; display:block; }
.site-logo-t { display:flex; flex-direction:column; line-height:1.1; }
.site-logo-t b { font-size:16px; font-weight:700; color:#1e1b4b; letter-spacing:-.2px; white-space:nowrap; }
.site-logo-t b span { color:#8b5cf6; }
.site-logo-t small { font-size:10px; color:#475569; letter-spacing:.3px; margin-top:2px; white-space:nowrap; }
@media (max-width: 760px) { .site-logo img { height:34px; } .site-logo-t b { font-size:15px; } .site-logo-t small { display:none; } }

/* "Log in" as an outlined button, beside the filled "Create free account" (Roopa, 17 Nov) */
.site-right .site-login { display:inline-block; padding:8px 18px; border:2px solid var(--p-indigo); border-radius:999px; color:var(--p-indigo); background:#fff; line-height:1.2; transition:background .15s; }
.site-right .site-login:hover { background:#eef2ff; }
.site-right .site-login.on { background:#eef2ff; cursor:default; }
@media (max-width: 900px) { .site-right .site-login { padding:6px 14px; font-size:14px; } }

/* Subject tiles (Explore and Free resources), option B (Roopa, 17 Nov): the ones not chosen are light, like the
   unchosen sample pills; the chosen subject and the chosen sample are the same solid purple. */
.pub .ex-subj.sm { opacity:1; background:#eef2ff; border:1px solid #e0e7ff; box-shadow:none; transform:none; }
.pub .ex-subj.sm b { color:#4f46e5; }
.pub .ex-subj.sm:hover { opacity:1; background:#e0e7ff; border-color:#c7d2fe; box-shadow:none; transform:none; }
.pub .ex-subj.sm.on, .pub .fr-types a.on { background:#4f46e5; border-color:#4f46e5; color:#fff; box-shadow:0 6px 16px rgba(79,70,229,.3); }
.pub .ex-subj.sm.on b { color:#fff; }
/* The chosen subject and chosen sample use the same purple gradient as the Download / Create free account buttons (Roopa, 17 Nov) */
.pub .ex-subj.sm.on, .pub .fr-types a.on, .pub .fr-kinds a.on { background:linear-gradient(135deg,#667eea,#764ba2); border-color:transparent; color:#fff; box-shadow:0 6px 16px rgba(102,126,234,.35); }
/* Blog video placeholder: the video's thumbnail whole, with "Video coming soon" under it (Roopa, 17 Nov) */
.pub .bl-video.soon { aspect-ratio:auto; overflow:visible; background:none; box-shadow:none; border-radius:0; }
.pub .bl-video.soon img { height:auto; border-radius:16px; box-shadow:0 8px 24px rgba(91,33,182,.18); }
.pub .bl-video.soon span { position:static; display:block; margin-top:10px; background:#eef2ff; box-shadow:none; }
/* Blog article videos played from the site's own copy (Roopa, 17 Nov) */
.pub .bl-video.own { background:#1e1b4b; border:6px solid #1e1b4b; }
.pub .bl-video.own video { width:100%; height:100%; display:block; object-fit:cover; background:#eef2ff; }
.pub .bl-video.own .play { position:absolute; left:50%; top:69%; width:64px; height:64px; margin:-32px 0 0 -32px; border:0; padding:0; cursor:pointer; border-radius:50%; background:rgba(30,27,75,.82); box-shadow:0 6px 20px rgba(0,0,0,.3); transition:transform .15s; }
.pub .bl-video.own .play::after { content:""; position:absolute; left:25px; top:19px; border-style:solid; border-width:13px 0 13px 21px; border-color:transparent transparent transparent #fff; }
.pub .bl-video.own .play:hover { transform:scale(1.08); }
.pub .bl-video.own.playing .play { display:none; }
/* Full screen shows the whole upright video, with black bars at the sides, not cropped to the landscape screen (Roopa, 17 Nov) */
.pub .bl-video.own video { object-fit:contain; }
.pub video:fullscreen, .home-video video:fullscreen { object-fit:contain !important; background:#000 !important; }
.pub video:-webkit-full-screen, .home-video video:-webkit-full-screen { object-fit:contain !important; background:#000 !important; }

/* How it works: a phone video next to each point instead of screenshots (how-it-works.html, Roopa 19 Nov).
   Tap to play, with the same play button as the Home and blog videos. The video column hugs the video, so the text gets the rest. */
.pub .how:has(.frame.vid) { grid-template-columns:1fr auto; gap:40px; } .pub .how.flip:has(.frame.vid) { grid-template-columns:auto 1fr; }
.pub .frame.vid { justify-self:center; }
.pub .frame.vid .body { padding:8px; }
.pub .frame.vid .hv { position:relative; }
.pub .frame.vid video { display:block; height:min(620px, calc(100vh - 170px)); width:auto; aspect-ratio:720 / 1654; border-radius:10px; background:#eef2ff; object-fit:cover; }
.pub .frame.vid .play { position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border:0; padding:0; cursor:pointer; border-radius:50%; background:rgba(30,27,75,.82); box-shadow:0 6px 20px rgba(0,0,0,.3); transition:transform .15s; }
.pub .frame.vid .play::after { content:""; position:absolute; left:25px; top:19px; border-style:solid; border-width:13px 0 13px 21px; border-color:transparent transparent transparent #fff; }
.pub .frame.vid .play:hover { transform:scale(1.08); }
.pub .frame.vid .hv.playing .play { display:none; }
@media (max-width:860px) { .pub .how:has(.frame.vid), .pub .how.flip:has(.frame.vid) { grid-template-columns:1fr; gap:18px; } .pub .frame.vid video { height:auto; width:min(280px, 74vw); } }
/* Landscape versions (laptop-size recordings) on screens 700 px or wider: html.hiw-wide, set by how-it-works.html */
html.hiw-wide .pub .how:has(.frame.vid) { grid-template-columns:minmax(240px, .75fr) 1.45fr; gap:32px; } html.hiw-wide .pub .how.flip:has(.frame.vid) { grid-template-columns:1.45fr minmax(240px, .75fr); }
html.hiw-wide .pub .frame.vid { justify-self:stretch; }
html.hiw-wide .pub .frame.vid video { width:100%; height:auto; max-height:calc(100vh - 150px); object-fit:contain; aspect-ratio:1280 / 864; }
@media (max-width:860px) { html.hiw-wide .pub .how:has(.frame.vid), html.hiw-wide .pub .how.flip:has(.frame.vid) { grid-template-columns:1fr; } }

/* Top menu: the full row (logo, six links, Log in, Create free account) needs about 1180 px (About added 19 Nov; was 1080). Below that it used to wrap
   ("How it works", "Log in" on two lines on a phone held sideways or a small laptop), so the burger menu takes over at
   1080 px, and nothing in the row may wrap (Roopa, 19 Nov). */
.site-links a, .site-right a { white-space:nowrap; }
@media (max-width:1180px) {
  .site-links { display:none !important; }
  .site-burger { display:block; }
}

/* Header on phones and iPads (Roopa, 19 Nov): Log in and the sign-up button always in the bar, the ☰ menu holds the page
   links only. Phones (under 640 px): the logo icon only, and the button reads "Sign up". Nothing in the bar wraps. */
.site-signup .ss { display:none; }
.site-right { flex-shrink:0; } .site-right a, .site-right button { white-space:nowrap; }
.site-logo { min-width:0; }
@media (max-width:1180px) { .site-right { gap:10px; } }
@media (max-width:640px) {
  .site-logo-t { display:none !important; }
  .site-signup .sl { display:none; } .site-signup .ss { display:inline; }
  .site-right .site-login { padding:6px 12px; font-size:14px; }
  .site-right .site-signup { padding:8px 14px; font-size:14px; box-shadow:0 4px 12px rgba(102,126,234,.3); }
  .site-right .site-btn-dash { padding:8px 12px; font-size:14px; }
  .site-right { gap:8px; } .site-burger { padding:6px; }
}
@media (max-width:360px) { .site-nav-in { padding:0 12px; gap:12px; } .site-right .site-login { padding:5px 10px; } .site-right .site-signup { padding:7px 12px; } }
/* Free resources: the three type buttons wrap rather than overflow (narrow phones, larger text settings) */
@media (max-width: 600px) { .pub .fr-types { flex-wrap:wrap; } .pub .fr-types a { flex:1 1 auto; } }
/* A row of buttons: a gap between them, also when they stack on a phone */
.pub .btnrow { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.pub .btnrow .btn { margin:0; }
/* Narrow phones: the three type buttons on one line (no icons, equal widths); they still wrap with larger text settings */
.pub .fr-types .fr-ic { font-style:normal; }
@media (max-width: 420px) { .pub .fr-types { gap:6px; } .pub .fr-types a { flex:1 1 0; padding:8px 4px; font-size:13px; text-align:center; } .pub .fr-types .fr-ic { display:none; } }
