/* Zeit Technology — a single stylesheet, written by hand.
   The visual grammar comes from the logo itself: the stripe's parallelogram,
   measured at 42.5 degrees from vertical, is the only ornament. It appears small
   and repeated, never as a slanted section. No cards with shadows. */

:root {
    --navy: #003b85;
    --navy-deep: #01203f;
    --blue: #004c9f;
    --red: #c70120;

    --paper: #FDFDFC;
    --wash: #F2F5FA;
    --ink: #003b85;
    --ink-strong: #01203f;
    --ink-soft: #3D4A5C;
    --rule: #DDE3EC;
    --rule-strong: #B6C2D4;

    /* Measured on the logo's red stripe. Do not round it: it is the brand's slant. */
    --slant: -42.5deg;

    --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --measure: 66ch;
    --gutter: 24px;
    --max: 1120px;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.1875rem;
    --step-2: 1.4375rem;
    --step-3: 1.75rem;
    --step-4: 2.25rem;
    --step-5: 3rem;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.018em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

strong { color: var(--ink-strong); font-weight: 600; }

ul, ol { max-width: var(--measure); padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--wash);
    padding: 1px 5px;
    border: 1px solid var(--rule);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: var(--gutter);
    top: 8px;
    z-index: 40;
    background: var(--paper);
    padding: 10px 14px;
    border: 1px solid var(--navy);
}

.wrap {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- the brand's parallelogram ---------- */

/* Section marker: the logo's stripe, at the measured slant. */
.mark {
    display: block;
    width: 44px;
    height: 6px;
    margin-bottom: 1.25rem;
    background: var(--red);
    transform: skewX(var(--slant));
}
.mark--light { background: var(--paper); }

/* Block with a vertical stripe on the left: the same idea on another axis. */
.block--marked {
    border-left: 3px solid var(--red);
    padding-left: 1.25rem;
}

/* ---------- header ---------- */

.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 76px;
}

.site-header__logo img { display: block; height: 38px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.nav a {
    color: var(--ink-strong);
    text-decoration: none;
    font-size: var(--step--1);
    font-weight: 500;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }

.nav .btn--primary,
.nav .btn--primary:hover { color: var(--paper); }

.nav__toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--rule-strong);
    padding: 8px 12px;
    color: var(--navy);
    font: inherit;
    font-size: var(--step--1);
    cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    font-size: var(--step-0);
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary { background: var(--navy); color: var(--paper); }
.btn--primary:hover { background: var(--navy-deep); color: var(--paper); }

.btn--ghost { border-color: var(--rule-strong); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: var(--wash); color: var(--navy); }

.btn--outline-light { border-color: rgb(253 253 252 / 0.45); color: var(--paper); background: transparent; }
.btn--outline-light:hover { border-color: var(--paper); color: var(--paper); }

.btn--small { padding: 9px 16px; font-size: var(--step--1); }

/* While the contact form is sending: locked, and a spinner before the label. */
.btn:disabled { cursor: progress; opacity: 0.8; }
.btn--primary:disabled:hover { background: var(--navy); }

