:root {
  --navy: #0b2545;
  --ink: #1d2b3f;
  --soft: #5b6b80;
  --line: #e3e9f1;
  --bg: #ffffff;
  --alt: #f4f7fb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ok: #16a34a;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }
.muted { color: var(--soft); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--navy); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff !important; border: 0; border-radius: 10px; padding: 13px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--alt); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* hero */
.hero { background: radial-gradient(circle at 85% 0%, #dbeafe 0, transparent 45%), linear-gradient(180deg, #f8fbff, #fff); padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4Z' fill='%2316a34a'/%3E%3C/svg%3E") center / 13px no-repeat; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(11, 37, 69, 0.35); background: #fff; }
.shot figcaption { padding: 10px 14px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); font-size: 0.92rem; }
.hero-shot { transform: perspective(1600px) rotateY(-4deg); }

.strip { background: var(--navy); color: #cbd5e1; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 28px; padding: 18px 0; font-size: 0.95rem; }
.strip b { color: #fff; }

/* sections */
.section { padding: 76px 0; }
.alt { background: var(--alt); }
.section-lead { color: var(--soft); font-size: 1.08rem; max-width: 46em; margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.features article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features p { margin: 0; color: var(--soft); font-size: 0.95rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phones img { width: min(220px, 45%); border-radius: 28px; border: 6px solid var(--navy); box-shadow: 0 24px 50px -20px rgba(11, 37, 69, 0.45); }
.phones img:last-child { margin-top: 48px; }

/* demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-accounts { display: grid; gap: 12px; }
.acct { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 0.95rem; }
.acct b { color: var(--navy); grid-column: 1 / -1; }
.acct code { font: 0.92rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* pricing */
.period { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.period button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--soft); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.period button[aria-checked='true'] { background: var(--navy); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.top { border: 2px solid var(--brand); box-shadow: 0 24px 50px -28px rgba(37, 99, 235, 0.55); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan .students { color: var(--brand); font-weight: 700; margin: 0 0 6px; }
.plan .desc { color: var(--soft); margin: 0 0 16px; min-height: 3em; }
.price { font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price small { font-size: 1rem; color: var(--soft); font-weight: 600; }
.save { color: var(--ok); font-weight: 700; font-size: 0.9rem; min-height: 1.5em; margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 24px; position: relative; font-size: 0.95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* pay */
.pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pay-card h3 { margin-bottom: 6px; }
.pay-card p { margin: 0; color: var(--soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.pay-card .num { font: 700 1.15rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--alt); border-radius: 14px; padding: 18px 18px 18px 56px; position: relative; color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps b { color: var(--navy); }

/* faq */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--soft); }

/* contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-links { display: grid; gap: 10px; }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.contact-links a:hover { background: var(--alt); }
.contact-links .wa { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.form { background: var(--alt); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; border: 1px solid #cfd8e3; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b42318; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--soft); font-size: 0.92rem; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 1000px) {
  .hero-grid, .portals, .demo, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 52px 0; }
  .features, .gallery, .steps, .two { grid-template-columns: 1fr; }
  .phones img:last-child { margin-top: 28px; }
  .cta .btn { flex: 1 1 100%; }
}
