/* Cholo Shikhi site. Tokens mirror the app (packages/ui/src/tokens.ts). */
:root {
  --terracotta: #b4482e;
  --terracotta-deep: #7e3020;
  --terracotta-tint: #f3d9cf;
  --paddy: #4a7a3b;
  --paddy-deep: #2f5426;
  --marigold: #e8a317;
  --marigold-tint: #f8e6b8;
  --indigo: #2a3e6b;
  --indigo-deep: #1a2847;
  --jute: #8c6a46;
  --paper: #f6efe2;
  --card: #fffdf7;
  --ink: #2b2119;
  --ink-soft: #5c4a3a;
  --line: #e2d6c1;
  --teal: #0b5262;
  --teal-deep: #073a49;
  --radius: 22px;
  --heading: 'Tiro Bangla', 'Noto Serif Bengali', serif;
  --text: 'Anek Bangla', 'Noto Sans Bengali', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h1 .en { font-size: .4em; margin-top: .6em; }
h2 .en { font-size: .5em; margin-top: .2em; }
.en { display: block; font-family: var(--text); font-size: .62em; color: var(--ink-soft); letter-spacing: .01em; }
p { margin: 0 0 1em; }

/* Kantha running stitch, the app's signature divider */
.stitch {
  height: 4px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 14px, transparent 14px 24px);
  opacity: .8;
}
.stitch.paddy { background: repeating-linear-gradient(90deg, var(--paddy) 0 14px, transparent 14px 24px); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 239, 226, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font-family: var(--heading); font-weight: 400; font-size: 1.35rem; }
.brand small { display: block; font-size: .72rem; color: var(--ink-soft); line-height: 1; }
.top nav { display: flex; gap: 18px; font-size: .95rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--terracotta); }

/* Chunky button with a solid drop shadow, like the app */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 18px;
  background: var(--paddy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.1rem; line-height: 1.2;
  box-shadow: 0 5px 0 var(--paddy-deep);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: #fff; transform: translateY(1px); box-shadow: 0 4px 0 var(--paddy-deep); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--paddy-deep); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .9; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:hover { color: var(--ink); box-shadow: 0 4px 0 var(--line); }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--marigold-tint); color: var(--terracotta-deep); font-weight: 600; font-size: .9rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }
.hero-art { position: relative; justify-self: center; }
.hero-art .phone { width: 280px; transform: rotate(2deg); }
.hero-art .prodip { position: absolute; width: 150px; left: -96px; bottom: -18px; filter: drop-shadow(0 10px 14px rgba(43, 33, 25, .18)); }
.hero-art .bubble {
  position: absolute; left: -128px; top: 40px; max-width: 190px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px;
  font-size: .95rem; line-height: 1.4; box-shadow: 0 4px 0 var(--ink);
}

/* Phone frame around screenshots */
.phone {
  background: var(--ink); padding: 10px; border-radius: 38px;
  box-shadow: 0 24px 50px -18px rgba(43, 33, 25, .45), 0 0 0 2px #4a3a2c inset;
}
.phone img { border-radius: 29px; width: 100%; aspect-ratio: 515 / 1115; object-fit: cover; background: var(--card); }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band .feature { background: var(--paper); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 28px; height: 28px; }
.feature p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.t-terracotta { background: var(--terracotta-tint); color: var(--terracotta-deep); }
.t-paddy { background: #d7e6cf; color: var(--paddy-deep); }
.t-marigold { background: var(--marigold-tint); color: #8a5f08; }
.t-indigo { background: #d3dbef; color: var(--indigo-deep); }

/* Screenshot gallery: horizontal scroll on small screens */
.shots { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px 4px 28px; margin-top: 8px; }
.shots figure { flex: 0 0 240px; margin: 0; scroll-snap-align: center; }
.shots figcaption { text-align: center; margin-top: 14px; font-size: .98rem; color: var(--ink-soft); }
.shots figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 32px; }
.course { display: flex; gap: 18px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; border-left: 6px solid var(--terracotta); }
.course.biz { border-left-color: #6b4f8c; }
.course img { width: 112px; height: 112px; object-fit: contain; border-radius: 14px; flex: none; background: #fff; }
.course p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 26px 22px 22px; background: var(--paper); border-radius: var(--radius); border: 2px dashed var(--jute); }
.steps li::before {
  content: counter(s, bengali); position: absolute; top: -18px; left: 20px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 3px 0 var(--terracotta-deep);
}
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.trust div { background: var(--card); border-radius: 18px; padding: 18px 20px; border: 1px solid var(--line); font-size: 1rem; }
.trust b { display: block; font-family: var(--heading); font-weight: 400; font-size: 1.15rem; }

/* Final CTA */
.final { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.final img { width: 120px; }
.final h2 { margin: 0; }
.final p { margin: 6px 0 0; opacity: .85; }
.final .btn { background: var(--marigold); color: var(--ink); box-shadow: 0 5px 0 #a8760f; }
.final .btn:hover { color: var(--ink); box-shadow: 0 4px 0 #a8760f; }

/* Footer */
footer { padding: 40px 0 56px; font-size: .95rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Legal pages */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 780px; }
.legal article { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 48px); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal p, .legal li { font-size: 1.02rem; }
.legal .meta { color: var(--ink-soft); font-size: .95rem; padding-bottom: 18px; margin-bottom: 18px; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.callout { background: var(--marigold-tint); border-radius: 16px; padding: 16px 20px; margin: 1.2em 0; }
.callout p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-art { margin-top: 24px; }
  .hero-art .prodip { left: -40px; width: 120px; }
  .hero-art .bubble { display: none; }
  .features, .steps, .trust { grid-template-columns: 1fr; }
  .courses { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top nav { display: none; }
  .hero { padding-top: 32px; }
  .hero-art .phone { width: 240px; }
  .hero-art .prodip { left: -24px; width: 100px; }
  section { padding: 52px 0; }
  .course { flex-direction: column; text-align: center; border-left-width: 2px; border-top: 6px solid var(--terracotta); }
  .course.biz { border-top-color: #6b4f8c; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