.btn--busy::before {
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    margin-right: 10px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- hero: the navy field ---------- */

.hero {
    background: var(--navy);
    color: rgb(253 253 252 / 0.82);
    padding-block: 5.5rem 5rem;
}

.hero h1 { color: var(--paper); font-size: var(--step-5); max-width: 24ch; }

.hero__lede {
    font-size: var(--step-1);
    max-width: 56ch;
    margin-top: 1.25rem;
}

.hero strong { color: var(--paper); }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

/* Company fact sheet: label above the value, like a registration record. No box, no shadow. */
.factsheet { margin: 0; }
.factsheet__row {
    padding: 0.85rem 0;
    border-top: 1px solid rgb(253 253 252 / 0.22);
}
.factsheet__row:last-child { border-bottom: 1px solid rgb(253 253 252 / 0.22); }
.factsheet dt {
    font-size: var(--step--1);
    color: rgb(253 253 252 / 0.62);
    margin-bottom: 0.15rem;
}
.factsheet dd {
    margin: 0;
    color: var(--paper);
    font-weight: 600;
    line-height: 1.4;
}
.factsheet dd a { color: var(--paper); }

/* ---------- sections ---------- */

.section { padding-block: 4.5rem; }
.section--wash { background: var(--wash); }
.section--ruled { border-top: 1px solid var(--rule); }

.section--navy {
    background: var(--navy);
    color: rgb(253 253 252 / 0.82);
}
.section--navy h2,
.section--navy h3 { color: var(--paper); }
.section--navy strong { color: var(--paper); }

/* The :not(.btn) is required: without it this selector (0-1-1) beats .btn--light
   (0-1-0) and leaves the button's text white on its white background. */
.section--navy a:not(.btn) { color: var(--paper); }

.lede { font-size: var(--step-1); max-width: 56ch; }

/* ---------- block grid ---------- */

.grid {
    display: grid;
    gap: 2rem 2.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.block p { max-width: 44ch; }
.block h3 { margin-bottom: 0.4em; }

.block--ruled { border-top: 2px solid var(--navy); padding-top: 1rem; }

/* ---------- steps: a real sequence, hence numbered ---------- */

.steps {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    max-width: none;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgb(253 253 252 / 0.22);
}

.steps li {
    background: var(--navy);
    padding: 1.5rem 1.25rem;
    margin: 0;
}

.steps__n {
    display: block;
    font-size: var(--step--1);
    font-weight: 700;
    color: var(--red);
    background: var(--paper);
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    margin-bottom: 0.9rem;
}

.steps__t {
    display: block;
    color: var(--paper);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.steps p { font-size: var(--step--1); max-width: none; }

/* ---------- labeled list ---------- */

.list-plain {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    max-width: none;
    border-top: 1px solid var(--rule);
}
.list-plain li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: baseline;
    padding: 0.9rem 0;
    margin: 0;
    border-bottom: 1px solid var(--rule);
}
.list-plain .doc-name {
    color: var(--ink-strong);
    font-weight: 600;
    min-width: 15rem;
}

/* ---------- label/value cells ---------- */

.cells {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 2.5rem;
}
.cell { background: var(--paper); padding: 1.25rem; }
.cell__label { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 0.3rem; }
.cell__value { color: var(--ink-strong); font-weight: 600; margin: 0; }

/* ---------- code block ---------- */

.code {
    font-family: var(--mono);
    font-size: var(--step--1);
    line-height: 1.7;
    background: var(--navy-deep);
    color: rgb(253 253 252 / 0.9);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0 0;
    max-width: none;
}
.code .k { color: #7FB2FF; }

/* ---------- table ---------- */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: var(--step-0);
}
.table th, .table td {
    text-align: left;
    padding: 0.85rem 1rem 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.table th { color: var(--ink-strong); font-weight: 600; border-bottom-color: var(--rule-strong); }

/* ---------- FAQ ---------- */

.faq { margin-top: 2rem; border-top: 1px solid var(--rule); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
    cursor: pointer;
    padding: 1rem 0;
    color: var(--ink-strong);
    font-weight: 600;
}
.faq summary::marker { color: var(--red); }
.faq p { padding-bottom: 1rem; max-width: 70ch; }

/* ---------- form ---------- */

.form { margin-top: 2.5rem; max-width: 34rem; }
.form__field { margin-bottom: 1.25rem; }
.form label {
    display: block;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 0.4rem;
}
.form input, .form textarea, .form select {
    width: 100%;
    font: inherit;
    padding: 11px 13px;
    border: 1px solid var(--rule-strong);
    background: var(--paper);
    color: var(--ink-strong);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--navy); }
.form textarea { min-height: 9rem; resize: vertical; }
.form__note { font-size: var(--step--1); }
.form__honeypot { position: absolute; left: -9999px; }

.notice { border-left: 3px solid var(--red); padding: 0.9rem 1.25rem; background: var(--wash); margin-bottom: 2rem; }
.notice--ok { border-left-color: var(--navy); }
.notice p { max-width: none; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--rule);
    background: var(--wash);
    padding-block: 3.5rem 2.5rem;
    font-size: var(--step--1);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
}
.site-footer h4 { color: var(--ink-strong); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.site-footer__logo img { display: block; height: 30px; width: auto; }

.site-footer__legal {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule-strong);
    color: var(--ink-soft);
}
.site-footer__legal p { max-width: 70ch; }

/* ---------- cookie notice ---------- */

.cookie {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    padding: var(--gutter);
    display: flex;
    justify-content: center;
}
.cookie[hidden] { display: none; }
.cookie__box {
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-top: 3px solid var(--red);
    padding: 1.25rem 1.5rem;
    max-width: 44rem;
}
.cookie__title { font-size: var(--step-0); margin-bottom: 0.4rem; }
.cookie__text { font-size: var(--step--1); }
.cookie__actions { display: flex; gap: 10px; margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    :root { --step-5: 2.25rem; --step-4: 1.9rem; --step-3: 1.5rem; }

    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 20px;
    }
    .nav[data-open="true"] { display: flex; }
    .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
    .nav .btn { margin-top: 14px; }
    .nav__toggle { display: block; }

    .grid, .grid--3 { grid-template-columns: 1fr; }
    .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .section { padding-block: 3.25rem; }
    .hero { padding-block: 3.5rem 3rem; }
    .list-plain .doc-name { min-width: 0; }
}

@media (max-width: 540px) {
    .cells { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
