/* Sitaray's public pages: the landing page and the blog. The same colours and heading font as the app (style.css), and
   the same one bold thing: a night sky where good habits become stars. */
:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #172036;
  --muted: #586380;
  --line: #dde2ee;
  --accent: #3b41a8;
  --accent-ink: #ffffff;
  --accent-soft: #e6e8fa;
  --night: #1b1f4b;
  --night-deep: #10132b;
  --night-line: #343a7a;
  --night-ink: #eef0ff;
  --night-muted: #c3c7ee;
  --gold: #f5b301;
  --gold-ink: #8a5a00;
  --good: #1c6b3a;
  --good-soft: #e1f1e6;
  --radius: 14px;
  --display: "Baloo Bhaijaan 2", ui-rounded, system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10132b; --surface: #181c3a; --surface-2: #222750; --text: #eceefb; --muted: #a3a9cc; --line: #2e3463;
    --accent: #a4abff; --accent-ink: #10132b; --accent-soft: #23285a; --night: #0b0e26; --night-deep: #070920;
    --gold-ink: #f5c542; --good: #4cc17a; --good-soft: #15321f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10132b; --surface: #181c3a; --surface-2: #222750; --text: #eceefb; --muted: #a3a9cc; --line: #2e3463;
  --accent: #a4abff; --accent-ink: #10132b; --accent-soft: #23285a; --night: #0b0e26; --night-deep: #070920;
  --gold-ink: #f5c542; --good: #4cc17a; --good-soft: #15321f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .35em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 700 1.02rem/1 var(--display); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: #1d1600; }
