/* Soudní prověrka – prototype styles */
:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #efede6;
    --fg: #1b1d21;
    --muted: #5f636b;
    --line: #dedbd2;
    --accent: #1f4e8c;
    --accent-fg: #ffffff;
    --accent-soft: #e3ebf6;
    --good: #1f7a4d;
    --bad: #b3261e;
    --warn: #8a5d00;
    --focus: #f0a400;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #131417;
        --surface: #1c1e22;
        --surface-2: #24272c;
        --fg: #ebe9e4;
        --muted: #a2a6ae;
        --line: #33363c;
        --accent: #8ab4f8;
        --accent-fg: #0f1115;
        --accent-soft: #1f2a3b;
        --good: #5cc28d;
        --bad: #ff8a80;
        --warn: #e3b341;
        --shadow: none;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #131417;
    --surface: #1c1e22;
    --surface-2: #24272c;
    --fg: #ebe9e4;
    --muted: #a2a6ae;
    --line: #33363c;
    --accent: #8ab4f8;
    --accent-fg: #0f1115;
    --accent-soft: #1f2a3b;
    --good: #5cc28d;
    --bad: #ff8a80;
    --warn: #e3b341;
    --shadow: none;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--accent);
}

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

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 720px) {
    .container {
        padding: 0 32px;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
}

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

.muted {
    color: var(--muted);
}

.small {
    font-size: .9rem;
}

/* Prototype banner */
.proto-banner {
    background: var(--surface-2);
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
    padding: 6px 16px;
    border-bottom: 1px solid var(--line);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--fg);
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-fg);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: var(--fg);
    text-decoration: none;
    font-size: .95rem;
}

.nav a:hover {
    color: var(--accent);
}

.nav-links {
    display: none;
    gap: 20px;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-login {
    display: none;
}

@media (min-width: 560px) {
    .nav-login {
        display: inline;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, var(--fg));
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--fg);
}

.btn-small {
    padding: 8px 14px;
    font-size: .9rem;
}

.btn-block {
    width: 100%;
}

.btn-bankid {
    background: var(--fg);
    color: var(--bg);
}

.btn-bankid:hover {
    background: color-mix(in srgb, var(--fg) 85%, var(--bg));
}

/* Sections */
section {
    padding: 64px 0;
}

@media (min-width: 720px) {
    section {
        padding: 88px 0;
    }
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 680px;
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Hero */
.hero {
    padding: 72px 0 64px;
}

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: .95rem;
}

