@font-face {
  font-family: Fredoka;
  src: url(assets/fredoka.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url(assets/nunito.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url(assets/nunito-bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url(assets/nunito-extra-bold.ttf) format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url(assets/bengali.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url(assets/bengali-bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Baloo Da 2";
  src: url(assets/baloo.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fcf8ed;
  --ink: #173f31;
  --green: #22674b;
  --lime: #dbeaab;
  --mint: #e7f0e8;
  --sky: #dceef0;
  --line: #b9ccbf;
  --radius: 24px;
  --heading: Fredoka, system-ui, sans-serif;
  --heading-weight: 600;
  --strong: 800;
  --gutter: clamp(16px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 "Nunito Sans", system-ui, sans-serif;
  font-synthesis: none;
}
:where(:lang(bn)) { font-family: "Noto Sans Bengali", system-ui, sans-serif; }
html[lang="bn"] {
  --heading: "Baloo Da 2", system-ui, sans-serif;
  --heading-weight: 700;
  --strong: 700;
  line-height: 1.72;
}
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 3px solid #087b50; outline-offset: 4px; }
.hero :focus-visible, .routine :focus-visible { outline-color: var(--lime); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: -.025em;
}
html[lang="bn"] :is(h1, h2, h3) { line-height: 1.13; letter-spacing: 0; }
h1 { font-size: clamp(3.25rem, 7vw, 6rem); line-height: .96; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.1; }
a { color: inherit; text-underline-offset: .22em; }
button, input, summary { font: inherit; }
img { display: block; max-width: 100%; object-fit: contain; }
.shell { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: var(--cream);
  padding: 10px 14px;
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }
.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.header { min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { height: auto; }
.header-controls { display: flex; align-items: center; gap: 10px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 15px;
  background: var(--ink);
  color: var(--cream);
  font-weight: var(--strong);
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, transform 150ms;
}
.button:hover { background-color: var(--green); }
.button:active { transform: translateY(2px); }
.text-link { display: inline-block; padding-block: .6rem; font-weight: 700; }
.text-link:hover { text-decoration-thickness: 2px; }

.site-languages { position: relative; }
.site-languages summary, .answers summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  font-weight: var(--strong);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "" / "";
  display: block;
  width: .82em;
  aspect-ratio: 1;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
details[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.site-languages summary {
  min-height: 50px;
  padding: .62rem .9rem;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
}
.site-languages summary:hover { background: var(--mint); }
.site-languages nav {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 7px) 0 auto auto;
  display: grid;
  width: max-content;
  min-width: 142px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  box-shadow: 0 8px 24px #173f3126;
}
.site-languages a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .75rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.site-languages a:hover { background: var(--mint); }
.site-languages a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.hero { background: var(--ink); color: var(--cream); }
.hero-inner { padding-block: clamp(28px, 4.4vw, 61px) clamp(22px, 3vw, 42px); }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 76px);
  align-items: end;
  margin-bottom: clamp(24px, 3.5vw, 46px);
}
.hero h1 em { color: var(--lime); font-style: normal; }
html[lang="en"] .hero h1 { font-size: clamp(3rem, 5.65vw, 5.2rem); }
html[lang="bn"] .hero h1 { font-size: clamp(2.65rem, 5.5vw, 5.25rem); }
.hero-description { display: grid; justify-items: start; gap: 11px; }
.lead, .section-copy > p, .finish p {
  max-width: 43ch;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.launch-note { color: var(--lime); font-weight: var(--strong); }
.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sky);
}
.hero-stage img {
  width: 100%;
  height: clamp(200px, 30vw, 400px);
  object-fit: cover;
  object-position: 52% center;
}
.hero-stage figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: .36rem .75rem;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.chapter { padding-block: clamp(46px, 7.2vw, 101px); scroll-margin-top: 18px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
}
.section-copy { display: grid; gap: 18px; }
.example { background: var(--mint); }
.specimen {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 32px #173f311a;
}
.specimen > img {
  width: 100%;
  height: clamp(180px, 24vw, 286px);
  object-fit: cover;
  object-position: center 40%;
}
fieldset { min-width: 0; margin: 0; padding: 0 22px 22px; border: 0; }
legend { padding: 16px 0 8px; font-weight: var(--strong); }
.language-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.language-switch label { position: relative; cursor: pointer; }
.language-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.language-switch span {
  display: block;
  min-height: 44px;
  padding: .48rem .74rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
}
.language-switch label:hover span { background: var(--mint); }
.language-switch input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.language-switch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.question {
  margin-bottom: 12px;
  font: 600 clamp(1.22rem, 2vw, 1.65rem)/1.18 Fredoka, system-ui, sans-serif;
}
.language-panel { display: none; padding: 12px 14px; border-radius: 12px; background: var(--mint); }
.specimen:has([value="fr"]:checked) .fr,
.specimen:has([value="en"]:checked) .en,
.specimen:has([value="bn"]:checked) .bn { display: block; }

.journey { background: var(--cream); }
.route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.route li {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 105px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 25px);
  padding: clamp(16px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--sky);
}
.route li:nth-child(2), .route li:nth-child(3) { background: var(--mint); }
.route img { width: 100%; height: auto; }
.route p { margin-top: 8px; max-width: 42ch; }

.routine { background: var(--ink); color: var(--cream); }
.routine h2 { color: var(--lime); }
.routine-preview { justify-self: center; text-align: center; }
.routine-preview img { width: min(100%, 328px); height: auto; border: 2px solid #accbb4; border-radius: var(--radius); }
.routine-preview figcaption { margin-top: 12px; }

.faq .split { align-items: start; }
.answers { display: grid; gap: 8px; }
.answers details { border-radius: 16px; background: var(--mint); }
.answers summary { min-height: 54px; padding: 13px 17px; border-radius: 16px; }
.answers summary:hover { background: #dbeadf; }
.answers p { padding: 0 17px 17px; }
.finish { background: var(--lime); }
.finish-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 20px; }
.finish p { margin-top: 14px; }
.finish img { justify-self: center; width: min(100%, 350px); height: auto; }
.finish .button { margin-top: 21px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.footer { padding-block: 25px; }
.footer-brand { flex: none; }
.footer-brand small { display: block; margin-top: 3px; font-size: .875rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.footer nav a { padding-block: 7px; text-decoration: none; }
.footer nav a:hover, .footer nav a[aria-current="page"] { text-decoration: underline; }
.information-page { min-height: 100svh; display: flex; flex-direction: column; }
.information-page .footer { margin-top: auto; }
.information { padding-block: clamp(24px, 5vw, 70px); }
.information .back-link { margin-bottom: 16px; }
.information h1 { font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1.04; margin-bottom: 24px; }
.information h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.12; margin: 24px 0 8px; }
.information p, .information ol { max-width: 66ch; margin-bottom: 14px; overflow-wrap: anywhere; }
.information ol { padding-inline-start: 1.5rem; }
.information li + li { margin-top: 8px; }

@media (max-width: 880px) {
  .hero-copy, .split { grid-template-columns: 1fr; }
  .hero-copy { gap: 16px; }
  .routine-preview { justify-self: start; }
}
@media (max-width: 620px) {
  .header { min-height: 72px; }
  .header .brand img { width: clamp(90px, 26vw, 138px); }
  .header-controls { gap: 6px; }
  .header-controls .button, .site-languages summary { min-height: 44px; padding-inline: .58rem; font-size: .9rem; }
  .site-languages summary { gap: .32rem; }
  .site-languages nav { inset-inline: 0 auto; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.9rem); }
  html[lang="en"] .hero h1, html[lang="bn"] .hero h1 { font-size: clamp(2.15rem, 8.4vw, 3.65rem); }
  .hero-stage img { object-position: 53% center; }
  fieldset { padding-inline: 14px; }
  .route, .finish-inner { grid-template-columns: 1fr; }
  .finish img { width: min(68%, 270px); justify-self: end; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stage img { animation: scene-arrival .55s ease-out both; }
  @keyframes scene-arrival { from { opacity: .8; transform: scale(1.015); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand .brand-car { width: 44px; height: 44px; border-radius: 12px; }
.flag { width: 24px; height: auto; flex: none; border-radius: 2px; }
.site-languages summary { justify-content: flex-start; }
.site-languages summary::after { margin-inline-start: auto; }
.site-languages a { gap: 9px; }
.language-switch span { display: flex; align-items: center; gap: 5px; }
.language-switch .flag { width: 18px; }

@media (max-width: 620px) {
  .header .brand .brand-car { width: 40px; height: 40px; }
  .header .brand .brand-wordmark { width: clamp(92px, 29vw, 138px); }
}
@media (max-width: 470px) {
  .header:has(.header-controls) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding-block: 10px 12px;
  }
  .header-controls { display: contents; }
  .site-languages nav { inset-inline: auto 0; }
  .register { grid-column: 1 / -1; width: 100%; }
  .language-switch { display: grid; grid-template-columns: 1.13fr 1fr .87fr; gap: 4px; }
  .language-switch span { justify-content: center; gap: 4px; padding-inline: 3px; font-size: .875rem; }
  .language-switch .flag { width: 16px; }
}