.btn.gold:hover { background: #ffc531; }
.btn.line { border-color: currentColor; color: inherit; }
.btn.line:hover { background: rgba(255, 255, 255, .08); }
.btn.solid { background: var(--accent); color: var(--accent-ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* ---- header (on the night sky) --------------------------------------------------- */
.night { background: var(--night); color: var(--night-ink); }
.night a:not(.btn) { color: var(--night-ink); }
.site-head { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: .35em; font: 800 1.45rem/1 var(--display); text-decoration: none; color: inherit; }
.brand .beta { font: 700 .62rem/1 system-ui, sans-serif; letter-spacing: .02em; padding: 4px 7px; border-radius: 999px; background: rgba(245, 179, 1, .18); color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .96rem; opacity: .88; }
.site-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border: 2px solid var(--night-line); border-radius: 999px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 10px; border-radius: var(--radius); background: var(--night-deep); border: 1px solid var(--night-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.menu-panel a:not(.btn) { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu-panel a:not(.btn):hover { background: var(--night); }
.menu-panel .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu { display: block; }
}

/* ---- hero ----------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #2a2f72 0%, var(--night) 55%, var(--night-deep) 100%); }
.hero .field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Faint behind the words, so a star never reads as a stray dot in the copy. */
.hero .field { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0 50%, #000 62%); mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0 50%, #000 62%); }
.field circle { fill: #fff; opacity: .55; animation: twinkle 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.field circle.g { fill: var(--gold); opacity: .9; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 800; line-height: 1; margin-bottom: .3em; }
.hero h1 .line2 { display: block; color: var(--gold); }
.hero .lede { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--night-muted); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .fine { font-size: .92rem; color: var(--night-muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; padding-bottom: 64px; }
  .hero .ctas .btn { flex: 1 1 auto; }
  .hero .field { -webkit-mask-image: linear-gradient(180deg, #000 0 70px, rgba(0,0,0,.18) 110px 600px, #000 680px); mask-image: linear-gradient(180deg, #000 0 70px, rgba(0,0,0,.18) 110px 600px, #000 680px); }
}

/* The phone: a child's home screen, drawn in HTML so it stays sharp and follows the real app. */
.phone { justify-self: center; width: min(320px, 100%); padding: 10px; border-radius: 42px; background: #0b0e26; box-shadow: 0 0 0 2px var(--night-line), 0 30px 70px rgba(0, 0, 0, .45); }
.phone .screen { border-radius: 32px; overflow: hidden; background: #f3f5fb; color: #172036; }
.m-sky { position: relative; padding: 26px 20px 20px; background: #1b1f4b; color: #eef0ff; text-align: center; }
.m-sky svg { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.m-sky .hi { font-size: .9rem; color: #c3c7ee; }
.m-sky .bal { font: 800 3rem/1 var(--display); color: var(--gold); }
.m-sky .bal small { font-size: 1rem; color: #c3c7ee; margin-left: .3em; }
.m-goal { margin-top: 10px; text-align: left; font-size: .85rem; }
.m-goal .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-top: 6px; overflow: hidden; }
.m-goal .bar span { display: block; height: 100%; width: 35%; border-radius: 99px; background: var(--gold); }
.m-sky .prayer { margin-top: 12px; font-size: .82rem; color: #c3c7ee; }
.m-tasks { padding: 14px; display: grid; gap: 10px; }
.m-task { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #dde2ee; font-size: .9rem; }
.m-task .t { flex: 1; font-weight: 600; line-height: 1.25; }
.m-task .t small { display: block; font-weight: 400; color: #586380; }
.m-task .p { font-weight: 800; color: #8a5a00; white-space: nowrap; }
.m-task .ok { padding: 4px 9px; border-radius: 99px; background: #e1f1e6; color: #1c6b3a; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.m-task .do { padding: 5px 10px; border-radius: 99px; background: #1c6b3a; color: #fff; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.constellation path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; opacity: .75; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s .6s ease-out forwards; }
.constellation .lit { fill: var(--gold); }
.constellation .dim { fill: none; stroke: #8b90c9; stroke-width: 1; stroke-dasharray: 2 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field circle, .constellation path { animation: none; }
  .constellation path { stroke-dashoffset: 0; }
}

/* ---- sections ------------------------------------------------------------------- */
section.block { padding: 88px 0; }
section.block + section.block { padding-top: 0; }
.intro { max-width: 40em; margin-bottom: 40px; }
.intro p { color: var(--muted); font-size: 1.08rem; }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why .intro { margin: 0; position: sticky; top: 24px; }
.why-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.why-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list .ico { font-size: 2rem; line-height: 1; padding-top: 4px; }
.why-list h3 { margin-bottom: .25em; }
.why-list p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 16px; } .why .intro { position: static; } }

/* Real screenshots in phone frames. On a phone they sit side by side and scroll sideways, one at a time. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 16px; border: 8px solid #0b0e26; border-radius: 34px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(16, 19, 43, .18); background: #f3f5fb; }
.shots figcaption { max-width: 300px; margin: 0 auto; color: var(--muted); }
.shots figcaption strong { color: var(--text); }
@media (max-width: 860px) {
  .shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(72%, 280px); gap: 18px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
  .shots figure { scroll-snap-align: start; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  font: 800 1.35rem/1 var(--display); color: #1d1600; background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  padding-top: 6px;
}
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.features div { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.features dt { grid-row: span 2; font-size: 1.6rem; line-height: 1.2; }
.features dt span { display: block; }
.features dd { margin: 0; }
.features dd strong { display: block; font: 700 1.15rem/1.3 var(--display); margin-bottom: 2px; }
.features dd.d { color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.promise { background: var(--accent-soft); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.promise li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1.05rem; }
.promise li::before { content: "★"; color: var(--gold-ink); font-size: 1.2rem; line-height: 1.4; }
.promise .intro { margin: 0; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; padding: 32px 22px; gap: 20px; border-radius: 20px; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.plan { padding: 36px; border-radius: 24px; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.plan .name { font: 700 1.1rem/1 var(--display); color: var(--gold); }
.plan .price { font: 800 4rem/1 var(--display); margin: 10px 0 2px; }
.plan .price small { font-size: 1.1rem; font-weight: 600; color: var(--night-muted); margin-left: .3em; }
.plan .sub { color: var(--night-muted); margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 10px; }
.plan .btn { width: 100%; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; gap: 24px; } .plan { padding: 28px 22px; } }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.post-card:hover { border-color: var(--accent); }
.post-card .em { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.post-card h3 { color: var(--text); }
.post-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.post-card .meta { font-size: .88rem; color: var(--muted); margin: 0; }
.post-card .more { color: var(--accent); font-weight: 700; }
.section-foot { margin-top: 24px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 1.15rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact .mail { display: inline-block; font: 800 clamp(1.6rem, 1rem + 2.4vw, 2.6rem)/1.1 var(--display); color: var(--accent); text-decoration: none; margin: 6px 0 12px; overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reasons li { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reasons strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.reasons span { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 24px; } }

.closing { text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.closing h2 { color: var(--night-ink); }
.closing p { color: var(--night-muted); }
.closing .btn { margin-top: 12px; }

/* ---- footer --------------------------------------------------------------------- */
.site-foot { background: var(--night-deep); color: var(--night-muted); padding: 48px 0 40px; font-size: .95rem; }
.site-foot a { color: var(--night-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 10px; font: 700 1rem/1.2 var(--display); color: var(--night-ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid .brand { color: var(--night-ink); margin-bottom: 10px; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: .88rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---- blog ----------------------------------------------------------------------- */
.page-head { padding-top: 24px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; margin-bottom: .2em; }
.page-head p { color: var(--night-muted); font-size: 1.1rem; max-width: 36em; margin: 0; }
.blog-list { display: grid; gap: 20px; padding-top: 56px; padding-bottom: 88px; }
.blog-list .post-card { flex-direction: row; gap: 20px; align-items: flex-start; padding: 28px; }
.blog-list .post-card .em { margin: 0; font-size: 2.4rem; }
.blog-list .post-card > div { flex: 1; }
@media (max-width: 600px) { .blog-list .post-card { flex-direction: column; gap: 8px; padding: 22px; } }
.article { max-width: 700px; margin: 0 auto; padding: 56px 20px 72px; }
.article .meta { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin: .35em 0; }
.article blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--muted); }
.article .cta-box { margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--accent-soft); }
.article .cta-box h3 { margin-bottom: .3em; }
/* Testimonials: parents' own words, added on the admin site. */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; position: relative; padding-top: 30px; }
.quote blockquote::before { content: "“"; position: absolute; top: -12px; left: -4px; font: 700 4.6rem/1 Georgia, "Times New Roman", serif; color: var(--gold); }
.quote blockquote p { margin: 0 0 .7em; font-size: 1.08rem; line-height: 1.7; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote figcaption .em { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); font-size: 1.5rem; line-height: 1; }
.quote figcaption strong { display: block; }
.quote figcaption span span { display: block; color: var(--muted); font-size: .95rem; }

/* The title lines up with the article's column below it. */
.post-head { max-width: 740px; }
.post-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); }
.post-head .em { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; display: block; }
.page-head .crumb { font-size: .95rem; margin-bottom: 16px; }
.post-card h2.h3 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: .3em; }
.plan { border: 1px solid var(--night-line); }

/* The privacy policy and terms: long documents, so smaller headings and text than a blog post. */
.article.legal h2 { font-size: 1.35rem; }
.article.legal h3 { font-size: 1.1rem; margin-top: 1.2em; }
.article.legal p, .article.legal li { font-size: 1rem; line-height: 1.7; }
.article.not-found { min-height: 45vh; }
