/* Jide Languages — shared look for the front page and My languages (Kyle 2026-10-17, canvas "Jide Languages — Front door").
   Page colours are tokens; the chosen language sets --lc (its colour), --lhc (its highlight on dark panels) and --link (its dark text). */
:root {
  --bg: #F5F6F8; --surface: #FFFFFF; --ink: #111827; --ink2: #1F2937; --muted: #4B5563; --line: #E3E6EB; --chip: #EEF0F3;
  --dark: #111827; --on-dark: #FFFFFF;
  --panel: #151B17; --panel-line: #2A332E; --panel-ink: #E8EFEA; --panel-mut: #9FB1A8;
  --lc: #1D6B58; --lhc: #6FD3A4; --link: #134A3C;
  --soft: color-mix(in srgb, var(--lc) 11%, #FFFFFF);
  --band: color-mix(in srgb, var(--lc) 22%, #FFFFFF);
  --label: var(--link);
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-han: "Noto Serif SC", "Songti SC", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1216; --surface: #161B21; --ink: #E8ECEF; --ink2: #D7DDE2; --muted: #A3ADB8; --line: #2A313A; --chip: #222932;
    --dark: #E8ECEF; --on-dark: #0E1216;
    --soft: color-mix(in srgb, var(--lc) 16%, #161B21);
    --band: color-mix(in srgb, var(--lc) 28%, #161B21);
    --label: var(--lhc); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1216; --surface: #161B21; --ink: #E8ECEF; --ink2: #D7DDE2; --muted: #A3ADB8; --line: #2A313A; --chip: #222932;
  --dark: #E8ECEF; --on-dark: #0E1216;
  --soft: color-mix(in srgb, var(--lc) 16%, #161B21);
  --band: color-mix(in srgb, var(--lc) 28%, #161B21);
  --label: var(--lhc); color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.han { font-family: var(--f-han); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.col { display: flex; flex-direction: column; gap: 32px; }
.center { align-items: center; text-align: center; }
.mut { color: var(--panel-mut); }
.ink { color: var(--panel-ink); }
.sm { font-size: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn.dark { background: var(--dark); color: var(--on-dark); }
.btn.lang { background: var(--lc); color: #FFFFFF; }
.btn.zh { background: #1D6B58; color: #FFFFFF; }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn:focus-visible, .pill:focus-visible { outline: 3px solid var(--lc); outline-offset: 2px; }

/* header + language bar */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.navlinks a:not(.btn) { padding: 12px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.navlinks a:not(.btn):hover { color: var(--ink); }
.langbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.langbar-in { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.lb-label { font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 15px var(--f-body); cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.pill .pn { font-weight: 700; font-size: 16px; color: var(--pc); }
.pill.on { background: var(--pc); border-color: var(--pc); color: #FFFFFF; }
.pill.on .pn { color: #FFFFFF; }

/* hero */
.hero { background: var(--soft); }
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-card { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.status { padding: 5px 10px; border-radius: 999px; background: var(--lc); color: #FFFFFF; letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
h1 { font-weight: 800; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; }
.lead.big { font-size: 19px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 14px; color: var(--muted); }

/* the study card (looks like the app) */
.sc { width: 100%; max-width: 440px; border-radius: 22px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--panel-ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22); font-size: 13px; }
.sc .hc { color: var(--lhc); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tags span { padding: 4px 10px; border-radius: 999px; background: #232B26; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #C9D3CE; }
.sc-tags .hl { background: none; border: 1px solid var(--lhc); color: var(--lhc); }
.sc-front { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 14px; border-bottom: 1px dashed #36403A; text-align: center; }
.sc-word { font-weight: 600; line-height: 1.1; color: var(--lhc); }
.sc-hint { font-size: 12px; color: var(--panel-mut); }
.sc-row { display: flex; align-items: center; gap: 10px; }
.sc-say { font-size: 19px; font-weight: 600; color: var(--lhc); }
.sc-chip { padding: 5px 10px; border-radius: 10px; border: 1px solid #36403A; font-size: 12px; font-weight: 700; }
.sc-chip.self { align-self: flex-start; }
.sc-mean { display: flex; align-items: baseline; gap: 8px; }
.sc-mean b { font-size: 17px; }
.sc-mean span { font-size: 12px; color: var(--lhc); }
.sc-box { border: 1px solid var(--panel-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sc-h { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--panel-mut); }
.sc-part { display: flex; gap: 12px; align-items: flex-start; }
.sc-pc { line-height: 1; min-width: 34px; }
.sc-part > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; }
.sc-ex { font-size: 16px; line-height: 1.5; }
.sc-fold { border: 1px solid var(--panel-line); border-radius: 12px; padding: 9px 12px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--panel-mut); }
.sc-know { border: 1px solid var(--panel-line); border-radius: 12px; padding: 9px; display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; }
.sc-tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--lhc); color: var(--lhc); display: inline-grid; place-items: center; font-size: 12px; }
.sc-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-grades > span { border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.sc-grades b { font-size: 15px; }
.g-forgot { border: 1px solid #C9584A; background: #3A1D19; color: #F2A094; }
.g-got { background: var(--lhc); color: #0C1A13; }

/* sections */
.sec { padding: 80px 0; }
.sec.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--label); }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.join h2 { font-size: clamp(30px, 4.4vw, 44px); }
.join .btn { margin-top: 4px; }

/* feature cards */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fcard { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.fband { background: var(--soft); min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 20px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.fbody { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fbody h3 { font-size: 22px; font-weight: 700; }
.fbody p:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.fbody .eyebrow { font-size: 12px; }
.fcard.wide { flex-direction: row; flex-wrap: wrap; }
.fcard.wide .fband { flex: 1 1 420px; min-height: 260px; border-bottom: none; border-right: 1px solid var(--line); }
.fcard.wide .fbody { flex: 1 1 360px; justify-content: center; padding: 32px; }
.fcard.wide h3 { font-size: 28px; }
.fcard.darkc { background: #1F2937; border-color: #1F2937; color: #F9FAFB; }
.fcard.darkc .fband { background: #111827; border-bottom-color: #374151; }
.fcard.darkc .eyebrow { color: #A5B4FC; }
.fcard.darkc .fbody p:not(.eyebrow) { color: #D1D5DB; }

/* pictures inside the cards */
.dpanel { position: relative; width: 100%; max-width: 330px; border-radius: 16px; background: var(--panel); color: var(--panel-ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.dpanel.tilt { transform: rotate(-3deg); }
.dp-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--panel-mut); }
.dp-top .ok { color: #6FD3A4; }
.toks { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.tok { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tr { font-size: 11px; color: #6FD3A4; min-height: 13px; }
.jline { font-size: 18px; line-height: 1.5; border-bottom: 1px solid var(--panel-line); }
.crow { display: flex; justify-content: space-between; font-size: 17px; border-bottom: 1px solid var(--panel-line); padding: 3px 0; }
.mutd { color: var(--panel-mut); }
.badge { position: absolute; top: -18px; right: -14px; width: 56px; height: 56px; border-radius: 50%; background: #2E8B62; color: #FFFFFF; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.bar { height: 4px; border-radius: 999px; background: var(--panel-line); }
.bar div { width: 24%; height: 4px; border-radius: 999px; background: var(--lhc); }
.mq { font-size: 19px; }
.mopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stroke { display: flex; align-items: center; gap: 16px; }
.sbox { width: 110px; height: 110px; border-radius: 14px; background: var(--panel); border: 2px solid var(--lhc); display: grid; place-items: center; font-size: 74px; color: var(--lhc);
  background-image: linear-gradient(#3A443E, #3A443E), linear-gradient(#3A443E, #3A443E); background-size: 1px 100%, 100% 1px; background-position: center; background-repeat: no-repeat; }
.scol { display: flex; flex-direction: column; gap: 8px; }
.mut2 { font-size: 13px; font-weight: 700; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.schip { padding: 5px 10px; border-radius: 999px; background: var(--panel); color: var(--panel-ink); font-size: 12px; font-weight: 700; }
.band-readers { align-self: stretch; margin: -20px; width: calc(100% + 40px); display: flex; align-items: flex-end; justify-content: center; min-height: 220px; }
.duo { display: flex; align-items: flex-end; }
.duo img { height: 196px; width: auto; display: block; }
.duo img + img { margin-left: -24px; }
.ph { margin: auto; width: 78%; min-height: 130px; border: 2px dashed #9CA3AF; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 12px; font-weight: 600; font-size: 15px; color: var(--muted); }
.band-news { position: absolute; inset: 0; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.abs { position: absolute; inset: 20px 20px 74px; width: auto; min-height: 0; }
.news-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 14px; background: var(--panel); color: var(--panel-ink); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.news-cap span { font-size: 12px; font-weight: 700; color: var(--panel-mut); }
.news-cap b { font-weight: 600; font-size: 17px; }
.stack { position: relative; width: 340px; max-width: 100%; height: 190px; }
.stack > div { position: absolute; border-radius: 22px; }
.stack .s1 { inset: 14px -6px -10px 18px; background: #D1D5DB; transform: rotate(-7deg); }
.stack .s2 { inset: 6px 4px -4px 8px; background: #9CA3AF; transform: rotate(-3deg); }
.stack .s3 { inset: 0; background: var(--panel); color: var(--panel-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transform: rotate(2deg); }
.stack .big { font-weight: 700; font-size: 50px; line-height: 1.1; }
.mini-grades { display: flex; gap: 8px; margin-top: 8px; }
.mini-grades span { padding: 6px 12px; border-radius: 999px; background: #0F1512; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.mini-grades .r { background: #C9452F; }
.mini-grades .g { background: #2E8B62; }
.vs { display: flex; gap: 14px; width: 100%; justify-content: center; }
.vs > div { flex: 1 1 0; max-width: 200px; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.vs b { font-size: 12px; letter-spacing: 0.06em; }
.vs-a { border: 1px dashed #4B5563; color: #9CA3AF; }
.vs-b { background: #FFFFFF; color: #111827; }
.vs-b b { color: var(--lc); }
.ivl { width: 100%; max-width: 360px; border-radius: 16px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ivl div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ivl div span { width: 70px; color: var(--muted); }
.ivl i { height: 12px; border-radius: 999px; background: var(--lc); }
.ivl em { font-style: normal; font-size: 12px; color: var(--muted); }
.ways { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ways div { border-radius: 12px; background: var(--surface); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.ways b { font-size: 15px; color: var(--lc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ways span { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.decks { width: 100%; max-width: 420px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.decks span { padding: 9px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; }
.decks .on { background: var(--lc); color: #FFFFFF; font-weight: 700; }
.point { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--lc); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.point h3 { font-size: 19px; }
.point p { font-size: 15px; color: var(--muted); }

/* plans, existing users, footer */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 840px; }
.plan { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.one { background: var(--surface); border: 2px solid var(--lc); }
.plan.all { background: var(--dark); color: var(--on-dark); }
.plan h3 { font-size: 20px; }
.price { font-weight: 800; font-size: 40px; }
.price span { font-weight: 500; font-size: 16px; opacity: 0.75; }
.plan p:last-child { font-size: 15px; opacity: 0.85; }
.already { margin-top: 64px; border-radius: 24px; background: color-mix(in srgb, #1D6B58 10%, var(--surface)); border: 1px solid color-mix(in srgb, #1D6B58 25%, var(--surface)); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.already h3 { font-size: 22px; margin-bottom: 6px; }
.already p { color: var(--muted); }
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; }

/* phones */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .navlinks a:not(.btn):not([href="/languages/my"]) { display: none; }
  .lb-label { display: none; }
  .hero-in { padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .sec { padding: 56px 0; }
  .fcard.wide .fband { border-right: none; border-bottom: 1px solid var(--line); }
  .fcard.wide .fbody { padding: 24px; }
  .fcard.wide h3 { font-size: 24px; }
  .grid3 { grid-template-columns: 1fr; }
  .stack { width: 290px; }
  .vs { flex-direction: column; align-items: stretch; }
  .vs > div { max-width: none; }
  .ways b { font-size: 13px; }
  .already { padding: 24px; }
}
