/* ============================================================
   WAYVY SCHOOLS — marketing landing page
   Mobile first; wider layouts from 720px and 1040px.
   ============================================================ */

:root {
  --green: #054E2E;
  --green-dark: #022D1A;
  --green-mid: #0A6B40;
  --gold: #F2B705;
  --gold-soft: #FFF4CF;
  --mint: #EEF6F1;
  --mint-2: #E2F0E7;
  --ink: #12201A;
  --muted: #4B5B53;
  --line: #DDE8E1;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(2, 45, 26, 0.12);
  --shadow-sm: 0 4px 16px rgba(2, 45, 26, 0.08);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
section, header, footer { scroll-margin-top: 76px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font: 600 15px/1.2 'Inter', sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35); }
.btn-gold:hover { background: #FFC51F; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-mid); }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--mint); }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand b { font: 700 18px/1.1 'Poppins', sans-serif; display: block; }
.brand small { font-size: 12px; color: var(--muted); display: block; }
.nav-links { display: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 4px; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--white); padding: 8px 20px 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(1200px 600px at 85% -10%, #0B7A49 0%, transparent 60%), linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -260px; border-radius: 50%; border: 40px solid rgba(255,255,255,0.05); }
.hero .wrap { position: relative; display: grid; gap: 44px; padding-top: 52px; padding-bottom: 64px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); color: var(--white); font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(38px, 9vw, 64px); font-weight: 800; letter-spacing: -1px; margin-top: 18px; }
.hero h1 span { color: var(--gold); }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 2.6vw, 20px); color: rgba(255,255,255,0.88); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { flex: 1 1 200px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,0.85); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--gold); }

