/*
 * fyrabe.app – the app's colors (src/Fyrabe.Client/wwwroot/css/app.css), mobile-first.
 * CI: orange #FF9524, green #274F2A, warm off-white #f5f4f0. Text on orange uses night green #14291a.
 * System fonts only: nothing is loaded from third parties. Light or dark follows the system setting.
 */
:root {
    --orange: #FF9524;
    --orange-hover: #f58410;
    --orange-ink: #a85800;
    --orange-soft: #fff1e0;
    --green: #274F2A;
    --green-2: #3d6b41;
    --green-soft: #e5ece4;
    --night: #14291a;

    --bg: #f5f4f0;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --text: #1d2a1f;
    --text-2: #435045;
    --muted: #646d63;
    --line: #e4e2d9;
    --link: var(--green);
    --highlight: var(--orange-ink);
    --band: var(--green);
    --band-text: #f5f4f0;

    --radius: 16px;
    --shadow: 0 1px 2px rgba(29, 42, 31, .06), 0 12px 32px rgba(29, 42, 31, .08);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1c12;
        --surface: #15271a;
        --surface-2: #1a2f1f;
        --text: #f5f4f0;
        --text-2: #c9cec4;
        --muted: #9da79a;
        --line: #253a2a;
        --link: #ffb25e;
        --highlight: #ffb25e;
        --orange-soft: #2e2412;
        --green-soft: #1f3a25;
        --band: #15271a;
        --shadow: none;
    }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section { padding: 64px 0; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px;
    font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--night); box-shadow: 0 6px 20px rgba(255, 149, 36, .3); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo img { border-radius: 8px; }
.dot { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 8px 11px; font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

/* Hero */
.hero {
    padding: 48px 0 64px;
    background:
        radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 70%),
        radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--green-2) 14%, transparent), transparent 70%);
}
.hero-inner { display: grid; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 8vw, 60px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--green-2); }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--orange); } }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hint { font-size: 15px; color: var(--muted); }

/* Hero illustration */
.hero-visual { position: relative; max-width: 380px; width: 100%; margin: 0 auto; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
}
.receipt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--orange-soft); color: var(--highlight);
}
.badge-green { background: var(--green-soft); color: var(--green-2); }
@media (prefers-color-scheme: dark) { .badge-green { color: #8fc796; } }
.fields { margin: 0 0 18px; display: grid; gap: 0; }
.fields div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fields div:last-child { border-bottom: 0; }
.fields dt { color: var(--muted); font-size: 15px; }
.fields dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.receipt .btn { cursor: default; box-shadow: none; }
.receipt .btn:hover { transform: none; }
.invoice { margin: -12px 0 0 32px; position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 15px; }
.invoice-row { display: flex; justify-content: space-between; gap: 12px; grid-column: 1; font-variant-numeric: tabular-nums; }
.qr {
    grid-column: 2; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 6px;
    background: repeating-conic-gradient(var(--text) 0 25%, var(--surface-2) 0 50%) 0 0 / 11px 11px;
    border: 4px solid var(--surface-2); outline: 1px solid var(--line);
    opacity: .85;
}

/* Features */
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.section-head p { color: var(--text-2); }
.grid { display: grid; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 20px; margin-top: 16px; }
.feature p { color: var(--text-2); margin: 0; font-size: 16px; }
.icon {
    width: 44px; height: 44px; padding: 10px; border-radius: 12px;
    background: var(--orange-soft); stroke: var(--highlight); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.flyapp { text-align: center; color: var(--muted); font-size: 15px; margin: 32px 0 0; }

/* Switzerland */
.swiss { background: var(--band); color: var(--band-text); }
.swiss-inner { display: grid; gap: 32px; }
.swiss h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.swiss p { color: color-mix(in srgb, var(--band-text) 80%, transparent); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--orange);
}
.checks li::after {
    content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px;
    border: solid var(--night); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; font-weight: 400; color: var(--highlight);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* Call to action */
.cta { padding: 0 0 64px; }
.cta-inner {
    background: var(--green); color: #fff; border-radius: 24px; padding: 40px 24px; text-align: center;
}
.cta h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; }
.cta .actions { justify-content: center; margin-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 15px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand p { color: var(--muted); margin: 8px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-2); }
.footer-note { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* Legal pages */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 64px; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.table { overflow-x: auto; margin: 0 0 1em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 650; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 8px; margin: 24px 0; }
.notice h2 { margin-top: 1em; }
mark.todo { background: #ffe08a; color: #3a2a00; padding: 0 4px; border-radius: 4px; font-weight: 650; }
.not-found { text-align: center; padding-top: 96px; }
.not-found img { margin: 0 auto 24px; border-radius: 14px; }

/* Larger screens */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
    section { padding: 96px 0; }
    .hero { padding: 80px 0 96px; }
    .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 64px; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    .swiss-inner { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
    .cta { padding-bottom: 96px; }
    .cta-inner { padding: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
    .btn:hover { transform: none; }
}
