/* Meri landing page (light theme only) — palette and type follow the app's "warm paper" design system (core/designsystem Color.kt / Type.kt). */
:root {
  --ink: #1D1B18; --paper: #F7F1E3; --surface: #FFFDF7; --surface-muted: #F1EBDD;
  --outline: #E4DCCB; --outline-strong: #C9BFAA; --muted: #6B645B;
  --yellow: #F2C230; --yellow-ink: #1D1B18; --sign-red: #C8412D; --red-tint: #F9E1DC;
  --green: #2E7D4F; --green-tint: #E3EFDF; --blue: #1F5FA8; --blue-tint: #DDE7F4;
  --teal: #2A7F7A; --teal-tint: #D9EDEA; --orange: #C46A1E; --orange-tint: #F6E3CF;
  --plum: #7A4E7A; --plum-tint: #EDE0EA; --amber-tint: #FCEFD0;
  --shadow: 0 1px 2px rgba(29,27,24,.06), 0 8px 24px rgba(29,27,24,.08);
  --radius: 20px;
  --sans: "Noto Sans Ethiopic", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Kalam", "Noto Sans Ethiopic", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; text-decoration: none; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.nav a:hover { background: var(--surface-muted); color: var(--ink); }
.lang { border: 1px solid var(--outline-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; margin-left: 6px; }
.lang:hover { background: var(--surface-muted); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 2px 0 rgba(29,27,24,.85); border-color: #1D1B18; }
.btn-primary:hover { box-shadow: 0 4px 0 rgba(29,27,24,.85); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--outline-strong); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 12px; }
.nav a.btn-primary { color: var(--yellow-ink); } .nav a.btn-primary:hover { background: var(--yellow); }
.btn[aria-disabled="true"] { background: var(--surface-muted); color: var(--muted); border-color: var(--outline-strong); box-shadow: none; pointer-events: none; }

/* Hero */
.hero { padding: 48px 0 24px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-tint); color: var(--ink); border: 1px solid var(--outline-strong); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.8vw, 54px); margin: 18px 0 16px; text-wrap: balance; }
h2, .lead, .sec-head p { text-wrap: pretty; }
h1 em { font-style: normal; color: #1D1B18; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding: 0 2px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 19px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 1.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--outline); border-radius: 999px; padding: 6px 14px; }
.chips svg { width: 16px; height: 16px; color: var(--green); }

/* Phone mockups (HTML replicas of the app's screens; illustrative) */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage::before { content: ""; position: absolute; width: 440px; height: 440px; max-width: 90%; border-radius: 50%; background: var(--yellow); opacity: .32; filter: blur(2px); }
.phone { position: relative; width: 272px; height: 552px; border-radius: 40px; background: #1D1B18; padding: 9px; box-shadow: var(--shadow), 0 30px 60px rgba(29,27,24,.18); flex: none; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 72px; height: 18px; border-radius: 12px; background: #1D1B18; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 32px; background: var(--paper); overflow: hidden; padding: 38px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.4; position: relative; color: #1D1B18; --ink: #1D1B18; --muted: #6B645B; --surface: #FFFDF7; --surface-muted: #F1EBDD; --outline: #E4DCCB; --paper: #F7F1E3; --outline-strong: #C9BFAA; --green: #2E7D4F; --green-tint: #E3EFDF; --sign-red: #C8412D; --red-tint: #F9E1DC; --blue: #1F5FA8; --blue-tint: #DDE7F4; --teal: #2A7F7A; --teal-tint: #D9EDEA; --orange: #C46A1E; --orange-tint: #F6E3CF; --yellow: #F2C230; }
.hero .phone { rotate: 3deg; }
.float { position: absolute; background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; display: grid; place-items: center; z-index: 2; }
.float img { width: 58px; height: 58px; display: block; }
.float.a { left: -2%; top: 8%; rotate: -8deg; } .float.b { right: -2%; top: 46%; rotate: 7deg; } .float.c { left: 4%; bottom: 6%; rotate: 5deg; }
.hand { font-family: var(--hand); font-weight: 700; }
.s-top { display: flex; align-items: center; justify-content: space-between; }
.s-top b { font-size: 15px; }
.s-card { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 10px 12px; }
.s-ring { display: flex; align-items: center; gap: 12px; }
.ring { --p: 72; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--outline) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-tile { border-radius: 14px; padding: 10px; font-weight: 600; font-size: 12px; min-height: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.s-tile svg { width: 20px; height: 20px; }
.t-yellow { background: #FBE9A6; } .t-blue { background: var(--blue-tint); } .t-red { background: var(--red-tint); } .t-green { background: var(--green-tint); }
.bar-progress { height: 6px; border-radius: 4px; background: var(--outline); overflow: hidden; } .bar-progress i { display: block; height: 100%; background: var(--green); }
.tabs { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--outline); padding-top: 8px; font-size: 10px; color: var(--muted); }
.tabs span { display: grid; justify-items: center; gap: 2px; } .tabs .on { color: var(--ink); font-weight: 700; }
.tabs svg { width: 18px; height: 18px; }
.q-stem { font-weight: 700; font-size: 13px; }
.q-img { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 8px; } .q-img img { width: 84px; height: 84px; }
.opt { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--outline); border-radius: 12px; padding: 8px 10px; }
.opt b { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-muted); display: grid; place-items: center; font-size: 11px; flex: none; }
.opt.ok { border-color: var(--green); background: var(--green-tint); } .opt.ok b { background: var(--green); color: #fff; }
.opt.bad { border-color: var(--sign-red); background: var(--red-tint); } .opt.bad b { background: var(--sign-red); color: #fff; }
.sheet { background: var(--green-tint); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--green); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; } .chip-s { border: 1px solid var(--outline-strong); border-radius: 999px; padding: 3px 10px; font-size: 11px; background: var(--surface); } .chip-s.on { background: var(--ink); color: #F7F1E3; border-color: var(--ink); }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sign-grid div { background: var(--surface); border: 1px solid var(--outline); border-radius: 12px; padding: 8px 4px 6px; text-align: center; font-size: 9.5px; line-height: 1.2; } .sign-grid img { width: 46px; height: 46px; display: block; margin: 0 auto 4px; }
.week { display: flex; justify-content: space-between; } .week span { display: grid; justify-items: center; gap: 3px; font-size: 10px; color: var(--muted); } .week i { width: 22px; height: 22px; border-radius: 50%; background: var(--outline); } .week i.d { background: var(--green); } .week i.t { background: var(--yellow); }

/* Sections */
section { padding: 72px 0; }
.sec-head { max-width: 40em; margin-bottom: 36px; } .sec-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; }
.kicker { font-family: var(--hand); font-weight: 700; color: var(--sign-red); font-size: 20px; display: block; margin-bottom: 4px; }
.stats { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--yellow); color: #1D1B18; border-radius: var(--radius); overflow: hidden; border: 2px solid #1D1B18; box-shadow: 6px 6px 0 #1D1B18; }
.stat { padding: 26px 20px; text-align: center; border-right: 2px solid #1D1B18; } .stat:last-child { border: 0; }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.stat span { font-size: 15px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; } .ico svg { width: 26px; height: 26px; }
.i-yellow { background: #FBE9A6; color: #6b4f00; } .i-blue { background: var(--blue-tint); color: var(--blue); } .i-red { background: var(--red-tint); color: var(--sign-red); } .i-green { background: var(--green-tint); color: var(--green); } .i-teal { background: var(--teal-tint); color: var(--teal); } .i-orange { background: var(--orange-tint); color: var(--orange); } .i-plum { background: var(--plum-tint); color: var(--plum); }
.alt { background: var(--surface-muted); border-block: 1px solid var(--outline); }
.phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.phones .phone:nth-child(2) { margin-top: 36px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.signs-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.sign-card { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 12px 8px 10px; text-align: center; font-size: 13px; line-height: 1.3; }
.sign-card img { width: 64px; height: 64px; display: block; margin: 0 auto 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 14px; font-weight: 600; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--outline-strong); background: var(--surface); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fig { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fig img { display: block; width: 100%; height: auto; } .fig figcaption { padding: 12px 16px 16px; font-size: 15px; color: var(--muted); }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic { border-radius: 16px; padding: 18px; font-weight: 600; border: 1px solid var(--outline); background: var(--surface); display: flex; gap: 12px; align-items: center; line-height: 1.3; }
.topic i { width: 12px; height: 40px; border-radius: 6px; flex: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px 24px 24px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: #1D1B18; border: 2px solid #1D1B18; display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.plan.pro { border: 2px solid #1D1B18; box-shadow: 6px 6px 0 var(--yellow); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; } .plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--green); } .plan li.no svg { color: var(--outline-strong); } .plan li.no { color: var(--muted); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; background: var(--yellow); color: #1D1B18; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.badge.plain { background: var(--surface-muted); border: 1px solid var(--outline-strong); }
.schools { background: #FBEFC4; border-block: 1px solid var(--outline-strong); }
.mini-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; } summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); transition: rotate .15s; } details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 16px; color: var(--muted); }
.contact { text-align: center; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--outline-strong); border-radius: 999px; padding: 10px 18px; font-weight: 600; } .social a:hover { background: var(--yellow); color: #1D1B18; border-color: #1D1B18; }
.handle { font-size: clamp(26px, 5vw, 44px); font-weight: 800; margin: 8px 0 0; }
footer { border-top: 1px solid var(--outline); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; } .foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; } .doc h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 0; } .doc h2 { font-size: 22px; margin: 34px 0 8px; } .doc p, .doc li { color: var(--muted); } .doc li { margin: 6px 0; } .doc strong { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .5s ease; } .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .stage { min-height: 520px; }
  .cards, .figs, .steps { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 2px solid #1D1B18; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--outline); padding: 8px 16px 16px; }
  .nav.open { display: flex; } .nav a { padding: 12px; font-size: 17px; } .nav .lang, .nav .btn { margin: 6px 0 0; }
  .cards, .figs, .steps, .compare, .mini-list { grid-template-columns: 1fr; }
  .phones { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 8px 16px 28px; gap: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone { scroll-snap-align: center; margin-top: 0 !important; }
  .stats-grid { box-shadow: 4px 4px 0 #1D1B18; }
  .cta-row .btn { width: 100%; }
  .float { display: none; }
  .step { margin-top: 12px; }
  .cards .card, .mini-list .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px; }
  .cards .card .ico, .mini-list .card .ico { grid-row: 1 / span 2; margin: 0; }
  .cards .card h3, .mini-list .card h3 { align-self: end; } .cards .card p, .mini-list .card p { margin: 4px 0 0; }
}
@media (max-width: 340px) { .topics { grid-template-columns: 1fr; } .stat { padding: 20px 10px; } }

/* Kalam has no Ethiopic glyphs: use the sans face for Amharic callouts so they don't fall back unpredictably */
html[lang="am"] .kicker { font-family: var(--sans); font-weight: 700; font-size: 17px; }
html[lang="am"] .hand { font-family: var(--sans); }
.tabs-fill { margin-top: auto; }
.s-sotd { display: flex; align-items: center; gap: 10px; } .s-sotd img { width: 44px; height: 44px; flex: none; }
