/* symbol.army - about, legal and privacy pages. Self-contained: no framework, no web fonts. */

:root {
    --brand: #076391;
    --brand-strong: #054a6d;
    --brand-deep: #032c42;
    --brand-tint: #e6f1f7;
    --on-brand: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f4f7f9;
    --surface: #ffffff;
    --text: #1b2329;
    --text-muted: #55636e;
    --border: #d9e1e7;
    --shadow: 0 1px 2px rgb(3 44 66 / 0.06), 0 8px 24px rgb(3 44 66 / 0.08);
    --radius: 12px;
    --max: 1160px;
    --gutter: 16px;
    /* one neo-grotesque family for every static page: Helvetica where installed, Arial elsewhere */
    --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
    --header-h: 72px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #3a9fd1;
        --brand-strong: #6bb8de;
        --brand-tint: #11303f;
        --bg: #0e151a;
        --bg-alt: #131d24;
        --surface: #17232b;
        --text: #e4ebf0;
        --text-muted: #9fb0bc;
        --border: #263540;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* anchors land below the fixed header */
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--brand-strong);
}

:focus-visible {
    outline: 3px solid #f2a900;
    outline-offset: 2px;
}

/* type scale: two weights (400 / 700, the ones Helvetica and Arial really have), tight headings */
h1,
h2,
h3 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
}

h2 {
    font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
}

h3 {
    font-size: 1.1875rem;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: var(--gutter);
    top: 8px;
    z-index: 100;
    padding: 0.5em 1em;
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
}

/* BRAND WORDMARK */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    white-space: nowrap;
}

.brand:hover {
    color: inherit;
}

.brand img {
    width: 32px;
    height: 32px;
}

.brand b {
    font-weight: 700;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.6em 1.25em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
}

.btn-primary:hover {
    background: var(--brand-strong);
    color: var(--on-brand);
}

.btn-light {
    background: #ffffff;
    color: #054a6d;
}

.btn-light:hover {
    background: #e6f1f7;
    color: #032c42;
}

.btn-ghost {
    border-color: rgb(255 255 255 / 0.6);
    color: #ffffff;
}

.btn-ghost:hover {
    border-color: #ffffff;
    background: rgb(255 255 255 / 0.1);
    color: #ffffff;
}

.btn-lg {
    min-height: 52px;
    padding: 0.75em 1.75em;
    font-size: 1.125rem;
}

