/*
 * The website, identificatie.online, after the design in the brand handoff
 * (.scratch/klopt-brand/website/). Klopt's fonts, tokens, word mark and pill
 * buttons come from klopt.css, which every page links first.
 */

:root {
    --gutter: clamp(20px, 4vw, 32px);
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--klopt-paper);
    color: var(--klopt-ink);
    font-family: var(--klopt-font);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--klopt-green);
}

a:focus-visible {
    outline: 2px solid var(--klopt-green);
    outline-offset: 3px;
    border-radius: 2px;
}

.dark a:focus-visible {
    outline-color: var(--klopt-green-on-dark);
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

/* The header: the word mark, the menu and the language switch */

.site-header {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 28px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header .home {
    font-size: 32px;
    line-height: 1;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    font-size: 16px;
    font-weight: 500;
}

/* At least 52 px high, as every button: the design's 44 px is too small to tap */
.site-header .button {
    padding: 0 20px;
}

.site-header .language {
    font-family: var(--klopt-font-mono);
    font-size: 13px;
    color: var(--klopt-text-3);
}

/* The sections */

.inner {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 112px var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.band {
    background: var(--klopt-white);
}

.dark {
    background: var(--klopt-ink);
    color: var(--klopt-paper);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.eyebrow {
    font-family: var(--klopt-font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--klopt-green);
}

.dark .eyebrow {
    color: var(--klopt-green-on-dark);
}

h2 {
    font-size: clamp(36px, 4.6vw, 60px);
    font-weight: 700;
    letter-spacing: var(--klopt-tracking-heading);
    line-height: 1.04;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--klopt-text-2);
}

.number {
    font-family: var(--klopt-font-mono);
    font-size: 14px;
    color: var(--klopt-text-3);
}

/* The typed opening: three lines, the last in green and ended by the rings */

.opening {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 72px var(--gutter) 120px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.opening h1 {
    font-size: clamp(56px, 10vw, 150px);
    font-weight: 700;
    letter-spacing: var(--klopt-tracking-display);
    line-height: 0.98;
    /* The three lines' height, typed or not, so that nothing moves */
    min-height: 2.94em;
}

.opening .line {
    display: block;
    min-height: 0.98em;
}

.opening .line.last {
    white-space: nowrap;
    color: var(--klopt-green);
}

.opening h1 svg {
    display: inline-block;
    width: 0.24em;
    height: 0.24em;
    margin-left: 0.08em;
    vertical-align: -0.03em;
    fill: var(--klopt-green);
    stroke: var(--klopt-green);
}

.opening h1.typing svg {
    display: none;
}

.opening .caret {
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin-left: 0.04em;
    transform: translateY(0.08em);
    background: currentColor;
    animation: caret-blinks 1s steps(1) infinite;
}

@keyframes caret-blinks {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .opening .caret {
        animation: none;
    }
}

.opening-more {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.introduction {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 580px;
}

.introduction p {
    font-size: 21px;
    line-height: 1.5;
    color: var(--klopt-text-2);
    text-wrap: pretty;
}

.introduction .meaning {
    font-family: var(--klopt-font-mono);
    font-size: 13px;
    color: var(--klopt-text-3);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 17px;
}

/* How it works: the steps, the Outcomes and an example of the Evidence */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 32px;
}

.steps li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    box-shadow: inset 0 2px 0 var(--klopt-ink);
}

.steps li:last-child {
    box-shadow: inset 0 2px 0 var(--klopt-green);
}

.steps li:last-child .number {
    color: var(--klopt-green);
}

.steps p,
.audiences p,
.points p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--klopt-text-2);
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 32px;
    align-items: start;
}

.outcomes {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 36px;
    border-radius: var(--klopt-radius);
    background: var(--klopt-paper);
}

.outcomes h3 {
    font-size: 26px;
    letter-spacing: -0.03em;
}

.outcomes > p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--klopt-text-2);
}

.outcomes ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.outcomes li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.outcomes svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 1px;
}

.outcomes li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.outcomes strong {
    font-size: 17px;
}

.outcomes .meaning {
    font-weight: 400;
    color: var(--klopt-text-3);
}

.outcomes li p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--klopt-text-2);
}

.evidence {
    display: flex;
    flex-direction: column;
    border-radius: var(--klopt-radius);
    box-shadow: inset 0 0 0 1px var(--klopt-line);
    overflow: hidden;
}

.evidence-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    box-shadow: inset 0 -1px 0 var(--klopt-line);
}

.evidence-heading h3 {
    font-size: 17px;
    letter-spacing: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 8px;
    border-radius: var(--klopt-radius-pill);
    background: var(--klopt-status-verified-bg);
    color: var(--klopt-status-verified-text);
    font-size: 14px;
    font-weight: 500;
}

.chip svg {
    width: 16px;
    height: 16px;
}

.evidence dl {
    font-size: 15px;
}

.evidence dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    box-shadow: inset 0 -1px 0 var(--klopt-line-soft);
}

.evidence dl div:last-child {
    box-shadow: none;
}

