/* VergabeAlarm – mobile-first, conservative B2B stylesheet
   No external fonts or CDNs (CSP self-only). Targets §8.3, §7. */

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fff;
}

a { color: #1a56db; text-decoration: underline; }
a:hover { color: #1239a8; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p + p { margin-top: 0.75rem; }

ul, ol { padding-left: 1.5rem; }
li + li { margin-top: 0.25rem; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section { padding: 3rem 0; }
.section--alt { background: #f7f8fc; }

/* ── Nav ────────────────────────────────────────────────── */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav__brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a2e;
    text-decoration: none;
}

.site-nav__brand:hover { color: #1a56db; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.hero__title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    color: #fff;
    margin-top: 0.5rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-top: 0.75rem;
    max-width: 42ch;
}

/* ── Form card ──────────────────────────────────────────── */
.form-card {
    background: #fff;
    color: #1a1a2e;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 440px;
}

.form-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #1a56db;
    outline-offset: 1px;
    border-color: #1a56db;
}

.form-group .hint {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-align: center;
}

.btn--primary {
    background: #1a56db;
    color: #fff;
    width: 100%;
    padding: 0.75rem;
}

.btn--primary:hover { background: #1239a8; color: #fff; }

.btn--secondary {
    background: transparent;
    color: #1a56db;
    border: 2px solid #1a56db;
}

.btn--secondary:hover { background: #eff6ff; }

.btn--cta {
    background: #16a34a;
    color: #fff;
}

.btn--cta:hover { background: #15803d; color: #fff; }

/* ── Consent note ───────────────────────────────────────── */
.form-consent {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ── Live proof table ───────────────────────────────────── */
.live-proof { overflow-x: auto; }

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

.tender-table th,
.tender-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tender-table th {
    font-weight: 700;
    background: #f1f5f9;
    white-space: nowrap;
}

.tender-table td:last-child { white-space: nowrap; }

.tender-table tr:hover td { background: #f7f8fc; }

.tender-table__link { word-break: break-word; }

/* ── Steps ──────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step__num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #1a56db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step__body h3 { margin-bottom: 0.25rem; }

/* ── Comparison table ───────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.compare-table th,
.compare-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.compare-table th { background: #f1f5f9; font-weight: 700; }
.compare-table td + td { text-align: center; }
.compare-table th + th { text-align: center; }

.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }

/* ── Pricing ────────────────────────────────────────────── */
.price-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.price-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.price-card--highlight {
    border-color: #1a56db;
    position: relative;
}

.price-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background: #1a56db;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.price-card__amount {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0.5rem 0 0.25rem;
}

.price-card__amount span { font-size: 1rem; font-weight: 400; color: #6b7280; }

.price-card__note { font-size: 0.875rem; color: #6b7280; margin-bottom: 1rem; }

.price-card__features { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.price-card__features li { padding: 0.2rem 0; font-size: 0.9rem; }
.price-card__features li::before { content: "✓ "; color: #16a34a; font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.faq-item { border-bottom: 1px solid #e5e7eb; padding: 1rem 0; }
.faq-item:first-child { border-top: 1px solid #e5e7eb; }

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: #6b7280; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }

.faq-item p { margin-top: 0.75rem; color: #374151; }

/* ── pSEO page ──────────────────────────────────────────── */
.pseo-header {
    background: #1a1a2e;
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.pseo-header__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.5rem;
}

.pseo-header__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #fff;
}

.pseo-header__meta { color: #cbd5e1; margin-top: 0.5rem; font-size: 0.95rem; }

.breadcrumb {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.breadcrumb a { color: #93c5fd; }
.breadcrumb span { margin: 0 0.4rem; }

.no-index-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.no-index-notice p { margin: 0; font-size: 0.9rem; color: #92400e; }

/* Sibling nav ─────────────────────────────────────────── */
.sibling-links { margin-top: 2rem; }
.sibling-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
}

.sibling-links__list a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 99px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #374151;
}

.sibling-links__list a:hover { background: #eff6ff; border-color: #1a56db; color: #1a56db; }
.sibling-links__list a[aria-current="page"] { background: #eff6ff; border-color: #1a56db; color: #1a56db; font-weight: 600; }

/* ── Alert / info box ───────────────────────────────────── */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.alert--info  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert--warn  { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.alert--empty { background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 2rem 0;
    font-size: 0.85rem;
    margin-top: 3rem;
}

.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #fff; }

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

/* ── Responsive breakpoints ─────────────────────────────── */
@media (min-width: 640px) {
    .hero__inner { flex-direction: row; align-items: flex-start; }
    .hero__text { flex: 1; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .price-cards { grid-template-columns: repeat(2, 1fr); }
    .form-card { margin-left: auto; flex-shrink: 0; width: 400px; }
}

@media (min-width: 900px) {
    h1 { font-size: 2.25rem; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-muted  { color: #6b7280; }
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
