/* Three Stars Academy: clean, light "Pink Elegance" theme.
   Layout: centred 1180px column, full-bleed tinted bands, cards only where they mark a separate object. */
:root {
  /* Pink Elegance palette: #713B58 plum, #C66B91 rose, #F1B8CF blush, #FFF2F6 petal */
  --ink: #2E1824;
  --ink-2: #5F4A56;
  --ink-3: #8C7682;
  --bg: #FFFFFF;
  --mist: #FFF2F6;
  --line: #F0DDE6;
  --plum: #713B58;
  --plum-d: #5A2C46;
  --plum-t: #F6E7EE;
  --rose: #C66B91;
  --rose-d: #A34D72;
  --rose-t: #FBE5EE;
  --blush: #F1B8CF;
  --blush-d: #9E4A70;
  --blush-t: #FDEEF4;
  --mauve: #9B6283;
  --mauve-d: #7A4565;
  --mauve-t: #F3E8EF;
  --wa: #1FAF55;
  --danger: #C8323A;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.0 2.0L14.9 9.0L22.5 9.6L16.7 14.5L18.5 21.9L12.0 17.9L5.5 21.9L7.3 14.5L1.5 9.6L9.1 9.0Z' fill='black' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --f-pa: "Noto Sans Gurmukhi", "Raavi", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(46,24,36,.05), 0 8px 24px -8px rgba(46,24,36,.12);
  --shadow-lg: 0 2px 4px rgba(46,24,36,.04), 0 24px 48px -16px rgba(46,24,36,.22);
  --ease: cubic-bezier(.22,.8,.24,1);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--plum-d); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }

.script-ur { font-family: var(--f-ur); line-height: 1.9; }
.script-pa { font-family: var(--f-pa); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 .98rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 8px 20px -8px rgba(113,59,88,.7); }
.btn--primary:hover { background: var(--plum-d); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(113,59,88,.8); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum-d); transform: translateY(-2px); }
.btn--lg { font-size: 1.05rem; padding: 1em 1.6em; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-d);
}
.eyebrow::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--rose); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }

/* ---------- Topbar ---------- */
.topbar { background: var(--plum); color: #F6DDE8; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: .6em; padding-block: .55rem; text-align: center; }
.topbar__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blush); box-shadow: 0 0 0 0 rgba(198,107,145,.6); animation: pulse 2.2s infinite; }
.topbar .sep { color: var(--blush); margin-inline: .35em; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(198,107,145,0); } 100% { box-shadow: 0 0 0 0 rgba(198,107,145,0); } }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.92); }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(46,24,36,.35); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; transition: transform .5s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font: 600 1.45rem/1 var(--f-display); letter-spacing: -.01em; color: var(--plum-d); }
.brand__text small { font: 700 .62rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-top: 6px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: .55em .8em; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .96rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); background: var(--mist); }
.nav__cta-mobile { display: none !important; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: inline-flex; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn { position: relative; z-index: 1; border: 0; background: none; padding: .42em .8em; font: 700 .82rem/1 var(--f-body); letter-spacing: .06em; color: var(--ink-3); border-radius: 999px; transition: color .25s; }
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--plum); transition: transform .35s var(--ease); }
.lang[data-active="de"] .lang__pill { transform: translateX(100%); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) 40px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 1px 1px, rgba(46,24,36,.07) 1px, transparent 0) 0 0/26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob--a { width: 420px; height: 420px; background: var(--plum-t); top: -120px; right: 4%; }
.blob--b { width: 320px; height: 320px; background: var(--blush-t); top: 180px; right: 32%; animation-delay: -6s; }
.blob--c { width: 300px; height: 300px; background: var(--rose-t); bottom: -60px; left: -80px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }

