:root {
    /* Colors taken from the Like & Protect logo */
    --navy: #10202d;
    --navy-2: #173247;
    --blue-dark: #285f93;
    --blue: #347cbb;
    --blue-light: #4a97d4;
    --tint: #eef4f9;
    --ink: #10202d;
    --muted: #4d6070;
    --line: #d5e0e9;
    --white: #fff;
    --error: #a3271f;
    --ok: #1d6b45;

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
    --mesh: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px),
            linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }
a { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: .5rem 1rem;
    background: var(--white);
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: .875rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    color: var(--blue);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
}
.brand img { width: 30px; height: 40px; }
.brand--light { color: var(--white); }

.main-nav, .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    display: block;
    padding: .375rem 0;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}
.main-nav a:hover { color: var(--blue-dark); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* Dark bands share the mesh from the shield */
.hero, .page-head, .cta {
    background-color: var(--navy);
    background-image: var(--mesh);
    background-size: 44px 44px;
    color: var(--white);
}

.hero { background-color: var(--navy); }
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__shield { width: min(300px, 100%); justify-self: center; }

.lede {
    max-width: 38em;
    margin-top: 1.25rem;
    color: #d6e3ee;
    font-size: clamp(1.125rem, 2vw, 1.3125rem);
}

.eyebrow {
    margin-bottom: 1rem;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow--light { color: #8fc3ec; }

.page-head .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-head__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: center;
    gap: 2rem 3rem;
}
.page-head__art { width: 100%; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
    display: inline-block;
    padding: .75rem 1.5rem;
    border: 2px solid var(--blue-dark);
    border-radius: 6px;
    background: var(--blue-dark);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--navy-2); border-color: var(--navy-2); }
.button--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button--light:hover { background: #d6e3ee; border-color: #d6e3ee; }
.button--ghost { background: transparent; border-color: #8fc3ec; color: var(--white); }
.button--ghost:hover { background: var(--navy-2); border-color: var(--white); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section__title { max-width: 22em; margin-bottom: 2.5rem; }

.values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.values article { padding-top: 1.25rem; border-top: 3px solid var(--blue); }
.values p { margin-top: .625rem; color: var(--muted); }
.section--tint .values p { color: #3f5261; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 3.5rem;
    top: -.625rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    font-size: .9375rem;
    border-radius: 50%;
    background: var(--blue-dark);
    color: var(--white);
    font-weight: 600;
}
.steps p { margin-top: .5rem; color: #3f5261; }

.illustration { width: 100%; border-radius: 16px; }
.scene--band { width: 100%; min-height: 170px; object-fit: cover; object-position: center bottom; }
.scene--framed { margin-top: 3rem; }
.section--top-flush { padding-top: 0; }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.who h3 { margin-top: 1.25rem; }
.who p { margin-top: .5rem; color: var(--muted); }
.hub { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2.5rem 4rem; align-items: center; }
.hub p { margin-top: 1rem; color: #3f5261; }
.icon { width: 72px; height: 72px; margin-bottom: .875rem; }
.threats__art { margin-top: 1.5rem; }
.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 2rem 4rem;
    margin-bottom: 3rem;
}
.section-intro--flush { margin-bottom: 0; }

.prose { max-width: 720px; }
.prose p { margin-top: 1rem; font-size: 1.1875rem; }

/* Threat widget */
.eyebrow--blue { color: var(--blue-dark); }
.threats__inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2.5rem 4rem;
    align-items: start;
}
.threats__intro { margin-top: 1rem; color: var(--muted); }
.threats__source { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.threat-list { border-top: 1px solid var(--line); }
.threat-list details { border-bottom: 1px solid var(--line); }
.threat-list summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .125rem 1.5rem;
    padding: 1rem 0;
    cursor: pointer;
}
.threat-list__name { font-weight: 600; overflow-wrap: anywhere; }
.threat-list__date { color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.threat-list__body { display: grid; gap: .5rem; padding-bottom: 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
.threat-list__flag { color: var(--error); font-size: .9375rem; font-weight: 600; }
.threat-list__empty { display: grid; gap: .5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 6px; }

/* Call to action */
.cta {
    background-image: url("../img/illustrations/cta-art.svg"), var(--mesh);
    background-repeat: no-repeat, repeat, repeat;
    background-size: 1400px 300px, 44px 44px, 44px 44px;
    background-position: center, 0 0, 0 0;
}
.cta__inner { padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta p { margin: .875rem auto 1.75rem; max-width: 34em; color: #d6e3ee; }

/* Solutions */
.solution-list { display: grid; }
.solution {
    display: grid;
    grid-template-columns: 200px minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 1.5rem 3rem;
    padding-block: 2.5rem;
    border-top: 1px solid var(--line);
}
.solution:first-child { padding-top: 0; border-top: 0; }
.solution:last-child { padding-bottom: 0; }
.solution h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.solution p { margin-top: .75rem; color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: .25rem 0 .25rem 1.625rem; }
.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--blue-dark);
    border-bottom: 2px solid var(--blue-dark);
    transform: rotate(-45deg);
}

/* Support */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2.5rem 4rem;
    align-items: start;
}
.faq-layout .section__title { margin-bottom: 1.5rem; }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.faq summary { display: flex; align-items: center; gap: .875rem; padding: .875rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { flex: none; width: 40px; height: 40px; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: .5rem; color: var(--blue-dark); font-size: 1.375rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* Contact */
.contact-single { max-width: 640px; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 4rem;
}
.contact-details h2 { margin-top: 1.5rem; font-size: 1.375rem; }
.contact-details dl { margin: 1rem 0 0; }
.contact-details dt { margin-top: 1rem; font-weight: 600; }
.contact-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.form { display: grid; gap: 1.25rem; justify-items: start; }
.field { width: 100%; }
.field label { display: block; margin-bottom: .375rem; font-weight: 600; }
.field input, .field textarea {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #7f93a3;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin-top: .375rem; color: var(--error); font-size: .9375rem; }
.field__hint { margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-bottom: 1.5rem; padding: .875rem 1rem; border-left: 4px solid; border-radius: 4px; }
.notice--ok { border-color: var(--ok); background: #e8f4ee; color: #14502f; }
.notice--error { border-color: var(--error); background: #fbeceb; color: #7e1d17; }

/* Footer */
.site-footer { background: var(--navy); color: #d6e3ee; }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: 2.5rem;
}
.site-footer__tag { margin-top: .5rem; font-size: .875rem; letter-spacing: .08em; }
.site-footer__address { margin-top: .75rem; font-size: .9375rem; font-style: normal; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer__legal {
    flex-basis: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / .15);
    font-size: .875rem;
}

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__shield { width: 160px; justify-self: start; grid-row: 1; }
    .values, .steps, .steps--four, .solution, .contact-layout, .threats__inner, .section-intro, .faq-layout { grid-template-columns: 1fr; }
    .illustration { max-width: 320px; }
    .scene--framed, .hub .illustration { max-width: 100%; }
    .who, .hub { grid-template-columns: 1fr; }
    .page-head__inner { grid-template-columns: 1fr; }
    .page-head__art { grid-row: 1; width: 180px; }
    .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-layout { gap: 3rem; }
}

@media (max-width: 520px) {
    .steps--four { grid-template-columns: 1fr; }
    .site-header nav { width: 100%; }
    .main-nav { justify-content: space-between; gap: .25rem .5rem; font-size: .9375rem; }
    .actions .button { width: 100%; text-align: center; }
}
