*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0c1f4a;
    --blue: #1d4ed8;
    --blue-2: #2563eb;
    --blue-soft: #eff6ff;
    --gold: #facc15;
    --gold-ink: #422006;
    --green: #047857;
    --green-soft: #ecfdf5;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #475569;
    --surface: #f1f5f9;
    --border: #cbd5e1;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text);
    background: var(--surface);
    min-height: calc(100 * var(--ds-vh, 1vh));
}

[hidden] { display: none !important; }

/* ── Top bar ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 14px; background: #fff; object-fit: contain; }
.brand strong { display: block; font-size: 21px; font-weight: 800; color: #fff; line-height: 1.1; }
.brand strong .edu { color: #93c5fd; }
.brand strong .edad { color: var(--gold); }
.brand small { display: block; font-size: 14px; color: #cbd5e1; }

.home-link {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35);
    color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
}
.home-link:hover { background: rgba(255, 255, 255, .12); }
.home-link svg { width: 20px; height: 20px; }

/* ── Hero ── */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(250, 204, 21, .18), transparent 40%),
        linear-gradient(135deg, var(--navy) 0%, #1e3a8a 55%, var(--blue) 100%);
    color: #fff;
    padding-bottom: 72px;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 0;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 15px; font-weight: 700;
}

h1 { font-size: clamp(34px, calc(5.6 * var(--ds-vw, 1vw)), 52px); font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
h1 .gold { color: var(--gold); }
.lead { font-size: 20px; color: #dbeafe; margin-bottom: 28px; }

.actions { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }

.btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 66px; width: 100%;
    padding: 14px 22px;
    border-radius: 18px;
    border: 3px solid transparent;
    font: inherit; font-size: 20px; font-weight: 800;
    text-decoration: none; text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.btn svg { width: 28px; height: 28px; flex-shrink: 0; }

.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 26px rgba(250, 204, 21, .35); border-bottom: 5px solid #ca8a04; }
.btn-primary:hover { background: #fde047; }
.btn-secondary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-secondary:hover { background: rgba(255, 255, 255, .2); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; pointer-events: none; }

.meta { font-size: 16px; color: #bfdbfe; margin-top: 12px; min-height: 1.5em; }
.meta:empty { display: none; }

/* Phone mockup: what the app looks like */
.phone-wrap { display: flex; justify-content: center; }
.phone {
    position: relative;
    width: 250px;
    aspect-ratio: 9 / 18.5;
    border-radius: 40px;
    background: #0f172a;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(2, 6, 23, .5), inset 0 0 0 2px #334155;
    transform: rotate(-4deg);
}
.phone::before {
    content: '';
    position: absolute; top: 18px; left: 50%;
    width: 70px; height: 18px; margin-left: -35px;
    border-radius: 999px; background: #0f172a; z-index: 2;
}
.screen {
    position: relative;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #f8fafc;
    display: flex; flex-direction: column;
}
.screen-top { background: var(--navy); padding: 40px 14px 14px; color: #fff; }
.screen-top b { display: block; font-size: 17px; }
.screen-top b .edu { color: #93c5fd; }
.screen-top b .edad { color: var(--gold); }
.screen-top small { font-size: 12px; color: #cbd5e1; }
.screen-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 10px; }
.mock-card i { display: block; height: 8px; border-radius: 4px; background: #e2e8f0; margin-bottom: 6px; }
.mock-card i.w60 { width: 60%; }
.mock-card i.w40 { width: 40%; }
.mock-btn { height: 30px; border-radius: 10px; background: #16a34a; margin-top: 8px; }
.mock-fab {
    position: absolute; right: 14px; bottom: 20px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue); border: 3px solid #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px rgba(12, 31, 74, .35);
}
.mock-fab svg { width: 22px; height: 22px; color: #fff; }
.mock-fab::after {
    content: 'Tulong';
    position: absolute; bottom: -12px;
    padding: 0 7px; border-radius: 999px;
    background: var(--gold); color: var(--gold-ink);
    font-size: 10px; font-weight: 800; border: 2px solid #fff;
}

/* ── Content below the hero ── */
.content {
    max-width: 1080px;
    margin: -44px auto 0;
    padding: 0 16px 48px;
    display: grid;
    gap: 20px;
}

.card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: clamp(20px, calc(3 * var(--ds-vw, 1vw)), 28px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.card h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.card p { color: var(--muted); }

.note {
    display: flex; gap: 12px; align-items: center;
    background: #fffbeb; border: 2px solid #fcd34d; border-radius: 18px;
    padding: 14px 18px; font-size: 18px; font-weight: 600; color: #78350f;
}
.note svg { width: 28px; height: 28px; flex-shrink: 0; }

/* QR: open this page on a phone */
.qr-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.qr-box {
    width: 196px; height: 196px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    border: 3px solid var(--blue);
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-steps { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--text); }
.qr-steps li { display: flex; gap: 10px; align-items: center; }
.qr-steps span { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.qr-warn { margin-top: 10px; font-size: 16px; color: #b45309; font-weight: 600; }

/* How to install: three big steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.step {
    position: relative;
    padding: 20px 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 2px solid #e2e8f0;
}
.step-num {
    position: absolute; top: -14px; left: 18px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800;
    display: grid; place-items: center; border: 3px solid #fff;
}
.step-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 6px 0 12px; }
.step-icon svg { width: 30px; height: 30px; }
.step b { display: block; font-size: 20px; color: var(--ink); line-height: 1.3; }
.step p { font-size: 17px; margin-top: 4px; }

.whatsnew { background: var(--blue-soft); border-color: #bfdbfe; }
.whatsnew p { color: var(--text); white-space: pre-line; }

.update { display: flex; gap: 16px; align-items: center; }
.update-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.update-icon svg { width: 30px; height: 30px; }

footer { text-align: center; font-size: 15px; color: var(--muted); padding: 8px 16px 32px; }

/* ── Phones ── */
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .phone-wrap { display: none; }
    .actions { max-width: none; }
    .steps { grid-template-columns: 1fr; gap: 22px; }
    .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .qr-steps li { justify-content: center; }
}

@media (max-width: 480px) {
    .brand small, .home-link span { display: none; }
    .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}