.hero-points li::before {
    content: "✓";
    color: var(--good);
    font-weight: 700;
    margin-right: 8px;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.timeline li:last-child {
    border-bottom: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    background: var(--muted);
}

.dot.good {
    background: var(--good);
}

.dot.warn {
    background: var(--warn);
}

.dot.bad {
    background: var(--bad);
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    counter-reset: step;
}

@media (min-width: 720px) {
    .steps {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

.steps li {
    counter-increment: step;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.steps h3 {
    font-size: 1.05rem;
}

.steps p {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

/* Cards */
.cards {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.card ul {
    padding-left: 20px;
    margin: 0 0 20px;
    color: var(--muted);
}

.card li {
    margin-bottom: 6px;
}

.card .btn {
    margin-top: auto;
}

.tag {
    display: inline-block;
    align-self: flex-start;
    font-size: .78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 12px;
}

/* Report sample */
.sample {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sample-label {
    background: var(--surface-2);
    color: var(--warn);
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
}

.sample-body {
    padding: 20px;
}

.verdict {
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 5px solid var(--bad);
    background: var(--bg);
    font-weight: 600;
    margin-bottom: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .85rem;
    color: var(--muted);
}

.stat b {
    display: block;
    font-size: 1.4rem;
    color: var(--fg);
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9rem;
}

th,
td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 500;
}

.mono {
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: .78rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.badge.good {
    color: var(--good);
}

.badge.bad {
    color: var(--bad);
}

.badge.warn {
    color: var(--warn);
}

.badge.muted {
    color: var(--muted);
}

/* Pricing */
.pricing-note {
    display: inline-block;
    background: var(--surface-2);
    color: var(--warn);
    border: 1px dashed var(--warn);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 24px;
}

.price {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    margin: 4px 0 12px;
}

.price small {
    font-family: var(--sans);
    font-size: .9rem;
    color: var(--muted);
    font-weight: 400;
}

/* Feature list */
.features {
    display: grid;
    gap: 20px;
}

@media (min-width: 720px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.feature h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature p {
    color: var(--muted);
    margin: 0;
}

/* FAQ */
.faq {
    max-width: 780px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--muted);
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    color: var(--muted);
    margin: 12px 0 0;
}

/* CTA */
.cta {
    text-align: center;
}

.cta .container {
    max-width: 720px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    font-size: .9rem;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 6px;
}

.site-footer a {
    color: var(--muted);
}

.disclaimer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

/* Forms */
.auth-page {
    padding: 48px 0 72px;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.wizard-card {
    max-width: 720px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.field label,
.field legend {
    font-weight: 600;
    font-size: .95rem;
}

.field .hint {
    font-size: .85rem;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}

input:focus-visible {
    border-color: var(--accent);
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .92rem;
    margin-bottom: 16px;
}

.check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .85rem;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.notice {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--fg);
    border-left: 4px solid var(--accent);
    font-size: .92rem;
}

.notice.is-visible {
    display: block;
}

.auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: .92rem;
}

/* Wizard */
.wizard-progress {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px;
    flex-wrap: wrap;
}

.wizard-progress li {
    flex: 1 1 120px;
    font-size: .8rem;
    color: var(--muted);
    border-top: 3px solid var(--line);
    padding-top: 6px;
}

.wizard-progress li.is-active,
.wizard-progress li.is-done {
    color: var(--fg);
    border-color: var(--accent);
}

.wizard-step[hidden] {
    display: none;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.choice {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: var(--bg);
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.choice input {
    margin-top: 5px;
}

.choice strong {
    display: block;
}

.choice span {
    color: var(--muted);
    font-size: .92rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.summary-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 20px;
}

.summary-list dt {
    color: var(--muted);
}

.summary-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.info-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: .95rem;
}

.info-box ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 6px;
}

.btn-google {
    margin-top: 0.6rem;
}

.small-note {
    font-size: 0.85rem;
    margin: 0.6rem 0 0;
}

/* Portal additions */
.page {
    padding: 40px 0 72px;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.page-head h1,
.h1-small {
    font-size: 1.8rem;
    margin: 4px 0 0;
}

.section-title {
    margin-top: 40px;
}

.nav-form {
    margin: 0;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.message {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    margin-bottom: 8px;
}

.message.success {
    border-left-color: var(--good);
}

.message.error {
    border-left-color: var(--bad);
}

.message.warning {
    border-left-color: var(--warn);
}

.field-error,
.form-errors,
.allauth .errorlist {
    color: var(--bad);
    font-size: .9rem;
}

.has-error input {
    border-color: var(--bad);
}

textarea,
select,
input[type="file"],
input[type="number"],
.allauth input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%;
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}

.allauth form p {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
}

.allauth label {
    font-weight: 600;
    font-size: .95rem;
}

.allauth form .btn {
    width: 100%;
}

.allauth ul {
    list-style: none;
    padding: 0;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.btn-gap {
    margin-top: .6rem;
}

.small-note {
    font-size: .85rem;
    margin: .6rem 0 0;
}

.next-step {
    margin-bottom: 28px;
}

.next-step h2 {
    font-size: 1.3rem;
    margin-top: 0;
}

.info-box {
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}

.demo-box {
    border-left: 4px solid var(--warn);
}

.break {
    word-break: break-all;
}

.summary-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 20px;
}

.summary-list dt {
    color: var(--muted);
}

.summary-list dd {
    margin: 0;
}

.summary-line {
    margin: 8px 0 16px;
}

.prose {
    max-width: 820px;
}

.prose h2 {
    margin-top: 32px;
}

.verdict.good {
    border-left-color: var(--good);
}

.verdict.pending {
    border-left-color: var(--warn);
}

.allauth form p:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.allauth form p:has(input[type="checkbox"]) label {
    font-weight: 400;
}

.allauth h1 {
    font-size: 1.8rem;
}

.inline-form {
    max-width: 560px;
    margin: 16px 0 8px;
}
