﻿/* Shared visual foundations from the nii.hu wiking_nii theme. */
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --black: #0b0b0b;
    --anthracite: #1a1a1a;
    --green: #2ecc71;
    --green-light: #7ed957;
    --ink: #111;
    --muted: #656565;
    --surface: #f6f7f6;
    --line: rgba(11, 11, 11, .10);
    --green-ink: #167640;
    --heading: "Montserrat", "Inter", "Segoe UI", sans-serif;
    --cut-corner: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 4px; }
::selection { color: var(--black); background: var(--green-light); }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

/* Header and introduction */
.site-header { color: #fff; background: var(--black); border-bottom: 1px solid #ffffff1f; }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.brand-mark { display: block; width: 58px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--heading); font-size: 30px; font-weight: 900; text-transform: uppercase; }
.brand-subtitle { display: block; font-size: 12px; font-weight: 700; margin-top: 5px; color: #ffffffa8; }
.header-label { font-size: 13px; color: #ffffffb8; }
.hero-band { position: relative; color: #fff; background: radial-gradient(circle at 82% 22%, #2ecc7126, transparent 34rem), linear-gradient(90deg, #090909 0%, #0a0a0a 54%, #0e1d13 100%); }
.hero-band::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #7ed957c7, transparent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 72px; padding-block: 70px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 850; letter-spacing: .12em; line-height: 1.4; color: var(--green-ink); }
.eyebrow::before { content: ""; width: 28px; height: 2px; flex-shrink: 0; background: linear-gradient(90deg, var(--green), var(--green-light)); }
.hero .eyebrow { color: var(--green-light); }
.status-dot { display: none; }
h1 { font-size: clamp(40px, 4.4vw, 61px); line-height: 1.04; font-weight: 900; letter-spacing: -1.5px; margin: 24px 0 26px; }
h1 span { color: var(--green-light); }
.intro { font-size: 17px; line-height: 1.8; color: #ffffffd1; max-width: 550px; }
.hero-note { color: #ffffffa8; font-size: 14px; margin-top: 18px; max-width: 510px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 800; text-decoration: none; margin-top: 26px; color: var(--green-light); }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 21px; }
.site-header a:focus-visible, .hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--green-light); }

/* The installer remains the primary action. */
.download-card { position: relative; padding: 32px; background: linear-gradient(145deg, #202620, var(--anthracite) 65%); border: 1px solid #ffffff26; border-top: 3px solid var(--green); clip-path: var(--cut-corner); }
.download-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.app-icon { display: block; width: 54px; height: 54px; padding: 10px; color: var(--green-light); background: #2ecc7114; border: 1px solid #2ecc7147; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.app-icon svg { display: block; width: 100%; height: 100%; }
.platform { font-size: 11px; font-weight: 600; color: #ffffffc7; padding: 5px 10px; border: 1px solid #ffffff24; border-radius: 3px; }
.download-card h2 { font-size: 31px; font-weight: 850; line-height: 1.2; }
.app-description { color: #ffffffb8; font-size: 14px; margin-top: 8px; }
.download-status { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; padding-top: 23px; border-top: 1px solid #ffffff24; font-size: 12px; color: #ffffffb8; }
.download-status strong { display: block; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 4px; }
.download-status span:not(.download-symbol) { display: block; }
.download-symbol { display: grid; place-content: center; flex-shrink: 0; width: 31px; height: 31px; color: var(--green-light); background: #2ecc7114; font-size: 23px; line-height: 1; }
.download-button { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 56px; padding: 12px 16px; border: 1px solid transparent; border-radius: 4px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); background: linear-gradient(135deg, var(--green), var(--green-light)); color: var(--black); text-decoration: none; font-size: 16px; font-weight: 850; transition: transform 180ms ease, filter 180ms ease; }
.download-button:hover { filter: brightness(1.1); transform: translateY(-2px); }
/* Inset outline stays visible inside the clipped button. */
.hero .download-button:focus-visible { outline: 3px solid var(--black); outline-offset: -6px; }
.download-button svg { height: 22px; width: 22px; flex-shrink: 0; }
.file-info { text-align: center; color: #ffffffa8; font-size: 11px; margin: 11px 0 23px; overflow-wrap: anywhere; }
.file-info span { margin-inline: 4px; }
.already-installed { border-top: 1px solid #ffffff24; padding-top: 18px; color: #ffffffb8; font-size: 12px; }
.already-installed strong { color: #fff; font-weight: 700; }
.already-installed a { color: var(--green-light); white-space: nowrap; }

/* Readable instructions and collapsed screenshot help. */
.instructions { padding-top: 55px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-heading h2 { font-size: 29px; line-height: 1.2; font-weight: 850; letter-spacing: -.5px; margin-top: 13px; }
.section-note { font-size: 12px; color: var(--muted); white-space: nowrap; margin-bottom: 3px; }
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--green); background: #fff; }
.step { display: flex; gap: 24px; padding: 30px 32px; }
.step + .step { border-top: 1px solid var(--line); }
.step-number { display: grid; place-content: center; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid #2ecc7147; background: #2ecc7114; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); font-family: var(--heading); font-weight: 850; font-size: 18px; color: var(--green-ink); margin-top: 1px; }
.step-content { min-width: 0; flex: 1; }
.step h3 { font-size: 19px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.step p { font-size: 14px; color: #555; max-width: 950px; }
.step p strong { color: var(--ink); font-weight: 700; }
.step .step-tip { font-size: 13px; color: var(--muted); margin-top: 10px; }
kbd { font-family: inherit; font-size: 11px; display: inline-block; line-height: 1.6; padding: 0 5px; border: 1px solid #d6d6d6; border-bottom-width: 2px; border-radius: 3px; background: var(--surface); color: var(--ink); }
.picture-help { margin-top: 16px; }
.picture-help summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; list-style: none; cursor: pointer; font-size: 12px; font-weight: 750; color: var(--green-ink); padding-block: 7px; min-height: 36px; }
.picture-help summary::-webkit-details-marker { display: none; }
.picture-help summary:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.picture-icon { font-size: 18px; line-height: 1; }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 5px 0 7px; flex-shrink: 0; }
details[open] .chevron { transform: rotate(225deg); margin-top: 3px; }
.picture-content { margin-top: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.picture-content img { display: block; max-width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--line); }
.installation-pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
figure { margin: 0; }
figcaption { font-size: 13px; font-weight: 750; }
.installation-pictures img { margin-top: 8px; }
.install-sequence { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.install-sequence span { border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 3px; font-size: 12px; color: var(--muted); }
.install-sequence strong { font-weight: 750; color: var(--ink); }
.install-sequence b { font-weight: 400; color: var(--green-ink); }
.connection-fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.connection-fields > div { display: flex; align-items: center; gap: 12px; background: #2ecc710a; border: 1px solid #2ecc7133; border-left: 3px solid var(--green); border-radius: 2px; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.field-label { color: var(--green-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.reassurance { display: flex; align-items: flex-start; gap: 18px; margin-top: 25px; padding: 25px 30px; background: var(--surface); border-left: 3px solid var(--green); }
.shield-icon { display: block; flex-shrink: 0; color: var(--green-ink); width: 28px; height: 28px; margin-top: 3px; }
.shield-icon svg { width: 100%; height: 100%; }
.reassurance h2 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.reassurance p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.footer-band { margin-top: 55px; background: var(--black); border-top: 1px solid #2ecc7147; color: #ffffffa8; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; font-size: 11px; }
.site-footer strong { display: block; font-family: var(--heading); font-size: 12px; font-weight: 750; color: #fff; }
.site-footer span { display: block; margin-top: 4px; }
.site-footer a span { display: inline; color: var(--green-light); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green-light); text-decoration: underline; }
.automatic-download { position: absolute; width: 1px; height: 1px; border: 0; clip-path: inset(50%); overflow: hidden; }
.skip-link { position: absolute; top: 8px; left: 8px; background: var(--green-light); padding: 10px; z-index: 5; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1000px) {
    .hero { gap: 35px; }
    .download-card { padding: 25px; }
    h1 { font-size: 46px; }
    .intro { font-size: 16px; }
    .section-heading h2 { font-size: 25px; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    .header-inner { min-height: 80px; }
    .brand-name { font-size: 26px; }
    .brand-mark { width: 48px; height: 44px; }
    .brand-subtitle { font-size: 11px; }
    .header-label { display: none; }
    .hero { grid-template-columns: 1fr; padding-block: 38px; gap: 30px; }
    h1 { font-size: clamp(35px, 8.5vw, 52px); margin: 22px 0; letter-spacing: -1px; }
    .hero-note { max-width: none; }
    .text-link { margin-top: 18px; }
    .download-card { padding: 25px; }
    .download-card-top { margin-bottom: 21px; }
    .download-status { margin-top: 22px; }
    .instructions { padding-top: 36px; }
    .section-heading { display: block; }
    .section-heading h2 { font-size: 24px; }
    .section-note { display: none; }
    .step { padding: 24px 17px; gap: 13px; }
    .step-number { width: 31px; height: 34px; font-size: 15px; }
    .step h3 { font-size: 17px; margin-top: 3px; }
    .installation-pictures { grid-template-columns: 1fr; }
    .picture-content { padding: 12px; }
    .install-sequence { align-items: flex-start; flex-direction: column; gap: 6px; }
    .install-sequence b { transform: rotate(90deg); margin-left: 14px; line-height: 1.2; }
    .connection-fields { flex-direction: column; gap: 8px; }
    .connection-fields > div { flex-wrap: wrap; gap: 4px 12px; padding: 10px; }
    .picture-help summary { font-size: 12px; line-height: 1.5; min-height: 44px; }
    .reassurance { padding: 22px 18px; gap: 13px; }
    .footer-band { margin-top: 35px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .download-button { transition: none; }
}