.btn-sm {
    min-height: 38px;
    padding: 0.4em 1em;
    font-size: 0.95rem;
    gap: 0.3em;
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

/* HEADER - fixed on top; transparent over the hero while the page is at its top, dark once scrolled
   (the "at-top" class is set by script, so without script it stays dark and readable) */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: #ffffff;
    background: rgb(20 41 56 / 0.94);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 6px 18px rgb(0 0 0 / 0.18);
    transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header.at-top:not(.menu-open) {
    background: transparent;
    box-shadow: none;
}

.site-header.menu-open {
    background: #142938;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}

.site-header .brand {
    font-size: 1.3rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav a.nav-link {
    padding: 0.5em 0.75em;
    border-radius: 8px;
    color: rgb(255 255 255 / 0.85);
    text-decoration: none;
    font-weight: 400;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link[aria-current="page"] {
    color: #ffffff;
    background: rgb(255 255 255 / 0.08);
}

/* language dropdown: a native disclosure, the current language as its toggle */
.lang-menu {
    position: relative;
    margin: 0 0.5rem;
}

.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.5em 0.75em;
    border-radius: 8px;
    color: rgb(255 255 255 / 0.85);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary::after {
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
    color: #ffffff;
    background: rgb(255 255 255 / 0.08);
}

.lang-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 8rem;
    margin: 0.25rem 0 0;
    padding: 0.4rem 0;
    list-style: none;
    background: #142938;
    border-radius: 6px;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.3);
}

.lang-menu ul a {
    display: block;
    padding: 0.45rem 1rem;
    color: #dadada;
    text-decoration: none;
    font-weight: 400;
}

.lang-menu ul a:hover {
    color: #ffffff;
    background: rgb(255 255 255 / 0.08);
}

/* the languages as a plain row, used in the small-screen menu panel instead of the dropdown */
.lang-list {
    display: none;
    gap: 0.5rem;
    margin: 0;
    padding: 1rem 0 0;
    list-style: none;
}

.lang-list a {
    display: block;
    min-width: 3rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(255 255 255 / 0.3);
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.lang-list a[aria-current="page"] {
    color: #142938;
    background: #ffffff;
    border-color: #ffffff;
}

.header-cta {
    flex: none;
}

/* hamburger toggle, small screens only */
.nav-toggle {
    display: none;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle:hover {
    background: rgb(255 255 255 / 0.08);
}

.nav-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
    margin: auto;
}

.nav-toggle .icon-close,
.menu-open .nav-toggle .icon-open {
    display: none;
}

.menu-open .nav-toggle .icon-close {
    display: block;
}

/* small screens: the main menu folds into a panel under the header bar */
@media (max-width: 860px) {
    .js .nav-toggle {
        display: block;
    }

    .header-cta {
        margin-left: auto;
    }

    .js .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.5rem var(--gutter) 1.25rem;
        background: #142938;
        box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
    }

    .js .menu-open .site-nav {
        display: flex;
    }

    .site-nav a.nav-link {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid rgb(255 255 255 / 0.1);
        border-radius: 0;
        font-size: 1.125rem;
    }

    /* without script the menu links stay in the bar; keep only what fits */
    html:not(.js) .site-nav a.nav-link {
        display: none;
    }

    .js .site-nav .lang-menu {
        display: none;
    }

    .js .lang-list {
        display: flex;
    }
}

@media (max-width: 520px) {
    .site-header .wrap {
        gap: 0.5rem;
    }

    .site-header .brand {
        font-size: 1.15rem;
    }

    .site-header .btn-sm {
        padding: 0.4em 0.75em;
    }
}

/* HERO and closing band: the foggy mountain photo under a dark blue mask */

.mountain {
    position: relative;
    overflow: hidden;
    background-color: #142938;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.mountain::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(20 41 56 / 0.7);
}

.mountain > .wrap {
    position: relative;
}

@media (max-width: 550px) {
    .mountain {
        background-image: url(../img/backgrounds/FrontPage_mobile.webp);
    }
}

@media (min-width: 551px) and (max-width: 991px) {
    .mountain {
        background-image: url(../img/backgrounds/FrontPage_tablet.webp);
    }
}

@media (min-width: 992px) {
    .mountain {
        background-image: url(../img/backgrounds/FrontPage_large.webp);
    }
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3.5rem;
}

@media (min-width: 960px) {
    .hero .wrap {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 3.5rem;
        padding-top: calc(var(--header-h) + 4.5rem);
        padding-bottom: 5.5rem;
    }
}

/* large screens: the hero takes most of the first view, with clear air around text and visual */
@media (min-width: 1200px) {
    .hero {
        display: flex;
        align-items: center;
        min-height: min(88vh, 900px);
    }

    .hero .wrap {
        gap: 5.5rem;
        padding-top: calc(var(--header-h) + 5.5rem);
        padding-bottom: 6.5rem;
    }
}

.mountain h1,
.mountain h2 {
    color: #ffffff;
    font-weight: 400;
}

.hero h1 {
    margin-bottom: 0.6em;
}

.hero .lead {
    max-width: 32em;
    margin-bottom: 2.25rem;
    color: rgb(255 255 255 / 0.9);
    font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    color: rgb(255 255 255 / 0.85);
    font-size: 0.95rem;
}

.facts li {
    display: flex;
    align-items: center;
    gap: 0.45em;
}

.facts svg {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    color: #8fd3f5;
}

/* desktop window with a phone overlapping its lower right corner */
.hero-visual {
    position: relative;
    padding: 0 9% 13% 0;
}

.app-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26%;
    margin: 0;
    border: 6px solid #0b1a22;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.25), 0 24px 50px rgb(0 0 0 / 0.4);
    overflow: hidden;
}

.app-phone img {
    width: 100%;
}

.app-window {
    margin: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.2), 0 24px 60px rgb(0 0 0 / 0.35);
    overflow: hidden;
}

