@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Heebo:wght@300;400;500;600;700&display=swap");

:root {
    color-scheme: light;
    --ink: #161616;
    --muted: #424342;
    --olive: hsl(85, 29%, 59%);
    --olive-light: hsl(85, 29%, 79%);
    --olive-dark: hsl(85, 29%, 29%);
    --line: #dbdedd;
    --paper: #fff;
    --wash: #e9ebeb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 "Inter", system-ui, sans-serif;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "Heebo", system-ui, sans-serif;
    line-height: 1.12;
}

a {
    color: var(--olive-dark);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--ink);
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
    outline: 3px solid #946200;
    outline-offset: 4px;
}

.container {
    width: min(73rem, calc(100% - 3rem));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand img {
    display: block;
    width: clamp(7.5rem, 38vw, 13rem);
    height: auto;
}

.brand span {
    border-left: 1px solid var(--line);
    padding-left: 0.65rem;
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.4rem;
    font-size: 0.9rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}

.button-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.button-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.hero {
    padding-block: clamp(2rem, 3.25vw, 4.5rem);
    background: var(--wash);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

h1 {
    max-width: 19ch;
    font-size: clamp(2.25rem, 3.8vw, 3.45rem);
    letter-spacing: -0.04em;
}

.intro {
    max-width: 45ch;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.125rem);
}

.hero-cta {
    margin-top: 1.4rem;
}

.video figcaption {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.75rem;
    background: var(--ink);
}

.school-benefits {
    padding-block: clamp(1.5rem, 2.5vw, 3rem) clamp(1.75rem, 4vw, 3rem);
}

.school-benefits h2,
.student-safety h2,
.chat h2,
.app-downloads h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.04em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 1.25rem;
}

.dashboard-grid figure {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-items: start;
    gap: 0.85rem;
}

.dashboard-grid h3,
.student-safety h3 {
    color: var(--olive-dark);
    font-size: clamp(1.5rem, 2.7vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.dashboard-grid a {
    position: relative;
    display: block;
    width: min(100%, 20rem);
    cursor: zoom-in;
}

.dashboard-zoom-icon {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 0 0 1px var(--paper);
    pointer-events: none;
}

.dashboard-zoom-icon::before,
.dashboard-zoom-icon::after {
    content: "";
    position: absolute;
}

.dashboard-zoom-icon::before {
    inset: 0.5rem auto auto 0.5rem;
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.dashboard-zoom-icon::after {
    top: 1.19rem;
    left: 1.16rem;
    width: 0.45rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.dashboard-grid img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.dashboard-dialog {
    max-width: calc(100% - 1.5rem);
    max-height: calc(100% - 1.5rem);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--paper);
    color: var(--ink);
}

.dashboard-dialog[open] {
    display: flex;
    flex-direction: column;
}

.dashboard-dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

.dashboard-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.dashboard-dialog-header h2 {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.dashboard-dialog-header button {
    background: var(--paper);
    font-family: inherit;
    cursor: pointer;
}

.dashboard-dialog-header button:hover {
    background: var(--ink);
}

.dashboard-dialog-image {
    overflow: auto;
    min-height: 0;
}

.dashboard-dialog-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.school-benefits p,
.student-safety p,
.chat p {
    margin-top: 0.55rem;
    color: var(--muted);
}

.student-safety {
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--wash);
}

.student-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2.5rem;
    margin-block: 1rem;
}

.student-safety-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.chat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    scroll-margin-top: 1rem;
    padding-block: clamp(1.75rem, 4vw, 3rem);
}

.chat-copy {
    max-width: 58ch;
}

.chat-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.email-link {
    font-size: 0.9rem;
}

.app-downloads {
    padding-block: clamp(2rem, 4vw, 3.5rem);
    background: var(--olive);
    text-align: center;
}

.app-download-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.app-download-links a {
    display: grid;
    place-items: center;
    flex: 0 1 11rem;
    min-width: 0;
    min-height: 2.75rem;
}

.app-download-links img {
    width: 100%;
    height: auto;
}

.button-primary {
    min-height: 4rem;
    padding: 0.8rem clamp(1rem, 4vw, 1.9rem);
    background: var(--olive);
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.button-primary:hover {
    background: var(--olive-dark);
    color: var(--paper);
}

.footer-inner,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.site-footer {
    background: var(--ink);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--olive-light);
}

.site-footer a:hover {
    color: var(--paper);
}

.footer-inner {
    justify-content: space-between;
    padding-block: 1.75rem;
}

@media (max-width: 760px) {
    .hero-grid,
    .dashboard-grid,
    .student-safety-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid a {
        width: min(90%, 20rem);
    }

    .dashboard-grid {
        row-gap: 1.5rem;
    }

    .dashboard-grid figure {
        grid-row: auto;
        grid-template-rows: auto;
    }

    .chat {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-actions {
        align-items: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .container {
        width: calc(100% - 2rem);
    }

    .header-inner .button {
        padding-inline: 0.65rem;
    }
}
