/* PayBelow info site. One stylesheet, no web fonts, no external resources.
   Colours match the app: accent #0B7A3E (light) / #3DD68C (dark). All text
   and link colours meet WCAG AA (≥ 4.5:1) on their background. */

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --surface: #f1f6f3;
    --text: #141a16;
    --muted: #4a544e;
    --border: #cfdcd4;
    --accent: #0b7a3e;
    --on-accent: #ffffff;
    --focus: #0b7a3e;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111312;
        --surface: #1b201d;
        --text: #eef2ef;
        --muted: #b4beb8;
        --border: #34403a;
        --accent: #3dd68c;
        --on-accent: #000000;
        --focus: #3dd68c;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Skip link: hidden until focused. */
.skip {
    position: absolute;
    left: 0.5rem;
    top: -4rem;
    padding: 0.5rem 0.75rem;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 0.375rem;
    z-index: 1;
}

.skip:focus {
    top: 0.5rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration-thickness: 0.15em;
}

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

/* Header */

.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.brand img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.lang {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.5rem;
    margin-right: -0.5rem;
    font-size: 0.95rem;
}

/* Content */

main {
    padding: 2rem 0 3rem;
}

h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2.25rem 0 0.5rem;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.2rem;
}

.updated {
    color: var(--muted);
    font-size: 0.95rem;
}

.steps {
    padding-left: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    text-align: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}

.status {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 2.5rem;
    font-size: 0.95rem;
}

.site-footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.site-footer nav li {
    margin: 0;
}

.site-footer p {
    color: var(--muted);
    margin: 0 0 0.5rem;
}

/* Tap targets at least 44 px high in the footer nav. */
.site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-footer nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
