/* Public home page (public/site.js): Tabsira's own colours — sage background, deep teal, the motto's green and gold. */
.on-site .lang-btn { display: none; }
.site { --gold: #c9a24a; --gold-2: #e3c46f; --deep: #1f5a36; --cream: #f3ead8; background: var(--bg); color: var(--ink); min-height: 100vh; font-size: 15px; overflow-x: clip; }
.site h1, .site h2 { letter-spacing: -.015em; }
[lang="ar"] .site h1, [lang="ar"] .site h2 { font-family: 'Amiri', var(--font); letter-spacing: 0; }
.s-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.s-narrow { max-width: 820px; }
.s-center { text-align: center; }
.site .btn.lg { padding: 11px 20px; font-size: 15px; border-radius: 10px; }
.site .btn.gold { background: var(--gold); border-color: var(--gold); color: #1c2321; font-weight: 700; }
.site .btn.gold:hover { background: var(--gold-2); }
.site .btn.outline-light { background: transparent; border-color: rgba(243, 234, 216, .5); color: var(--cream); }
.site .btn.outline-light:hover { background: rgba(243, 234, 216, .1); }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* header */
.s-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s-head-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.s-brand .brand-name { font-size: 17px; }
.s-brand.light { color: var(--cream); margin-bottom: 12px; }
.s-brand.light .brand-name { color: var(--gold-2); }
.s-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.s-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.s-nav a:hover { background: var(--line-2); color: var(--ink); }
.s-nav a.on { color: var(--accent); background: var(--accent-soft); }
.s-actions { display: flex; align-items: center; gap: 8px; }
.s-lang { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 11px; cursor: pointer; font-weight: 700; font-size: 13px; }
.s-lang:hover { border-color: var(--accent-2); }
.s-reg { position: relative; }
.s-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; display: grid; z-index: 50; }
.s-menu button { border: 0; background: none; text-align: start; padding: 10px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.s-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.s-nav-login { display: none; }
.s-burger { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 40px; height: 38px; font-size: 18px; cursor: pointer; }

/* hero */
.s-hero { padding: 64px 0 72px; background: radial-gradient(900px 420px at 85% 0%, rgba(15, 95, 89, .10), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(201, 162, 74, .12), transparent 70%); }
.s-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.s-kicker { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); border-radius: 99px; padding: 5px 14px; font-weight: 700; font-size: 13px; }
.s-hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 18px 0 16px; color: var(--ink); }
[lang="ar"] .s-hero h1 { line-height: 1.35; }
.s-hero p { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 0 0 26px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.s-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; max-width: 560px; }
.s-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.s-stats dt { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.s-stats dt small { font-size: 13px; color: var(--ink-3); }
.s-stats dd { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.s-hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.s-panel { width: min(100%, 380px); aspect-ratio: 4 / 4.4; background: var(--deep); border: 2px solid var(--gold); border-radius: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 34px; text-align: center; box-shadow: 0 30px 60px rgba(31, 90, 54, .25); position: relative; overflow: hidden; }
.s-panel::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(201, 162, 74, .45); border-radius: 14px; pointer-events: none; }
.s-panel::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(243, 234, 216, .05); inset-inline-end: -110px; bottom: -110px; }
.s-panel p { margin: 0; font-family: 'Amiri', serif; font-weight: 700; font-size: 32px; line-height: 1.6; color: var(--gold-2); max-width: none; }
.s-panel-en { font-family: 'Libre Caslon Text', Georgia, serif; color: var(--cream); font-size: 15px; letter-spacing: .06em; }
/* the three promises, in one row between the hero and the courses (rating in the middle) */
.s-strip { padding: 0 0 8px; margin-top: -28px; position: relative; z-index: 1; }
.s-strip-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.s-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 24px rgba(28, 35, 33, .08); text-align: center; }