/* device mock-ups (pure CSS frames around real screenshots) */
.devices { position: relative; padding-bottom: 40px; }
.laptop { position: relative; border-radius: 14px 14px 6px 6px; background: #0E1512; padding: 10px 10px 14px; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -12px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(#C9D2CD, #9AA69F); }
.laptop img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 1400 / 984; object-fit: cover; object-position: top; }
.phone { position: absolute; right: -6px; bottom: 0; width: 34%; min-width: 120px; max-width: 200px; border-radius: 26px; background: #0E1512; padding: 9px; box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.phone img { border-radius: 18px; width: 100%; background: #fff; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 5px; margin-left: -15%; border-radius: 3px; background: #2A3330; z-index: 2; }
.float-card { position: absolute; left: -4px; top: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); font-size: 13px; }
.float-card b { display: block; font-size: 15px; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.float-card .ico svg { width: 20px; height: 20px; }

/* ---------- section basics ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--mint); }
.eyebrow { display: inline-block; font: 700 13px/1 'Poppins', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green-mid); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 5.4vw, 42px); font-weight: 800; letter-spacing: -0.5px; text-wrap: balance; }
.section .intro { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 680px; text-wrap: pretty; }
.head-center { text-align: center; }
.head-center .intro { margin-left: auto; margin-right: auto; }

/* ---------- problems ---------- */
.problems { display: grid; gap: 16px; margin-top: 36px; }
.problem { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.problem .x { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #FDECEA; color: #B42318; display: flex; align-items: center; justify-content: center; }
.problem .x svg { width: 22px; height: 22px; }
.problem h3 { font-size: 17px; }
.problem p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- features ---------- */
.features { display: grid; gap: 16px; margin-top: 40px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-top: 16px; font-size: 19px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.feature .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--mint); padding: 4px 10px; border-radius: 999px; }

/* ---------- roles ---------- */
.roles { margin-top: 36px; }
.role-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.role-tabs::-webkit-scrollbar { display: none; }
.role-tab { flex-shrink: 0; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 15px/1 'Inter', sans-serif; cursor: pointer; }
.role-tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.role-panel { margin-top: 18px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 24px; }
.role-panel[hidden] { display: none; }
.role-panel h3 { font-size: 24px; }
.role-panel .sub { margin-top: 6px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-mid); margin-top: 1px; }

/* ---------- screenshots ---------- */
.shots { display: grid; gap: 20px; margin-top: 40px; }
.shot { margin: 0; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.shot .frame { background: #F3F6F4; border-bottom: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 6px; }
.shot .frame i { width: 10px; height: 10px; border-radius: 50%; background: #CFD8D3; }
.shot img { width: 100%; height: 260px; object-fit: cover; object-position: top left; }
.shot figcaption { padding: 14px 18px; font-size: 15px; color: var(--muted); }
.shot figcaption b { color: var(--ink); display: block; font-size: 16px; }

/* ---------- app ---------- */
.app { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(160deg, var(--green-dark), var(--green)); }
.app .wrap { display: grid; gap: 40px; align-items: center; }
.app h2 { color: var(--white); }
.app .intro { color: rgba(255,255,255,0.85); }
.app .eyebrow { color: var(--gold); }
.app .checks { margin-top: 26px; }
.app .checks svg { color: var(--gold); }
.app .checks b { color: var(--white); }
.app .checks span { color: rgba(255,255,255,0.82); }
.app-phone { justify-self: center; width: 260px; border-radius: 36px; background: #0E1512; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); position: relative; }
.app-screen { border-radius: 26px; overflow: hidden; background: #F4F6F5; color: var(--ink); }
.app-head { background: var(--green); color: var(--white); padding: 22px 16px 34px; border-radius: 0 0 22px 22px; }
.app-head small { opacity: .8; font-size: 11px; }
.app-head b { display: block; font: 700 17px/1.2 'Poppins', sans-serif; margin-top: 4px; }
.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px; margin-top: -22px; }
.app-card { background: var(--white); border-radius: 12px; padding: 10px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.app-card b { display: block; font-size: 15px; color: var(--ink); }
.app-card.warn b { color: #B45309; }
.app-note { margin: 10px 12px; background: var(--white); border-radius: 12px; padding: 10px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.app-note b { color: var(--ink); font-size: 12px; display: block; }
.app-tabs { display: flex; justify-content: space-around; padding: 10px 6px 12px; background: var(--white); border-top: 1px solid var(--line); margin-top: 6px; }
.app-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--mint-2); }
.app-tabs i.on { background: var(--green); }
.notif { position: absolute; left: -46px; top: -30px; width: 220px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; display: flex; gap: 8px; }
.notif .ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 14px 'Poppins', sans-serif; }
.notif b { font-size: 12px; display: block; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; margin-top: 40px; counter-reset: step; }
.step { position: relative; padding: 24px 24px 24px 76px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 17px/38px 'Poppins', sans-serif; text-align: center; }
.step h3 { font-size: 18px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.prices { display: grid; gap: 16px; margin-top: 40px; }
.price { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.price .amt { font: 800 44px/1 'Poppins', sans-serif; color: var(--green); }
.price h3 { margin-top: 10px; font-size: 18px; }
.price p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.price.featured { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: var(--shadow); }
.price.featured .amt { color: var(--gold); }
.price.featured h3 { color: var(--white); }
.price.featured p { color: rgba(255,255,255,0.85); }
.pin-split { margin-top: 20px; padding: 24px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #F3DE94; display: grid; gap: 14px; }
.pin-split h3 { font-size: 20px; }
.pin-split p { color: #5A4A10; }
.split-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; font-weight: 700; font-size: 14px; }
.split-bar span { display: flex; align-items: center; justify-content: center; flex: 1; }
.split-bar .school { background: var(--green); color: var(--white); }
.split-bar .wavy { background: var(--gold); color: var(--ink); }
.small-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 24px/1 'Poppins', sans-serif; color: var(--green); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--mint); }
.contact .wrap { display: grid; gap: 28px; }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 22px; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #C7D6CD; background: #FBFDFC; color: var(--ink); font: 400 16px/1.4 'Inter', sans-serif; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(5, 78, 46, 0.18); border-color: var(--green); }
.form .row { display: grid; gap: 14px; }
.form .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- final cta + footer ---------- */
.cta-band { background: var(--gold); }
.cta-band .wrap { display: grid; gap: 18px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 800; }
.cta-band p { color: #3D3204; margin-top: 4px; }
.footer { background: var(--green-dark); color: rgba(255,255,255,0.78); font-size: 14px; }
.footer .wrap { display: grid; gap: 24px; padding-top: 44px; padding-bottom: 28px; }
.footer .brand { color: var(--white); }
.footer .brand small { color: rgba(255,255,255,0.7); }
.footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* floating WhatsApp button */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1EBE5D; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.25); }
.wa-float svg { width: 30px; height: 30px; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* ============================================================
   Tablet and up
   ============================================================ */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pin-split { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .role-panel { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .wrap { grid-template-columns: 1fr auto; }
  .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer .legal { grid-column: 1 / -1; }
  .section { padding: 92px 0; }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 1040px) {
  .nav-links { display: flex; gap: 26px; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 80px; padding-bottom: 96px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app .wrap { grid-template-columns: 1.1fr 1fr; }
  .contact .wrap { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .shot img { height: 320px; }
}
