/* ClassroomJoe.com — colors and fonts from the ClassroomJoe style guide */
:root {
  --ink: #1B1442;
  --yellow: #FFC93C;
  --coral: #FF6B4A;
  --cream: #FFF4E2;
  --soft: #5B5486;
  --lilac: #D9D4F2;
  --green: #2FB35E;
  --blue: #2F80ED;
  --teal: #12B5A5;
  --purple: #7B61FF;
  --pink: #EE4F96;
  --amber: #F59E0B;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 30; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; transform: rotate(-6deg); }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-weight: 600; }
.nav a { color: #fff; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--yellow); }
.nav .btn-nav { background: var(--coral); color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; }
.nav .btn-nav:hover { color: var(--ink); background: #ff8466; }

.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid #4A4280; color: #fff; font-weight: 600; min-height: 44px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--yellow); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 8px; min-width: 180px; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(27,20,66,0.25); }
.lang-menu li a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover { background: var(--cream); }
.lang-menu li a[aria-current] { background: var(--yellow); }
.say-tr { display: block; font-size: 15px; color: var(--soft); }
.en-note { color: var(--soft); font-size: 16px !important; }
.en-full { margin-top: 36px; padding-top: 12px; border-top: 2px dashed #E7C995; }

/* ---------- Other languages ---------- */
html[lang="fa"] { --display: Vazirmatn, Tahoma, sans-serif; --body: Vazirmatn, Tahoma, sans-serif; }
html[lang="zh-Hans"] { --display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html[lang="ru"], html[lang="uk"] { --display: Inter, system-ui, sans-serif; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { letter-spacing: 0; }
html[lang="fa"] .hero h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.25; }
html[lang="fa"] .final h2, html[lang="fa"] .family-copy h2 { line-height: 1.3; }
html[lang="ru"] .hero h1, html[lang="uk"] .hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
html[lang="ru"] .final h2, html[lang="uk"] .final h2, html[lang="es"] .hero h1, html[lang="vi"] .hero h1 { font-size: clamp(38px, 5.4vw, 60px); }
h1, h2 { overflow-wrap: break-word; }
.en-full { font-family: Inter, system-ui, sans-serif; }
[dir="rtl"] .bubble { border-radius: 22px 22px 22px 6px; }
[dir="rtl"] .say { border-radius: 16px 16px 4px 16px; }
[dir="rtl"] .logo-mark { transform: rotate(6deg); }
[dir="rtl"] .en-full { text-align: left; }
[dir="rtl"] .band .dot1 { right: auto; left: -60px; }
[dir="rtl"] .band .dot2 { left: auto; right: -40px; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #C2412A; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill-dark { background: var(--ink); color: var(--yellow); }
.pill-glow { background: rgba(255,201,60,0.16); color: var(--yellow); }
.pill-coral { background: var(--coral); color: var(--ink); }
.section { padding: 80px 0; }
.section-title { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; }
.center { text-align: center; }

/* Photo slots: a colored card; the photo fills it once the image file exists */
.photo { position: relative; border-radius: 28px; overflow: hidden; background: var(--c, var(--teal)); box-shadow: 0 22px 46px rgba(27,20,66,0.22); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Store buttons */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-btn { min-width: 200px; height: 62px; padding: 0 18px; border-radius: 14px; background: #000; color: #fff; border: 1px solid #5B5486; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.store-btn img { height: 60px; width: auto; }
.store-btn.soon { background: transparent; border: 2px dashed currentColor; cursor: default; flex-direction: column; line-height: 1.25; font-size: 15px; }
.store-btn.soon small { font-weight: 500; font-size: 12px; opacity: 0.85; }

/* ---------- Learning path ---------- */
.path { padding: 72px 0 56px; }
.path h2 { max-width: 760px; margin: 10px auto 0; }
.path-track { position: relative; margin-top: 56px; }
.path-track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 58px; border-top: 6px dashed #E7C995; }
.path-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.path-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.path-list li:nth-child(even) { margin-top: 40px; }
.stop { width: 116px; height: 116px; border-radius: 50%; background: var(--c); border: 6px solid var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 40px; box-shadow: 0 10px 24px rgba(27,20,66,0.18); }
.stop.light { color: #fff; }
.stop-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stop-name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.stop-note { font-size: 14px; color: var(--soft); }
.stop-note a { color: #C2412A; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 72px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(50px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.02em; }
.hero h1 span { color: var(--yellow); }
.hero .lead { max-width: 520px; font-size: 20px; color: var(--lilac); }
.hero .tagline { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.hero .tagline span { color: var(--yellow); }
.hero .store-row a.text-link { color: var(--yellow); font-weight: 700; font-size: 17px; }
.collage { flex: 1 1 460px; min-width: 0; position: relative; height: 540px; }
.collage .photo { position: absolute; }
.collage .p1 { left: 4%; top: 0; width: 58%; height: 340px; transform: rotate(-4deg); }
.collage .p2 { right: 0; top: 70px; width: 46%; height: 260px; transform: rotate(5deg); }
.collage .p3 { left: 22%; bottom: 0; width: 50%; height: 220px; transform: rotate(2deg); }
.bubble { position: absolute; right: 2%; bottom: 46px; max-width: 230px; padding: 16px 18px; border-radius: 22px 22px 6px 22px; background: #fff; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.35; box-shadow: 0 16px 36px rgba(0,0,0,0.3); }
.bubble small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #6A6390; }
.streak { position: absolute; left: 0; bottom: 70px; padding: 10px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 28px rgba(0,0,0,0.3); }

.hero-art { flex: 1 1 460px; min-width: 0; position: relative; }
.hero-badge { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); }
.hero-art .bubble { right: 0; bottom: -28px; }
.joe-portrait img { object-position: center 20%; }

/* ---------- Try it ---------- */
.try { padding: 88px 0 24px; }
.try .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.card-white { flex: 1 1 520px; min-width: 0; background: #fff; border-radius: 36px; padding: 44px; box-shadow: 0 20px 44px rgba(27,20,66,0.12); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.card-white h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.choices { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.choice { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-radius: 18px; border: 3px solid #E0DAF5; background: #F7F5FD; color: var(--ink); font: 700 18px var(--body); text-align: start; cursor: pointer; }
.choice:hover { border-color: var(--purple); }
.choice.right { background: var(--green); border-color: var(--ink); }
.choice.wrong { background: #FFD7CC; border-color: var(--coral); }
.choice .mark { font-size: 15px; font-weight: 800; }
.feedback { width: 100%; padding: 18px 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; }
.feedback.good { background: #E3F6EA; }
.feedback.okay { background: #FFF1D6; }
.feedback strong { font-family: var(--display); font-size: 24px; }
.btn-dark { display: inline-block; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; }
.btn-dark:hover { background: #2E2660; }
.card-ink { flex: 1 1 380px; min-width: 0; background: var(--ink); color: #fff; border-radius: 36px; padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.card-ink h2 { font-size: 40px; line-height: 1.05; }
.card-ink h2 span { color: var(--yellow); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.facts li { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; }
.facts b { min-width: 96px; font-family: var(--display); font-weight: 800; font-size: 38px; }
.card-ink .small { margin-top: auto; font-size: 15px; color: var(--lilac); }

/* ---------- Color band (app screens) ---------- */
.band { position: relative; overflow: hidden; border-radius: 40px; padding: 56px 48px 48px; }
.band-teal { background: var(--teal); }
.band .dot1 { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); }
.band .dot2 { position: absolute; left: -40px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: #0E8F83; }
.band > * { position: relative; }
.band h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1.02; max-width: 640px; }
.band p { margin-top: 10px; max-width: 560px; font-size: 18px; }
.shots { margin-top: 36px; display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; width: 210px; height: auto; border-radius: 28px; border: 7px solid var(--ink); box-shadow: 0 20px 40px rgba(27,20,66,0.28); scroll-snap-align: center; background: #fff; }
.shots-note { margin-top: 28px; display: inline-block; padding: 10px 16px; border-radius: 999px; background: rgba(27,20,66,0.12); font-weight: 700; }

/* ---------- Families ---------- */
.family { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--green); border-radius: 40px; overflow: hidden; }
.family-copy { flex: 1 1 440px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.family-copy h2 { font-size: clamp(42px, 6vw, 60px); line-height: 0.98; }
.family-copy p { max-width: 460px; font-size: 19px; font-weight: 500; }
.family-copy .app-name { font-family: var(--display); font-weight: 800; font-size: 26px; }
.family-pics { flex: 1 1 460px; min-width: 0; position: relative; min-height: 520px; }
.family-pics .photo { position: absolute; }
.family-pics .f1 { left: 32px; right: 32px; top: 32px; bottom: 120px; transform: rotate(2deg); }
.family-pics .f1.art { bottom: 32px; transform: rotate(2deg); box-shadow: none; }
.family-pics .f2 { left: 12px; bottom: 24px; width: 46%; height: 170px; transform: rotate(-5deg); border-radius: 24px; }
.family-pics .f3 { right: 16px; bottom: 34px; width: 44%; height: 160px; transform: rotate(4deg); border-radius: 24px; }

.family.no-pics { justify-content: center; text-align: center; }
.family.no-pics .family-copy { align-items: center; flex-basis: 100%; }
.family.no-pics .family-copy p { max-width: 560px; }

/* ---------- Moments ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 32px; }
.moment { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 14px 34px rgba(27,20,66,0.1); }
.moment .photo { height: 230px; border-radius: 0; box-shadow: none; }
.moment-body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.moment-body h3 { font-family: var(--body); font-size: 20px; }
.say { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #F3F0FF; font-weight: 600; }

/* ---------- More apps ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: 28px; background: var(--c); color: var(--ink); min-height: 200px; }
.app-card.light { color: #fff; }
.app-card h3 { font-size: 26px; }
.app-card p { font-size: 16px; font-weight: 500; }
.app-card .pill { margin-top: auto; }

/* ---------- Mr. Joe ---------- */
.joe { background: var(--coral); border-radius: 40px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.joe-portrait { width: 220px; height: 220px; flex-shrink: 0; border-radius: 50%; border: 8px solid var(--yellow); --c: var(--cream); box-shadow: none; }
.joe-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.joe-copy blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.joe-copy p { font-size: 18px; font-weight: 500; }
.joe-class { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.joe-class .photo { height: 220px; border-radius: 24px; }
.joe-class .photo:nth-child(1) { transform: rotate(-2deg); }
.joe-class .photo:nth-child(2) { transform: rotate(1.5deg); }
.joe-class .photo:nth-child(3) { transform: rotate(-1deg); }

/* ---------- Stay in touch ---------- */
.touch { background: #fff; border-radius: 36px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; box-shadow: 0 14px 34px rgba(27,20,66,0.08); }
.touch h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.touch p { margin-top: 8px; max-width: 520px; font-size: 17px; color: var(--soft); }
.signup { display: flex; flex-wrap: wrap; gap: 12px; }
.signup input { min-width: 260px; height: 56px; padding: 0 18px; border-radius: 999px; border: 2px solid #E0DAF5; font: 500 17px var(--body); }
.signup button { height: 56px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--coral); color: var(--ink); font: 800 17px var(--body); cursor: pointer; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Final + footer ---------- */
.final { background: var(--ink); color: #fff; text-align: center; padding: 88px 0 32px; margin-top: 80px; }
.final h2 { font-size: clamp(40px, 6vw, 60px); line-height: 1; max-width: 760px; margin: 0 auto; }
.final h2 span { color: var(--yellow); }
.final .lead { margin: 18px auto 0; max-width: 560px; font-size: 19px; color: var(--lilac); }
.final .store-row { justify-content: center; margin-top: 34px; }
.footer { margin-top: 80px; padding-top: 28px; border-top: 1px solid #3A3270; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--lilac); text-align: start; }
.footer a { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Simple pages (privacy, terms) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; }
.page h1 { font-size: clamp(38px, 6vw, 52px); }
.page p { margin-top: 18px; font-size: 18px; }
.page h2 { font-size: 28px; margin-top: 44px; }
.page h3 { font-family: var(--body); font-size: 19px; margin-top: 26px; }
.page ul { margin: 14px 0 0; padding-inline-start: 22px; font-size: 18px; }
.page li { margin-top: 10px; }
.page .meta { color: var(--soft); font-size: 16px; margin-top: 10px; }
.page h2[id] { scroll-margin-top: 20px; }
.page .note { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: #fff; }
.page-footer { background: var(--ink); color: var(--lilac); padding: 28px 0; margin-top: 80px; }
.page-footer .footer { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .path-list { grid-template-columns: 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
  .path-list li { flex-direction: row; text-align: left; gap: 14px; }
  .path-list li:nth-child(even) { margin-top: 0; margin-inline-start: 36px; }
  .path-list li:nth-child(3n) { margin-inline-start: 64px; }
  .path-track::before { display: none; }
  .stop { width: 64px; height: 64px; font-size: 24px; border-width: 0; flex-shrink: 0; }
  .stop svg { width: 34px; height: 34px; }
  .stop-text { align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-art .bubble { position: static; margin: 12px auto 0; max-width: 300px; }
  .collage { height: 400px; }
  .collage .p1 { height: 250px; width: 64%; }
  .collage .p2 { top: 110px; height: 200px; }
  .collage .p3 { display: none; }
  .bubble { left: 4%; right: auto; bottom: 8px; font-size: 15px; }
  .streak { display: none; }
  .card-white, .card-ink, .touch, .joe { padding: 28px 22px; border-radius: 28px; }
  .band { padding: 36px 22px 28px; border-radius: 30px; }
  .family-copy { padding: 32px 22px; }
  .family-pics { min-height: 340px; }
  .family-pics .f1 { left: 18px; right: 18px; top: 20px; bottom: 110px; }
  .family-pics .f1.art { bottom: 32px; transform: rotate(2deg); box-shadow: none; }
.family-pics .f2 { height: 120px; }
  .family-pics .f3 { height: 112px; }
  .joe-portrait { width: 150px; height: 150px; margin: 0 auto; }
  .signup input { min-width: 0; width: 100%; }
  .signup, .signup button { width: 100%; }
}