/* sections */
.s-sec { padding: 72px 0; scroll-margin-top: 66px; }
.s-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.s-sec.s-top { padding-top: 36px; }
.s-hero { scroll-margin-top: 66px; }
.s-title { text-align: center; margin-bottom: 34px; }
.s-title h2 { font-size: clamp(26px, 3.4vw, 36px); }
.s-title p { color: var(--ink-3); margin: 8px 0 0; font-size: 15.5px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.s-more { text-align: center; margin-top: 28px; }
.s-back { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }

.s-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.s-course { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.s-course:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: var(--shadow); }
.s-course .ic { font-size: 28px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; margin-bottom: 4px; }
.s-course b { font-size: 16.5px; }
.s-course small { color: var(--ink-3); font-size: 13px; }
.s-course-f { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; width: 100%; color: var(--ink-3); font-size: 12.5px; font-weight: 600; gap: 8px; }
.s-course-f span { color: var(--accent); }

/* teacher cards */
.s-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.s-tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.s-sec.alt .s-tcard { background: var(--surface-2); }
.s-tc-head { display: flex; gap: 12px; align-items: center; }
.s-tc-head h3 { font-size: 17px; }
.s-av { width: 54px; height: 54px; border-radius: 16px; color: #fff; display: grid; place-items: center; font-size: 23px; font-weight: 800; flex: none; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18); }
.s-city { color: var(--ink-3); font-size: 13px; }
.s-tc-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.s-stars { display: inline-flex; gap: 1px; font-size: 17px; line-height: 1; direction: ltr; }
.s-stars.sm { font-size: 14px; }
.s-stars i { font-style: normal; color: #d8d4c8; }
.s-stars i.on { color: #e0a526; }
.s-stars i.half { background: linear-gradient(90deg, #e0a526 50%, #d8d4c8 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tags span { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.s-bio { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-tc-revs { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; font-size: 13.5px; }
.s-tc-revs p { margin: 3px 0 0; color: var(--ink-2); }
.s-tc-f { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.s-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.s-filters input, .s-filters select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 220px; }
.s-filters input { flex: 0 1 360px; }

/* steps & features */
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.s-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; }
.s-steps .n { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 34px; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.s-steps .ic { font-size: 28px; }
.s-steps h3 { font-size: 16.5px; margin: 10px 0 6px; }
.s-steps p { margin: 0; color: var(--ink-2); font-size: 14px; }
.s-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.s-feat { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.s-feat .ic { font-size: 22px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--cream); }
.s-feat h3 { font-size: 15.5px; margin-bottom: 4px; }
.s-feat p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* reviews */
.s-revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.s-rev { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.s-rev blockquote { margin: 0; font-size: 15px; color: var(--ink); }
.s-rev blockquote::before { content: '“'; color: var(--gold); font-size: 26px; line-height: 0; vertical-align: -8px; margin-inline-end: 2px; }
.s-rev figcaption { color: var(--ink-3); font-size: 13px; margin-top: auto; }

/* join band */
.s-band { background: var(--deep); color: var(--cream); padding: 44px 0; border-block: 3px solid var(--gold); }
.s-band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.s-band h2 { font-size: clamp(24px, 3vw, 32px); color: var(--gold-2); }
.s-band p { margin: 6px 0 0; max-width: 640px; color: var(--cream); opacity: .9; }

/* FAQ */
.s-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.s-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.s-faq[open] summary::after { content: '−'; }
.s-faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }

/* footer */
.s-foot { background: #16322a; color: var(--cream); padding: 52px 0 0; scroll-margin-top: 66px; }
.s-foot-in { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 34px; }
.s-foot h3 { color: var(--gold-2); font-size: 15px; margin-bottom: 12px; }
.s-foot p { color: rgba(243, 234, 216, .82); margin: 0 0 16px; }
.s-foot a { color: var(--cream); }
.s-contact, .s-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.s-contact span { color: rgba(243, 234, 216, .7); }
.s-links a { text-decoration: none; opacity: .88; }
.s-links a:hover { opacity: 1; text-decoration: underline; }
.s-copy { border-top: 1px solid rgba(243, 234, 216, .14); margin-top: 40px; padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: rgba(243, 234, 216, .65); }

/* forms */
.s-mini { background: var(--accent-soft); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s-starpick { border: 0; padding: 0; margin: 0 0 12px; }
.s-starpick legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.s-starpick-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; direction: ltr; }
.s-starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-starpick label { font-size: 34px; line-height: 1; color: #d8d4c8; cursor: pointer; transition: transform .1s; }
.s-starpick label:hover, .s-starpick label:hover ~ label, .s-starpick input:checked ~ label { color: #e0a526; }
.s-starpick label:hover { transform: scale(1.12); }
.s-starpick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* floating WhatsApp button (home page) */
.s-wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .15s; }
.s-wa:hover { transform: scale(1.07); }
.w-contact-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* sign-in page: link back to the home page */
.back-home { display: inline-block; margin-bottom: 22px; font-weight: 600; text-decoration: none; font-size: 13.5px; }

/* managers: Website requests */
.w-list { display: grid; gap: 12px; }
.w-item .card-body { display: grid; gap: 10px; }
.w-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.w-kv { margin: 0; grid-template-columns: max-content minmax(0, 1fr); }
.w-msg { white-space: pre-line; }
.w-item a[href^="https://wa.me"] { text-decoration: none; }

/* Conversation lessons (#/conversation) and the link to them under "Our courses" */
.s-convo-cta { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.s-convo-cta:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
.s-convo-cta .ic, .s-convo-game .ic { font-size: 28px; width: 50px; height: 50px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 12px; }
.s-convo-cta b, .s-convo-game b { display: block; font-size: 16.5px; }
.s-convo-cta small, .s-convo-game small { color: var(--ink-3); font-size: 13px; }
.s-convo-cta .go { margin-inline-start: auto; color: var(--accent); font-weight: 700; white-space: nowrap; }
.s-convo-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 26px; }
.s-convo-game { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.s-convo-game:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: var(--shadow); }
.s-convo-game .ic { background: var(--accent-soft); }
#s-clang { width: auto; flex: 0 0 auto; }
.s-convo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.s-convo-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.s-convo-h { display: flex; align-items: center; gap: 10px; }
.s-convo-h .n { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.s-convo-h .ic { font-size: 24px; }
.s-convo-h h3 { font-size: 16px; margin: 0; }
.s-convo-h small { color: var(--ink-3); font-size: 12.5px; }
.s-convo-f { display: flex; gap: 8px; margin-top: auto; }
.s-convo-f .btn { flex: 1; justify-content: center; text-decoration: none; }

/* "Courses" menu in the header, course categories, coming soon */
.s-dd { position: relative; }
.s-dd-btn { border: 0; background: none; color: var(--ink-2); padding: 8px 11px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.s-dd-btn:hover { background: var(--line-2); color: var(--ink); }
.s-dd-btn.on { color: var(--accent); background: var(--accent-soft); }
.s-dd-menu { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 290px; display: grid; z-index: 50; }
.s-dd-menu.hidden { display: none; }
.s-nav .s-dd-menu a { padding: 9px 12px; font-size: 14px; white-space: normal; }
.s-nav .s-dd-menu a.sub { padding-inline-start: 34px; font-weight: 500; color: var(--ink-3); }
.s-nav .s-dd-menu a.s-dd-all { color: var(--accent); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.s-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.s-cat { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.s-cat:hover { transform: translateY(-3px); border-color: var(--accent-2); box-shadow: var(--shadow); }
.s-cat a { text-decoration: none; color: inherit; }
.s-cat-main { display: flex; flex-direction: column; gap: 6px; }
.s-cat-main .ic, .s-cat-ic { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 14px; margin-bottom: 4px; }
.s-cat-ic { margin: 0 auto 12px; }
.s-cat-main b { font-size: 17px; line-height: 1.3; }
.s-cat-main small { color: var(--ink-3); font-size: 13.5px; }
.s-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.s-subs a { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.s-subs a:hover { background: var(--accent); color: #fff; }
.s-subs.s-center { justify-content: center; }
.s-cat-f { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.s-cat-f > span:last-child { color: var(--accent); }
.s-crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.s-crumbs a { font-weight: 600; text-decoration: none; }
.s-subcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; text-decoration: none; }
.s-subcards .s-course { text-decoration: none; color: inherit; }
.s-soon { text-align: center; background: var(--surface); border: 2px dashed var(--gold); border-radius: 20px; padding: 36px 24px; }
.s-soon .ic { font-size: 40px; }
.s-soon h3 { font-size: 24px; margin: 8px 0 10px; color: var(--deep); }
[lang="ar"] .s-soon h3 { font-family: 'Amiri', var(--font); }
.s-soon p { color: var(--ink-2); font-size: 16px; max-width: 560px; margin: 0 auto 20px; }
.s-soon .s-cta { justify-content: center; }
/* the instructors' message, shown instead of the teacher cards */
.s-instr { max-width: 860px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 18px; padding: 26px 28px; }
.s-instr p { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; }
.s-instr .s-motto { font-weight: 800; font-size: 18px; color: var(--deep); margin: 18px 0 0; }
[lang="ar"] .s-instr .s-motto { font-family: 'Amiri', var(--font); font-size: 21px; }
.s-instr-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }

@media (max-width: 1020px) {
  .s-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .s-nav.open { display: flex; }
  .s-nav a { padding: 11px 10px; }
  .s-dd-btn { width: 100%; text-align: start; padding: 11px 10px; }
  .s-dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; }
  .s-burger { display: inline-grid; place-items: center; }
  .s-actions { margin-inline-start: auto; }
  .s-hero-in { grid-template-columns: 1fr; gap: 34px; }
  .s-hero-art { min-height: 300px; }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .s-wrap { padding: 0 16px; }
  .s-head-in { gap: 8px; min-height: 58px; }
  .s-brand .brand-name { font-size: 15px; }
  .s-signin { display: none; }
  .s-nav .s-nav-login { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; color: var(--accent); }
  .s-hero { padding: 36px 0 48px; }
  .s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-sec { padding: 52px 0; }
  .s-steps, .s-feats, .s-foot-in { grid-template-columns: 1fr; }
  .s-strip-in { grid-template-columns: 1fr; gap: 8px; }
  .s-chip { font-size: 13.5px; padding: 11px 12px; }
  .s-panel p { font-size: 26px; }
  .s-tgrid, .s-revs, .s-courses, .s-convo { grid-template-columns: 1fr; }
  .s-convo-cta { flex-wrap: wrap; }
  .s-convo-cta .go { margin-inline-start: 64px; }
  #s-clang { width: 100%; flex: 1 1 100%; }
  .s-filters input, .s-filters select { min-width: 0; width: 100%; flex: 1 1 100%; }
}

/* Policies (#/policies): terms, privacy, refunds, support */
.s-pol-cards .s-course small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; font-weight: 400; }
.s-pol-wrap { max-width: 900px; }
.s-pol-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.s-pol-tabs a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-size: 14px; font-weight: 600; background: var(--surface); }
.s-pol-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.s-policy { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; line-height: 1.75; font-size: 15.5px; }
.s-pol-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6px; }
.s-pol-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.s-pol-acts { display: flex; gap: 8px; }
.s-policy h3 { font-size: 18px; margin: 26px 0 8px; }
.s-policy p { margin: 0 0 12px; }
.s-policy ul, .s-policy ol { margin: 0 0 14px; padding-inline-start: 22px; }
.s-policy li { margin-bottom: 6px; }
.s-pol-upd { color: var(--ink-3); font-size: 14px; }
.s-pol-note { margin-top: 24px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.s-pol-tbl { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.s-pol-tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.s-pol-tbl th { text-align: start; background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 650; }
.s-pol-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.s-pol-tbl tr:last-child td { border-bottom: 0; }
.s-todo { background: #fde68a; color: #5b3d00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.s-pol-foot { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-inline-start: 14px; }
.s-pol-foot a { color: inherit; }
.s-consent { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 640px) {
  .s-policy { padding: 20px 16px; font-size: 15px; }
  .s-pol-foot { display: flex; margin: 8px 0 0; }
}
@media print {
  .s-head, .s-foot, .s-wa, .s-pol-tabs, .s-pol-acts, .s-crumbs { display: none !important; }
  .s-policy { border: 0; padding: 0; }
}
