/* =========================================================
   Easy AACcess – website styles
   ========================================================= */

:root {
    --blue-light: #d9f0ff;
    --blue-mid: #a3d5ff;
    --blue-strong: #83c9f4;

    --navy: #1d2340;          /* same navy as the board outlines */
    --text: #1f2937;
    --muted: #5b6475;
    --line: #e3e8ef;
    --soft: #f6f9fc;
    --white: #ffffff;

    --radius: 12px;
    --shadow: 0 18px 40px rgba(20, 45, 90, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    /* the standard font of each operating system (Segoe UI on Windows, San Francisco on Mac/iPad, Roboto on Android) */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    color: var(--navy);
}

a:focus-visible, .button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- top bar (sits on the blue band) ---------- */
.site-header {
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
}

.brand img {
    width: 40px;
    height: 40px;
    transition: transform 0.25s ease;    /* makes the growing smooth instead of instant */
    position: relative;
    z-index: 5;                          /* stays above the menu while it's big */
}

.brand:hover img,
.brand:focus-visible img {
    transform: scale(1.8);               /* 1.8 × bigger; change the number to taste */
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.6);
}

/* ---------- blue band ---------- */
.band {
    background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 100%);
    border-bottom: 4px solid var(--blue-strong);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    padding: 40px 24px 80px;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d5a85;
}

.hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.lead {
    margin: 20px 0 0;
    font-size: 20px;
    color: #253350;
    max-width: 30em;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.button.primary {
    background: var(--navy);
    color: var(--white);
}

.button.primary:hover {
    background: #2c3561;
}

.button.secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--blue-strong);
}

.button.secondary:hover {
    background: var(--blue-light);
}

.note {
    margin: 16px 0 0;
    font-size: 15px;
    color: #3b4a66;
}

.media {
    background: var(--white);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.media video,
.media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- white sections ---------- */
.section {
    padding: 80px 0;
}

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

.section-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.section h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.section-head p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

/* features grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature .icon svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--navy);
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* two columns: text + picture */
.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.split p {
    color: var(--muted);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.checklist li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d2340' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.screenshot-frame {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-mid);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 14px;
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--navy);
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* privacy strip */
.callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    border-radius: var(--radius);
    padding: 32px 36px;
}

.callout h2 {
    font-size: 24px;
}

.callout p {
    margin: 6px 0 0;
    color: #34445f;
}

/* ---------- text pages (privacy, support) ---------- */
.page-title {
    max-width: 780px;            /* same width as the text below, so the edges line up */
    padding: 24px 24px 56px;
}

.page-title h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    color: var(--navy);
}

.page-title p {
    margin: 10px 0 0;
    color: #253350;
}

.small {
    font-size: 15px;
    color: #3b4a66;
}

.info {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 21px;
    color: var(--navy);
}

.card h3 {
    margin: 20px 0 6px;
    font-size: 17px;
    color: var(--navy);
}

.card p, .card ul {
    margin: 10px 0 0;
}

.card li {
    margin-bottom: 6px;
}

.card.tone-green {           /* summary boxes */
    background: var(--soft);
}

code {
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* ---------- footer ---------- */
.site-footer {
    background: #83c9f4;          /* solid, the darkest of the three blues */
    padding: 36px 0 44px;
    font-size: 14px;
    color: #1d2340;               /* navy text, easy to read on the blue */
}

.site-footer .container {
    display: grid;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-weight: 600;
}

.footer-links a {
    color: var(--navy);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
}

/* ---------- tablets and phones ---------- */
@media (max-width: 880px) {
    .hero, .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features, .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { padding: 24px 16px 56px; }
    .hero h1 { font-size: 36px; }
    .lead { font-size: 18px; }
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .section h2 { font-size: 26px; }
    .features, .steps { grid-template-columns: 1fr; }
    .site-header .container { justify-content: center; }
    .page-title h1 { font-size: 32px; }
    .card { padding: 20px; }
}

/* ---------- support page ---------- */
.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.contact-box h2 {
    margin: 0;
    font-size: 21px;
    color: var(--navy);
}

.contact-box p {
    margin: 4px 0 0;
    color: #34445f;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.toc a:hover {
    background: var(--soft);
}

.info h2.group-title {
    margin: 40px 0 14px;
    font-size: 26px;
    color: var(--navy);
    scroll-margin-top: 20px;
}

/* expandable questions */
details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 48px 16px 20px;
    font-weight: 600;
    color: var(--navy);
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {                       /* the + / − sign on the right */
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
}

details[open] summary::after {
    content: "−";
}

summary:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
    border-radius: 10px;
}

.answer {
    padding: 0 20px 18px;
    color: var(--text);
}

.answer p, .answer ol, .answer ul {
    margin: 0 0 10px;
}

.answer li {
    margin-bottom: 6px;
}

kbd {
    font-family: inherit;
    font-size: 0.88em;
    background: var(--soft);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
}

.button-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 16px;
}

.button-table th, .button-table td {
    text-align: left;
    vertical-align: top;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
}

.button-table th {
    width: 32%;
    color: var(--navy);
}

/* ---------- about page ---------- */
.team {
    display: grid;
    gap: 20px;
}

.person {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.avatar {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;               /* real photos fill the circle without stretching */
    background: var(--blue-light);
    border: 3px solid var(--blue-strong);
    color: var(--navy);
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person h3 {
    margin: 4px 0 2px;
    font-size: 20px;
    color: var(--navy);
}

.person .role {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2d5a85;
}

.person p {
    margin: 0 0 10px;
}

.person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .person { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .person-links { justify-content: center; }
}

/* =========================================================
   Dark mode – used automatically when the computer, phone or
   iPad is set to dark mode
   ========================================================= */
@media (prefers-color-scheme: dark) {

    :root {
        color-scheme: dark;              /* dark scrollbars and form controls */

        --blue-light: #16304a;
        --blue-mid: #1f4566;
        --blue-strong: #3d8cc4;

        --navy: #d6e9ff;                 /* headings and links become light */
        --text: #e3e8f0;
        --muted: #a7b2c3;
        --line: #2a3344;
        --soft: #151b26;
        --white: #0f141d;                /* page and card background */

        --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    /* buttons */
    .button.primary {
        background: #d6e9ff;
        color: #0f141d;
    }

    .button.primary:hover {
        background: #b4d7fb;
    }

    .button.secondary:hover {
        background: #1a2a3d;
    }

    /* top band and menu */
    .site-nav a:hover,
    .site-nav a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.1);
    }

    .eyebrow,
    .person .role {
        color: #8cc8ff;
    }

    .lead,
    .page-title p {
        color: #c9d6ea;
    }

    .note,
    .small,
    .callout p,
    .contact-box p {
        color: #a9b9d2;
    }

    /* the tick circles keep a light background so the dark tick stays visible */
    .checklist li::before {
        background-color: #83c9f4;
    }

    /* footer */
    .site-footer {
        background: #132a42;
        color: #d6e6f7;
    }
}

/* people who turn off animations in their system settings get no zoom */
@media (prefers-reduced-motion: reduce) {
    .brand img {
        transition: none;
    }

    .brand:hover img,
    .brand:focus-visible img {
        transform: none;
    }
}

.store-buttons {
    display: flex;          /* buttons in a row */
    flex-wrap: wrap;        /* on small screens they move to the next line */
    gap: 12px;              /* space between buttons */
    margin-top: 14px;       /* space above, under the step's text */
}