.evidence dt {
    padding: 12px 24px;
    color: var(--klopt-text-3);
}

.evidence dd {
    padding: 12px 24px 12px 0;
}

.evidence figcaption {
    padding: 14px 24px;
    font-family: var(--klopt-font-mono);
    font-size: 12px;
    color: var(--klopt-text-3);
    background: var(--klopt-paper);
}

/* Who it's for */

.audiences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.audiences li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border-radius: var(--klopt-radius);
    background: var(--klopt-white);
}

.audiences li.dark {
    background: var(--klopt-ink);
    color: var(--klopt-paper);
}

.audiences li.dark p {
    color: var(--klopt-text-on-dark-2);
}

/* Privacy and security */

.points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 40px 48px;
}

.points li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points h3 {
    font-size: 20px;
}

#privacy .note {
    max-width: 900px;
    padding: 24px 28px;
    border-radius: var(--klopt-radius);
    background: var(--klopt-paper);
    font-size: 16px;
    line-height: 1.55;
    color: var(--klopt-text-2);
}

/* Becoming a Partner: the steps, and beside them, in the second column, the form to apply */

#partner .inner {
    padding-block: 120px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr));
    gap: 64px;
    align-items: start;
}

.partner-introduction {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

#partner h2 {
    font-size: clamp(40px, 5.4vw, 72px);
    letter-spacing: -0.045em;
    line-height: 1;
}

.dark .klopt-logo svg {
    fill: var(--klopt-green-on-dark);
    stroke: var(--klopt-green-on-dark);
}

#partner .lead {
    max-width: 520px;
    font-size: 19px;
    color: var(--klopt-text-on-dark-2);
}

.partner-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-steps li {
    display: flex;
    gap: 18px;
}

.partner-steps .number {
    padding-top: 3px;
    color: var(--klopt-green-on-dark);
}

.partner-steps div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-steps strong {
    font-size: 18px;
}

.partner-steps p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--klopt-text-on-dark-2);
}

/* The partner form: a light card on the dark section */

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 10px;
    background: var(--klopt-paper);
    color: var(--klopt-ink);
}

.partner-form h3 {
    margin-bottom: 4px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.partner-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-form legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
}

.partner-form .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-form .choices label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--klopt-radius);
    background: var(--klopt-white);
    box-shadow: inset 0 0 0 1px var(--klopt-input-line);
    font-size: 15px;
    cursor: pointer;
}

.partner-form .choices input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--klopt-green);
}

.partner-form .fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
}

.partner-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
}

.partner-form input:not([type="radio"]),
.partner-form select,
.partner-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--klopt-radius);
    background: var(--klopt-white);
    box-shadow: inset 0 0 0 1px var(--klopt-input-line);
    color: var(--klopt-ink);
    font: inherit;
    font-weight: 400;
}

.partner-form select {
    padding: 0 12px;
}

.partner-form textarea {
    padding: 12px 14px;
    resize: vertical;
}

.partner-form input:focus-visible,
.partner-form select:focus-visible,
.partner-form textarea:focus-visible,
.partner-form .button:focus-visible {
    outline: 2px solid var(--klopt-green);
    outline-offset: 2px;
}

.partner-form input[aria-invalid="true"],
.partner-form select[aria-invalid="true"],
.partner-form textarea[aria-invalid="true"] {
    box-shadow: inset 0 0 0 2px var(--klopt-status-not-verified);
}

/* What's wrong with a field, above it, and with the whole form, at the top */
.partner-form .field li,
.partner-form fieldset li {
    font-size: 14px;
    font-weight: 500;
    color: var(--klopt-status-not-verified-text);
}

.partner-form .form-error {
    padding: 12px 16px;
    border-radius: var(--klopt-radius);
    background: var(--klopt-status-not-verified-bg);
    color: var(--klopt-status-not-verified-text);
    font-size: 15px;
}

.partner-form .button {
    align-self: flex-start;
    font-size: 17px;
}

.partner-form .note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--klopt-text-3);
}

.partner-form .note a {
    color: var(--klopt-ink);
    text-decoration: underline;
}

/* The confirmation once the partner form is sent */

.sent .inner {
    max-width: 760px;
    gap: 28px;
}

.sent h1 {
    font-size: clamp(40px, 5.4vw, 72px);
    font-weight: 700;
    letter-spacing: var(--klopt-tracking-heading);
    line-height: 1.04;
}

/* The footer: the word mark, the legal documents and the company behind Klopt */

.site-footer {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 56px var(--gutter) 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.site-footer .top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 12px 40px;
    font-size: 15px;
}

.site-footer .brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .klopt-logo {
    font-size: 28px;
    line-height: 1;
}

.site-footer .domain {
    font-family: var(--klopt-font-mono);
    font-size: 14px;
    color: var(--klopt-text-3);
}

.site-footer address {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    box-shadow: inset 0 1px 0 var(--klopt-line);
    font-size: 13px;
    font-style: normal;
    color: var(--klopt-text-3);
}