.app-window-bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #e9eef2;
}

.app-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c3ccd3;
}

.app-window img {
    width: 100%;
}

/* SECTIONS */

.section {
    padding: 4rem 0;
}

@media (min-width: 960px) {
    .section {
        padding: 6rem 0;
    }
}

.section-alt {
    background: var(--bg-alt);
}

/* section heads sit on the grid's left edge */
.section-head {
    max-width: 40em;
    margin: 0 0 2.75rem;
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* keeps a hyphenated term such as a standard's name on one line */
.nowrap {
    white-space: nowrap;
}

code {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--bg-alt);
    font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

/* TARGET GROUPS: two columns of short, factual points */

.audiences {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .audiences {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
}

.audience h3 {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand);
}

.audience ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.audience li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.audience li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 0.6rem;
    height: 2px;
    background: var(--brand);
}

/* FAQ: native disclosures, so every answer is in the page source for crawlers */

.faq {
    max-width: 52em;
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    position: relative;
    padding: 1.1rem 2.5rem 1.1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

/* FEATURE CARDS */

.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-media {
    aspect-ratio: 540 / 304;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.card-media video,
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.card-body p {
    margin: 0;
    color: var(--text-muted);
}

/* CTA BAND */

.cta-band {
    text-align: center;
}

.cta-band p {
    max-width: 36em;
    margin: 0 auto 2rem;
    color: rgb(255 255 255 / 0.9);
    font-size: 1.125rem;
}

.cta-band .cta-row {
    justify-content: center;
}

/* HELP TILES */

.tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.tile-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
}

.tile-icon svg {
    width: 22px;
    height: 22px;
}

.tile p {
    color: var(--text-muted);
}

.tile a.tile-link {
    margin-top: auto;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* FOOTER */

.site-footer {
    padding: 3rem 0 2rem;
    background: #0a1a23;
    color: #b8c6cf;
    font-size: 0.95rem;
}

.site-footer a {
    color: #d8e3ea;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

@media (min-width: 860px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
    }
}

.footer-about {
    grid-column: 1 / -1;
}

@media (min-width: 860px) {
    .footer-about {
        grid-column: auto;
        padding-right: 2rem;
    }
}

.footer-about .brand {
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.site-footer h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.4rem;
}

.site-footer address {
    font-style: normal;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* DOCUMENT PAGES (legal, privacy) */

/* the head band carries the "mountain" class: same photo as the landing page, under the fixed header */
.doc-head .wrap {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 2.75rem;
}

.doc-head h1 {
    margin-bottom: 0.25em;
    color: #ffffff;
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}

.doc-head p {
    margin: 0;
    color: rgb(255 255 255 / 0.8);
}

.doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

@media (min-width: 1000px) {
    .doc {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 3.5rem;
    }
}

.toc {
    align-self: start;
    font-size: 0.95rem;
}

@media (min-width: 1000px) {
    .toc {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.toc h2 {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding-left: 1.25em;
}

.toc li {
    margin-bottom: 0.3rem;
}

.toc a {
    color: var(--text);
    text-decoration: none;
}

.toc a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.prose {
    max-width: 46em;
}

.prose h2 {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    font-size: 1.5rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
}

.prose ul {
    padding-left: 1.25em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose table {
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 0.6em 0.75em;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: var(--bg-alt);
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--brand);
    border-radius: 0 8px 8px 0;
    background: var(--brand-tint);
}

.note p:last-child {
    margin-bottom: 0;
}

.notice {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.licenses-frame {
    width: 100%;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-alt);
}

/* MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
