:root {
  --green: #0F7A4A;
  --green-2: #16955B;
  --green-dark: #0B3D2A;
  --mint: #E3F6EA;
  --mint-2: #CDEFD9;
  --cream: #FBF6EA;
  --gold: #F7C548;
  --gold-deep: #E9A919;
  --coral: #F6A285;
  --lav: #C9C8F5;
  --lime: #A8E6B5;
  --rose: #F7A9A2;
  --ink: #142019;
  --muted: #56615A;
  --line: #E7E0CE;
  --flag-g: #078930;
  --flag-y: #FCDD09;
  --flag-r: #DA121A;
  --r: 26px;
  --head: "Baloo 2", "Noto Sans Ethiopic", system-ui, sans-serif;
  --body: "Nunito", "Noto Sans Ethiopic", system-ui, sans-serif;
  --shadow: 0 10px 30px -12px rgba(11, 61, 42, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
[id] { scroll-margin-top: 84px; } /* sections are not hidden under the sticky menu */
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
html[data-lang="am"] [data-l="en"], html[data-lang="en"] [data-l="am"] { display: none; }
html[data-lang="am"] body { --head: "Noto Sans Ethiopic", system-ui, sans-serif; --body: "Noto Sans Ethiopic", "Nunito", system-ui, sans-serif; }
a { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(251, 246, 234, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green-dark); }
.brand .word { font-family: "Noto Serif Ethiopic", serif; font-weight: 800; font-size: 26px; line-height: 1; }
.brand .latin { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .04em; line-height: 1; margin-top: 3px; }
.flag { position: absolute; left: 36px; bottom: -9px; display: flex; gap: 3px; }
.flag b { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1.5px; }
.flag b:nth-child(1) { background: var(--flag-g); } .flag b:nth-child(2) { background: var(--flag-y); } .flag b:nth-child(3) { background: var(--flag-r); }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; }
.nav nav a:hover { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { border: 0; background: none; font: inherit; font-weight: 800; color: var(--green-dark); cursor: pointer; padding: 8px; font-size: 16px; }
.lang:hover { color: var(--green); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.burger i { display: block; height: 3px; background: var(--green-dark); border-radius: 3px; }
@media (max-width: 880px) {
  .burger { display: flex; }
  .nav .hide-sm { display: none; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--green-2), var(--green)); color: #fff; font: inherit; font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 6px 0 #0A5935, 0 12px 24px -8px rgba(15, 122, 74, .5); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #0A5935; }
.btn-ghost { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2.5px var(--green); }
.btn-ghost:active { box-shadow: inset 0 0 0 2.5px var(--green); }
.btn-small { padding: 10px 20px; font-size: 15px; box-shadow: 0 4px 0 #0A5935; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  max-width: 1240px; margin: 18px auto 0; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: radial-gradient(120% 90% at 0% 0%, #F1FBF4 0%, var(--mint) 55%, var(--mint-2) 100%); border-radius: 40px; overflow: hidden; }
@media (min-width: 1280px) { .hero { margin-top: 24px; } }
.pill { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--gold); color: var(--green-dark); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--gold-deep); }
h1 { font-family: var(--head); font-weight: 800; font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02; margin: 20px 0 18px; color: var(--green-dark); letter-spacing: -.015em; }
html[data-lang="am"] h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.15; letter-spacing: 0; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #2E3A33; max-width: 32em; margin: 0 0 28px; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.soon { color: var(--muted); font-size: 15px; margin: 22px 0 0; font-weight: 600; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 197, 72, .45), rgba(247, 197, 72, 0) 65%); }
.mascot { position: absolute; left: max(-10px, calc(50% - 300px)); bottom: 0; width: clamp(190px, 18vw, 250px); z-index: 2; filter: drop-shadow(0 14px 18px rgba(11, 61, 42, .25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.phone { position: relative; z-index: 1; margin-left: clamp(80px, 12vw, 170px); width: 272px; padding: 11px; border-radius: 44px; background: #10231A; box-shadow: 0 40px 70px -24px rgba(11, 61, 42, .55), inset 0 0 0 2px #2D4238; transform: rotate(3deg); }
.screen { border-radius: 34px; background: var(--cream); padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.ph-head { display: flex; justify-content: space-between; font-weight: 800; color: var(--green); font-size: 16px; }
.ph-lock { background: #EEE9DD; border-radius: 20px; padding: 14px; text-align: center; }
.clock { display: inline-block; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink); background: #fff; border: 3px solid #9AA39D; border-radius: 16px; padding: 8px 16px 4px; }
.ph-lock p { margin: 10px 0 0; font-weight: 800; font-size: 14px; color: #3F4A43; }
.ph-arrow { text-align: center; color: var(--green); font-weight: 900; font-size: 20px; line-height: 1; }
.ph-open { background: var(--mint); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.ph-open b { font-size: 16px; color: var(--green-dark); }
.ph-btn { display: block; border-radius: 999px; padding: 10px 8px; font-weight: 800; font-size: 14px; }
.ph-btn.gold { background: var(--gold); color: var(--green-dark); box-shadow: 0 3px 0 var(--gold-deep); }
.ph-btn.green { background: var(--green); color: #fff; box-shadow: 0 3px 0 #0A5935; }
.ph-open small { color: var(--green); font-weight: 800; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; border-radius: 0 0 32px 32px; margin-top: 0; }
  .hero-art { min-height: 480px; }
}
@media (max-width: 520px) {
  .brand .latin { display: none; }
  .flag { left: 4px; }
  .phone { width: 240px; margin-left: 90px; }
  .mascot { width: 170px; left: -6px; }
  .hero-art { min-height: 440px; }
}

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px); }
.section h2 { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4.2vw, 50px); color: var(--green-dark); margin: 0 0 10px; text-align: center; line-height: 1.15; }
.section h2.left { text-align: left; }
.sub { text-align: center; color: var(--muted); font-size: 18px; font-weight: 600; margin: 0 auto 26px; max-width: 34em; }

/* steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.step { display: flex; gap: 16px; align-items: center; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.s1 { background: #FFF3D6; } .s2 { background: #ECEAE4; } .s3 { background: var(--mint); }
.step .ic { flex: none; width: 66px; height: 66px; display: grid; place-items: center; font-size: 34px; background: #fff; border-radius: 20px; box-shadow: 0 4px 0 rgba(0, 0, 0, .06); }
.step h3 { margin: 0 0 4px; font-family: var(--head); font-size: 22px; line-height: 1.2; color: var(--green-dark); }
.step p { margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.arrow { display: grid; place-items: center; font-size: 40px; font-weight: 900; color: var(--gold-deep); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); font-size: 34px; height: 24px; }
}

/* subjects */
.tibeb { height: 18px; max-width: 280px; margin: 0 auto 30px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 9 L9 0 L18 9 L9 18Z' fill='%23078930'/%3E%3Cpath d='M18 9 L27 0 L36 9 L27 18Z' fill='%23F7C548'/%3E%3Cpath d='M5 9 L9 5 L13 9 L9 13Z' fill='%23F7C548'/%3E%3Cpath d='M23 9 L27 5 L31 9 L27 13Z' fill='%23078930'/%3E%3C/svg%3E") repeat-x center / 36px 18px; }
.subjects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { border-radius: var(--r); padding: 24px 14px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; box-shadow: var(--shadow); transition: transform .15s; }
.tile:hover { transform: translateY(-4px) rotate(-1deg); }
.tile img { height: 112px; width: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .12)); }
.tile b { font-family: var(--head); font-size: 26px; line-height: 1.15; color: var(--green-dark); }
.tile small { font-size: 14px; font-weight: 700; color: rgba(11, 61, 42, .7); }
.t-math { background: var(--coral); } .t-amh { background: var(--gold); } .t-eng { background: var(--lav); } .t-sci { background: var(--lime); } .t-read { background: var(--rose); }
.fidel { height: 112px; width: 112px; margin-bottom: 8px; display: grid; place-items: center; background: #FFF8E6; border-radius: 18px;
  font-family: "Noto Serif Ethiopic", serif; font-weight: 800; font-size: 40px; line-height: 1; color: #5B2A86; letter-spacing: 1px; padding-bottom: 4px;
  box-shadow: inset 0 0 0 7px #FFF8E6, inset 0 0 0 10px var(--flag-r), inset 0 0 0 13px #FFF8E6, inset 0 0 0 16px var(--flag-g), 0 8px 10px rgba(0, 0, 0, .12); }
@media (max-width: 1060px) { .subjects { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .subjects { grid-template-columns: repeat(2, 1fr); } .tile:last-child { grid-column: span 2; } .tile img, .fidel { height: 92px; } .fidel { width: 92px; font-size: 32px; } }

/* parents */
.band { max-width: none; background: var(--green-dark); color: #E8F3EC; }
.parents { max-width: 1128px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band h2 { color: #fff; }
.feat { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feat li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 16px 18px; }
.feat li > span { font-size: 28px; line-height: 1.2; }
.feat b { font-size: 18px; color: #fff; }
.feat p { margin: 2px 0 0; color: #BFD6C9; font-weight: 600; }
.report { background: var(--cream); color: var(--ink); border-radius: 30px; padding: 24px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); transform: rotate(-1.5deg); }
.r-head { display: flex; justify-content: space-between; font-size: 18px; color: var(--green-dark); }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.r-stats div { background: var(--mint); border-radius: 16px; padding: 12px 6px; text-align: center; }
.r-stats strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 26px; line-height: 1.1; color: var(--green-dark); }
.r-stats small { color: var(--muted); font-weight: 700; }
.r-bar { display: grid; grid-template-columns: 30px 1fr 46px; align-items: center; gap: 10px; margin: 10px 0; font-weight: 800; }
.r-bar span { font-family: "Noto Serif Ethiopic", serif; text-align: center; }
.r-bar i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--w), #E3DED0 var(--w)); }
.r-bar i.mid { background: linear-gradient(90deg, var(--gold-deep) var(--w), #E3DED0 var(--w)); }
.r-bar b { text-align: right; }
.r-note { margin: 14px 0 0; background: #FFF3D6; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .parents { grid-template-columns: 1fr; } .section h2.left { text-align: center; } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 48px; padding-bottom: 8px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; gap: 12px; align-items: center; }
.trust span { font-size: 26px; }
.trust b { font-size: 16px; line-height: 1.3; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
details { max-width: 800px; margin: 0 auto 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 22px; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); font-weight: 600; }

/* Join */
.join { text-align: center; }
.join-mascot { width: 110px; margin: 0 auto 6px; }
.join form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 660px; margin: 0 auto; }
.join input, .join select { font: inherit; font-weight: 600; padding: 15px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; min-width: 0; }
.join input { flex: 1 1 240px; }
.join input:focus, .join select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.msg { min-height: 1.6em; margin-top: 14px; font-weight: 700; }
.msg.ok { color: var(--green); } .msg.err { color: #C8443A; }

footer { border-top: 1px solid var(--line); padding: 40px 20px 52px; text-align: center; color: var(--muted); font-weight: 600; }
footer .brand { justify-content: center; margin-bottom: 8px; }
footer p { margin: 4px 0; }
footer .links a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } html { scroll-behavior: auto; } .tile:hover { transform: none; } }

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); }
.doc h2 { font-family: var(--head); color: var(--green-dark); margin-top: 36px; }
.doc .note { background: #FFF6DD; border: 1px solid #F3DFA2; padding: 14px 18px; border-radius: 14px; }

/* ───── Premium page ───── */
.pay .lead { font-size: 18px; color: var(--muted); }
.pay-card { background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 22px 22px 18px; margin-top: 22px; }
.pay-card h2 { font-size: 20px; margin: 22px 0 10px; }
.pay-card h2:first-child { margin-top: 0; }
.pay input { font: inherit; font-weight: 600; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff; width: 100%; margin-bottom: 10px; }
.pay input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.pay input.code { text-transform: uppercase; letter-spacing: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; border: 2.5px solid var(--line); cursor: pointer; background: var(--cream); }
.plan.on { border-color: var(--green); background: var(--mint); }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan b { font-size: 17px; }
.plan .price { font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--green-dark); }
.link-btn { background: none; border: 0; color: var(--green); font: inherit; font-weight: 800; cursor: pointer; padding: 4px 0; }
.pay-btn { width: 100%; margin-top: 14px; flex-direction: column; gap: 0; }
.pay-btn[disabled] { opacity: .6; cursor: wait; }
.muted { color: var(--muted); } .small { font-size: 14px; margin-top: 12px; }
.pay-mascot { width: 120px; margin: 0 auto 8px; display: block; }
#result { text-align: center; }

/* telebirr direct payment */
#methods .price { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted, #5F6B64); }
.tb-box { margin-top: 18px; padding: 18px; border-radius: 22px; background: #FFF8E1; border: 2px solid #F2D27A; }
.tb-step { margin: 0 0 10px; font-weight: 700; }
.tb-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tb-send > div { background: #fff; border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; }
.tb-send small { color: #5F6B64; font-weight: 700; }
.tb-send strong { font-size: 22px; letter-spacing: .5px; color: var(--green-dark, #0B3D2A); }
.tb-send .link-btn { align-self: flex-start; }
#tbTxn { font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