.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 600; margin: 18px 0 20px; letter-spacing: -.025em; line-height: 1.06; color: var(--ink); }
.rotator { display: inline-block; position: relative; vertical-align: bottom; }
.rotator__word {
  display: inline-block; padding: 0 .22em .04em; border-radius: .22em;
  background: var(--plum-t); color: var(--plum-d); font-style: italic;
  transition: transform .45s var(--ease), opacity .35s, background .45s, color .45s;
}
.rotator__word.is-out { transform: translateY(-40%) rotateX(70deg); opacity: 0; }
.rotator__word.is-in { transform: translateY(40%) rotateX(-70deg); opacity: 0; transition: none; }
.rotator__word[data-c="en"] { background: var(--rose-t); color: var(--rose-d); }
.rotator__word[data-c="de"] { background: var(--blush-t); color: var(--blush-d); }
.rotator__word[data-c="pa"] { background: var(--mauve-t); color: var(--mauve-d); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36em; }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .4em .85em; border-radius: 999px; font-weight: 600; font-size: .9rem; background: #fff; border: 1px solid var(--line); }
.chip .script-ur { font-size: .95em; line-height: 1; padding-top: .15em; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip--ur { --c: var(--plum); } .chip--en { --c: var(--rose); } .chip--de { --c: var(--blush); } .chip--pa { --c: var(--mauve); }

.hero__visual { position: relative; min-width: 0; padding: 28px 18px; }
.lesson {
  position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 22px; max-width: 440px; margin-inline: auto;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
.lesson__bar { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.lesson__live { display: inline-flex; align-items: center; gap: .5em; color: var(--rose); }
.lesson__live i { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.lesson__time { background: var(--mist); padding: .3em .7em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lesson__word { margin: 18px 0; border-radius: var(--r); padding: 26px 20px 20px; text-align: center;
  background: linear-gradient(160deg, var(--mist), #fff 70%); border: 1px dashed #EBCBD9; }
.lesson__label { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.flip { perspective: 600px; height: 92px; display: grid; place-items: center; margin-top: 8px; }
.flip__face { transition: transform .5s var(--ease), opacity .4s; }
.flip__face.is-out { transform: rotateX(90deg); opacity: 0; }
.flip__w { font: 600 clamp(2rem, 4vw, 2.7rem)/1.3 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.flip__w.script-ur { font-family: var(--f-ur); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 2; }
.flip__w.script-pa { font-family: var(--f-pa); font-weight: 600; }
.flip__meta { font-size: .88rem; font-weight: 700; color: var(--plum-d); letter-spacing: .02em; min-height: 1.4em; }
.flip__dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.flip__dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .35s var(--ease), background .35s; }
.flip__dots i.on { width: 22px; background: var(--plum); }
.lesson__people { display: flex; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 .9rem/1 var(--f-display); color: #fff; border: 3px solid #fff; margin-right: -8px; }
.avatar--t { background: var(--plum); } .avatar--1 { background: var(--rose); } .avatar--2 { background: var(--mauve); } .avatar--3 { background: var(--blush); color: var(--ink); }
.lesson__group { margin-left: 20px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.float-card { position: absolute; display: inline-flex; align-items: center; gap: .5em; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7em 1em; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float-card b { font: 600 1.4rem/1 var(--f-display); color: var(--rose); }
.float-card svg { width: 22px; height: 22px; color: var(--plum); }
.float-card--a { top: 0; left: 0; animation-delay: -2s; }
.float-card--b { bottom: 4px; right: 0; animation-delay: -4s; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.stats li { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font: 600 1.9rem/1.1 var(--f-display); letter-spacing: -.01em; color: var(--plum); }
.stats span { color: var(--ink-2); font-size: .93rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--mist); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section__head--left { text-align: left; align-items: flex-start; margin: 0; }
.section__head h2, .about h2, .contact h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
.section__lead { color: var(--ink-2); font-size: 1.1rem; max-width: 36em; }

.ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico--plum { background: var(--plum-t); color: var(--plum-d); }
.ico--rose { background: var(--rose-t); color: var(--rose-d); }
.ico--blush { background: var(--blush-t); color: var(--blush-d); }
.ico--mauve { background: var(--mauve-t); color: var(--mauve-d); }
.ico--wa { background: #DDF6E6; color: var(--wa); }

/* Glance */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glance__card { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.glance__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.glance__card h3 { font-size: 1.25rem; margin-top: 8px; }
.glance__card p { color: var(--ink-2); }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
.plan { position: relative; background: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--feature { border: 2px solid var(--plum); box-shadow: 0 30px 60px -30px rgba(113,59,88,.45); }
.plan__ribbon { position: absolute; top: -14px; right: 28px; background: var(--plum); color: #fff; font-weight: 700; font-size: .74rem; box-shadow: 0 8px 18px -8px rgba(113,59,88,.6); letter-spacing: .06em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; }
.plan__top { display: flex; flex-direction: column; gap: 10px; }
.plan__tag { align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--plum-d); background: var(--plum-t); padding: .35em .8em; border-radius: 999px; }
.plan h3 { font-size: 1.8rem; font-weight: 600; }
.plan__top p { color: var(--ink-2); }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--plum-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%235A2C46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px dashed var(--line); }
.plan__price { font: 600 1.1rem/1.2 var(--f-display); color: var(--ink); }

.steps { max-width: 980px; margin: clamp(48px, 6vw, 72px) auto 0; }
.steps__title { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li b { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font: 600 1.15rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--mist), 0 0 0 7px var(--line); }
.steps h4 { font-size: 1.1rem; margin: 4px 0 6px; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.langcard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px 24px; background: var(--t); display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease); }
.langcard:hover { transform: translateY(-6px); }
.langcard::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; background: var(--c); opacity: .14; transition: transform .6s var(--ease); }
.langcard:hover::after { transform: scale(1.6); }
.langcard--ur { --c: var(--plum); --t: var(--plum-t); --cd: var(--plum-d); }
.langcard--en { --c: var(--rose); --t: var(--rose-t); --cd: var(--rose-d); }
.langcard--de { --c: var(--blush); --t: var(--blush-t); --cd: var(--blush-d); }
.langcard--pa { --c: var(--mauve); --t: var(--mauve-t); --cd: var(--mauve-d); }
.langcard .langcard__native { font: 600 2rem/1.5 var(--f-display); color: var(--cd); min-height: 3.4rem; display: flex; align-items: center; }
.langcard .langcard__native.script-ur { font-family: var(--f-ur); font-weight: 500; font-size: 1.9rem; line-height: 1.8; }
.langcard .langcard__native.script-pa { font-family: var(--f-pa); font-weight: 600; }
.langcard h3 { font-size: 1.35rem; }
.langcard p { color: var(--ink-2); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags li { font-size: .78rem; font-weight: 700; padding: .35em .7em; background: rgba(255,255,255,.75); border-radius: 999px; color: var(--cd); }

/* Timetable */
.week { display: flex; justify-content: center; gap: 8px; margin: -12px auto 32px; flex-wrap: wrap; }
.week span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); position: relative; }
.week span.is-on { background: var(--plum); color: #fff; border-color: var(--plum); }
.week span.is-today::after { content: ""; position: absolute; bottom: -9px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.tt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.slot { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.slot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.slot.is-next { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-t); }
.slot__day { font: 600 1.3rem/1.2 var(--f-display); }
.slot__time { font: 600 1.6rem/1.3 var(--f-display); color: var(--plum-d); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 6px; }
.slot__len { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.slot__note, .slot__local { color: var(--ink-3); font-size: .88rem; }
.slot__local:empty { display: none; }
.badge { align-self: flex-start; margin-top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em .75em; border-radius: 999px; }
.badge--fixed { background: var(--plum-t); color: var(--plum-d); }
.badge--flex { background: var(--blush-t); color: var(--blush-d); }
.tt__info { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; text-align: center; }
.next { display: inline-flex; align-items: center; gap: .6em; background: #fff; border: 1px solid var(--line); padding: .6em 1.1em; border-radius: 999px; font-weight: 600; }
.next::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); animation: blink 1.4s infinite; }
.tt__tz { color: var(--ink-2); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__visual { position: relative; display: grid; place-items: center; min-width: 0; }
.portrait { position: relative; width: min(100%, 360px); aspect-ratio: 1; border-radius: 42% 58% 54% 46% / 48% 44% 56% 52%;
  background: linear-gradient(145deg, var(--plum) 0%, var(--rose) 45%, var(--blush) 120%); display: grid; place-items: center; overflow: hidden;
  animation: morph 14s ease-in-out infinite alternate; box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { 50% { border-radius: 58% 42% 46% 54% / 42% 56% 44% 58%; } 100% { border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; } }
.portrait__initial { font: 600 clamp(7rem, 16vw, 10rem)/1 var(--f-display); color: rgba(255,255,255,.95); letter-spacing: -.02em; }
.portrait__ring { position: absolute; inset: 14%; border: 2px dashed rgba(255,255,255,.5); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__scripts { position: absolute; inset: 0; pointer-events: none; }
.about__scripts li { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .3em .8em; font-weight: 700; box-shadow: var(--shadow); font-size: 1rem; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.about__scripts li.script-ur { font-size: 1.05rem; line-height: 1.7; padding-block: .1em; }
.about__scripts li:nth-child(1) { top: 6%; left: 2%; color: var(--plum-d); }
.about__scripts li:nth-child(2) { top: 14%; right: 0; color: var(--blush-d); animation-delay: -1.5s; }
.about__scripts li:nth-child(3) { bottom: 14%; left: 0; color: var(--rose-d); animation-delay: -3s; }
.about__scripts li:nth-child(4) { bottom: 4%; right: 6%; color: var(--mauve-d); animation-delay: -4.5s; }
.about__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about__copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 36em; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.creds li { display: flex; gap: 14px; align-items: flex-start; }
.creds div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.creds b { font-family: var(--f-display); font-size: 1.05rem; }
.creds span:not(.ico) { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { display: grid; gap: 12px; min-width: 0; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: var(--plum); box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 600 1.08rem/1.35 var(--f-display); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%232E1824' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .35s var(--ease), background-color .3s; }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--plum-t); }
.qa__a { padding: 0 24px 22px; color: var(--ink-2); }
.qa.is-anim .qa__a { overflow: hidden; }

/* Contact */
.contact-sec { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact__list { display: grid; gap: 12px; margin-top: 12px; }
.contact__list li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.contact__list li > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact__list b { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.contact__list a, .contact__list span:not(.ico) { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--plum-d); text-decoration: underline; }
.copy { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; position: relative; }
.copy svg { width: 18px; height: 18px; }
.copy:hover { background: var(--mist); color: var(--ink); }
.copy.is-done { background: var(--plum); color: #fff; border-color: var(--plum); }
.contact__small { color: var(--ink-3); font-size: .93rem; }

.form { position: relative; background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); min-width: 0; }
.form__body { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .93rem; padding: 0; }
.field em { color: var(--rose); font-style: normal; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--f-body); color: var(--ink); background: var(--mist);
  border: 1.5px solid transparent; border-radius: 12px; padding: .85em 1em; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--plum); box-shadow: 0 0 0 4px var(--plum-t); }
.choices { display: flex; gap: 10px; }
.choices--wrap { flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; transition: all .2s var(--ease); user-select: none; }
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #DCC3CF; transition: all .2s; flex: none; background: #fff; }
.choice input[type=checkbox] + span::before { border-radius: 5px; }
.choice:hover span { border-color: var(--plum); }
.choice input:checked + span { background: var(--plum-t); border-color: var(--plum); color: var(--plum-d); }
.choice input:checked + span::before { border-color: var(--plum); background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.choice--sm span { padding: .5em .9em; font-size: .9rem; }
.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-size: .93rem; color: var(--ink-2); cursor: pointer; font-weight: 500 !important; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); flex: none; }
.err { display: none; color: var(--danger); font-size: .86rem; font-weight: 600; }
.field.is-invalid > .err:not(.err--age) { display: block; animation: shake .35s; }
.field.is-invalid input:not([type=radio]):not([type=checkbox]) { border-color: var(--danger); background: #FFF6F5; }
.field.is-invalid .choice span { border-color: #EBB0BC; }
.field.age-blocked .err--age { display: block; animation: shake .35s; }
.err--consent.show { display: block; margin-top: -10px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.form__note { text-align: center; font-size: .88rem; color: var(--ink-3); }
.form__fail { text-align: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.form__fail p { color: var(--ink); font-weight: 600; font-size: .95rem; }
.form__fail-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.form__fail-btns .btn { flex: 1 1 180px; }
.form__fail-btns .btn:hover svg { transform: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18934A; transform: translateY(-2px); }
#submitBtn.is-loading { pointer-events: none; opacity: .75; }
#submitBtn.is-loading svg { animation: spin .8s linear infinite; }
.form__ok { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--plum); outline: none; }
.form__ok svg { width: 76px; height: 76px; }
.form__ok circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.form__ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s var(--ease) forwards; }
.form__ok h3 { color: var(--ink); font-size: 1.6rem; }
.form__ok p { color: var(--ink-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Footer */
.footer { background: linear-gradient(165deg, #4A2438 0%, #2E1824 100%); color: #D9C3CE; padding-block: 64px 28px; }
.footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand--light { color: #fff; }
.brand--light small { color: var(--blush); }
.brand--light strong { color: #fff; }
.brand--light img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(241,184,207,.25); }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.footer a { color: #D9C3CE; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.footer__bottom p:first-child { color: #B9A2AE; }
.footer__tagline { font: italic 500 1.2rem/1.3 var(--f-display); color: var(--blush); letter-spacing: .01em; }

/* Floating buttons */
.wa-float, .to-top { position: fixed; z-index: 40; display: grid; place-items: center; border-radius: 50%; transition: transform .3s var(--ease), opacity .3s; }
.wa-float { right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(31,175,85,.7); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.to-top { right: calc(29px + env(safe-area-inset-right, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); }
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Motion ---------- */
.js .load { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.glance__card, .js .reveal.in.plan, .js .reveal.in.slot, .js .reveal.in.langcard { transition: opacity .8s var(--ease), transform .4s var(--ease), box-shadow .35s var(--ease), border-color .3s; transition-delay: var(--rd, 0ms), 0ms, 0ms, 0ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .load { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: .55em .55em; font-size: .92rem; }
  .langs { grid-template-columns: repeat(2, 1fr); }
  .tt { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); margin: 0;
    flex-direction: column; gap: 4px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -24px rgba(46,24,36,.3);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility 0s .4s;
  }
  .nav.open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .4s var(--ease); }
  .nav a { font-size: 1.1rem; padding: .8em 1em; }
  .nav__cta-mobile { display: inline-flex !important; margin-top: 8px; color: #fff !important; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .about, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .faq-wrap .section__head { position: static; }
  .about__visual { max-width: 420px; width: 100%; margin-inline: auto; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .plans, .steps ol { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topbar p { font-size: .78rem; }
  .brand__text small { display: none; }
  .brand img { width: 38px; height: 38px; }
  .langs, .tt { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float-card { font-size: .8rem; }
  .float-card--a { left: -4px; }
  .float-card--b { right: -4px; }
  .lesson { padding: 18px; }
  .stats li { padding: 18px 16px; }
  .stats b { font-size: 1.55rem; }
  .footer__in { grid-template-columns: 1fr; }
  .section__head { text-align: left; align-items: flex-start; }
  .week span { width: 40px; height: 40px; }
  .wa-float { width: 52px; height: 52px; }
}
