/* Website styles. Clean and professional (Cloudflare-dashboard feel): Inter, neutral greys,
   1px borders, small radii, flat buttons, almost no shadows.
   Palette: teal, white, orange, mist. Dashboards add dash.css. */
:root {
  --brand: #087e78;
  --brand-dark: #066560;
  --brand-soft: #e3f2f0;
  --orange: #f2a66d;
  --orange-dark: #e8904f;
  --orange-ink: #9c5018;
  --orange-soft: #fdf1e7;
  --mist: #f6f7f8;
  --white: #ffffff;

  --ink: #1f2328;
  --text: #3c4248;
  --muted: #6b7280;
  --line: #e3e5e8;
  --line-strong: #d0d4d9;
  --bg: var(--white);
  --soft: var(--mist);
  --card: var(--white);

  --amali: var(--orange);
  --amali-ink: var(--orange-ink);
  --amali-soft: var(--orange-soft);

  --ok: #157f3d;
  --warn: #9c5018;
  --bad: #c5221f;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --font: "Inter", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.en-pending body { visibility: hidden; }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
html[lang="si"] h1, html[lang="si"] h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }

/* Icons (Lucide sprite) */
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.2em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--mist); }
/* A thin line between two white sections in a row */
.section:not(.orange):not(.alt) + .section:not(.orange):not(.alt) { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
html[lang="si"] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }
.eyebrow .i { width: 15px; height: 15px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 620px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head .lead, .section-head p { margin-inline: auto; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.93rem; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-orange, .btn-amali { background: var(--orange); color: var(--ink); }
.btn-orange:hover, .btn-amali:hover { background: var(--orange-dark); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--mist); border-color: var(--line-strong); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--mist); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--mist); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* Header: brand left, links centred, actions right */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1320px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; justify-self: start; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.9rem; white-space: nowrap; padding: 7px 12px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a.active { color: var(--ink); background: var(--mist); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.lang-switch { display: inline-flex; padding: 2px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lang-switch button { font: inherit; font-size: 0.78rem; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 4px 9px; border-radius: 4px; cursor: pointer; }
.lang-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn .i { width: 26px; height: 26px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
@media (max-width: 1180px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav, .header-actions .btn-ghost { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 480px) { .header-actions .btn-orange { display: none; } }

/* Phones: an orange header */
@media (max-width: 760px) {
  .site-header { background: var(--orange); border-bottom-color: rgba(156, 80, 24, 0.25); }
  .site-header .brand, .site-menu .brand { color: #2a1405; }
  .site-header .brand b, .site-menu .brand b { color: #05524d; }
  .site-header .lang-switch { background: rgba(255, 255, 255, 0.35); border-color: transparent; }
  .site-header .lang-switch button { color: #5a2c0c; }
  .site-header .lang-switch button.on { background: #fff; color: var(--ink); }
  .site-header .btn-orange { background: #fff; color: var(--ink); }
  .site-header .menu-btn { color: #2a1405; }
}

/* The full-screen orange menu (menu button on phones and tablets). It covers the bottom bar too. */
.site-menu { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; gap: 18px; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; color: #2a1405; background: linear-gradient(180deg, #f5b585 0%, #f2a66d 45%, #ee9a5c 100%); animation: menu-in 0.18s ease-out; }
html.menu-open, html.menu-open body { overflow: hidden; }
.site-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.site-menu .brand { color: #2a1405; }
.site-menu .brand b { color: #05524d; }
.menu-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.3); color: #2a1405; cursor: pointer; }
.menu-close .i { width: 24px; height: 24px; }
.site-menu-links { display: grid; }
.site-menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 2px; border-bottom: 1px solid rgba(90, 44, 12, 0.18); color: #2a1405; font-size: 1.3rem; font-weight: 700; }
.site-menu-links a .i { width: 20px; height: 20px; opacity: 0.55; }
.site-menu-links a.active { color: #fff; }
.site-menu-links a.active .i { opacity: 1; }
.site-menu-group { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); font-size: 0.92rem; font-weight: 600; line-height: 1.45; }
.site-menu-group:hover { color: var(--ink); }
.site-menu-group .wa-logo { width: 30px; height: 30px; flex: none; color: #25d366; }
.site-menu-foot { margin-top: auto; display: grid; gap: 14px; }
.site-menu-foot .lang-switch { justify-self: start; background: rgba(255, 255, 255, 0.35); border-color: transparent; }
.site-menu-foot .lang-switch button { font-size: 0.9rem; padding: 6px 14px; color: #5a2c0c; }
.site-menu-foot .lang-switch button.on { background: #fff; color: var(--ink); }
.site-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-menu-actions .btn { height: 50px; font-size: 1rem; }
.site-menu-actions .btn:only-child { grid-column: 1 / -1; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
@media (min-width: 1181px) { .site-menu { display: none !important; } }

/* Banner above the header: join our WhatsApp group */
.topbanner { position: relative; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 44px; background: #0b5f5a; color: #fff; font-size: 0.86rem; line-height: 1.45; }
.topbanner a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 500; }
.topbanner a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbanner .wa-logo { width: 20px; height: 20px; flex: none; color: #25d366; }
.topbanner button { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.8); cursor: pointer; }
.topbanner button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topbanner button .i { width: 18px; height: 18px; }
html.banner-closed .topbanner { display: none; }
@media (max-width: 560px) { .topbanner { justify-content: flex-start; padding: 8px 42px 8px 14px; font-size: 0.8rem; } }

/* Footer */
.site-footer { background: #111315; color: #a1a7ae; padding: 64px 0 28px; font-size: 0.9rem; }
.site-footer a { color: #a1a7ae; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #7d838a; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--orange); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Hero: soft gradient, teacher photo, wave at the bottom */
.hero { position: relative; overflow: hidden; padding: 72px 0 130px;
  background: radial-gradient(600px 380px at 88% 18%, rgba(242, 166, 109, 0.22), transparent 70%),
              radial-gradient(700px 420px at 8% 0%, rgba(8, 126, 120, 0.12), transparent 70%),
              linear-gradient(180deg, #f2f8f7 0%, #ffffff 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { color: var(--text); margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .i { color: var(--ok); width: 18px; height: 18px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-bottom: 110px; } }

.hero-visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.hero-visual::before { content: ""; position: absolute; inset: 6% -6% -6% 6%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: linear-gradient(135deg, var(--orange), #f7c59e); opacity: 0.55; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 0.85rem; color: var(--ink); max-width: 250px; line-height: 1.4; }
.float-card .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.float-card .dot.o { background: var(--orange-soft); color: var(--orange-ink); }
.float-card .dot .i { width: 19px; height: 19px; }
.float-card small { display: block; color: var(--muted); font-size: 0.75rem; }
.float-card.one { top: 8%; left: -12%; }
.float-card.two { bottom: 10%; right: -10%; }
.float-card .wave-bars { display: flex; gap: 2px; align-items: center; height: 18px; }
.float-card .wave-bars i { width: 3px; border-radius: 2px; background: var(--brand); opacity: 0.7; }
@media (max-width: 560px) { .float-card.one { left: -2%; } .float-card.two { right: -2%; } }

/* Home hero: big orange wave rising to the right, WhatsApp phone on top of it */
.hero-wa { padding: 56px 0 110px; background: #fff; }
.hero-wa .hero-wave { height: 64%; min-height: 380px; }
.hero-wa .hero-visual { max-width: 332px; }
.hero-wa .hero-visual::before { display: none; }
@media (max-width: 960px) {
  .hero-wa .hero-wave { height: 520px; }
  .hero-wa { padding-bottom: 90px; }
}

/* An Android phone showing the chat (parts below). The chat sits at the bottom, like a
   real chat scrolled to the newest message: on small screens the oldest one is cut off. */
.wa-phone { position: relative; padding: 8px; border-radius: 48px; background: #0f1112; box-shadow: inset 0 0 0 1.5px #3a3e41, 0 30px 60px rgba(120, 60, 15, 0.28), 0 6px 16px rgba(16, 32, 30, 0.12); }
.wa-phone::before, .wa-phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #2b2e31; }
.wa-phone::before { top: 20%; height: 8%; }
.wa-phone::after { top: 32%; height: 14%; }
.wa-phone .wa { height: 628px; border-radius: 40px; overflow: hidden; font-size: 12.5px; --wa-max: 85%; }
.wa-phone .wa-msgs { justify-content: flex-end; overflow: hidden; padding: 0.4em 0.85em 0.5em; }
.wa-status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 2.55em; padding: 0.4em 2em 0 2.1em; background: var(--wa-bar); color: var(--wa-ink); font-size: 0.92em; font-weight: 600; }
.wa-status::after { content: ""; position: absolute; left: 50%; top: 0.62em; width: 0.95em; height: 0.95em; margin-left: -0.47em; border-radius: 50%; background: #0f1112; }
.wa-status span { display: flex; align-items: center; gap: 0.3em; }
.wa-status svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.wa-nav { flex: none; display: grid; place-items: center; height: 1.55em; }
.wa-nav::before { content: ""; width: 7.6em; height: 0.3em; border-radius: 1em; background: rgba(17, 27, 33, 0.6); }
.wa-ph { flex: 1; align-self: center; padding: 0 0.3em; color: var(--wa-sub); font-size: 1.08em; }
/* The strip's cards sit over the bottom of the orange wave */
.hero-wa + .strip { position: relative; z-index: 2; margin-top: -64px; }

/* Orange sections with a wave at the top and bottom (alternate with white ones) */
.section.orange { position: relative; padding: 130px 0; color: #4a2409; background: linear-gradient(180deg, #f5b585 0%, #f2a66d 50%, #ee9a5c 100%); }
.section.orange::before, .section.orange::after { content: ""; position: absolute; left: 0; right: 0; height: 70px; background-size: 100% 100%; pointer-events: none; }
.section.orange::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V24C1180 78 900 70 690 38S250 0 0 34Z' fill='%23fff'/%3E%3C/svg%3E"); }
.section.orange::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70H1440V36C1200 0 960 6 720 34S260 76 0 30Z' fill='%23fff'/%3E%3C/svg%3E"); }
.section.orange > .wrap { position: relative; z-index: 1; }
.section.orange h2, .section.orange h3 { color: var(--ink); }
.section.orange .section-head p, .section.orange .lead { color: #4a2409; }
.section.orange a:not(.btn) { color: var(--ink); text-decoration: underline; }
.eyebrow.light { color: #5a2c0c; }
.section.orange .plan { border-color: rgba(156, 80, 24, 0.18); box-shadow: 0 4px 16px rgba(156, 80, 24, 0.12); }
.section.orange .plans-empty { color: #4a2409; }
.section.orange .plan .btn-amali { background: var(--brand); color: #fff; }
.section.orange .plan .btn-amali:hover { background: var(--brand-dark); }
@media (max-width: 560px) { .section.orange { padding: 96px 0; } .section.orange::before, .section.orange::after { height: 40px; } }

/* Problem cards */
.card.pain { text-align: left; }
.card.pain h3 { font-size: 1.12rem; }

/* Meet Amali */
.meet { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
/* The photo is a cut-out (no background): it stands on a soft cream card, cut by the card's bottom edge */
.meet-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 6px solid rgba(255, 255, 255, 0.7); background: radial-gradient(circle at 50% 34%, #fff 0%, #fff5ec 40%, #fbdcc4 100%); box-shadow: 0 12px 32px rgba(120, 60, 15, 0.2); }
.meet-photo img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 95%; object-fit: contain; object-position: 50% 100%; }
.meet .ticks { margin: 4px 0 28px; }
.section.orange .ticks li::before { background-color: #fff; }
.meet .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .meet { grid-template-columns: 1fr; gap: 36px; } .meet-photo { max-width: 420px; margin: 0 auto; width: 100%; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.review blockquote { margin: 0; flex: 1; font-size: 0.97rem; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption b { display: block; color: var(--ink); font-size: 0.95rem; }
.review figcaption small { color: var(--muted); font-size: 0.82rem; }
.review .initials { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.9rem; }
.review .initials.o { background: var(--orange-soft); color: var(--orange-ink); }
.stars { display: flex; gap: 3px; color: #f5a524; }
.stars .i { width: 18px; height: 18px; fill: currentColor; }
.sample-note { text-align: center; font-size: 0.8rem; margin: 22px 0 0; color: var(--muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

/* Key facts strip */
.strip { padding: 0 0 24px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.strip-item strong { display: block; color: var(--ink); font-size: 0.98rem; }
.strip-item span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 960px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip-grid { grid-template-columns: 1fr; } }

/* Icon tile */
.icon-tile { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.icon-tile .i { width: 20px; height: 20px; }
.icon-tile.o { background: var(--orange-soft); color: var(--orange-ink); }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s; }
.card p:last-child { margin-bottom: 0; }
.card .icon-tile { margin-bottom: 16px; }
.card.lift:hover { border-color: var(--line-strong); }

/* Steps */
.step-no { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--brand); margin-bottom: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.step-card { position: relative; }
.step-card .icon-tile { margin-bottom: 18px; }
.step-card p { color: var(--muted); }

/* Teacher cards: photo + text */
.teacher { display: grid; grid-template-columns: 0.85fr 1.15fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.teacher-photo { position: relative; min-height: 100%; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-body { padding: 28px; display: grid; gap: 14px; align-content: start; }
.teacher-body p { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.chip.amali { background: var(--orange-soft); color: var(--orange-ink); }
.chip .i { width: 14px; height: 14px; }
@media (max-width: 1080px) { .teacher { grid-template-columns: 1fr; } .teacher-photo { aspect-ratio: 16 / 10; } }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.teacher-head { display: flex; align-items: center; gap: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087e78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* "Who it's for" */
.who-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.who-card .icon-tile { margin-bottom: 16px; }
.who-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .badge-pop { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; white-space: nowrap; letter-spacing: 0.02em; }
.plan h3 { margin: 0; }
.plan .price { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.plan .price small { font-size: 0.88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-was { display: flex; align-items: center; gap: 8px; margin-bottom: -6px; color: var(--muted); font-size: 0.98rem; }
.plan .price-was s { text-decoration-thickness: 1.5px; }
.plan .price-was .off { padding: 2px 8px; border-radius: 4px; background: #e6f5ec; color: #11693a; font-size: 0.76rem; font-weight: 700; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 6px 0 14px; display: grid; gap: 9px; font-size: 0.92rem; border-top: 1px solid var(--line); }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; }
.plan ul .i { flex: none; color: var(--brand); width: 17px; height: 17px; margin-top: 3px; }
.plan ul li.no { color: var(--muted); }
.plan ul li.no .i { color: #c2410c; }
.plan .btn { margin-top: auto; }
.plans-empty { color: var(--muted); text-align: center; padding: 24px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { padding: 0 22px; border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq details[open] { background: #fcfcfd; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--text); }

/* Inner page header */
.page-head { padding: 64px 0 52px; text-align: center; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-head .lead { margin: 0 auto; color: var(--text); }

/* WhatsApp-style chat. The home page phone and the student dashboard chat use the same
   parts. Sizes are in em, so they fit both: the phone sets a small font size, the dashboard
   a normal one. Colours follow WhatsApp's light theme; dash.css adds the dark theme. */
.wa {
  --wa-wall: #efeae2 url("/assets/img/chat-wall.svg") 0 0 / 23em;
  --wa-bar: #fff;
  --wa-in: #fff;
  --wa-out: #d9fdd3;
  --wa-ink: #111b21;
  --wa-sub: #667781;
  --wa-icon: #54656f;
  --wa-line: #e9edef;
  --wa-green: #1daa61;
  --wa-tick: #53bdeb;
  --wa-sys: #ffeecd;
  --wa-sys-ink: #54656f;
  --wa-me: #dfe5e7;
  --wa-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --wa-wave: rgba(84, 101, 111, 0.32);
  --wa-wave-on: rgba(84, 101, 111, 0.85);
  --wa-tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M8 0H2.3Q0 0 1.25 1.9L8 13Z'/%3E%3C/svg%3E");
  display: flex; flex-direction: column; min-height: 0; background: var(--wa-wall); color: var(--wa-ink);
  font-family: "Inter", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.42; letter-spacing: 0;
}
/* Top bar: back, photo, name, status, actions */
.wa-top { flex: none; display: flex; align-items: center; gap: 0.55em; padding: 0.5em 1em 0.55em 0.65em; background: var(--wa-bar); border-bottom: 1px solid var(--wa-line); color: var(--wa-icon); }
.wa-top > .i, .wa-back .i, .wa-acts > .i { width: 1.6em; height: 1.6em; }
.wa-back { color: inherit; display: grid; }
.wa-ava { width: 2.9em; height: 2.9em; border-radius: 50%; object-fit: cover; flex: none; }
.wa-who { flex: 1; min-width: 0; line-height: 1.25; }
.wa-who b { display: block; color: var(--wa-ink); font-size: 1.12em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { display: block; color: var(--wa-sub); font-size: 0.85em; }
.wa-acts { display: flex; align-items: center; gap: 1.35em; }
/* Messages */
.wa-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wa-day { align-self: center; margin: 0.6em 0 0.3em; padding: 0.3em 0.85em; border-radius: 0.6em; background: var(--wa-bar); color: var(--wa-sub); font-size: 0.8em; font-weight: 500; box-shadow: var(--wa-shadow); }
.wa-sys { align-self: center; max-width: 88%; margin: 0.6em 0; padding: 0.45em 0.95em; border-radius: 0.6em; background: var(--wa-sys); color: var(--wa-sys-ink); font-size: 0.85em; text-align: center; box-shadow: var(--wa-shadow); }
.wa-b { position: relative; align-self: flex-start; max-width: var(--wa-max, 80%); margin-top: 0.2em; padding: 0.36em 0.6em 0.42em; border-radius: 0.6em; background: var(--wa-in); box-shadow: var(--wa-shadow); overflow-wrap: anywhere; }
.wa-b.out { align-self: flex-end; background: var(--wa-out); --wa-space: 5.5em; }
.wa-b b { font-weight: 600; }
/* The first message in a row from the same person gets a tail */
.wa-b.tail { margin-top: 0.65em; }
.wa-b.tail.in { border-top-left-radius: 0; }
.wa-b.tail.out { border-top-right-radius: 0; }
.wa-b.tail::before { content: ""; position: absolute; top: 0; width: 0.62em; height: 1em; background: inherit; -webkit-mask: var(--wa-tail) 0 0 / 100% 100% no-repeat; mask: var(--wa-tail) 0 0 / 100% 100% no-repeat; }
.wa-b.tail.in::before { left: -0.6em; }
.wa-b.tail.out::before { right: -0.6em; transform: scaleX(-1); }
/* Time (and ticks) in the bottom corner; the text leaves room for it on its last line */
.wa-t::after { content: ""; display: inline-block; width: var(--wa-space, 4.2em); }
.wa-meta { position: absolute; right: 0.6em; bottom: 0.32em; display: flex; align-items: center; gap: 0.25em; font-size: 0.7em; line-height: 1; color: var(--wa-sub); white-space: nowrap; }
.wa-meta .i { width: 1.55em; height: 1.55em; color: var(--wa-tick); stroke-width: 2; }
/* Voice note: photo with a mic, play button, waveform, length */
.wa-b.voice { width: 18.5em; padding: 0.5em 0.6em 0.4em 0.5em; }
.wa-voice { display: grid; grid-template: "pic play wave" 2.1em "pic play dur" auto / 3.3em 2.1em 1fr; column-gap: 0.4em; align-items: center; }
.wa-vpic { grid-area: pic; position: relative; width: 3.3em; height: 3.3em; }
.wa-vpic > img, .wa-me { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wa-me { display: grid; place-items: center; background: var(--wa-me); color: #fff; }
.wa-me .i { width: 62%; height: 62%; fill: currentColor; stroke-width: 1; }
.wa-vpic .wa-vmic { position: absolute; left: -0.3em; bottom: -0.15em; width: 1.25em; height: 1.25em; color: var(--wa-tick); stroke-width: 2.6; }
.wa-voice.new .wa-vmic { color: var(--wa-green); }
.wa-play { grid-area: play; display: grid; place-items: center; width: 2.1em; height: 2.1em; padding: 0; border: 0; background: none; color: var(--wa-icon); }
.wa-play .i { width: 1.75em; height: 1.75em; fill: currentColor; stroke-width: 1; }
.wa-wave { grid-area: wave; position: relative; display: flex; align-items: center; gap: 0.13em; height: 100%; }
.wa-wave i { flex: 1; min-width: 1px; height: var(--h, 30%); border-radius: 1em; background: var(--wa-wave); }
.wa-wave i.on { background: var(--wa-wave-on); }
.wa-wave::after { content: ""; position: absolute; top: 50%; left: calc(var(--p, 0) * (100% - 0.8em)); width: 0.8em; height: 0.8em; margin-top: -0.4em; border-radius: 50%; background: var(--wa-tick); }
.wa-voice.new .wa-wave::after { background: var(--wa-green); }
.wa-dur { grid-area: dur; font-size: 0.7em; line-height: 1.4; color: var(--wa-sub); font-variant-numeric: tabular-nums; }
/* Message box and the round mic / send button */
.wa-bar { flex: none; display: flex; align-items: flex-end; gap: 0.4em; padding: 0.3em 0.5em 0.55em; }
.wa-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; min-height: 3.3em; padding: 0 0.5em; border-radius: 1.65em; background: var(--wa-in); color: var(--wa-icon); box-shadow: var(--wa-shadow); }
.wa-field > .i { flex: none; width: 1.6em; height: 1.6em; margin: 0.85em 0.35em; }
.wa-send { flex: none; display: grid; place-items: center; width: 3.3em; height: 3.3em; padding: 0; border: 0; border-radius: 50%; background: var(--wa-green); color: #fff; box-shadow: var(--wa-shadow); }
.wa-send .i { width: 1.55em; height: 1.55em; stroke-width: 2; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; padding: 0 12px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); width: 100%; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { height: auto; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input:disabled { background: var(--mist); color: var(--muted); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.93rem; border: 1px solid transparent; }
.alert.error { background: #fdeceb; color: #8e2a1f; border-color: #f6d0cd; }
.alert.ok { background: #e7f4ec; color: #165c36; border-color: #cfe8d8; }
.alert.info { background: var(--orange-soft); color: #6b3a12; border-color: #f7dcc5; }
[hidden] { display: none !important; }

/* Level test */
.quiz { max-width: 720px; margin-inline: auto; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.progress i { display: block; height: 100%; background: var(--brand); width: 0; transition: width 0.3s; border-radius: 99px; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.option { text-align: left; font: inherit; padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 500; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.option:hover { border-color: var(--brand); background: var(--brand-soft); }
.result-level { font-size: 2.6rem; font-weight: 700; color: var(--brand); margin: 4px 0; }
/* Level test */
.lt-card { padding: 30px; scroll-margin-top: 84px; }
@media (max-width: 560px) { .lt-card { padding: 22px 18px; } }
.lt-card .ticks { margin-bottom: 20px; }
.lt-last { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mist); }
.lt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lt-back { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; cursor: pointer; }
.lt-back .i { width: 16px; height: 16px; }
.lt-ask { margin: 10px 0 4px; color: var(--brand); font-size: 0.88rem; font-weight: 600; }
.lt-q { font-size: 1.3rem; line-height: 1.5; }
.lt-gap { display: inline-block; width: 3.2em; border-bottom: 2px solid var(--ink); margin: 0 3px; vertical-align: -2px; }
.option.dunno { color: var(--muted); border-style: dashed; }
.option.chosen { border-color: var(--brand); background: var(--brand-soft); }
.lt-cefr { color: var(--muted); margin: 0 0 14px; }
.lt-skills { display: grid; gap: 12px; margin: 0 0 20px; }
.lt-skill-top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.lt-skill-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lt-skill-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.lt-amali { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--orange-soft); }
.lt-amali img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.lt-review { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.lt-review summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); }
.lt-review ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 16px; }
.lt-review p { margin: 2px 0; }
.lt-rq { color: var(--ink); }
.lt-yours, .lt-right { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.lt-yours { color: var(--bad); text-decoration: line-through; }
.lt-right { color: var(--ok); font-weight: 600; }
.lt-yours .i, .lt-right .i { width: 16px; height: 16px; }
.lt-why { color: var(--muted); font-size: 0.9rem; }
.lt-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* Phones: centre text and content on the website (user, 2026-11-09). Long reading text
   (legal pages, FAQ answers), forms, plan feature lists and quiz options stay left-aligned. */
@media (max-width: 760px) {
  .hero-grid > div:first-child, .meet > div:not(.meet-photo), .about-text, .page-head,
  .card, .card.pain, .who-card, .teacher-body, .plan, .lt-card { text-align: center; }
  .hero .lead, .lead { margin-inline: auto; }
  .hero .actions, .meet .actions, .lt-actions, .legal-links { justify-content: center; }
  .hero-points { justify-content: center; }
  .hero-points li { display: block; text-align: center; }
  .hero-points li .i { display: inline-block; margin-right: 6px; vertical-align: -0.25em; }
  .card .icon-tile, .who-card .icon-tile, .step-card .icon-tile { margin-inline: auto; }
  .teacher-head { justify-content: center; }
  .ticks, .meet .ticks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  /* Plans: name, price and button centred; the list of what you get stays a readable list */
  .plan .badge-pop { left: 50%; transform: translateX(-50%); }
  .plan .price-was { justify-content: center; }
  .plan ul { text-align: left; }
  /* Key facts strip: icon above the text */
  .strip-item { flex-direction: column; text-align: center; gap: 10px; }
  /* Reviews: stars and name centred */
  .review { text-align: center; }
  .stars, .review figcaption { justify-content: center; }
  .review figcaption { text-align: left; }
  /* Footer */
  .site-footer { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer .brand { display: inline-flex; }
  .footer-bottom { justify-content: center; text-align: center; }
  /* Keep these left-aligned: they are easier to read that way */
  .legal, .faq, .form, .options, .option, .lt-review, .lt-skills { text-align: left; }
}

/* Phone bottom bar: white with a thin top line, like an app (built by site.js / ui.js) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); }
  .tabbar-items { display: flex; padding: 0 4px env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border: 0; border-top: 2px solid transparent; margin-top: -1px; background: none; font: inherit; font-size: 0.68rem; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer; }
  .tabbar a span, .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar .on { color: var(--orange-ink); border-top-color: var(--orange); font-weight: 600; }
  body.has-tabbar { padding-bottom: 64px; }
  body.has-tabbar .toast { bottom: 80px; }
}

* { scrollbar-width: thin; scrollbar-color: #c4c9cf transparent; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }

}
.i.flip { transform: scaleX(-1); }
.review .flag { display: inline-block; width: 18px; height: 12px; margin-left: 6px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.review .initials svg { width: 18px; height: 18px; }

/* Legal pages (English only) */
.legal { max-width: 760px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 16px 20px; margin: 18px 0; }
.legal .callout p { margin: 0; }
.legal .toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px 10px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* About page: text on the left, the team photo stays in view on the right while you scroll. */
.about-body { padding-top: 48px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-text h2 { margin: 36px 0 12px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { margin: 0 0 14px; line-height: 1.75; }
.about-photo { position: sticky; top: 88px; margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { position: static; order: -1; }
}

/* Cloudflare Turnstile captcha box (sign-up and contact forms). */
.cf-box { min-height: 65px; }
.cf-box:empty { min-height: 0; }
