:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d1b33;
  --muted: #5b5873;
  --accent: #3e3aa0;
  --honey: #f2b53a;
  --honey-deep: #c98a10;
  --honey-ink: #2a2210;
  --note-bg: #eeedf7;
  --rule: #e4e2ee;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121119;
    --surface: #1b1a26;
    --text: #eceaf6;
    --muted: #a7a4bf;
    --accent: #a9a5f0;
    --note-bg: #1f1e2b;
    --rule: #2e2d40;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
}

.lang-links {
  display: flex;
  gap: 1rem;
}

a {
  color: var(--accent);
}

h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.05rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.3rem 0;
}

.note {
  background: var(--note-bg);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.links {
  list-style: none;
  padding: 0;
}

/* ---- Home page --------------------------------------------------------------------------- */

.home {
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--honey);
  color: var(--honey-ink);
  text-align: center;
  padding: 3rem 16px 3.5rem;
}

/* A few pale hexagons drifting in the honey, like the comb in the app. */
.hero-comb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-bee {
  width: 9.5rem;
  height: 9.5rem;
  display: block;
  margin: 0 auto 0.5rem;
  animation: hover 3.2s ease-in-out infinite;
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bee { animation: none; }
}

.wordmark {
  font-family: "Fredoka", "Noto Sans Bengali", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
  color: #14122a;
}

.tagline {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.75rem 0 0.15rem;
}

.tagline-sub {
  margin: 0;
  opacity: 0.85;
}

.get-app {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.get-app img {
  display: block;
  width: 13rem;
  height: auto;
}

.features {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 16px 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: 20px;
  padding: 1.1rem 1.1rem;
}

.feature svg {
  flex: none;
  width: 4.5rem;
  height: 3.5rem;
}

.feature > div {
  min-width: 0;
}

.feature h2 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.offline {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 16px 0;
}

.offline h2 {
  margin: 0 0 0.25rem;
}

.offline p {
  margin: 0;
  color: var(--muted);
}

/* Closed by default, so the page stays short; search engines still read the text. */
.more {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 16px 0;
  display: grid;
  gap: 0.75rem;
}

.more details {
  background: var(--surface);
  border-radius: 20px;
}

.more summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-0.15rem);
  transition: transform 0.2s;
}

.more details[open] summary::after {
  transform: rotate(-135deg) translateY(-0.1rem);
}

.more summary span {
  color: var(--muted);
  font-weight: 400;
  margin-right: auto;
}

.more-body {
  padding: 0 1.2rem 1.1rem;
  font-size: 0.95rem;
}

.more-body p:first-child {
  margin-top: 0;
}

.chapters {
  padding-left: 1.6rem;
  margin: 0;
}

.chapters li {
  break-inside: avoid;
}

.chapters span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .chapters { columns: 2; column-gap: 2.5rem; }
}

@media (min-width: 1000px) {
  .chapters { columns: 3; }
}

.faq h3 {
  font-size: 1rem;
  margin: 1rem 0 0.15rem;
}

.faq h3:first-child {
  margin-top: 0;
}

.faq p {
  margin: 0;
  color: var(--muted);
}

.fine {
  color: var(--muted);
  font-size: 0.85rem;
}

.home-footer {
  max-width: 60rem;
  margin: 2.5rem auto 0;
  padding: 1rem 16px 3rem;
  border-top: 1px solid var(--rule);
}
