/* ------------------------------------------------------------------
   Mazaclass marketing site: the homepage and the ad landing page.

   Colours are the app's own brand ramp (mazaclass-react/src/theme/brand.ts),
   so the ad, the site and the app read as one product. Mobile first: most
   visitors arrive from an ad on a phone.
   ------------------------------------------------------------------ */

:root {
    --brand-50: #E9F7FF;
    --brand-100: #D3ECFF;
    --brand-200: #B4DDFF;
    --brand-600: #2670C1;
    --brand-700: #195BA2;
    --brand-800: #0D4580;
    --brand-900: #073362;
    --ink: #161C24;
    --muted: #5B6574;
    --line: #DFE3E8;
    --bg: #F6F8FB;
    --card: #FFFFFF;
    --error: #B42318;
    --ok: #1E7B34;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit
}

img {
    max-width: 100%
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px
}

/* ---------- header ---------- */
header.top {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10
}

header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 60px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--brand-800)
}

.brand img {
    width: 32px;
    height: 32px
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 4px
}

.top-nav a {
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted)
}

.top-nav a:hover {
    background: var(--brand-50);
    color: var(--brand-700)
}

.top-nav .hide-sm {
    display: none
}

.top-nav .pill {
    color: #fff;
    background: var(--brand-600)
}

.top-nav .pill:hover {
    background: var(--brand-700);
    color: #fff
}

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, var(--brand-100), transparent 60%),
        linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 70%);
    padding: 32px 0 48px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--brand-700);
    background: var(--card);
    border: 1px solid var(--brand-200);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px
}

h1 {
    font-size: clamp(1.9rem, 6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 800;
    margin-bottom: 14px
}

h1 em,
h2 em {
    font-style: normal;
    color: var(--brand-600)
}

.lede {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 34em;
    margin-bottom: 24px
}

/* ---------- form card ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 12px 40px rgba(13, 69, 128, .08)
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px
}

.card .sub {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 18px
}

label.field {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px
}

input[type=text],
input[type=tel] {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink)
}

input[type=text]:focus,
input[type=tel]:focus {
    outline: 2px solid var(--brand-600);
    outline-offset: 1px;
    border-color: transparent
}

.phone-row {
    display: flex;
    align-items: stretch;
    gap: 8px
}

.phone-row .dial {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font-weight: 600;
    color: var(--muted)
}

fieldset {
    border: 0;
    margin-top: 18px
}

.form-block {
    margin-top: 18px
}

legend {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 8px
}

.options {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr
}

.options.wide {
    grid-template-columns: 1fr
}

.opt {
    position: relative
}

.opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer
}

.opt span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    background: #fff;
    transition: background .15s, border-color .15s
}

.opt input:checked+span {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-800);
    font-weight: 600
}

.opt input:focus-visible+span {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px
}

.opt.check span::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    border: 1.5px solid #9AA4B2;
    border-radius: 5px;
    background: #fff center/12px no-repeat
}

.opt.check input:checked+span::before {
    border-color: var(--brand-600);
    background-color: var(--brand-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}

.err {
    display: none;
    color: var(--error);
    font-size: .82rem;
    margin-top: 6px
}

.invalid .err {
    display: block
}

.invalid input[type=text],
.invalid input[type=tel] {
    border-color: var(--error)
}

.cta {
    display: block;
    width: 100%;
    margin-top: 22px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-600);
    border: 0;
    border-radius: 12px;
    padding: 15px 18px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(38, 112, 193, .35);
    transition: background .15s, transform .15s
}

.cta:hover {
    background: var(--brand-700)
}

.cta:active {
    transform: translateY(1px)
}

.cta.inline {
    display: inline-block;
    width: auto;
    padding: 14px 28px
}

.fine {
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 10px
}

/* ---------- phone ---------- */
.phone-col {
    display: flex;
    flex-direction: column;
    align-items: center
}

.phone {
    width: min(300px, 78vw);
    border-radius: 40px;
    padding: 10px;
    background: #0F1724;
    box-shadow: 0 30px 60px rgba(7, 51, 98, .25), inset 0 0 0 2px #2A3546;
    position: relative
}

.phone::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    border-radius: 999px;
    background: #0F1724;
    z-index: 1
}

/* A status-bar strip above the screenshot, for the notch to sit in. */
.screen {
    background: #fff;
    border-radius: 30px;
    padding-top: 30px;
    overflow: hidden
}

.phone img {
    display: block;
    width: 100%;
    height: auto
}

.phone-note {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
    margin-top: 14px;
    max-width: 300px
}

/* ---------- sections ---------- */
section.band {
    padding: 48px 0
}

section.band.alt {
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.section-head {
    max-width: 40em;
    margin-bottom: 24px
}

.section-head h2 {
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 800;
    margin-bottom: 8px
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem
}

.points-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr
}

.point {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px
}

.point b {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px
}

.point p {
    color: var(--muted);
    font-size: .93rem
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    font-weight: 700
}

/* How it starts: numbered steps */
.steps {
    list-style: none;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    counter-reset: step
}

.steps li {
    counter-increment: step;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 18px 18px 64px;
    position: relative
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--brand-600);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center
}

.steps b {
    display: block;
    margin-bottom: 2px
}

.steps p {
    color: var(--muted);
    font-size: .93rem
}

/* Quote */
.quote figure {
    background: var(--brand-800);
    color: #fff;
    border-radius: 20px;
    padding: 28px 22px
}

.quote blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px
}

.quote figcaption {
    font-size: .9rem;
    opacity: .85
}

.quote figcaption b {
    opacity: 1;
    display: block;
    font-size: 1rem
}

/* Founder */
.founder {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    align-items: center
}

.founder img {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(7, 51, 98, .15);
    justify-self: center
}

.founder p {
    color: var(--muted);
    margin-bottom: 12px
}

.founder p b {
    color: var(--ink)
}

/* FAQ */
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    color: var(--brand-600);
    font-weight: 700
}

.faq details[open] summary::after {
    content: "–"
}

.faq details p {
    color: var(--muted);
    margin-top: 10px;
    font-size: .95rem
}

/* Closing call to action */
.closing {
    text-align: center;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    color: #fff;
    border-radius: 24px;
    padding: 36px 22px
}

.closing h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px
}

.closing p {
    opacity: .9;
    margin-bottom: 22px
}

.closing .cta {
    background: #fff;
    color: var(--brand-800);
    box-shadow: none
}

.closing .cta:hover {
    background: var(--brand-50)
}

footer.bottom {
    border-top: 1px solid var(--line);
    background: var(--card);
    padding: 22px 0;
    font-size: .85rem;
    color: var(--muted)
}

footer.bottom .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: space-between
}

footer.bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px
}

footer.bottom a {
    text-decoration: none
}

footer.bottom a:hover {
    color: var(--brand-700)
}

@media (min-width: 560px) {
    .options.wide {
        grid-template-columns: 1fr 1fr
    }

    .card {
        padding: 26px 24px
    }

    .points-grid,
    .steps {
        grid-template-columns: repeat(3, 1fr)
    }

    .top-nav .hide-sm {
        display: inline-block
    }
}

@media (min-width: 900px) {
    .hero {
        padding: 56px 0 72px
    }

    .hero-grid {
        grid-template-columns: 1.15fr .85fr;
        gap: 56px
    }

    .phone-col {
        position: sticky;
        top: 84px
    }

    .phone {
        width: 320px
    }

    section.band {
        padding: 72px 0
    }

    .founder {
        grid-template-columns: .9fr 1.1fr;
        gap: 48px
    }

    .founder img {
        max-width: 380px
    }
}
